	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AllocAASLink               ## -- Begin function AAS_AllocAASLink
	.p2align	4, 0x90
_AAS_AllocAASLink:                      ## @AAS_AllocAASLink
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	$0, (%rcx)
LBB0_5:
	movq	_numaaslinks@GOTPCREL(%rip), %rax
	decl	(%rax)
	jmp	LBB0_6
LBB0_1:
	movq	_bot_developer@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	callq	*(%rax)
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,8,3                   ## @aasworld
	.comm	_bot_developer,8,3              ## @bot_developer
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_FATAL,4,2                  ## @PRT_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"empty aas link heap\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AllocAASLink               ; -- Begin function AAS_AllocAASLink
	.p2align	2
_AAS_AllocAASLink:                      ; @AAS_AllocAASLink
	.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	x9, _aasworld@GOTPAGE
Lloh1:
	ldr	x9, [x9, _aasworld@GOTPAGEOFF]
	ldr	x19, [x9]
	cbz	x19, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	str	x8, [x9]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x8]
LBB0_3:
Lloh2:
	adrp	x8, _numaaslinks@GOTPAGE
Lloh3:
	ldr	x8, [x8, _numaaslinks@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _bot_developer@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bot_developer@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _botimport@GOTPAGE
Lloh8:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _PRT_FATAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PRT_FATAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,8,3                   ; @aasworld
	.comm	_bot_developer,8,3              ; @bot_developer
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_FATAL,4,2                  ; @PRT_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"empty aas link heap\n"

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