	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankPickupWeapon             ## -- Begin function G_RankPickupWeapon
	.p2align	4, 0x90
_G_RankPickupWeapon:                    ## @G_RankPickupWeapon
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_level@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_QGR_KEY_PICKUP_WEAPON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_trap_RankReportInt
	addl	$-128, %ebx
	cmpl	$9, %ebx
	ja	LBB0_2
## %bb.3:
	movslq	%ebx, %rax
	leaq	l_switch.table.G_RankPickupWeapon(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$-1, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trap_RankReportInt             ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,8,3                      ## @level
	.comm	_QGR_KEY_PICKUP_WEAPON,4,2      ## @QGR_KEY_PICKUP_WEAPON
	.comm	_QGR_KEY_PICKUP_GAUNTLET,4,2    ## @QGR_KEY_PICKUP_GAUNTLET
	.comm	_QGR_KEY_PICKUP_MACHINEGUN,4,2  ## @QGR_KEY_PICKUP_MACHINEGUN
	.comm	_QGR_KEY_PICKUP_SHOTGUN,4,2     ## @QGR_KEY_PICKUP_SHOTGUN
	.comm	_QGR_KEY_PICKUP_GRENADE,4,2     ## @QGR_KEY_PICKUP_GRENADE
	.comm	_QGR_KEY_PICKUP_ROCKET,4,2      ## @QGR_KEY_PICKUP_ROCKET
	.comm	_QGR_KEY_PICKUP_LIGHTNING,4,2   ## @QGR_KEY_PICKUP_LIGHTNING
	.comm	_QGR_KEY_PICKUP_RAILGUN,4,2     ## @QGR_KEY_PICKUP_RAILGUN
	.comm	_QGR_KEY_PICKUP_PLASMA,4,2      ## @QGR_KEY_PICKUP_PLASMA
	.comm	_QGR_KEY_PICKUP_BFG,4,2         ## @QGR_KEY_PICKUP_BFG
	.comm	_QGR_KEY_PICKUP_GRAPPLE,4,2     ## @QGR_KEY_PICKUP_GRAPPLE
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.G_RankPickupWeapon
l_switch.table.G_RankPickupWeapon:
	.quad	_QGR_KEY_PICKUP_SHOTGUN
	.quad	_QGR_KEY_PICKUP_ROCKET
	.quad	_QGR_KEY_PICKUP_RAILGUN
	.quad	_QGR_KEY_PICKUP_PLASMA
	.quad	_QGR_KEY_PICKUP_MACHINEGUN
	.quad	_QGR_KEY_PICKUP_LIGHTNING
	.quad	_QGR_KEY_PICKUP_GRENADE
	.quad	_QGR_KEY_PICKUP_GRAPPLE
	.quad	_QGR_KEY_PICKUP_GAUNTLET
	.quad	_QGR_KEY_PICKUP_BFG

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankPickupWeapon             ; -- Begin function G_RankPickupWeapon
	.p2align	2
_G_RankPickupWeapon:                    ; @G_RankPickupWeapon
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _QGR_KEY_PICKUP_WEAPON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QGR_KEY_PICKUP_WEAPON@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #-1
	mov	w3, #1
	mov	w4, #1
	bl	_trap_RankReportInt
	sub	w8, w20, #128
	cmp	w8, #9
	b.hi	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, l_switch.table.G_RankPickupWeapon@PAGE
Lloh7:
	add	x9, x9, l_switch.table.G_RankPickupWeapon@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	mov	w3, #1
	mov	w4, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_RankReportInt
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_level,8,3                      ; @level
	.comm	_QGR_KEY_PICKUP_WEAPON,4,2      ; @QGR_KEY_PICKUP_WEAPON
	.comm	_QGR_KEY_PICKUP_GAUNTLET,4,2    ; @QGR_KEY_PICKUP_GAUNTLET
	.comm	_QGR_KEY_PICKUP_MACHINEGUN,4,2  ; @QGR_KEY_PICKUP_MACHINEGUN
	.comm	_QGR_KEY_PICKUP_SHOTGUN,4,2     ; @QGR_KEY_PICKUP_SHOTGUN
	.comm	_QGR_KEY_PICKUP_GRENADE,4,2     ; @QGR_KEY_PICKUP_GRENADE
	.comm	_QGR_KEY_PICKUP_ROCKET,4,2      ; @QGR_KEY_PICKUP_ROCKET
	.comm	_QGR_KEY_PICKUP_LIGHTNING,4,2   ; @QGR_KEY_PICKUP_LIGHTNING
	.comm	_QGR_KEY_PICKUP_RAILGUN,4,2     ; @QGR_KEY_PICKUP_RAILGUN
	.comm	_QGR_KEY_PICKUP_PLASMA,4,2      ; @QGR_KEY_PICKUP_PLASMA
	.comm	_QGR_KEY_PICKUP_BFG,4,2         ; @QGR_KEY_PICKUP_BFG
	.comm	_QGR_KEY_PICKUP_GRAPPLE,4,2     ; @QGR_KEY_PICKUP_GRAPPLE
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.G_RankPickupWeapon
l_switch.table.G_RankPickupWeapon:
	.quad	_QGR_KEY_PICKUP_SHOTGUN
	.quad	_QGR_KEY_PICKUP_ROCKET
	.quad	_QGR_KEY_PICKUP_RAILGUN
	.quad	_QGR_KEY_PICKUP_PLASMA
	.quad	_QGR_KEY_PICKUP_MACHINEGUN
	.quad	_QGR_KEY_PICKUP_LIGHTNING
	.quad	_QGR_KEY_PICKUP_GRENADE
	.quad	_QGR_KEY_PICKUP_GRAPPLE
	.quad	_QGR_KEY_PICKUP_GAUNTLET
	.quad	_QGR_KEY_PICKUP_BFG

.subsections_via_symbols
