	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_MergeAreaPlaneFaces        ## -- Begin function AAS_MergeAreaPlaneFaces
	.p2align	4, 0x90
_AAS_MergeAreaPlaneFaces:               ## @AAS_MergeAreaPlaneFaces
	.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
	pushq	%rax
	.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	%r14d, %r14d
	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), %r13
	testq	%r13, %r13
	je	LBB0_10
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r13
	testq	%r13, %r13
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	16(%r13), %r12
	cmpq	$0, 8(%r13)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %r15
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_AAS_CanMergePlaneFaces
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	xorl	%eax, %eax
	cmpq	%r13, %r15
	setne	%al
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_AAS_MergePlaneFaces
	incl	%r14d
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_qprintf
	testq	%r13, %r13
	jne	LBB0_2
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	addq	$8, %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_MergePlaneFaces\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"%6d plane 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 plane face merges\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_MergeAreaPlaneFaces        ; -- Begin function AAS_MergeAreaPlaneFaces
	.p2align	2
_AAS_MergeAreaPlaneFaces:               ; @AAS_MergeAreaPlaneFaces
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
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	x20, [x8]
	cbz	x20, LBB0_8
; %bb.1:
	mov	w21, #0
Lloh7:
	adrp	x19, l_.str.2@PAGE
Lloh8:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x22
	cbz	x20, LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldp	x8, x22, [x20, #8]
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x20]
	cbz	x23, LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x24, [x23, #8]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_AAS_CanMergePlaneFaces
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	x24, x20
	cset	w8, ne
	ldr	x9, [x23, #16]
	ldr	x23, [x9, w8, uxtw #3]
	cbnz	x23, LBB0_5
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_AAS_MergePlaneFaces
	add	w21, w21, #1
	str	x21, [sp]
	mov	x0, x19
	bl	_qprintf
	cbnz	x20, LBB0_3
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_qprintf
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Log_Write
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	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_MergePlaneFaces\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"%6d plane 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 plane face merges\r\n"

.subsections_via_symbols
