	.file	"extr_aas_create.c_AAS_FlipFace.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AAS_FlipFace
	.type	AAS_FlipFace, @function
AAS_FlipFace:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 24[rdi]
	mov	r13, QWORD PTR 16[rdi]
	test	r12, r12
	je	.L1
	test	r13, r13
	je	.L1
	mov	r14, QWORD PTR 8[rdi]
	mov	rbp, rdi
	mov	rdi, r14
	call	ReverseWinding@PLT
	mov	rdi, r14
	mov	QWORD PTR 8[rbp], rax
	call	FreeWinding@PLT
	xor	DWORD PTR 0[rbp], 1
	mov	rsi, r12
	mov	rdi, rbp
	call	AAS_RemoveFaceFromArea@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	AAS_RemoveFaceFromArea@PLT
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, 1
	call	AAS_AddFaceSideToArea@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdx, r13
	mov	rdi, rbp
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	AAS_AddFaceSideToArea@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	AAS_FlipFace, .-AAS_FlipFace
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_aas_create.c_AAS_FlipFace.c"
	.text
	.align	2
	.global	AAS_FlipFace
	.syntax unified
	.arm
	.fpu softvfp
	.type	AAS_FlipFace, %function
AAS_FlipFace:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #8]
	ldr	r7, [r0, #12]
	clz	r1, r6
	cmp	r7, #0
	lsr	r1, r1, #5
	movne	r5, r1
	moveq	r5, #1
	cmp	r5, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r8, [r0, #4]
	mov	r4, r0
	mov	r0, r8
	bl	ReverseWinding
	mov	r3, r0
	mov	r0, r8
	str	r3, [r4, #4]
	bl	FreeWinding
	ldr	r3, [r4]
	mov	r1, r7
	eor	r3, r3, #1
	str	r3, [r4]
	mov	r0, r4
	bl	AAS_RemoveFaceFromArea
	mov	r1, r6
	mov	r0, r4
	bl	AAS_RemoveFaceFromArea
	mov	r2, r7
	mov	r1, #1
	mov	r0, r4
	bl	AAS_AddFaceSideToArea
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	AAS_AddFaceSideToArea
	.size	AAS_FlipFace, .-AAS_FlipFace
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
