	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankPickupArmor              ## -- Begin function G_RankPickupArmor
	.p2align	4, 0x90
_G_RankPickupArmor:                     ## @G_RankPickupArmor
	.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)
	je	LBB0_1
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_QGR_KEY_ARMOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_trap_RankReportInt
	movq	_QGR_KEY_ARMOR_TOTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$-1, %esi
	movl	%ebx, %ecx
	movl	$1, %r8d
	callq	_trap_RankReportInt
	cmpl	$5, %ebx
	je	LBB0_2
## %bb.3:
	cmpl	$100, %ebx
	je	LBB0_6
## %bb.4:
	cmpl	$50, %ebx
	jne	LBB0_8
## %bb.5:
	movq	_QGR_KEY_ARMOR_YELLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_QGR_KEY_ARMOR_SHARD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_QGR_KEY_ARMOR_RED@GOTPCREL(%rip), %rax
LBB0_7:
	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
	.cfi_endproc
                                        ## -- End function
	.comm	_level,8,3                      ## @level
	.comm	_QGR_KEY_ARMOR,4,2              ## @QGR_KEY_ARMOR
	.comm	_QGR_KEY_ARMOR_TOTAL,4,2        ## @QGR_KEY_ARMOR_TOTAL
	.comm	_QGR_KEY_ARMOR_SHARD,4,2        ## @QGR_KEY_ARMOR_SHARD
	.comm	_QGR_KEY_ARMOR_YELLOW,4,2       ## @QGR_KEY_ARMOR_YELLOW
	.comm	_QGR_KEY_ARMOR_RED,4,2          ## @QGR_KEY_ARMOR_RED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankPickupArmor              ; -- Begin function G_RankPickupArmor
	.p2align	2
_G_RankPickupArmor:                     ; @G_RankPickupArmor
	.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]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _QGR_KEY_ARMOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QGR_KEY_ARMOR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #-1
	mov	w3, #1
	mov	w4, #1
	bl	_trap_RankReportInt
Lloh6:
	adrp	x8, _QGR_KEY_ARMOR_TOTAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QGR_KEY_ARMOR_TOTAL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	mov	x3, x20
	mov	w4, #1
	bl	_trap_RankReportInt
	cmp	w20, #5
	b.eq	LBB0_6
; %bb.3:
	cmp	w20, #100
	b.eq	LBB0_7
; %bb.4:
	cmp	w20, #50
	b.ne	LBB0_1
; %bb.5:
Lloh9:
	adrp	x8, _QGR_KEY_ARMOR_YELLOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QGR_KEY_ARMOR_YELLOW@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _QGR_KEY_ARMOR_SHARD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QGR_KEY_ARMOR_SHARD@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _QGR_KEY_ARMOR_RED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QGR_KEY_ARMOR_RED@GOTPAGEOFF]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_level,8,3                      ; @level
	.comm	_QGR_KEY_ARMOR,4,2              ; @QGR_KEY_ARMOR
	.comm	_QGR_KEY_ARMOR_TOTAL,4,2        ; @QGR_KEY_ARMOR_TOTAL
	.comm	_QGR_KEY_ARMOR_SHARD,4,2        ; @QGR_KEY_ARMOR_SHARD
	.comm	_QGR_KEY_ARMOR_YELLOW,4,2       ; @QGR_KEY_ARMOR_YELLOW
	.comm	_QGR_KEY_ARMOR_RED,4,2          ; @QGR_KEY_ARMOR_RED
.subsections_via_symbols
