	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_RankCloseContext
_SV_RankCloseContext:                   ## @SV_RankCloseContext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	_s_ranked_players@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.4:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.5:
	movq	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movl	24(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	16(%rbx), %eax
	movl	%eax, 20(%rbx)
	movq	_QGR_STATUS_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rax
	movb	$0, (%rax)
	jmp	LBB0_6
LBB0_1:
	movq	_s_server_context@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.2:
	movq	$0, (%rax)
	movq	_s_server_match@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_6:
	movq	_s_rankings_contexts@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setg	%dil
	callq	_assert
	movq	(%rbx), %rsi
	decq	%rsi
	movq	%rsi, (%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_Com_DPrintf
	cmpq	$0, (%rbx)
	je	LBB0_7
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	_GRLOG_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GRankLogLevel
	movq	_s_ranked_players@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_Z_Free
	movq	$0, (%rbx)
LBB0_9:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_s_rankings_active@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Cvar_Set                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_s_server_context,8,3           ## @s_server_context
	.comm	_s_server_match,8,3             ## @s_server_match
	.comm	_s_ranked_players,8,3           ## @s_ranked_players
	.comm	_QGR_STATUS_NEW,4,2             ## @QGR_STATUS_NEW
	.comm	_s_rankings_contexts,8,3        ## @s_rankings_contexts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SV_RankCloseContext: s_rankings_contexts = %d\n"

	.comm	_GRLOG_OFF,4,2                  ## @GRLOG_OFF
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_s_rankings_active,4,2          ## @s_rankings_active
L_.str.1:                               ## @.str.1
	.asciz	"sv_rankingsActive"

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

	.no_dead_strip	_SV_RankCloseContext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_RankCloseContext
_SV_RankCloseContext:                   ; @SV_RankCloseContext
	.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
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _s_ranked_players@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_ranked_players@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.3:
	str	xzr, [x19]
	stp	xzr, xzr, [x19, #32]
	ldr	w0, [x19, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh3:
	adrp	x8, _QGR_STATUS_NEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QGR_STATUS_NEW@GOTPAGEOFF]
	ldr	w9, [x19, #16]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #16]
	ldr	x8, [x19, #8]
	strb	wzr, [x8]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _s_server_context@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_server_context@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.5:
	str	xzr, [x8]
Lloh8:
	adrp	x8, _s_server_match@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s_server_match@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
LBB0_6:
Lloh11:
	adrp	x19, _s_rankings_contexts@GOTPAGE
Lloh12:
	ldr	x19, [x19, _s_rankings_contexts@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19]
	sub	x1, x8, #1
	str	x1, [x19]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_DPrintf
	ldr	x8, [x19]
	cbz	x8, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh15:
	adrp	x8, _GRLOG_OFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GRLOG_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_GRankLogLevel
Lloh18:
	adrp	x19, _s_ranked_players@GOTPAGE
Lloh19:
	ldr	x19, [x19, _s_ranked_players@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_Z_Free
	str	xzr, [x19]
LBB0_10:
Lloh20:
	adrp	x8, _qfalse@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _s_rankings_active@GOTPAGE
Lloh24:
	ldr	x9, [x9, _s_rankings_active@GOTPAGEOFF]
Lloh25:
	str	w8, [x9]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Cvar_Set
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_s_server_context,8,3           ; @s_server_context
	.comm	_s_server_match,8,3             ; @s_server_match
	.comm	_s_ranked_players,8,3           ; @s_ranked_players
	.comm	_QGR_STATUS_NEW,4,2             ; @QGR_STATUS_NEW
	.comm	_s_rankings_contexts,8,3        ; @s_rankings_contexts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SV_RankCloseContext: s_rankings_contexts = %d\n"

	.comm	_GRLOG_OFF,4,2                  ; @GRLOG_OFF
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_s_rankings_active,4,2          ; @s_rankings_active
l_.str.1:                               ; @.str.1
	.asciz	"sv_rankingsActive"

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

	.no_dead_strip	_SV_RankCloseContext
.subsections_via_symbols
