	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_RemoveTinyFaces            ## -- Begin function AAS_RemoveTinyFaces
	.p2align	4, 0x90
_AAS_RemoveTinyFaces:                   ## @AAS_RemoveTinyFaces
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_Log_Write
	movq	_tmpaasworld@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	callq	_AAS_FreeTmpFace
	incl	%r14d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r12, %rbx
	testq	%r12, %r12
	je	LBB0_10
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	cmpq	%r15, 8(%rbx)
	setne	%al
	movq	24(%rbx), %rcx
	movq	(%rcx,%rax,8), %r12
	movl	16(%rbx), %edi
	callq	_WindingArea
	testl	%eax, %eax
	jg	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	callq	_AAS_RemoveFaceFromArea
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	callq	_AAS_RemoveFaceFromArea
	jmp	LBB0_8
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Log_Write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS_RemoveTinyFaces\r\n"

	.comm	_tmpaasworld,8,3                ## @tmpaasworld
L_.str.1:                               ## @.str.1
	.asciz	"%d tiny faces removed\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_RemoveTinyFaces            ; -- Begin function AAS_RemoveTinyFaces
	.p2align	2
_AAS_RemoveTinyFaces:                   ; @AAS_RemoveTinyFaces
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_Write
Lloh2:
	adrp	x8, _tmpaasworld@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tmpaasworld@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
	cbz	x21, LBB0_11
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x19, [x21]
	cbnz	x19, LBB0_6
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	_AAS_FreeTmpFace
	add	w20, w20, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x19, x22
	cbz	x22, LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	cmp	x8, x21
	cset	w8, ne
	ldr	x9, [x19, #24]
	ldr	x22, [x9, w8, uxtw #3]
	ldr	w0, [x19, #16]
	bl	_WindingArea
	cmp	w0, #0
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	_AAS_RemoveFaceFromArea
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x1, [x19]
	cbz	x1, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	_AAS_RemoveFaceFromArea
	b	LBB0_4
LBB0_11:
	mov	w20, #0
LBB0_12:
	str	x20, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Log_Write
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS_RemoveTinyFaces\r\n"

	.comm	_tmpaasworld,8,3                ; @tmpaasworld
l_.str.1:                               ; @.str.1
	.asciz	"%d tiny faces removed\r\n"

.subsections_via_symbols
