	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AllocLevelItem                 ## -- Begin function AllocLevelItem
	.p2align	4, 0x90
_AllocLevelItem:                        ## @AllocLevelItem
	.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	_freelevelitems@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_Com_Memset
	jmp	LBB0_3
LBB0_1:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	callq	*(%rax)
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_freelevelitems,8,3             ## @freelevelitems
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_FATAL,4,2                  ## @PRT_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of level items\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AllocLevelItem                 ; -- Begin function AllocLevelItem
	.p2align	2
_AllocLevelItem:                        ; @AllocLevelItem
	.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	x8, _freelevelitems@GOTPAGE
Lloh1:
	ldr	x8, [x8, _freelevelitems@GOTPAGEOFF]
	ldr	x19, [x8]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x9, [x19]
	str	x9, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_Com_Memset
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _botimport@GOTPAGE
Lloh3:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _PRT_FATAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PRT_FATAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
LBB0_3:
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_freelevelitems,8,3             ; @freelevelitems
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_FATAL,4,2                  ; @PRT_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of level items\n"

.subsections_via_symbols
