	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_MergeAreaFaces             ## -- Begin function AAS_MergeAreaFaces
	.p2align	4, 0x90
_AAS_MergeAreaFaces:                    ## @AAS_MergeAreaFaces
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_Log_Write
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_tmpaasworld@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_qprintf
	movq	%r12, %rdi
	callq	_AAS_CheckArea
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %r12
	testq	%r12, %r12
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	cmpq	$0, 8(%r12)
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	xorl	%r14d, %r14d
	cmpq	%r12, (%r13)
	movq	8(%r13), %rax
	setne	%r14b
	movq	(%rax,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rbx), %r15
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_AAS_TryMergeFaces
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	xorl	%eax, %eax
	cmpq	%r12, %r15
	setne	%al
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %r13
	testq	%r13, %r13
	jne	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rax
	jmp	LBB0_11
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Log_Write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS_MergeAreaFaces\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"%6d face merges"

	.comm	_tmpaasworld,8,3                ## @tmpaasworld
L_.str.2:                               ## @.str.2
	.asciz	"\r%6d"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"%6d face merges\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_MergeAreaFaces             ; -- Begin function AAS_MergeAreaFaces
	.p2align	2
_AAS_MergeAreaFaces:                    ; @AAS_MergeAreaFaces
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_Write
	str	xzr, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_qprintf
Lloh4:
	adrp	x8, _tmpaasworld@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tmpaasworld@GOTPAGEOFF]
Lloh6:
	ldr	x24, [x8]
	cbz	x24, LBB0_11
; %bb.1:
	mov	w23, #0
Lloh7:
	adrp	x19, l_.str.2@PAGE
Lloh8:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	x20, x24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	str	x23, [sp]
	mov	x0, x19
	bl	_qprintf
	mov	x0, x20
	bl	_AAS_CheckArea
	mov	x20, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x20]
	cbz	x21, LBB0_10
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	ldp	x8, x9, [x21]
	cmp	x8, x20
	cset	w25, ne
	ldr	x22, [x9, w25, uxtw #3]
	cbz	x22, LBB0_10
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x26, [x22]
	mov	x0, x21
	mov	x1, x22
	bl	_AAS_TryMergeFaces
	cbnz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	cmp	x26, x20
	cset	w8, ne
	ldr	x9, [x22, #8]
	ldr	x22, [x9, w8, uxtw #3]
	cbnz	x22, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x21, #8]
	ldr	x21, [x8, x25, lsl #3]
	cbnz	x21, LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x20
	b	LBB0_3
LBB0_11:
	mov	w23, #0
LBB0_12:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_qprintf
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Log_Write
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS_MergeAreaFaces\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"%6d face merges"

	.comm	_tmpaasworld,8,3                ; @tmpaasworld
l_.str.2:                               ; @.str.2
	.asciz	"\r%6d"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"%6d face merges\r\n"

.subsections_via_symbols
