	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_OptimizeEdge               ## -- Begin function AAS_OptimizeEdge
	.p2align	4, 0x90
_AAS_OptimizeEdge:                      ## @AAS_OptimizeEdge
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_aasworld@GOTPCREL(%rip), %r12
	movq	8(%r12), %rbx
	movl	%esi, %edi
	callq	_abs
	leaq	(%rbx,%rax,8), %r15
	movq	%r15, %rdi
	callq	_AAS_KeepEdge
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rbx
	movl	%r14d, %edi
	callq	_abs
	movl	(%rbx,%rax,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movl	%ecx, %eax
	negl	%eax
	testl	%r14d, %r14d
	cmovgl	%ecx, %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
	movq	40(%r13), %rbx
	movq	8(%r13), %r8
	movq	16(%r13), %rax
	movq	(%r15), %rdx
	movq	(%rdx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	(%rbx,%r8,8), %rcx
	movq	%rsi, (%rcx)
	jmp	LBB0_7
LBB0_6:
	movq	(%r12), %rax
	movl	(%rax,%rcx,4), %edi
	movq	24(%r13), %rax
	movq	32(%r13), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, %rbx
	callq	_VectorCopy
	movq	%rbx, %r8
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%r13), %rax
	movq	(%rbx,%r8,8), %rcx
	movq	%rax, (%rcx)
	movq	16(%r13), %rax
	movq	24(%r13), %rsi
	movq	(%r15), %rdx
	movq	(%rdx), %rdi
	movq	%rsi, (%rax,%rdi,8)
	incq	24(%r13)
LBB0_7:
	movq	8(%rdx), %rdx
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, 8(%rcx)
	jmp	LBB0_10
LBB0_9:
	movq	(%r12), %rax
	movl	(%rax,%rdx,4), %edi
	movq	24(%r13), %rax
	movq	32(%r13), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	%r8, %r12
	callq	_VectorCopy
	movq	24(%r13), %rax
	movq	(%rbx,%r12,8), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movq	(%r15), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, (%rax,%rdx,8)
	incq	24(%r13)
LBB0_10:
	movl	8(%r13), %r15d
	movq	(%r13), %rbx
	movl	%r14d, %edi
	callq	_abs
	movl	%r15d, (%rbx,%rax,4)
	movq	8(%r13), %rcx
	movq	%rcx, %rax
	incq	%rax
	movq	%rax, 8(%r13)
	movl	%ecx, %eax
	negl	%eax
	testl	%r14d, %r14d
	cmovgl	%ecx, %eax
LBB0_11:
	addq	$8, %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_OptimizeEdge               ; -- Begin function AAS_OptimizeEdge
	.p2align	2
_AAS_OptimizeEdge:                      ; @AAS_OptimizeEdge
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _aasworld@GOTPAGE
Lloh1:
	ldr	x22, [x22, _aasworld@GOTPAGEOFF]
	ldr	x21, [x22, #8]
	mov	x0, x1
	bl	_abs
	add	x21, x21, x0, lsl #3
	mov	x0, x21
	bl	_AAS_KeepEdge
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x23, [x20]
	mov	x0, x19
	bl	_abs
	ldr	w8, [x23, x0, lsl #2]
	cbz	w8, LBB0_3
; %bb.2:
	cmp	w19, #0
	cneg	w0, w8, le
	b	LBB0_10
LBB0_3:
	ldr	x23, [x20, #40]
	ldp	x24, x8, [x20, #8]
	ldr	x10, [x21]
	ldr	x9, [x10]
	ldr	x11, [x8, x9, lsl #3]
	cbz	x11, LBB0_5
; %bb.4:
	ldr	x9, [x23, x24, lsl #3]
	str	x11, [x9]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x22]
	ldr	w0, [x8, x9, lsl #2]
	ldp	x9, x8, [x20, #24]
	ldr	w1, [x8, x9, lsl #2]
	bl	_VectorCopy
	ldr	x9, [x23, x24, lsl #3]
	ldp	x8, x10, [x20, #16]
	str	x10, [x9]
	ldr	x11, [x20, #24]
	ldr	x10, [x21]
	ldr	x12, [x10]
	str	x11, [x8, x12, lsl #3]
	ldr	x11, [x20, #24]
	add	x11, x11, #1
	str	x11, [x20, #24]
LBB0_6:
	ldr	x10, [x10, #8]
	ldr	x8, [x8, x10, lsl #3]
	cbz	x8, LBB0_8
; %bb.7:
	str	x8, [x9, #8]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x22]
	ldr	w0, [x8, x10, lsl #2]
	ldp	x9, x8, [x20, #24]
	ldr	w1, [x8, x9, lsl #2]
	bl	_VectorCopy
	ldr	x8, [x23, x24, lsl #3]
	ldp	x10, x9, [x20, #16]
	str	x9, [x8, #8]
	ldr	x8, [x20, #24]
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	str	x8, [x10, x9, lsl #3]
	ldr	x8, [x20, #24]
	add	x8, x8, #1
	str	x8, [x20, #24]
LBB0_9:
	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_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,16,3                  ; @aasworld
.subsections_via_symbols
