	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TH_AASToTriangleMesh           ## -- Begin function TH_AASToTriangleMesh
	.p2align	4, 0x90
_TH_AASToTriangleMesh:                  ## @TH_AASToTriangleMesh
	.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
	movq	$0, -48(%rbp)
	movq	_aasworld@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpl	$2, %ecx
	jl	LBB0_1
## %bb.2:
	movq	16(%r14), %rax
	movl	$1, %r15d
	leaq	-48(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %ecx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	cmpl	$0, (%rax,%r15,8)
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incl	%ebx
	movq	16(%r14), %rax
	cmpl	(%rax,%r15,8), %ebx
	jge	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movq	24(%r14), %rcx
	movslq	4(%rax,%r15,8), %rax
	movslq	%ebx, %rdx
	addq	%rax, %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovsl	%ecx, %eax
	movq	8(%r14), %rcx
	movq	_FACE_SOLID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx,%rax,4)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	(%rcx,%rax,4), %rdi
	callq	_TH_CreateAASFaceTriangles
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rsi), %r12
	movq	%r13, %rdi
	callq	_TH_AddTriangleToList
	movq	%r12, %rsi
	testq	%r12, %r12
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movq	-48(%rbp), %rax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,32,3                  ## @aasworld
	.comm	_FACE_SOLID,4,2                 ## @FACE_SOLID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TH_AASToTriangleMesh           ; -- Begin function TH_AASToTriangleMesh
	.p2align	2
_TH_AASToTriangleMesh:                  ; @TH_AASToTriangleMesh
	.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
	mov	x0, #0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x19, _aasworld@GOTPAGE
Lloh1:
	ldr	x19, [x19, _aasworld@GOTPAGEOFF]
	ldr	w9, [x19]
	cmp	w9, #2
	b.lt	LBB0_12
; %bb.1:
	ldr	x8, [x19, #16]
	mov	w20, #1
Lloh2:
	adrp	x21, _FACE_SOLID@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FACE_SOLID@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, w9, sxtw
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	lsl	x22, x20, #3
	ldr	w10, [x8, x22]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w23, w23, #1
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x22]
	cmp	w23, w9
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x9, [x19, #24]
	add	x8, x8, x20, lsl #3
	ldr	w8, [x8, #4]
	add	w8, w8, w23
	ldr	w8, [x9, w8, sxtw #2]
	cmp	w8, #0
	cneg	w8, w8, mi
	ldr	x9, [x19, #8]
	add	x0, x9, w8, uxtw #2
	ldr	w8, [x0]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	bl	_TH_CreateAASFaceTriangles
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x1, x0
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x24, [x1]
	add	x0, sp, #8
	bl	_TH_AddTriangleToList
	mov	x1, x24
	cbnz	x24, LBB0_10
	b	LBB0_6
LBB0_11:
	ldr	x0, [sp, #8]
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,32,3                  ; @aasworld
	.comm	_FACE_SOLID,4,2                 ; @FACE_SOLID
.subsections_via_symbols
