	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function FinishSpawningItem
LCPI0_0:
	.long	0x447a0000                      ## float 1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_FinishSpawningItem
	.p2align	4, 0x90
_FinishSpawningItem:                    ## @FinishSpawningItem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	36(%rdi), %edi
	movq	_ITEM_RADIUS@GOTPCREL(%rip), %r14
	xorl	%ecx, %ecx
	subl	(%r14), %ecx
	movl	%ecx, %esi
	movl	%ecx, %edx
	callq	_VectorSet
	movl	32(%rbx), %edi
	movl	(%r14), %ecx
	movl	%ecx, %esi
	movl	%ecx, %edx
	callq	_VectorSet
	movq	_ET_ITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	40(%rbx), %rsi
	movq	88(%rbx), %rax
	movq	_bg_itemlist@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$3, %rcx
	subq	%rcx, %rax
	movq	%rax, 72(%rbx)
	movq	$0, 64(%rbx)
	movq	_CONTENTS_TRIGGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_Touch_Item@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%rbx)
	movq	_Use_Item@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	testb	$1, (%rbx)
	jne	LBB0_4
## %bb.1:
	movl	(%rsi), %eax
	movl	4(%rsi), %edx
	movl	$-4096, %ecx                    ## imm = 0xF000
	addl	8(%rsi), %ecx
	movl	%eax, %esi
	callq	_VectorSet
	movq	40(%rbx), %rsi
	movl	32(%rbx), %ecx
	movl	36(%rbx), %edx
	movl	56(%rbx), %r9d
	movq	_MASK_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-40(%rbp), %rdi
	callq	_trap_Trace
	cmpq	$0, -24(%rbp)
	je	LBB0_3
## %bb.2:
	movl	104(%rbx), %r14d
	movq	40(%rbx), %rdi
	callq	_vtos
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_G_Printf
	movq	%rbx, %rdi
	callq	_G_FreeEntity
	jmp	LBB0_10
LBB0_3:
	movl	-32(%rbp), %eax
	movl	%eax, 52(%rbx)
	movq	-40(%rbp), %rsi
LBB0_4:
	movq	%rbx, %rdi
	callq	_G_SetOrigin
	movq	_FL_TEAMSLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_6
## %bb.5:
	cmpq	$0, 96(%rbx)
	je	LBB0_7
LBB0_6:
	movq	_EF_NODRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%rbx)
	movq	$0, 24(%rbx)
LBB0_10:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	88(%rbx), %rax
	movq	(%rax), %rax
	movq	_IT_POWERUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_crandom
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,2), %eax
	addl	$45, %eax
	cvtsi2ss	%eax, %xmm0
	movq	_EF_NODRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%rbx)
	movq	$0, 24(%rbx)
	movq	_level@GOTPCREL(%rip), %rax
	cvtsi2ssq	(%rax), %xmm1
	mulss	LCPI0_0(%rip), %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rax
	movq	%rax, 16(%rbx)
	movq	_RespawnItem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	callq	_trap_LinkEntity
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ITEM_RADIUS,4,2                ## @ITEM_RADIUS
	.comm	_ET_ITEM,4,2                    ## @ET_ITEM
	.comm	_bg_itemlist,4,2                ## @bg_itemlist
	.comm	_CONTENTS_TRIGGER,8,3           ## @CONTENTS_TRIGGER
	.comm	_Touch_Item,4,2                 ## @Touch_Item
	.comm	_Use_Item,4,2                   ## @Use_Item
	.comm	_MASK_SOLID,4,2                 ## @MASK_SOLID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FinishSpawningItem: %s startsolid at %s\n"

	.comm	_FL_TEAMSLAVE,4,2               ## @FL_TEAMSLAVE
	.comm	_EF_NODRAW,4,2                  ## @EF_NODRAW
	.comm	_IT_POWERUP,8,3                 ## @IT_POWERUP
	.comm	_level,8,3                      ## @level
	.comm	_RespawnItem,4,2                ## @RespawnItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FinishSpawningItem             ; -- Begin function FinishSpawningItem
	.p2align	2
_FinishSpawningItem:                    ; @FinishSpawningItem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	w0, [x0, #36]
Lloh0:
	adrp	x20, _ITEM_RADIUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ITEM_RADIUS@GOTPAGEOFF]
	ldr	w8, [x20]
	neg	w1, w8
	mov	x2, x1
	mov	x3, x1
	bl	_VectorSet
	ldr	w0, [x19, #32]
	ldr	w1, [x20]
	mov	x2, x1
	mov	x3, x1
	bl	_VectorSet
Lloh2:
	adrp	x8, _ET_ITEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ET_ITEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #80]
	ldr	x8, [x19, #88]
Lloh5:
	adrp	x9, _bg_itemlist@GOTPAGE
Lloh6:
	ldr	x9, [x9, _bg_itemlist@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	sub	x8, x8, x9, lsl #3
	stp	xzr, x8, [x19, #64]
Lloh8:
	adrp	x8, _CONTENTS_TRIGGER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONTENTS_TRIGGER@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #24]
Lloh11:
	adrp	x8, _Touch_Item@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Touch_Item@GOTPAGEOFF]
Lloh13:
	adrp	x9, _Use_Item@GOTPAGE
Lloh14:
	ldr	x9, [x9, _Use_Item@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #108]
	ldr	x1, [x19, #40]
	ldrb	w8, [x19]
	tbnz	w8, #0, LBB0_4
; %bb.1:
	ldp	w8, w2, [x1]
	ldr	w9, [x1, #8]
	sub	w3, w9, #1, lsl #12             ; =4096
	mov	x1, x8
	bl	_VectorSet
	ldr	x1, [x19, #40]
	ldp	w3, w2, [x19, #32]
	ldr	w5, [x19, #56]
Lloh17:
	adrp	x8, _MASK_SOLID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MASK_SOLID@GOTPAGEOFF]
Lloh19:
	ldr	w6, [x8]
	add	x0, sp, #8
	bl	_trap_Trace
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w20, [x19, #104]
	ldr	x0, [x19, #40]
	bl	_vtos
	mov	x2, x0
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_G_Printf
	mov	x0, x19
	bl	_G_FreeEntity
	b	LBB0_7
LBB0_3:
	ldr	w8, [sp, #16]
	str	w8, [x19, #52]
	ldr	x1, [sp, #8]
LBB0_4:
	mov	x0, x19
	bl	_G_SetOrigin
	ldr	w8, [x19, #4]
Lloh22:
	adrp	x9, _FL_TEAMSLAVE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FL_TEAMSLAVE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_8
LBB0_6:
Lloh25:
	adrp	x8, _EF_NODRAW@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EF_NODRAW@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	str	xzr, [x19, #24]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	x8, [x19, #88]
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _IT_POWERUP@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IT_POWERUP@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	bl	_crandom
	lsl	w8, w0, #4
	sub	w8, w8, w0
	add	w8, w8, #45
	scvtf	s0, w8
Lloh31:
	adrp	x8, _EF_NODRAW@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EF_NODRAW@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _level@GOTPAGE
Lloh35:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	scvtf	s1, x9
	str	w8, [x19, #48]
	mov	w8, #1148846080
	fmov	s2, w8
	fmadd	s0, s0, s2, s1
	fcvtzs	x8, s0
	stp	x8, xzr, [x19, #16]
Lloh37:
	adrp	x8, _RespawnItem@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RespawnItem@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_trap_LinkEntity
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ITEM_RADIUS,4,2                ; @ITEM_RADIUS
	.comm	_ET_ITEM,4,2                    ; @ET_ITEM
	.comm	_bg_itemlist,4,2                ; @bg_itemlist
	.comm	_CONTENTS_TRIGGER,8,3           ; @CONTENTS_TRIGGER
	.comm	_Touch_Item,4,2                 ; @Touch_Item
	.comm	_Use_Item,4,2                   ; @Use_Item
	.comm	_MASK_SOLID,4,2                 ; @MASK_SOLID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FinishSpawningItem: %s startsolid at %s\n"

	.comm	_FL_TEAMSLAVE,4,2               ; @FL_TEAMSLAVE
	.comm	_EF_NODRAW,4,2                  ; @EF_NODRAW
	.comm	_IT_POWERUP,8,3                 ; @IT_POWERUP
	.comm	_level,8,3                      ; @level
	.comm	_RespawnItem,4,2                ; @RespawnItem
.subsections_via_symbols
