	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_RankUserCBF
_SV_RankUserCBF:                        ## @SV_RankUserCBF
	.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	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_Com_DPrintf
	movq	%r14, %rdi
	callq	_assert
	movq	8(%r14), %rdi
	callq	_assert
	movslq	(%rbx), %rdi
	leal	-128(%rdi), %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movl	$128, %edi
	callq	_SV_RankStatusString
	movslq	%eax, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	movq	_QGR_STATUS_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movl	$130, %edi
	callq	_SV_RankStatusString
	movslq	%eax, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	movq	_QGR_STATUS_NO_USER@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movl	$131, %edi
	callq	_SV_RankStatusString
	movslq	%eax, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	movq	_QGR_STATUS_BAD_PASSWORD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	callq	_SV_RankStatusString
	movslq	%eax, %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	movq	_QGR_STATUS_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_9:
	movq	(%r14), %rax
	movq	_QGR_STATUS_NEW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	8(%r14), %rdi
	movq	_SV_RankCleanupCBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GR_OPT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_GRankCleanupAsync
	movq	_GR_STATUS_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	%rax, %rdi
	callq	_SV_RankStatusString
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_SV_RankError
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SV_RankCloseContext            ## TAILCALL
LBB0_2:
	movq	8(%r14), %rdi
	movq	_s_rankings_game_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SV_RankJoinGameCBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GR_OPT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rcx
	callq	_GRankJoinGameAsync
	movq	_GR_STATUS_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rdi
	callq	_SV_RankStatusString
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_SV_RankError
	jmp	LBB0_9
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SV_RankUserCBF( %08X, %08X );\n"

	.comm	_s_rankings_game_id,4,2         ## @s_rankings_game_id
	.comm	_SV_RankJoinGameCBF,4,2         ## @SV_RankJoinGameCBF
	.comm	_GR_OPT_END,4,2                 ## @GR_OPT_END
	.comm	_GR_STATUS_PENDING,8,3          ## @GR_STATUS_PENDING
L_.str.1:                               ## @.str.1
	.asciz	"SV_RankUserCBF: Expected GR_STATUS_PENDING from GRankJoinGameAsync, got %s"

L_.str.2:                               ## @.str.2
	.asciz	"SV_RankUserCBF: Got status %s\n"

	.comm	_QGR_STATUS_NO_USER,8,3         ## @QGR_STATUS_NO_USER
	.comm	_QGR_STATUS_BAD_PASSWORD,8,3    ## @QGR_STATUS_BAD_PASSWORD
	.comm	_QGR_STATUS_TIMEOUT,8,3         ## @QGR_STATUS_TIMEOUT
L_.str.3:                               ## @.str.3
	.asciz	"SV_RankUserCBF: Unexpected status %s\n"

	.comm	_QGR_STATUS_ERROR,8,3           ## @QGR_STATUS_ERROR
	.comm	_QGR_STATUS_NEW,8,3             ## @QGR_STATUS_NEW
	.comm	_SV_RankCleanupCBF,4,2          ## @SV_RankCleanupCBF
L_.str.4:                               ## @.str.4
	.asciz	"SV_RankUserCBF: Expected GR_STATUS_PENDING from GRankCleanupAsync, got %s"

	.no_dead_strip	_SV_RankUserCBF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_RankUserCBF
_SV_RankUserCBF:                        ; @SV_RankUserCBF
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	str	x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_Com_DPrintf
	mov	x0, x19
	bl	_assert
	ldr	x0, [x19, #8]
	bl	_assert
	ldrsw	x0, [x20]
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #128
	bl	_SV_RankStatusString
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_DPrintf
Lloh6:
	adrp	x8, _QGR_STATUS_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QGR_STATUS_TIMEOUT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	w0, #130
	bl	_SV_RankStatusString
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_DPrintf
Lloh10:
	adrp	x8, _QGR_STATUS_NO_USER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QGR_STATUS_NO_USER@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	w0, #131
	bl	_SV_RankStatusString
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_DPrintf
Lloh14:
	adrp	x8, _QGR_STATUS_BAD_PASSWORD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QGR_STATUS_BAD_PASSWORD@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	bl	_SV_RankStatusString
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Com_DPrintf
Lloh18:
	adrp	x8, _QGR_STATUS_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QGR_STATUS_ERROR@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _QGR_STATUS_NEW@GOTPAGE
Lloh21:
	ldr	x9, [x9, _QGR_STATUS_NEW@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	ldr	x0, [x19, #8]
Lloh23:
	adrp	x8, _SV_RankCleanupCBF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SV_RankCleanupCBF@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _GR_OPT_END@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GR_OPT_END@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	w1, #0
	mov	x3, x19
	bl	_GRankCleanupAsync
Lloh29:
	adrp	x8, _GR_STATUS_PENDING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GR_STATUS_PENDING@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	bl	_SV_RankStatusString
	mov	x1, x0
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_SV_RankError
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_SV_RankCloseContext
LBB0_11:
	ldr	x0, [x19, #8]
Lloh34:
	adrp	x8, _s_rankings_game_id@GOTPAGE
Lloh35:
	ldr	x8, [x8, _s_rankings_game_id@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _SV_RankJoinGameCBF@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SV_RankJoinGameCBF@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x8, _GR_OPT_END@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GR_OPT_END@GOTPAGEOFF]
Lloh42:
	ldr	w4, [x8]
	mov	x3, x19
	bl	_GRankJoinGameAsync
Lloh43:
	adrp	x8, _GR_STATUS_PENDING@GOTPAGE
Lloh44:
	ldr	x8, [x8, _GR_STATUS_PENDING@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.12:
	bl	_SV_RankStatusString
	mov	x1, x0
Lloh46:
	adrp	x0, l_.str.1@PAGE
Lloh47:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SV_RankError
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SV_RankUserCBF( %08X, %08X );\n"

	.comm	_s_rankings_game_id,4,2         ; @s_rankings_game_id
	.comm	_SV_RankJoinGameCBF,4,2         ; @SV_RankJoinGameCBF
	.comm	_GR_OPT_END,4,2                 ; @GR_OPT_END
	.comm	_GR_STATUS_PENDING,8,3          ; @GR_STATUS_PENDING
l_.str.1:                               ; @.str.1
	.asciz	"SV_RankUserCBF: Expected GR_STATUS_PENDING from GRankJoinGameAsync, got %s"

l_.str.2:                               ; @.str.2
	.asciz	"SV_RankUserCBF: Got status %s\n"

	.comm	_QGR_STATUS_NO_USER,8,3         ; @QGR_STATUS_NO_USER
	.comm	_QGR_STATUS_BAD_PASSWORD,8,3    ; @QGR_STATUS_BAD_PASSWORD
	.comm	_QGR_STATUS_TIMEOUT,8,3         ; @QGR_STATUS_TIMEOUT
l_.str.3:                               ; @.str.3
	.asciz	"SV_RankUserCBF: Unexpected status %s\n"

	.comm	_QGR_STATUS_ERROR,8,3           ; @QGR_STATUS_ERROR
	.comm	_QGR_STATUS_NEW,8,3             ; @QGR_STATUS_NEW
	.comm	_SV_RankCleanupCBF,4,2          ; @SV_RankCleanupCBF
l_.str.4:                               ; @.str.4
	.asciz	"SV_RankUserCBF: Expected GR_STATUS_PENDING from GRankCleanupAsync, got %s"

	.no_dead_strip	_SV_RankUserCBF
.subsections_via_symbols
