	.file	"extr_aas_facemerging.c_AAS_MergeAreaFaces.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AAS_MergeAreaFaces\r\n"
.LC1:
	.string	"%6d face merges"
.LC2:
	.string	"\r%6d"
.LC3:
	.string	"\n"
.LC4:
	.string	"%6d face merges\r\n"
	.text
	.p2align 4
	.globl	AAS_MergeAreaFaces
	.type	AAS_MergeAreaFaces, @function
AAS_MergeAreaFaces:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	Log_Write@PLT
	xor	esi, esi
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	qprintf@PLT
	mov	rbp, QWORD PTR tmpaasworld[rip]
	test	rbp, rbp
	je	.L8
	mov	QWORD PTR 8[rsp], rbp
	xor	r13d, r13d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbp, QWORD PTR 16[rbp]
	test	rbp, rbp
	je	.L2
.L7:
	cmp	QWORD PTR 8[rbp], 0
	jne	.L3
	mov	r14, QWORD PTR 0[rbp]
	test	r14, r14
	je	.L10
.L6:
	xor	eax, eax
	mov	rdx, QWORD PTR 8[r14]
	cmp	QWORD PTR [r14], rbp
	setne	al
	mov	r15, QWORD PTR [rdx+rax*8]
	lea	r12, 0[0+rax*8]
	test	r15, r15
	jne	.L5
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[r15]
	movzx	ebx, bl
	mov	r15, QWORD PTR [rax+rbx*8]
	test	r15, r15
	je	.L16
.L5:
	cmp	QWORD PTR [r15], rbp
	mov	rsi, r15
	mov	rdi, r14
	setne	bl
	call	AAS_TryMergeFaces@PLT
	test	rax, rax
	je	.L4
	add	r13d, 1
	lea	rdi, .LC2[rip]
	xor	eax, eax
	mov	esi, r13d
	call	qprintf@PLT
	mov	rdi, rbp
	call	AAS_CheckArea@PLT
	mov	rbp, QWORD PTR 8[rsp]
	mov	rbp, QWORD PTR 16[rbp]
	test	rbp, rbp
	jne	.L7
.L2:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	qprintf@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, r13d
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	lea	rdi, .LC4[rip]
	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
.L16:
	.cfi_restore_state
	add	r12, QWORD PTR 8[r14]
	mov	r14, QWORD PTR [r12]
	test	r14, r14
	jne	.L6
.L10:
	mov	QWORD PTR 8[rsp], rbp
	jmp	.L3
.L8:
	xor	r13d, r13d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	AAS_MergeAreaFaces, .-AAS_MergeAreaFaces
	.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_facemerging.c_AAS_MergeAreaFaces.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AAS_MergeAreaFaces\015\012\000"
	.align	2
.LC1:
	.ascii	"%6d face merges\000"
	.align	2
.LC2:
	.ascii	"\015%6d\000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"%6d face merges\015\012\000"
	.text
	.align	2
	.global	AAS_MergeAreaFaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	AAS_MergeAreaFaces, %function
AAS_MergeAreaFaces:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, .L17
	bl	Log_Write
	mov	r1, #0
	ldr	r0, .L17+4
	bl	qprintf
	ldr	r3, .L17+8
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L8
	mov	r8, r5
	mov	r7, #0
	ldr	r9, .L17+12
	b	.L7
.L3:
	ldr	r5, [r5, #8]
	cmp	r5, #0
	beq	.L2
.L7:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L3
	ldr	fp, [r5]
	cmp	fp, #0
	beq	.L10
.L6:
	ldr	r6, [fp]
	ldr	r3, [fp, #4]
	subs	r6, r6, r5
	movne	r6, #1
	ldr	r4, [r3, r6, lsl #2]
	cmp	r4, #0
	bne	.L5
	b	.L10
.L4:
	ldr	r3, [r4, #4]
	ldr	r4, [r3, r10, lsl #2]
	cmp	r4, #0
	beq	.L16
.L5:
	ldr	r3, [r4]
	mov	r1, r4
	subs	r10, r3, r5
	mov	r0, fp
	movne	r10, #1
	bl	AAS_TryMergeFaces
	cmp	r0, #0
	beq	.L4
	add	r7, r7, #1
	mov	r1, r7
	mov	r0, r9
	bl	qprintf
	mov	r0, r5
	mov	r5, r8
	bl	AAS_CheckArea
	ldr	r5, [r5, #8]
	cmp	r5, #0
	bne	.L7
.L2:
	ldr	r0, .L17+16
	bl	qprintf
	mov	r1, r7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, .L17+20
	b	Log_Write
.L16:
	ldr	r3, [fp, #4]
	ldr	fp, [r3, r6, lsl #2]
	cmp	fp, #0
	bne	.L6
.L10:
	mov	r8, r5
	b	.L3
.L8:
	mov	r7, r5
	b	.L2
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	tmpaasworld
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	AAS_MergeAreaFaces, .-AAS_MergeAreaFaces
	.comm	tmpaasworld,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
