	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_RankUserGrank               ## -- Begin function SV_RankUserGrank
	.p2align	4, 0x90
_SV_RankUserGrank:                      ## @SV_RankUserGrank
	.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	_s_rankings_active@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%edi, %ebx
	movq	_s_ranked_players@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_assert
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	setg	%dil
	callq	_assert
	movq	(%r14), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_rankings_active,4,2          ## @s_rankings_active
	.comm	_s_ranked_players,8,3           ## @s_ranked_players
	.comm	_sv_maxclients,8,3              ## @sv_maxclients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_RankUserGrank               ; -- Begin function SV_RankUserGrank
	.p2align	2
_SV_RankUserGrank:                      ; @SV_RankUserGrank
	.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, _s_rankings_active@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_rankings_active@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _s_ranked_players@GOTPAGE
Lloh4:
	ldr	x20, [x20, _s_ranked_players@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	mvn	w8, w19
	lsr	w0, w8, #31
	bl	_assert
Lloh5:
	adrp	x8, _sv_maxclients@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sv_maxclients@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, gt
	bl	_assert
	ldr	x8, [x20]
	ldr	w0, [x8, w19, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w0, #0
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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_s_rankings_active,4,2          ; @s_rankings_active
	.comm	_s_ranked_players,8,3           ; @s_ranked_players
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
.subsections_via_symbols
