	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankPickupPowerup            ## -- Begin function G_RankPickupPowerup
	.p2align	4, 0x90
_G_RankPickupPowerup:                   ## @G_RankPickupPowerup
	.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_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_PW_REDFLAG@GOTPCREL(%rip), %rcx
	movq	_QGR_KEY_FLAG_PICKUP@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	_PW_BLUEFLAG@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_QGR_KEY_POWERUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$-1, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_trap_RankReportInt
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_6
## %bb.4:
	movslq	%ebx, %rax
	leaq	l_switch.table.G_RankPickupPowerup(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
LBB0_5:
	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	_PW_REDFLAG,4,2                 ## @PW_REDFLAG
	.comm	_PW_BLUEFLAG,4,2                ## @PW_BLUEFLAG
	.comm	_QGR_KEY_FLAG_PICKUP,4,2        ## @QGR_KEY_FLAG_PICKUP
	.comm	_QGR_KEY_POWERUP,4,2            ## @QGR_KEY_POWERUP
	.comm	_QGR_KEY_QUAD,4,2               ## @QGR_KEY_QUAD
	.comm	_QGR_KEY_SUIT,4,2               ## @QGR_KEY_SUIT
	.comm	_QGR_KEY_HASTE,4,2              ## @QGR_KEY_HASTE
	.comm	_QGR_KEY_INVIS,4,2              ## @QGR_KEY_INVIS
	.comm	_QGR_KEY_REGEN,4,2              ## @QGR_KEY_REGEN
	.comm	_QGR_KEY_FLIGHT,4,2             ## @QGR_KEY_FLIGHT
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.G_RankPickupPowerup
l_switch.table.G_RankPickupPowerup:
	.quad	_QGR_KEY_REGEN
	.quad	_QGR_KEY_QUAD
	.quad	_QGR_KEY_INVIS
	.quad	_QGR_KEY_HASTE
	.quad	_QGR_KEY_FLIGHT
	.quad	_QGR_KEY_SUIT

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankPickupPowerup            ; -- Begin function G_RankPickupPowerup
	.p2align	2
_G_RankPickupPowerup:                   ; @G_RankPickupPowerup
	.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, _PW_REDFLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PW_REDFLAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PW_BLUEFLAG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PW_BLUEFLAG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _QGR_KEY_FLAG_PICKUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QGR_KEY_FLAG_PICKUP@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _QGR_KEY_POWERUP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QGR_KEY_POWERUP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	mov	w3, #1
	mov	w4, #1
	bl	_trap_RankReportInt
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_1
; %bb.5:
Lloh14:
	adrp	x9, l_switch.table.G_RankPickupPowerup@PAGE
Lloh15:
	add	x9, x9, l_switch.table.G_RankPickupPowerup@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_level,8,3                      ; @level
	.comm	_PW_REDFLAG,4,2                 ; @PW_REDFLAG
	.comm	_PW_BLUEFLAG,4,2                ; @PW_BLUEFLAG
	.comm	_QGR_KEY_FLAG_PICKUP,4,2        ; @QGR_KEY_FLAG_PICKUP
	.comm	_QGR_KEY_POWERUP,4,2            ; @QGR_KEY_POWERUP
	.comm	_QGR_KEY_QUAD,4,2               ; @QGR_KEY_QUAD
	.comm	_QGR_KEY_SUIT,4,2               ; @QGR_KEY_SUIT
	.comm	_QGR_KEY_HASTE,4,2              ; @QGR_KEY_HASTE
	.comm	_QGR_KEY_INVIS,4,2              ; @QGR_KEY_INVIS
	.comm	_QGR_KEY_REGEN,4,2              ; @QGR_KEY_REGEN
	.comm	_QGR_KEY_FLIGHT,4,2             ; @QGR_KEY_FLIGHT
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.G_RankPickupPowerup
l_switch.table.G_RankPickupPowerup:
	.quad	_QGR_KEY_REGEN
	.quad	_QGR_KEY_QUAD
	.quad	_QGR_KEY_INVIS
	.quad	_QGR_KEY_HASTE
	.quad	_QGR_KEY_FLIGHT
	.quad	_QGR_KEY_SUIT

.subsections_via_symbols
