	.file	"extr_aas_create.c_AAS_FlipSharedFaces.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%6d areas checked for shared face flipping"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"\r%6d"
.LC2:
	.string	"\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"%6d areas checked for shared face flipping\r\n"
	.text
	.p2align 4
	.globl	AAS_FlipSharedFaces
	.type	AAS_FlipSharedFaces, @function
AAS_FlipSharedFaces:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	esi, esi
	lea	rdi, .LC0[rip]
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	qprintf@PLT
	mov	r14, QWORD PTR tmpaasworld[rip]
	test	r14, r14
	je	.L2
	lea	r12, .LC1[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r14, QWORD PTR 16[r14]
	test	r14, r14
	je	.L2
.L10:
	cmp	QWORD PTR 8[r14], 0
	jne	.L3
	mov	r13, QWORD PTR [r14]
.L29:
	test	r13, r13
	je	.L6
.L4:
	mov	rax, QWORD PTR 0[r13]
	xor	r15d, r15d
	mov	rdx, QWORD PTR 16[r13]
	cmp	rax, r14
	setne	r15b
	mov	rbx, QWORD PTR [rdx+r15*8]
	test	rax, rax
	je	.L13
	cmp	QWORD PTR 8[r13], 0
	je	.L13
	test	rbx, rbx
	jne	.L9
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR 16[rbx]
	mov	rbx, QWORD PTR [rdx+rax*8]
	test	rbx, rbx
	je	.L31
.L9:
	mov	rdx, QWORD PTR [rbx]
	xor	eax, eax
	cmp	rdx, r14
	setne	al
	test	rdx, rdx
	je	.L7
	mov	rcx, QWORD PTR 8[rbx]
	test	rcx, rcx
	je	.L7
	cmp	rcx, QWORD PTR 0[r13]
	jne	.L7
	cmp	rdx, QWORD PTR 8[r13]
	jne	.L7
	mov	rdi, rbx
	call	AAS_FlipFace@PLT
	xor	eax, eax
	mov	rdx, QWORD PTR 16[rbx]
	cmp	QWORD PTR [rbx], r14
	setne	al
	mov	rbx, QWORD PTR [rdx+rax*8]
	test	rbx, rbx
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rax, QWORD PTR 16[r13]
	mov	r13, QWORD PTR [rax+r15*8]
	test	r13, r13
	jne	.L4
.L6:
	add	ebp, 1
	mov	rdi, r12
	xor	eax, eax
	mov	esi, ebp
	call	qprintf@PLT
	mov	r14, QWORD PTR 16[r14]
	test	r14, r14
	jne	.L10
.L2:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	qprintf@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, ebp
	lea	rdi, .LC3[rip]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	Log_Write@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r13, rbx
	jmp	.L29
	.cfi_endproc
.LFE0:
	.size	AAS_FlipSharedFaces, .-AAS_FlipSharedFaces
	.comm	tmpaasworld,8,8
	.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_FlipSharedFaces.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%6d areas checked for shared face flipping\000"
	.align	2
.LC1:
	.ascii	"\015%6d\000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"%6d areas checked for shared face flipping\015\012\000"
	.text
	.align	2
	.global	AAS_FlipSharedFaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	AAS_FlipSharedFaces, %function
AAS_FlipSharedFaces:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	ldr	r0, .L32
	bl	qprintf
	ldr	r3, .L32+4
	ldr	r8, [r3]
	cmp	r8, #0
	beq	.L11
	mov	r6, #0
	ldr	r7, .L32+8
	b	.L10
.L3:
	ldr	r8, [r8, #8]
	cmp	r8, #0
	beq	.L2
.L10:
	ldr	r3, [r8, #4]
	cmp	r3, #0
	bne	.L3
	ldr	r5, [r8]
.L29:
	cmp	r5, #0
	beq	.L6
.L4:
	ldr	r3, [r5]
	ldr	r2, [r5, #8]
	subs	r9, r3, r8
	movne	r9, #1
	cmp	r3, #0
	ldr	r4, [r2, r9, lsl #2]
	beq	.L13
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L13
	cmp	r4, #0
	bne	.L9
	b	.L6
.L7:
	ldr	r3, [r4, #8]
	ldr	r4, [r3, r1, lsl #2]
	cmp	r4, #0
	beq	.L31
.L9:
	ldr	r3, [r4]
	subs	r1, r3, r8
	movne	r1, #1
	cmp	r3, #0
	beq	.L7
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L7
	ldr	r0, [r5]
	cmp	r2, r0
	bne	.L7
	ldr	r2, [r5, #4]
	cmp	r3, r2
	bne	.L7
	mov	r0, r4
	bl	AAS_FlipFace
	ldr	r1, [r4]
	ldr	r3, [r4, #8]
	subs	r1, r1, r8
	movne	r1, #1
	ldr	r4, [r3, r1, lsl #2]
	cmp	r4, #0
	bne	.L9
.L31:
	ldr	r3, [r5, #8]
	ldr	r5, [r3, r9, lsl #2]
	cmp	r5, #0
	bne	.L4
.L6:
	add	r6, r6, #1
	mov	r1, r6
	mov	r0, r7
	bl	qprintf
	ldr	r8, [r8, #8]
	cmp	r8, #0
	bne	.L10
.L2:
	ldr	r0, .L32+12
	bl	qprintf
	mov	r1, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, .L32+16
	b	Log_Write
.L13:
	mov	r5, r4
	b	.L29
.L11:
	mov	r6, r8
	b	.L2
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	tmpaasworld
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	AAS_FlipSharedFaces, .-AAS_FlipSharedFaces
	.comm	tmpaasworld,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
