	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_InitAASLinkHeap            ## -- Begin function AAS_InitAASLinkHeap
	.p2align	4, 0x90
_AAS_InitAASLinkHeap:                   ## @AAS_InitAASLinkHeap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_aasworld@GOTPCREL(%rip), %r14
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %r15d
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_LibVarValue
	xorl	%r15d, %r15d
	testl	%eax, %eax
	cmovgl	%eax, %r15d
	movl	%r15d, (%r14)
	movl	%r15d, %edi
	shll	$4, %edi
	callq	_GetHunkMemory
	movq	%rax, 8(%r14)
LBB0_3:
	movq	$0, 8(%rax)
	leaq	16(%rax), %rcx
	movq	%rcx, (%rax)
	leal	-1(%r15), %r9d
	cmpl	$3, %r15d
	jl	LBB0_9
## %bb.4:
	movl	%r9d, %r8d
	decq	%r8
	movl	$1, %esi
	cmpl	$2, %r9d
	je	LBB0_7
## %bb.5:
	leaq	48(%rax), %rdi
	movq	%r8, %rdx
	andq	$-2, %rdx
	negq	%rdx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rdi), %rcx
	movq	%rcx, -24(%rdi)
	leaq	-16(%rdi), %rcx
	leaq	-32(%rdi), %rbx
	movq	%rcx, -32(%rdi)
	movq	%rbx, -8(%rdi)
	movq	%rdi, -16(%rdi)
	addq	$32, %rdi
	leaq	(%rdx,%rsi), %rcx
	addq	$2, %rcx
	addq	$2, %rsi
	cmpq	$1, %rcx
	jne	LBB0_6
LBB0_7:
	testb	$1, %r8b
	je	LBB0_9
## %bb.8:
	shlq	$4, %rsi
	leaq	(%rax,%rsi), %rcx
	addq	$-16, %rcx
	movq	%rcx, 8(%rax,%rsi)
	leaq	(%rax,%rsi), %rcx
	addq	$16, %rcx
	movq	%rcx, (%rax,%rsi)
LBB0_9:
	movslq	%r15d, %rcx
	shlq	$4, %rcx
	addq	%rax, %rcx
	addq	$-32, %rcx
	movslq	%r9d, %rdx
	shlq	$4, %rdx
	movq	%rcx, 8(%rax,%rdx)
	movq	$0, (%rax,%rdx)
	movq	%rax, 16(%r14)
	movq	_numaaslinks@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,24,3                  ## @aasworld
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"max_aaslinks"

L_.str.1:                               ## @.str.1
	.asciz	"6144"

	.comm	_numaaslinks,4,2                ## @numaaslinks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function AAS_InitAASLinkHeap
lCPI0_0:
	.quad	1                               ; 0x1
	.quad	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AAS_InitAASLinkHeap
	.p2align	2
_AAS_InitAASLinkHeap:                   ; @AAS_InitAASLinkHeap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _aasworld@GOTPAGE
Lloh1:
	ldr	x19, [x19, _aasworld@GOTPAGEOFF]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x19]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_LibVarValue
	cmp	w0, #0
	csel	w20, w0, wzr, gt
	str	w20, [x19]
	lsl	w0, w20, #4
	bl	_GetHunkMemory
	str	x0, [x19, #8]
LBB0_3:
	add	x8, x0, #16
	stp	x8, xzr, [x0]
	sub	w8, w20, #1
	cmp	w20, #3
	b.lt	LBB0_11
; %bb.4:
	sub	x10, x8, #1
	cmp	x10, #8
	b.hs	LBB0_6
; %bb.5:
	mov	w9, #1
	b	LBB0_9
LBB0_6:
	and	x11, x10, #0xfffffffffffffff8
	orr	x9, x11, #0x1
Lloh6:
	adrp	x12, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x12, lCPI0_0@PAGEOFF]
	add	x12, x0, #80
	mov	x13, #-16
	dup.2d	v1, x13
	dup.2d	v2, x0
	mov	w13, #112
	dup.2d	v3, x13
	mov	w13, #80
	dup.2d	v4, x13
	mov	w13, #48
	dup.2d	v5, x13
	mov	w13, #16
	dup.2d	v6, x13
	mov	w13, #8
	dup.2d	v7, x13
	mov	x13, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	shl.2d	v16, v0, #4
	add.2d	v16, v16, v2
	add.2d	v20, v16, v1
	add.2d	v19, v16, v6
	add.2d	v18, v16, v5
	add.2d	v17, v16, v4
	sub	x14, x12, #64
	st2.2d	{ v19, v20 }, [x14]
	sub	x14, x12, #32
	st2.2d	{ v18, v19 }, [x14]
	add	x14, x12, #128
	st2.2d	{ v17, v18 }, [x12], #32
	add.2d	v21, v16, v3
	mov.16b	v22, v17
	st2.2d	{ v21, v22 }, [x12]
	add.2d	v0, v0, v7
	mov	x12, x14
	subs	x13, x13, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x10, x11
	b.eq	LBB0_11
LBB0_9:
	add	x10, x0, x9, lsl #4
	add	x10, x10, #16
	sub	x9, x8, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	x11, x10, #32
	stp	x10, x11, [x10, #-16]
	add	x10, x10, #16
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	sub	w9, w20, #2
	add	x9, x0, w9, sxtw #4
	add	x8, x0, w8, sxtw #4
	stp	xzr, x9, [x8]
	str	x0, [x19, #16]
Lloh8:
	adrp	x8, _numaaslinks@GOTPAGE
Lloh9:
	ldr	x8, [x8, _numaaslinks@GOTPAGEOFF]
Lloh10:
	str	w20, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,24,3                  ; @aasworld
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"max_aaslinks"

l_.str.1:                               ; @.str.1
	.asciz	"6144"

	.comm	_numaaslinks,4,2                ; @numaaslinks
.subsections_via_symbols
