	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	104(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_37
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	jle	LBB0_37
## %bb.2:
	movq	%rdi, %r14
	movq	_g_gametype@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r14), %rsi
	callq	_BG_CanItemBeGrabbed
	testl	%eax, %eax
	je	LBB0_37
## %bb.3:
	movl	52(%rbx), %esi
	movq	96(%r14), %rax
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_G_LogPrintf
	movq	104(%rbx), %rdx
	movq	8(%rdx), %r15
	movl	$-1, -28(%rbp)
	movl	112(%r14), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.4:
	leaq	-28(%rbp), %rsi
	callq	_dmlab_override_pickup
	testl	%eax, %eax
	je	LBB0_5
## %bb.16:
	movl	-28(%rbp), %eax
LBB0_17:
	testl	%eax, %eax
	je	LBB0_37
## %bb.18:
	movq	_EV_ITEM_PICKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	56(%r14), %edx
	movq	%rbx, %rdi
	testq	%r15, %r15
	je	LBB0_20
## %bb.19:
	callq	_G_AddPredictableEvent
	jmp	LBB0_21
LBB0_5:
	movq	96(%r14), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_37
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Weapon
	movl	%eax, -28(%rbp)
	jmp	LBB0_17
LBB0_20:
	callq	_G_AddEvent
LBB0_21:
	movq	96(%r14), %rax
	movl	(%rax), %eax
	orl	$2, %eax
	cmpl	$131, %eax
	jne	LBB0_25
## %bb.22:
	movl	88(%r14), %r15d
	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	%r15d, %r15d
	je	LBB0_23
## %bb.24:
	movq	_SVF_SINGLECLIENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 40(%rax)
	movl	52(%rbx), %ecx
	movl	%ecx, 44(%rax)
	jmp	LBB0_25
LBB0_23:
	movq	_SVF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 40(%rax)
LBB0_25:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_G_UseTargets
	movl	4(%r14), %eax
	testl	%eax, %eax
	je	LBB0_29
## %bb.26:
	cmpl	$-1, %eax
	jne	LBB0_28
## %bb.27:
	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)
	jmp	LBB0_37
LBB0_28:
	movl	%eax, -28(%rbp)
LBB0_29:
	cmpl	$0, 8(%r14)
	je	LBB0_31
## %bb.30:
	xorl	%eax, %eax
	callq	_crandom
	imull	8(%r14), %eax
	addl	-28(%rbp), %eax
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, -28(%rbp)
LBB0_31:
	movq	_FL_DROPPED_ITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r14)
	je	LBB0_33
## %bb.32:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r14)
LBB0_33:
	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)
	movslq	-28(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_34
## %bb.35:
	movq	_level@GOTPCREL(%rip), %rcx
	imulq	$1000, %rax, %rax               ## imm = 0x3E8
	addq	(%rcx), %rax
	movq	_RespawnItem@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_36
LBB0_34:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
LBB0_36:
	movq	%rax, 24(%r14)
	movq	%rcx, 16(%r14)
	movq	%r14, %rdi
	callq	_trap_LinkEntity
LBB0_37:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Team
	movl	%eax, -28(%rbp)
	jmp	LBB0_17
LBB0_14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Reward
	movl	%eax, -28(%rbp)
	jmp	LBB0_17
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Powerup
	movl	%eax, -28(%rbp)
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	jmp	LBB0_17
LBB0_13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Holdable
	movl	%eax, -28(%rbp)
	jmp	LBB0_17
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Health
	movl	%eax, -28(%rbp)
	jmp	LBB0_17
LBB0_15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Goal
	movl	%eax, -28(%rbp)
	jmp	LBB0_17
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Armor
	movl	%eax, -28(%rbp)
	jmp	LBB0_17
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_Pickup_Ammo
	movl	%eax, -28(%rbp)
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_37
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_8
	.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:
	sub	sp, sp, #64
	.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
	ldr	x2, [x1, #104]
	cbz	x2, LBB0_29
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _g_gametype@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_gametype@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_BG_CanItemBeGrabbed
	cbz	w0, LBB0_29
; %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	x2, [x20, #104]
	ldr	x21, [x2, #8]
	mov	w8, #-1
	str	w8, [sp, #12]
	ldr	w0, [x19, #112]
	cbz	w0, LBB0_9
; %bb.4:
	add	x1, sp, #12
	bl	_dmlab_override_pickup
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w0, [sp, #12]
LBB0_6:
	cbz	w0, LBB0_29
; %bb.7:
Lloh5:
	adrp	x8, _EV_ITEM_PICKUP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EV_ITEM_PICKUP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x19, #56]
	mov	x0, x20
	cbz	x21, LBB0_12
; %bb.8:
	bl	_G_AddPredictableEvent
	b	LBB0_13
LBB0_9:
	ldr	x8, [x19, #96]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_29
; %bb.10:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Weapon
	str	w0, [sp, #12]
	b	LBB0_6
LBB0_12:
	bl	_G_AddEvent
LBB0_13:
	ldr	x8, [x19, #96]
	ldr	w8, [x8]
	orr	w8, w8, #0x2
	cmp	w8, #131
	b.ne	LBB0_17
; %bb.14:
	ldr	w21, [x19, #88]
	ldr	w0, [x19, #64]
Lloh10:
	adrp	x8, _EV_GLOBAL_ITEM_PICKUP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EV_GLOBAL_ITEM_PICKUP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_G_TempEntity
	ldr	w8, [x19, #56]
	str	w8, [x0, #60]
	cbz	w21, LBB0_16
; %bb.15:
Lloh13:
	adrp	x8, _SVF_SINGLECLIENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SVF_SINGLECLIENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x0, #40]
	orr	w8, w9, w8
	ldr	w9, [x20, #52]
	stp	w8, w9, [x0, #40]
	b	LBB0_17
LBB0_16:
Lloh16:
	adrp	x8, _SVF_BROADCAST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SVF_BROADCAST@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x0, #40]
	orr	w8, w9, w8
	str	w8, [x0, #40]
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	bl	_G_UseTargets
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_21
; %bb.18:
	cmn	w8, #1
	b.ne	LBB0_20
; %bb.19:
Lloh19:
	adrp	x8, _SVF_NOCLIENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SVF_NOCLIENT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
Lloh22:
	adrp	x8, _EF_NODRAW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EF_NODRAW@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	str	xzr, [x19, #32]
Lloh25:
	adrp	x8, _qtrue@GOTPAGE
Lloh26:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #80]
	b	LBB0_29
LBB0_20:
	str	w8, [sp, #12]
LBB0_21:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_23
; %bb.22:
	bl	_crandom
	ldr	w8, [x19, #8]
	ldr	w9, [sp, #12]
	madd	w8, w8, w0, w9
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [sp, #12]
LBB0_23:
	ldr	w8, [x19, #12]
Lloh28:
	adrp	x9, _FL_DROPPED_ITEM@GOTPAGE
Lloh29:
	ldr	x9, [x9, _FL_DROPPED_ITEM@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:
Lloh31:
	adrp	x8, _qtrue@GOTPAGE
Lloh32:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x19, #72]
LBB0_25:
Lloh34:
	adrp	x8, _SVF_NOCLIENT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SVF_NOCLIENT@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
Lloh37:
	adrp	x8, _EF_NODRAW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EF_NODRAW@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	str	xzr, [x19, #32]
	ldrsw	x8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.26:
Lloh40:
	adrp	x9, _level@GOTPAGE
Lloh41:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	mov	w10, #1000
	madd	x8, x8, x10, x9
Lloh43:
	adrp	x9, _RespawnItem@GOTPAGE
Lloh44:
	ldr	x9, [x9, _RespawnItem@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	b	LBB0_28
LBB0_27:
	mov	x8, #0
	mov	x9, #0
LBB0_28:
	stp	x9, x8, [x19, #16]
	mov	x0, x19
	bl	_trap_LinkEntity
LBB0_29:
	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
	add	sp, sp, #64
	ret
LBB0_30:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Team
	str	w0, [sp, #12]
	b	LBB0_6
LBB0_31:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Reward
	str	w0, [sp, #12]
	b	LBB0_6
LBB0_32:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Powerup
	str	w0, [sp, #12]
Lloh46:
	adrp	x8, _qfalse@GOTPAGE
Lloh47:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh48:
	ldr	x21, [x8]
	b	LBB0_6
LBB0_33:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Holdable
	str	w0, [sp, #12]
	b	LBB0_6
LBB0_34:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Health
	str	w0, [sp, #12]
	b	LBB0_6
LBB0_35:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Goal
	str	w0, [sp, #12]
	b	LBB0_6
LBB0_36:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Armor
	str	w0, [sp, #12]
	b	LBB0_6
LBB0_37:
	mov	x0, x19
	mov	x1, x20
	bl	_Pickup_Ammo
	str	w0, [sp, #12]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_30-LBB0_11)>>2
	.byte	(LBB0_31-LBB0_11)>>2
	.byte	(LBB0_32-LBB0_11)>>2
	.byte	(LBB0_29-LBB0_11)>>2
	.byte	(LBB0_33-LBB0_11)>>2
	.byte	(LBB0_34-LBB0_11)>>2
	.byte	(LBB0_35-LBB0_11)>>2
	.byte	(LBB0_36-LBB0_11)>>2
	.byte	(LBB0_37-LBB0_11)>>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
