.endif
.endif is part of the as support for conditional assembly; it marks the end of a block of code that is only assembled conditionally. See section .if absolute expression.
as
.if absolute expression