	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OutputPortal                   ## -- Begin function OutputPortal
	.p2align	4, 0x90
_OutputPortal:                          ## @OutputPortal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_PortalVisibleSides
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_c_glfaces@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movq	(%rbx), %rdi
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.2:
	callq	_ReverseWinding
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_OutputWinding
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FreeWinding                    ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_OutputWinding                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_c_glfaces,4,2                  ## @c_glfaces
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OutputPortal                   ; -- Begin function OutputPortal
	.p2align	2
_OutputPortal:                          ; @OutputPortal
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_PortalVisibleSides
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _c_glfaces@GOTPAGE
Lloh1:
	ldr	x8, [x8, _c_glfaces@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x20]
	cmp	w0, #2
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x8
	bl	_ReverseWinding
	mov	x20, x0
	mov	x1, x19
	bl	_OutputWinding
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FreeWinding
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x8
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_OutputWinding
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_c_glfaces,4,2                  ; @c_glfaces
.subsections_via_symbols
