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