	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FlipFace                   ## -- Begin function AAS_FlipFace
	.p2align	4, 0x90
_AAS_FlipFace:                          ## @AAS_FlipFace
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_ReverseWinding
	movq	%rax, 8(%rbx)
	movq	%r12, %rdi
	callq	_FreeWinding
	xorb	$1, (%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_AAS_RemoveFaceFromArea
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_AAS_RemoveFaceFromArea
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_AAS_AddFaceSideToArea
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AAS_AddFaceSideToArea          ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_FlipFace                   ; -- Begin function AAS_FlipFace
	.p2align	2
_AAS_FlipFace:                          ; @AAS_FlipFace
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldp	x19, x21, [x0, #16]
	cmp	x21, #0
	ccmp	x19, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x0
	ldr	x22, [x0, #8]
	mov	x0, x22
	bl	_ReverseWinding
	str	x0, [x20, #8]
	mov	x0, x22
	bl	_FreeWinding
	ldr	w8, [x20]
	eor	w8, w8, #0x1
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	_AAS_RemoveFaceFromArea
	mov	x0, x20
	mov	x1, x19
	bl	_AAS_RemoveFaceFromArea
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	bl	_AAS_AddFaceSideToArea
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AAS_AddFaceSideToArea
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
