	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankPickupAmmo               ## -- Begin function G_RankPickupAmmo
	.p2align	4, 0x90
_G_RankPickupAmmo:                      ## @G_RankPickupAmmo
	.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	_level@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	_QGR_KEY_BOXES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_trap_RankReportInt
	movq	_QGR_KEY_ROUNDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$-1, %esi
	movl	%r14d, %ecx
	movl	$1, %r8d
	callq	_trap_RankReportInt
	addl	$-128, %ebx
	cmpl	$7, %ebx
	ja	LBB0_2
## %bb.3:
	movslq	%ebx, %rax
	leaq	l_switch.table.G_RankPickupAmmo(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.G_RankPickupAmmo.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rbx
	movl	(%rcx), %edx
	movl	%r15d, %edi
	movl	$-1, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_trap_RankReportInt
	movl	(%rbx), %edx
	movl	%r15d, %edi
	movl	$-1, %esi
	movl	%r14d, %ecx
	movl	$1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_RankReportInt             ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,8,3                      ## @level
	.comm	_QGR_KEY_BOXES,4,2              ## @QGR_KEY_BOXES
	.comm	_QGR_KEY_ROUNDS,4,2             ## @QGR_KEY_ROUNDS
	.comm	_QGR_KEY_BOXES_BULLETS,4,2      ## @QGR_KEY_BOXES_BULLETS
	.comm	_QGR_KEY_ROUNDS_BULLETS,4,2     ## @QGR_KEY_ROUNDS_BULLETS
	.comm	_QGR_KEY_BOXES_SHELLS,4,2       ## @QGR_KEY_BOXES_SHELLS
	.comm	_QGR_KEY_ROUNDS_SHELLS,4,2      ## @QGR_KEY_ROUNDS_SHELLS
	.comm	_QGR_KEY_BOXES_GRENADES,4,2     ## @QGR_KEY_BOXES_GRENADES
	.comm	_QGR_KEY_ROUNDS_GRENADES,4,2    ## @QGR_KEY_ROUNDS_GRENADES
	.comm	_QGR_KEY_BOXES_ROCKETS,4,2      ## @QGR_KEY_BOXES_ROCKETS
	.comm	_QGR_KEY_ROUNDS_ROCKETS,4,2     ## @QGR_KEY_ROUNDS_ROCKETS
	.comm	_QGR_KEY_BOXES_LG_AMMO,4,2      ## @QGR_KEY_BOXES_LG_AMMO
	.comm	_QGR_KEY_ROUNDS_LG_AMMO,4,2     ## @QGR_KEY_ROUNDS_LG_AMMO
	.comm	_QGR_KEY_BOXES_SLUGS,4,2        ## @QGR_KEY_BOXES_SLUGS
	.comm	_QGR_KEY_ROUNDS_SLUGS,4,2       ## @QGR_KEY_ROUNDS_SLUGS
	.comm	_QGR_KEY_BOXES_CELLS,4,2        ## @QGR_KEY_BOXES_CELLS
	.comm	_QGR_KEY_ROUNDS_CELLS,4,2       ## @QGR_KEY_ROUNDS_CELLS
	.comm	_QGR_KEY_BOXES_BFG_AMMO,4,2     ## @QGR_KEY_BOXES_BFG_AMMO
	.comm	_QGR_KEY_ROUNDS_BFG_AMMO,4,2    ## @QGR_KEY_ROUNDS_BFG_AMMO
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.G_RankPickupAmmo
l_switch.table.G_RankPickupAmmo:
	.quad	_QGR_KEY_BOXES_SHELLS
	.quad	_QGR_KEY_BOXES_ROCKETS
	.quad	_QGR_KEY_BOXES_SLUGS
	.quad	_QGR_KEY_BOXES_CELLS
	.quad	_QGR_KEY_BOXES_BULLETS
	.quad	_QGR_KEY_BOXES_LG_AMMO
	.quad	_QGR_KEY_BOXES_GRENADES
	.quad	_QGR_KEY_BOXES_BFG_AMMO

	.p2align	3                               ## @switch.table.G_RankPickupAmmo.1
l_switch.table.G_RankPickupAmmo.1:
	.quad	_QGR_KEY_ROUNDS_SHELLS
	.quad	_QGR_KEY_ROUNDS_ROCKETS
	.quad	_QGR_KEY_ROUNDS_SLUGS
	.quad	_QGR_KEY_ROUNDS_CELLS
	.quad	_QGR_KEY_ROUNDS_BULLETS
	.quad	_QGR_KEY_ROUNDS_LG_AMMO
	.quad	_QGR_KEY_ROUNDS_GRENADES
	.quad	_QGR_KEY_ROUNDS_BFG_AMMO

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankPickupAmmo               ; -- Begin function G_RankPickupAmmo
	.p2align	2
_G_RankPickupAmmo:                      ; @G_RankPickupAmmo
	.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
Lloh0:
	adrp	x8, _level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _QGR_KEY_BOXES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QGR_KEY_BOXES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #-1
	mov	w3, #1
	mov	w4, #1
	bl	_trap_RankReportInt
Lloh6:
	adrp	x8, _QGR_KEY_ROUNDS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QGR_KEY_ROUNDS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #-1
	mov	x3, x19
	mov	w4, #1
	bl	_trap_RankReportInt
	sub	w8, w21, #128
	cmp	w8, #7
	b.hi	LBB0_3
; %bb.2:
	sbfiz	x8, x8, #3, #32
Lloh9:
	adrp	x9, l_switch.table.G_RankPickupAmmo@PAGE
Lloh10:
	add	x9, x9, l_switch.table.G_RankPickupAmmo@PAGEOFF
	ldr	x9, [x9, x8]
Lloh11:
	adrp	x10, l_switch.table.G_RankPickupAmmo.1@PAGE
Lloh12:
	add	x10, x10, l_switch.table.G_RankPickupAmmo.1@PAGEOFF
	ldr	x21, [x10, x8]
	ldr	w2, [x9]
	mov	x0, x20
	mov	w1, #-1
	mov	w3, #1
	mov	w4, #1
	bl	_trap_RankReportInt
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #-1
	mov	x3, x19
	mov	w4, #1
	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_RankReportInt
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_level,8,3                      ; @level
	.comm	_QGR_KEY_BOXES,4,2              ; @QGR_KEY_BOXES
	.comm	_QGR_KEY_ROUNDS,4,2             ; @QGR_KEY_ROUNDS
	.comm	_QGR_KEY_BOXES_BULLETS,4,2      ; @QGR_KEY_BOXES_BULLETS
	.comm	_QGR_KEY_ROUNDS_BULLETS,4,2     ; @QGR_KEY_ROUNDS_BULLETS
	.comm	_QGR_KEY_BOXES_SHELLS,4,2       ; @QGR_KEY_BOXES_SHELLS
	.comm	_QGR_KEY_ROUNDS_SHELLS,4,2      ; @QGR_KEY_ROUNDS_SHELLS
	.comm	_QGR_KEY_BOXES_GRENADES,4,2     ; @QGR_KEY_BOXES_GRENADES
	.comm	_QGR_KEY_ROUNDS_GRENADES,4,2    ; @QGR_KEY_ROUNDS_GRENADES
	.comm	_QGR_KEY_BOXES_ROCKETS,4,2      ; @QGR_KEY_BOXES_ROCKETS
	.comm	_QGR_KEY_ROUNDS_ROCKETS,4,2     ; @QGR_KEY_ROUNDS_ROCKETS
	.comm	_QGR_KEY_BOXES_LG_AMMO,4,2      ; @QGR_KEY_BOXES_LG_AMMO
	.comm	_QGR_KEY_ROUNDS_LG_AMMO,4,2     ; @QGR_KEY_ROUNDS_LG_AMMO
	.comm	_QGR_KEY_BOXES_SLUGS,4,2        ; @QGR_KEY_BOXES_SLUGS
	.comm	_QGR_KEY_ROUNDS_SLUGS,4,2       ; @QGR_KEY_ROUNDS_SLUGS
	.comm	_QGR_KEY_BOXES_CELLS,4,2        ; @QGR_KEY_BOXES_CELLS
	.comm	_QGR_KEY_ROUNDS_CELLS,4,2       ; @QGR_KEY_ROUNDS_CELLS
	.comm	_QGR_KEY_BOXES_BFG_AMMO,4,2     ; @QGR_KEY_BOXES_BFG_AMMO
	.comm	_QGR_KEY_ROUNDS_BFG_AMMO,4,2    ; @QGR_KEY_ROUNDS_BFG_AMMO
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.G_RankPickupAmmo
l_switch.table.G_RankPickupAmmo:
	.quad	_QGR_KEY_BOXES_SHELLS
	.quad	_QGR_KEY_BOXES_ROCKETS
	.quad	_QGR_KEY_BOXES_SLUGS
	.quad	_QGR_KEY_BOXES_CELLS
	.quad	_QGR_KEY_BOXES_BULLETS
	.quad	_QGR_KEY_BOXES_LG_AMMO
	.quad	_QGR_KEY_BOXES_GRENADES
	.quad	_QGR_KEY_BOXES_BFG_AMMO

	.p2align	3                               ; @switch.table.G_RankPickupAmmo.1
l_switch.table.G_RankPickupAmmo.1:
	.quad	_QGR_KEY_ROUNDS_SHELLS
	.quad	_QGR_KEY_ROUNDS_ROCKETS
	.quad	_QGR_KEY_ROUNDS_SLUGS
	.quad	_QGR_KEY_ROUNDS_CELLS
	.quad	_QGR_KEY_ROUNDS_BULLETS
	.quad	_QGR_KEY_ROUNDS_LG_AMMO
	.quad	_QGR_KEY_ROUNDS_GRENADES
	.quad	_QGR_KEY_ROUNDS_BFG_AMMO

.subsections_via_symbols
