	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Touch_Item                     ## -- Begin function Touch_Item
	.p2align	4, 0x90
_Touch_Item:                            ## @Touch_Item
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	104(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_24
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	jle	LBB0_24
## %bb.2:
	movq	%rdi, %r14
	movq	_g_gametype@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r14), %rsi
	addq	$8, %rdx
	callq	_BG_CanItemBeGrabbed
	testl	%eax, %eax
	je	LBB0_24
## %bb.3:
	movl	52(%rbx), %esi
	movq	96(%r14), %rax
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_G_LogPrintf
	movq	96(%r14), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_24
## %bb.4:
	movq	104(%rbx), %rcx
	movq	(%rcx), %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Weapon
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Team
	jmp	LBB0_12
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Powerup
	movl	%eax, %r15d
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testl	%r15d, %r15d
	jne	LBB0_14
	jmp	LBB0_24
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Holdable
	jmp	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Health
	jmp	LBB0_12
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Armor
	jmp	LBB0_12
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Ammo
LBB0_12:
	movl	%eax, %r15d
	testl	%r15d, %r15d
	je	LBB0_24
LBB0_14:
	movq	_EV_ITEM_PICKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	56(%r14), %edx
	movq	%rbx, %rdi
	testq	%r12, %r12
	je	LBB0_16
## %bb.15:
	callq	_G_AddPredictableEvent
	jmp	LBB0_17
LBB0_16:
	callq	_G_AddEvent
LBB0_17:
	movq	96(%r14), %rax
	movl	$-129, %ecx
	addl	(%rax), %ecx
	cmpl	$1, %ecx
	ja	LBB0_21
## %bb.18:
	movl	88(%r14), %r12d
	movl	64(%r14), %edi
	movq	_EV_GLOBAL_ITEM_PICKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_G_TempEntity
	movl	56(%r14), %ecx
	movl	%ecx, 60(%rax)
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.20:
	movq	_SVF_SINGLECLIENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 40(%rax)
	movl	52(%rbx), %ecx
	movl	%ecx, 44(%rax)
	jmp	LBB0_21
LBB0_19:
	movq	_SVF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 40(%rax)
LBB0_21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_G_UseTargets
	movl	4(%r14), %eax
	testl	%eax, %eax
	je	LBB0_26
## %bb.22:
	cmpl	$-1, %eax
	jne	LBB0_25
## %bb.23:
	movq	_SVF_NOCLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r14)
	movq	_EF_NODRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%r14)
	movq	$0, 32(%r14)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 80(%r14)
LBB0_24:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	%eax, %r15d
LBB0_26:
	cmpl	$0, 8(%r14)
	je	LBB0_28
## %bb.27:
	xorl	%eax, %eax
	callq	_crandom
	imull	8(%r14), %eax
	addl	%r15d, %eax
	cmpl	$2, %eax
	movl	$1, %r15d
	cmovgel	%eax, %r15d
LBB0_28:
	movq	_FL_DROPPED_ITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r14)
	je	LBB0_30
## %bb.29:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r14)
LBB0_30:
	movq	_SVF_NOCLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r14)
	movq	_EF_NODRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%r14)
	movq	$0, 32(%r14)
	testl	%r15d, %r15d
	jle	LBB0_31
## %bb.32:
	movq	_level@GOTPCREL(%rip), %rcx
	imull	$1000, %r15d, %eax              ## imm = 0x3E8
	cltq
	addq	(%rcx), %rax
	movq	_RespawnItem@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_33
LBB0_31:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
LBB0_33:
	movq	%rax, 24(%r14)
	movq	%rcx, 16(%r14)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_LinkEntity                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_24
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_g_gametype,4,2                 ## @g_gametype
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Item: %i %s\n"

	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_EV_ITEM_PICKUP,4,2             ## @EV_ITEM_PICKUP
	.comm	_EV_GLOBAL_ITEM_PICKUP,4,2      ## @EV_GLOBAL_ITEM_PICKUP
	.comm	_SVF_BROADCAST,4,2              ## @SVF_BROADCAST
	.comm	_SVF_SINGLECLIENT,4,2           ## @SVF_SINGLECLIENT
	.comm	_SVF_NOCLIENT,4,2               ## @SVF_NOCLIENT
	.comm	_EF_NODRAW,4,2                  ## @EF_NODRAW
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_FL_DROPPED_ITEM,4,2            ## @FL_DROPPED_ITEM
	.comm	_level,8,3                      ## @level
	.comm	_RespawnItem,8,3                ## @RespawnItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Touch_Item                     ; -- Begin function Touch_Item
	.p2align	2
_Touch_Item:                            ; @Touch_Item
	.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
	ldr	x8, [x1, #104]
	cbz	x8, LBB0_23
; %bb.1:
	mov	x20, x1
	ldr	w9, [x1]
	cmp	w9, #1
	b.lt	LBB0_23
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x9, _g_gametype@GOTPAGE
Lloh1:
	ldr	x9, [x9, _g_gametype@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	add	x1, x19, #48
	add	x2, x8, #8
	bl	_BG_CanItemBeGrabbed
	cbz	w0, LBB0_23
; %bb.3:
	ldr	w1, [x20, #52]
	ldr	x8, [x19, #96]
	ldr	w2, [x8, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_G_LogPrintf
	ldr	x8, [x19, #96]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_23
; %bb.4:
	ldr	x9, [x20, #104]
	ldr	x22, [x9]
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Weapon
	b	LBB0_12
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Team
	b	LBB0_12
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Powerup
	mov	x21, x0
Lloh7:
	adrp	x8, _qfalse@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh9:
	ldr	x22, [x8]
	cbnz	w21, LBB0_13
	b	LBB0_23
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Holdable
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Health
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Armor
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Ammo
LBB0_12:
	mov	x21, x0
	cbz	w21, LBB0_23
LBB0_13:
Lloh10:
	adrp	x8, _EV_ITEM_PICKUP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EV_ITEM_PICKUP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x19, #56]
	mov	x0, x20
	cbz	x22, LBB0_15
; %bb.14:
	bl	_G_AddPredictableEvent
	b	LBB0_16
LBB0_15:
	bl	_G_AddEvent
LBB0_16:
	ldr	x8, [x19, #96]
	ldr	w8, [x8]
	sub	w8, w8, #129
	cmp	w8, #1
	b.hi	LBB0_20
; %bb.17:
	ldr	w22, [x19, #88]
	ldr	w0, [x19, #64]
Lloh13:
	adrp	x8, _EV_GLOBAL_ITEM_PICKUP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EV_GLOBAL_ITEM_PICKUP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_G_TempEntity
	ldr	w8, [x19, #56]
	str	w8, [x0, #60]
	cbz	w22, LBB0_19
; %bb.18:
Lloh16:
	adrp	x8, _SVF_SINGLECLIENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SVF_SINGLECLIENT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x0, #40]
	orr	w8, w9, w8
	ldr	w9, [x20, #52]
	stp	w8, w9, [x0, #40]
	b	LBB0_20
LBB0_19:
Lloh19:
	adrp	x8, _SVF_BROADCAST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SVF_BROADCAST@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x0, #40]
	orr	w8, w9, w8
	str	w8, [x0, #40]
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_G_UseTargets
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_25
; %bb.21:
	cmn	w8, #1
	b.ne	LBB0_24
; %bb.22:
Lloh22:
	adrp	x8, _SVF_NOCLIENT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SVF_NOCLIENT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
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, #32]
Lloh28:
	adrp	x8, _qtrue@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x19, #80]
LBB0_23:
	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
LBB0_24:
	mov	x21, x8
LBB0_25:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_27
; %bb.26:
	bl	_crandom
	ldr	w8, [x19, #8]
	madd	w8, w8, w0, w21
	cmp	w8, #1
	csinc	w21, w8, wzr, gt
LBB0_27:
	ldr	w8, [x19, #12]
Lloh31:
	adrp	x9, _FL_DROPPED_ITEM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _FL_DROPPED_ITEM@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
Lloh34:
	adrp	x8, _qtrue@GOTPAGE
Lloh35:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	x8, [x19, #72]
LBB0_29:
Lloh37:
	adrp	x8, _SVF_NOCLIENT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SVF_NOCLIENT@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
Lloh40:
	adrp	x8, _EF_NODRAW@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EF_NODRAW@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	str	xzr, [x19, #32]
	cmp	w21, #1
	b.lt	LBB0_31
; %bb.30:
Lloh43:
	adrp	x8, _level@GOTPAGE
Lloh44:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	mov	w9, #1000
	mul	w9, w21, w9
	add	x8, x8, w9, sxtw
Lloh46:
	adrp	x9, _RespawnItem@GOTPAGE
Lloh47:
	ldr	x9, [x9, _RespawnItem@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	b	LBB0_32
LBB0_31:
	mov	x8, #0
	mov	x9, #0
LBB0_32:
	stp	x9, x8, [x19, #16]
	mov	x0, x19
	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	_trap_LinkEntity
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_23-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
                                        ; -- End function
	.comm	_g_gametype,4,2                 ; @g_gametype
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Item: %i %s\n"

	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_EV_ITEM_PICKUP,4,2             ; @EV_ITEM_PICKUP
	.comm	_EV_GLOBAL_ITEM_PICKUP,4,2      ; @EV_GLOBAL_ITEM_PICKUP
	.comm	_SVF_BROADCAST,4,2              ; @SVF_BROADCAST
	.comm	_SVF_SINGLECLIENT,4,2           ; @SVF_SINGLECLIENT
	.comm	_SVF_NOCLIENT,4,2               ; @SVF_NOCLIENT
	.comm	_EF_NODRAW,4,2                  ; @EF_NODRAW
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_FL_DROPPED_ITEM,4,2            ; @FL_DROPPED_ITEM
	.comm	_level,8,3                      ; @level
	.comm	_RespawnItem,8,3                ; @RespawnItem
.subsections_via_symbols
