	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_SpawnItem                    ## -- Begin function G_SpawnItem
	.p2align	4, 0x90
_G_SpawnItem:                           ## @G_SpawnItem
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	56(%rdi), %rdx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rsi
	callq	_G_SpawnFloat
	leaq	52(%rbx), %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_G_SpawnFloat
	movl	48(%rbx), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	callq	_RegisterItem
	movq	%r14, %rdi
	callq	_G_ItemDisabled
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, 40(%rbx)
	movq	_level@GOTPCREL(%rip), %rax
	movq	_FRAMETIME@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rcx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 32(%rbx)
	movq	_FinishSpawningItem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movabsq	$4602678819172646912, %rax      ## imm = 0x3FE0000000000000
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	movq	_IT_POWERUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	_G_SoundIndex
	addq	$20, %rbx
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_G_SpawnFloat                   ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"random"

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

L_.str.2:                               ## @.str.2
	.asciz	"wait"

	.comm	_level,8,3                      ## @level
	.comm	_FRAMETIME,4,2                  ## @FRAMETIME
	.comm	_FinishSpawningItem,4,2         ## @FinishSpawningItem
	.comm	_IT_POWERUP,8,3                 ## @IT_POWERUP
L_.str.3:                               ## @.str.3
	.asciz	"sound/items/poweruprespawn.wav"

L_.str.4:                               ## @.str.4
	.asciz	"noglobalsound"

	.comm	_IT_PERSISTANT_POWERUP,8,3      ## @IT_PERSISTANT_POWERUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_SpawnItem                    ; -- Begin function G_SpawnItem
	.p2align	2
_G_SpawnItem:                           ; @G_SpawnItem
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	add	x2, x0, #56
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_G_SpawnFloat
	add	x2, x19, #52
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_G_SpawnFloat
	ldr	w8, [x19, #48]
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_RegisterItem
	mov	x0, x20
	bl	_G_ItemDisabled
	cbnz	x0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _level@GOTPAGE
Lloh7:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _FRAMETIME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FRAMETIME@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #1
	stp	x8, x20, [x19, #32]
Lloh12:
	adrp	x8, _FinishSpawningItem@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FinishSpawningItem@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x8, #4602678819172646912
	str	x8, [x19]
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _IT_POWERUP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IT_POWERUP@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_G_SoundIndex
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x2, x19, #20
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_G_SpawnFloat
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"random"

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

l_.str.2:                               ; @.str.2
	.asciz	"wait"

	.comm	_level,8,3                      ; @level
	.comm	_FRAMETIME,4,2                  ; @FRAMETIME
	.comm	_FinishSpawningItem,4,2         ; @FinishSpawningItem
	.comm	_IT_POWERUP,8,3                 ; @IT_POWERUP
l_.str.3:                               ; @.str.3
	.asciz	"sound/items/poweruprespawn.wav"

l_.str.4:                               ; @.str.4
	.asciz	"noglobalsound"

	.comm	_IT_PERSISTANT_POWERUP,8,3      ; @IT_PERSISTANT_POWERUP
.subsections_via_symbols
