	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function TossClientItems
LCPI0_0:
	.long	0x42340000                      ## float 45
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TossClientItems
	.p2align	4, 0x90
_TossClientItems:                       ## @TossClientItems
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	movq	_WP_MACHINEGUN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WP_GRAPPLING_HOOK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ecx, %edi
	je	LBB0_2
## %bb.1:
	cmpl	%eax, %edi
	jne	LBB0_6
LBB0_2:
	movq	8(%r14), %rdx
	movq	(%rdx), %rsi
	movq	_WEAPON_DROPPING@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rsi
	jne	LBB0_4
## %bb.3:
	movl	32(%rdx), %edi
LBB0_4:
	movq	8(%rdx), %rdx
	movq	_STAT_WEAPONS@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rsi,4), %edx
	btl	%edi, %edx
	jb	LBB0_6
## %bb.5:
	movq	_WP_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_6:
	cmpl	%ecx, %edi
	jle	LBB0_10
## %bb.7:
	cmpl	%eax, %edi
	je	LBB0_10
## %bb.8:
	movq	8(%r14), %rax
	movq	24(%rax), %rax
	movslq	%edi, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_10
## %bb.9:
	callq	_BG_FindItemForWeapon
	xorps	%xmm0, %xmm0
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_Drop_Item
LBB0_10:
	movq	_g_gametype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GT_TEAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.11:
	movq	_PW_NUM_POWERUPS@GOTPCREL(%rip), %r15
	cmpl	$2, (%r15)
	jl	LBB0_17
## %bb.12:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$1, %ebx
	movq	_level@GOTPCREL(%rip), %r12
	movl	$1, %r13d
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	16(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	cmpq	(%r12), %rax
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ebx, %edi
	callq	_BG_FindItemForPowerup
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_Drop_Item
	movq	%rax, %rcx
	movq	8(%r14), %rax
	movq	16(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	subq	(%r12), %rax
	movabsq	$2361183241434822607, %rdx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$7, %rdx
	addl	%eax, %edx
	cmpl	$2, %edx
	cmovll	%r13d, %edx
	movl	%edx, (%rcx)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WP_MACHINEGUN,4,2              ## @WP_MACHINEGUN
	.comm	_WP_GRAPPLING_HOOK,4,2          ## @WP_GRAPPLING_HOOK
	.comm	_WEAPON_DROPPING,8,3            ## @WEAPON_DROPPING
	.comm	_STAT_WEAPONS,8,3               ## @STAT_WEAPONS
	.comm	_WP_NONE,4,2                    ## @WP_NONE
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
	.comm	_PW_NUM_POWERUPS,4,2            ## @PW_NUM_POWERUPS
	.comm	_level,8,3                      ## @level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TossClientItems                ; -- Begin function TossClientItems
	.p2align	2
_TossClientItems:                       ; @TossClientItems
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _WP_MACHINEGUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WP_MACHINEGUN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WP_GRAPPLING_HOOK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WP_GRAPPLING_HOOK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_4
; %bb.1:
	ldr	x10, [x19, #8]
	ldr	x11, [x10]
Lloh6:
	adrp	x12, _WEAPON_DROPPING@GOTPAGE
Lloh7:
	ldr	x12, [x12, _WEAPON_DROPPING@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x10, #32]
LBB0_3:
	ldr	x10, [x10, #8]
Lloh9:
	adrp	x11, _STAT_WEAPONS@GOTPAGE
Lloh10:
	ldr	x11, [x11, _STAT_WEAPONS@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
Lloh12:
	adrp	x11, _WP_NONE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _WP_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	lsr	w10, w10, w0
	tst	w10, #0x1
	csel	w0, w11, w0, eq
LBB0_4:
	cmp	w0, w8
	ccmp	w0, w9, #4, gt
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #24]
	ldr	x8, [x8, w0, sxtw #3]
	cbz	x8, LBB0_7
; %bb.6:
	bl	_BG_FindItemForWeapon
	mov	x1, x0
	movi	d0, #0000000000000000
	mov	x0, x19
	bl	_Drop_Item
LBB0_7:
Lloh15:
	adrp	x8, _g_gametype@GOTPAGE
Lloh16:
	ldr	x8, [x8, _g_gametype@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _GT_TEAM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GT_TEAM@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x21, _PW_NUM_POWERUPS@GOTPAGE
Lloh22:
	ldr	x21, [x21, _PW_NUM_POWERUPS@GOTPAGEOFF]
	ldr	w10, [x21]
	cmp	x8, x9
	ccmp	w10, #2, #8, ne
	b.ge	LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w22, #1110704128
	fmov	s8, w22
	mov	w20, #1
Lloh23:
	adrp	x23, _level@GOTPAGE
Lloh24:
	ldr	x23, [x23, _level@GOTPAGEOFF]
	mov	x24, #63439
	movk	x24, #58195, lsl #16
	movk	x24, #39845, lsl #32
	movk	x24, #8388, lsl #48
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.ge	LBB0_8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x9, [x23]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_BG_FindItemForPowerup
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x1, x0
	mov	x0, x19
	fmov	s0, s8
	bl	_Drop_Item
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x9, [x23]
	sub	x8, x8, x9
	smulh	x8, x8, x24
	lsr	x9, x8, #63
	lsr	x8, x8, #7
	add	w8, w8, w9
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x0]
	fmov	s0, w22
	fadd	s8, s8, s0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_WP_MACHINEGUN,4,2              ; @WP_MACHINEGUN
	.comm	_WP_GRAPPLING_HOOK,4,2          ; @WP_GRAPPLING_HOOK
	.comm	_WEAPON_DROPPING,8,3            ; @WEAPON_DROPPING
	.comm	_STAT_WEAPONS,8,3               ; @STAT_WEAPONS
	.comm	_WP_NONE,4,2                    ; @WP_NONE
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
	.comm	_PW_NUM_POWERUPS,4,2            ; @PW_NUM_POWERUPS
	.comm	_level,8,3                      ; @level
.subsections_via_symbols
