	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_LoadAASLump                ## -- Begin function AAS_LoadAASLump
	.p2align	4, 0x90
_AAS_LoadAASLump:                       ## @AAS_LoadAASLump
	.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
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%edi, %r14d
	cmpl	%esi, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_botimport@GOTPCREL(%rip), %r13
	movq	_PRT_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	*24(%r13)
	movq	_FS_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	*16(%r13)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_AAS_Error
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_AAS_DumpAASData
	movl	%r14d, %edi
	callq	*8(%r13)
	jmp	LBB0_6
LBB0_5:
	leal	1(%r12), %edi
	callq	_GetClearedHunkMemory
	movq	%rax, %rbx
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	*(%rax)
	addl	%r12d, (%r15)
	jmp	LBB0_6
LBB0_1:
	incl	%r8d
	movl	%r8d, %edi
	callq	_GetClearedHunkMemory
	movq	%rax, %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_botimport,32,3                 ## @botimport
	.comm	_PRT_WARNING,4,2                ## @PRT_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS file not sequentially read\n"

	.comm	_FS_SEEK_SET,4,2                ## @FS_SEEK_SET
L_.str.1:                               ## @.str.1
	.asciz	"can't seek to aas lump\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_LoadAASLump                ; -- Begin function AAS_LoadAASLump
	.p2align	2
_AAS_LoadAASLump:                       ; @AAS_LoadAASLump
	.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
	cbz	w2, LBB0_5
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w8, [x3]
Lloh0:
	adrp	x23, _botimport@GOTPAGE
Lloh1:
	ldr	x23, [x23, _botimport@GOTPAGEOFF]
	cmp	w8, w1
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x23, #24]
Lloh2:
	adrp	x9, _PRT_WARNING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PRT_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
	ldr	x8, [x23, #16]
Lloh7:
	adrp	x9, _FS_SEEK_SET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FS_SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x1, x22
	blr	x8
	cbz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_AAS_Error
	bl	_AAS_DumpAASData
	ldr	x8, [x23, #8]
	mov	x0, x19
	blr	x8
	mov	x22, #0
	b	LBB0_6
LBB0_4:
	add	w0, w21, #1
	bl	_GetClearedHunkMemory
	mov	x22, x0
	ldr	x8, [x23]
	mov	x1, x21
	mov	x2, x19
	blr	x8
	ldr	w8, [x20]
	add	w8, w8, w21
	str	w8, [x20]
	b	LBB0_6
LBB0_5:
	add	w0, w4, #1
	bl	_GetClearedHunkMemory
	mov	x22, x0
LBB0_6:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_botimport,32,3                 ; @botimport
	.comm	_PRT_WARNING,4,2                ; @PRT_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS file not sequentially read\n"

	.comm	_FS_SEEK_SET,4,2                ; @FS_SEEK_SET
l_.str.1:                               ; @.str.1
	.asciz	"can't seek to aas lump\n"

.subsections_via_symbols
