	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankWeaponTime               ## -- Begin function G_RankWeaponTime
	.p2align	4, 0x90
_G_RankWeaponTime:                      ## @G_RankWeaponTime
	.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_3
## %bb.1:
	movl	%edi, %r14d
	movq	_g_entities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%edi, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	8(%rax), %edx
	movl	%edx, %eax
	subl	(%rcx), %eax
	movl	%edx, (%rcx)
	cmpl	$1000, %eax                     ## imm = 0x3E8
	jl	LBB0_3
## %bb.2:
	movl	%esi, %r15d
	cltq
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	movq	_QGR_KEY_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$-1, %esi
	movl	%ebx, %ecx
	movl	$1, %r8d
	callq	_trap_RankReportInt
	addl	$-128, %r15d
	cmpl	$9, %r15d
	ja	LBB0_3
## %bb.4:
	movslq	%r15d, %rax
	leaq	l_switch.table.G_RankWeaponTime(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$-1, %esi
	movl	%ebx, %ecx
	movl	$1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_RankReportInt             ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,16,3                     ## @level
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_QGR_KEY_TIME,4,2               ## @QGR_KEY_TIME
	.comm	_QGR_KEY_TIME_GAUNTLET,4,2      ## @QGR_KEY_TIME_GAUNTLET
	.comm	_QGR_KEY_TIME_MACHINEGUN,4,2    ## @QGR_KEY_TIME_MACHINEGUN
	.comm	_QGR_KEY_TIME_SHOTGUN,4,2       ## @QGR_KEY_TIME_SHOTGUN
	.comm	_QGR_KEY_TIME_GRENADE,4,2       ## @QGR_KEY_TIME_GRENADE
	.comm	_QGR_KEY_TIME_ROCKET,4,2        ## @QGR_KEY_TIME_ROCKET
	.comm	_QGR_KEY_TIME_LIGHTNING,4,2     ## @QGR_KEY_TIME_LIGHTNING
	.comm	_QGR_KEY_TIME_RAILGUN,4,2       ## @QGR_KEY_TIME_RAILGUN
	.comm	_QGR_KEY_TIME_PLASMA,4,2        ## @QGR_KEY_TIME_PLASMA
	.comm	_QGR_KEY_TIME_BFG,4,2           ## @QGR_KEY_TIME_BFG
	.comm	_QGR_KEY_TIME_GRAPPLE,4,2       ## @QGR_KEY_TIME_GRAPPLE
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.G_RankWeaponTime
l_switch.table.G_RankWeaponTime:
	.quad	_QGR_KEY_TIME_SHOTGUN
	.quad	_QGR_KEY_TIME_ROCKET
	.quad	_QGR_KEY_TIME_RAILGUN
	.quad	_QGR_KEY_TIME_PLASMA
	.quad	_QGR_KEY_TIME_MACHINEGUN
	.quad	_QGR_KEY_TIME_LIGHTNING
	.quad	_QGR_KEY_TIME_GRENADE
	.quad	_QGR_KEY_TIME_GRAPPLE
	.quad	_QGR_KEY_TIME_GAUNTLET
	.quad	_QGR_KEY_TIME_BFG

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RankWeaponTime               ; -- Begin function G_RankWeaponTime
	.p2align	2
_G_RankWeaponTime:                      ; @G_RankWeaponTime
	.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]
	ldr	x9, [x8]
	cbnz	x9, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x9, _g_entities@GOTPAGE
Lloh3:
	ldr	x9, [x9, _g_entities@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x9, [x9, w0, sxtw #3]
	ldr	w10, [x8, #8]
	ldr	w8, [x9]
	sub	w8, w10, w8
	str	w10, [x9]
	cmp	w8, #1000
	b.lt	LBB0_4
; %bb.2:
	mov	x20, x1
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w21, w8, w9
Lloh5:
	adrp	x8, _QGR_KEY_TIME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QGR_KEY_TIME@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	mov	x3, x21
	mov	w4, #1
	bl	_trap_RankReportInt
	sub	w8, w20, #128
	cmp	w8, #9
	b.hi	LBB0_4
; %bb.3:
Lloh8:
	adrp	x9, l_switch.table.G_RankWeaponTime@PAGE
Lloh9:
	add	x9, x9, l_switch.table.G_RankWeaponTime@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	mov	x3, x21
	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_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_level,16,3                     ; @level
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_QGR_KEY_TIME,4,2               ; @QGR_KEY_TIME
	.comm	_QGR_KEY_TIME_GAUNTLET,4,2      ; @QGR_KEY_TIME_GAUNTLET
	.comm	_QGR_KEY_TIME_MACHINEGUN,4,2    ; @QGR_KEY_TIME_MACHINEGUN
	.comm	_QGR_KEY_TIME_SHOTGUN,4,2       ; @QGR_KEY_TIME_SHOTGUN
	.comm	_QGR_KEY_TIME_GRENADE,4,2       ; @QGR_KEY_TIME_GRENADE
	.comm	_QGR_KEY_TIME_ROCKET,4,2        ; @QGR_KEY_TIME_ROCKET
	.comm	_QGR_KEY_TIME_LIGHTNING,4,2     ; @QGR_KEY_TIME_LIGHTNING
	.comm	_QGR_KEY_TIME_RAILGUN,4,2       ; @QGR_KEY_TIME_RAILGUN
	.comm	_QGR_KEY_TIME_PLASMA,4,2        ; @QGR_KEY_TIME_PLASMA
	.comm	_QGR_KEY_TIME_BFG,4,2           ; @QGR_KEY_TIME_BFG
	.comm	_QGR_KEY_TIME_GRAPPLE,4,2       ; @QGR_KEY_TIME_GRAPPLE
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.G_RankWeaponTime
l_switch.table.G_RankWeaponTime:
	.quad	_QGR_KEY_TIME_SHOTGUN
	.quad	_QGR_KEY_TIME_ROCKET
	.quad	_QGR_KEY_TIME_RAILGUN
	.quad	_QGR_KEY_TIME_PLASMA
	.quad	_QGR_KEY_TIME_MACHINEGUN
	.quad	_QGR_KEY_TIME_LIGHTNING
	.quad	_QGR_KEY_TIME_GRENADE
	.quad	_QGR_KEY_TIME_GRAPPLE
	.quad	_QGR_KEY_TIME_GAUNTLET
	.quad	_QGR_KEY_TIME_BFG

.subsections_via_symbols
