	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_OptimizeFace               ## -- Begin function AAS_OptimizeFace
	.p2align	4, 0x90
_AAS_OptimizeFace:                      ## @AAS_OptimizeFace
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	8(%rax), %r14
	movl	%esi, %edi
	callq	_abs
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax,8), %r12
	movq	%r12, %rdi
	callq	_AAS_KeepFace
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %r14
	movl	%r15d, %edi
	callq	_abs
	movl	(%r14,%rax,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movl	%ecx, %eax
	negl	%eax
	testl	%r15d, %r15d
	cmovgl	%ecx, %eax
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	8(%rbx), %r13
	movq	32(%rbx), %r14
	leaq	(%r14,%r13,8), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_Com_Memcpy
	movl	$0, (%r14,%r13,8)
	movl	16(%rbx), %eax
	movl	%eax, 4(%r14,%r13,8)
	cmpl	$0, (%r12)
	jle	LBB0_9
## %bb.5:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	cmpl	(%r12), %r15d
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movslq	4(%rcx,%rdx,8), %rcx
	addq	%r15, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	callq	_AAS_OptimizeEdge
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rbx), %rcx
	movslq	4(%r14,%r13,8), %rdx
	movslq	(%r14,%r13,8), %rsi
	addq	%rdx, %rsi
	movl	%eax, (%rcx,%rsi,4)
	incl	(%r14,%r13,8)
	incl	16(%rbx)
	jmp	LBB0_8
LBB0_9:
	movl	8(%rbx), %r14d
	movq	(%rbx), %r15
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_abs
	movl	%r14d, (%r15,%rax,4)
	movq	8(%rbx), %rcx
	movq	%rcx, %rax
	incq	%rax
	movq	%rax, 8(%rbx)
	movl	%ecx, %eax
	negl	%eax
	testl	%r12d, %r12d
	cmovgl	%ecx, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,16,3                  ## @aasworld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_OptimizeFace               ; -- Begin function AAS_OptimizeFace
	.p2align	2
_AAS_OptimizeFace:                      ; @AAS_OptimizeFace
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _aasworld@GOTPAGE
Lloh1:
	ldr	x24, [x24, _aasworld@GOTPAGEOFF]
	ldr	x26, [x24, #8]
	mov	x0, x1
	bl	_abs
	mov	x23, x0
	add	x21, x26, x0, lsl #3
	mov	x0, x21
	bl	_AAS_KeepFace
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x22, [x20]
	mov	x0, x19
	bl	_abs
	ldr	w8, [x22, x0, lsl #2]
	cbz	w8, LBB0_3
; %bb.2:
	cmp	w19, #0
	cneg	w0, w8, le
	b	LBB0_9
LBB0_3:
	ldr	x8, [x20, #32]
	ldr	x9, [x20, #8]
	add	x22, x8, x9, lsl #3
	mov	x0, x22
	mov	x1, x21
	mov	w2, #8
	bl	_Com_Memcpy
	str	wzr, [x22]
	ldr	w8, [x20, #16]
	mov	x25, x22
	str	w8, [x25, #4]!
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x27, #0
	add	x8, x26, x23, lsl #3
	add	x23, x8, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	add	x27, x27, #1
	cmp	w27, w8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldrsw	x9, [x23]
	add	x9, x27, x9
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_AAS_OptimizeEdge
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #24]
	ldr	w9, [x25]
	ldr	w10, [x22]
	add	w9, w10, w9
	str	w0, [x8, w9, sxtw #2]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_5
LBB0_8:
	ldp	x22, x21, [x20]
	mov	x0, x19
	bl	_abs
	str	w21, [x22, x0, lsl #2]
	ldr	x8, [x20, #8]
	add	x9, x8, #1
	str	x9, [x20, #8]
	cmp	w19, #0
	cneg	w0, w8, le
LBB0_9:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,16,3                  ; @aasworld
.subsections_via_symbols
