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