	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_RankEnd                     ## -- Begin function SV_RankEnd
	.p2align	4, 0x90
_SV_RankEnd:                            ## @SV_RankEnd
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	movq	_s_rankings_active@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.2:
	movl	$8, %r13d
	movq	_s_ranked_players@GOTPCREL(%rip), %r15
	movq	_QGR_STATUS_ACTIVE@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%rax), %rcx
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%r13), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_SV_RankUserLogout
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	movq	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_s_server_context@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_assert
	movq	(%rbx), %rdi
	movq	_SV_RankSendReportsCBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GR_OPT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_GRankSendReportsAsync
	movq	_GR_STATUS_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rdi
	callq	_SV_RankStatusString
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_SV_RankError
LBB0_8:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_s_rankings_active@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Cvar_Set                       ## TAILCALL
LBB0_9:
	movq	_s_ranked_players@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.10:
	movq	_sv_maxclients@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.11:
	movl	$1, %r12d
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi,%rbx)
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:
	addq	%rbx, %rdi
	callq	_SV_RankCloseContext
	movq	(%r14), %rax
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rax), %rcx
	cmpq	%rcx, %r12
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r15), %rdi
	addq	$16, %rbx
	incq	%r12
	cmpq	$0, (%rdi,%rbx)
	jne	LBB0_13
	jmp	LBB0_14
LBB0_16:
	movq	_s_server_context@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.18:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SV_RankCloseContext            ## TAILCALL
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SV_RankEnd();\n"

	.comm	_s_rankings_active,8,3          ## @s_rankings_active
	.comm	_s_ranked_players,8,3           ## @s_ranked_players
	.comm	_sv_maxclients,8,3              ## @sv_maxclients
	.comm	_s_server_context,8,3           ## @s_server_context
	.comm	_QGR_STATUS_ACTIVE,8,3          ## @QGR_STATUS_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"SV_RankEnd: SV_RankUserLogout %d\n"

	.comm	_SV_RankSendReportsCBF,4,2      ## @SV_RankSendReportsCBF
	.comm	_GR_OPT_END,4,2                 ## @GR_OPT_END
	.comm	_GR_STATUS_PENDING,8,3          ## @GR_STATUS_PENDING
L_.str.2:                               ## @.str.2
	.asciz	"SV_RankEnd: Expected GR_STATUS_PENDING, got %s"

	.comm	_qfalse,8,3                     ## @qfalse
L_.str.3:                               ## @.str.3
	.asciz	"sv_rankingsActive"

L_.str.4:                               ## @.str.4
	.asciz	"0"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_RankEnd                     ; -- Begin function SV_RankEnd
	.p2align	2
_SV_RankEnd:                            ; @SV_RankEnd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_DPrintf
Lloh2:
	adrp	x21, _s_rankings_active@GOTPAGE
Lloh3:
	ldr	x21, [x21, _s_rankings_active@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.1:
Lloh4:
	adrp	x22, _sv_maxclients@GOTPAGE
Lloh5:
	ldr	x22, [x22, _sv_maxclients@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x19, #0
	mov	w23, #8
Lloh6:
	adrp	x24, _s_ranked_players@GOTPAGE
Lloh7:
	ldr	x24, [x24, _s_ranked_players@GOTPAGEOFF]
Lloh8:
	adrp	x25, _QGR_STATUS_ACTIVE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _QGR_STATUS_ACTIVE@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldrsw	x9, [x8]
	add	x23, x23, #16
	cmp	x19, x9
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	x9, [x9, x23]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_SV_RankUserLogout
	str	x19, [sp]
	mov	x0, x20
	bl	_Com_DPrintf
	ldr	x8, [x22]
	b	LBB0_3
LBB0_6:
Lloh12:
	adrp	x19, _s_server_context@GOTPAGE
Lloh13:
	ldr	x19, [x19, _s_server_context@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19]
Lloh14:
	adrp	x8, _SV_RankSendReportsCBF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SV_RankSendReportsCBF@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _GR_OPT_END@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GR_OPT_END@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	w1, #0
	mov	x3, #0
	bl	_GRankSendReportsAsync
Lloh20:
	adrp	x8, _GR_STATUS_PENDING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GR_STATUS_PENDING@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
	bl	_SV_RankStatusString
	mov	x1, x0
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_SV_RankError
LBB0_8:
Lloh25:
	adrp	x8, _qfalse@GOTPAGE
Lloh26:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_Cvar_Set
LBB0_9:
Lloh32:
	adrp	x19, _s_ranked_players@GOTPAGE
Lloh33:
	ldr	x19, [x19, _s_ranked_players@GOTPAGEOFF]
	ldr	x9, [x19]
	cbz	x9, LBB0_16
; %bb.10:
Lloh34:
	adrp	x20, _sv_maxclients@GOTPAGE
Lloh35:
	ldr	x20, [x20, _sv_maxclients@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x21, #0
	mov	w22, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x9, x21
	ldr	x9, [x0]
	cbz	x9, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_SV_RankCloseContext
	ldr	x8, [x20]
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x9, [x8]
	cmp	x22, x9
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x19]
	add	x21, x21, #16
	add	x22, x22, #1
	b	LBB0_12
LBB0_16:
Lloh36:
	adrp	x8, _s_server_context@GOTPAGE
Lloh37:
	ldr	x8, [x8, _s_server_context@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_SV_RankCloseContext
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SV_RankEnd();\n"

	.comm	_s_rankings_active,8,3          ; @s_rankings_active
	.comm	_s_ranked_players,8,3           ; @s_ranked_players
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
	.comm	_s_server_context,8,3           ; @s_server_context
	.comm	_QGR_STATUS_ACTIVE,8,3          ; @QGR_STATUS_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"SV_RankEnd: SV_RankUserLogout %d\n"

	.comm	_SV_RankSendReportsCBF,4,2      ; @SV_RankSendReportsCBF
	.comm	_GR_OPT_END,4,2                 ; @GR_OPT_END
	.comm	_GR_STATUS_PENDING,8,3          ; @GR_STATUS_PENDING
l_.str.2:                               ; @.str.2
	.asciz	"SV_RankEnd: Expected GR_STATUS_PENDING, got %s"

	.comm	_qfalse,8,3                     ; @qfalse
l_.str.3:                               ; @.str.3
	.asciz	"sv_rankingsActive"

l_.str.4:                               ; @.str.4
	.asciz	"0"

.subsections_via_symbols
