	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_LoadingClient               ## -- Begin function CG_LoadingClient
	.p2align	4, 0x90
_CG_LoadingClient:                      ## @CG_LoadingClient
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_CS_PLAYERS@GOTPCREL(%rip), %rax
	movslq	%r15d, %rdi
	addq	(%rax), %rdi
	callq	_CG_ConfigString
	movq	%rax, %rdi
	movq	_loadingPlayerIconCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MAX_LOADING_PLAYER_ICONS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_8
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_Info_ValueForKey
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_Q_strncpyz
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_Q_strrchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	incq	%r15
	movb	$0, (%rax)
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.1(%rip), %r15
LBB0_4:
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_Com_sprintf
	movq	%rbx, %rdi
	callq	_trap_R_RegisterShaderNoMip
	movq	_loadingPlayerIcons@GOTPCREL(%rip), %r8
	movq	(%r8), %rcx
	movq	_loadingPlayerIconCount@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rsi), %rax
	cmpq	$0, (%rcx,%rax,8)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_7
## %bb.5:
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	movq	%r8, %r13
	movq	%r15, %r8
	callq	_Com_sprintf
	movq	%rbx, %rdi
	callq	_trap_R_RegisterShaderNoMip
	movq	_loadingPlayerIconCount@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%r13), %rcx
	movq	(%rsi), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rsi), %rax
	cmpq	$0, (%rcx,%rax,8)
	jne	LBB0_7
## %bb.6:
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEFAULT_MODEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %r15
	leaq	L_.str.1(%rip), %r8
	movq	%rbx, %rdi
	callq	_Com_sprintf
	movq	%rbx, %rdi
	callq	_trap_R_RegisterShaderNoMip
	movq	_loadingPlayerIconCount@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%r13), %rcx
	movq	(%rsi), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rsi), %rax
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_8
LBB0_7:
	incq	%rax
	movq	%rax, (%rsi)
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_Q_strncpyz
	movq	%r14, %rdi
	callq	_Q_CleanStr
	movq	_cgs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GT_SINGLE_PLAYER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	callq	_va
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_trap_S_RegisterSound
LBB0_10:
	movq	%r14, %rdi
	callq	_CG_LoadingString
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_CS_PLAYERS,8,3                 ## @CS_PLAYERS
	.comm	_loadingPlayerIconCount,8,3     ## @loadingPlayerIconCount
	.comm	_MAX_LOADING_PLAYER_ICONS,8,3   ## @MAX_LOADING_PLAYER_ICONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"model"

L_.str.1:                               ## @.str.1
	.asciz	"default"

L_.str.2:                               ## @.str.2
	.asciz	"models/players/%s/icon_%s.tga"

	.comm	_loadingPlayerIcons,8,3         ## @loadingPlayerIcons
L_.str.3:                               ## @.str.3
	.asciz	"models/players/characters/%s/icon_%s.tga"

	.comm	_DEFAULT_MODEL,8,3              ## @DEFAULT_MODEL
L_.str.4:                               ## @.str.4
	.asciz	"n"

	.comm	_cgs,8,3                        ## @cgs
	.comm	_GT_SINGLE_PLAYER,8,3           ## @GT_SINGLE_PLAYER
L_.str.5:                               ## @.str.5
	.asciz	"sound/player/announce/%s.wav"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_LoadingClient               ; -- Begin function CG_LoadingClient
	.p2align	2
_CG_LoadingClient:                      ; @CG_LoadingClient
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_QPATH@GOTPAGEOFF]
	ldr	w20, [x25]
	mov	x9, x20
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x12, x9, #0x1fffffff0
	sub	x19, x8, x12
	mov	sp, x19
	mov	x9, x20
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	mov	x9, x20
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh11:
	adrp	x8, _CS_PLAYERS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CS_PLAYERS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x0, x8, w0, sxtw
	bl	_CG_ConfigString
	mov	x21, x0
Lloh14:
	adrp	x26, _loadingPlayerIconCount@GOTPAGE
Lloh15:
	ldr	x26, [x26, _loadingPlayerIconCount@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh16:
	adrp	x9, _MAX_LOADING_PLAYER_ICONS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAX_LOADING_PLAYER_ICONS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.1:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_Info_ValueForKey
	mov	x1, x0
	mov	x0, x23
	mov	x2, x20
	bl	_Q_strncpyz
	mov	x0, x23
	mov	w1, #47
	bl	_Q_strrchr
	cbz	x0, LBB0_3
; %bb.2:
	mov	x24, x0
	strb	wzr, [x24], #1
	b	LBB0_4
LBB0_3:
Lloh21:
	adrp	x24, l_.str.1@PAGE
Lloh22:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_4:
	ldr	w1, [x25]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x3, x23
	mov	x4, x24
	bl	_Com_sprintf
	mov	x0, x22
	bl	_trap_R_RegisterShaderNoMip
Lloh25:
	adrp	x27, _loadingPlayerIcons@GOTPAGE
Lloh26:
	ldr	x27, [x27, _loadingPlayerIcons@GOTPAGEOFF]
	ldr	x9, [x27]
	ldr	x8, [x26]
	str	x0, [x9, x8, lsl #3]
	ldr	x8, [x26]
	ldr	x9, [x9, x8, lsl #3]
	cbnz	x9, LBB0_7
; %bb.5:
	ldr	w1, [x25]
Lloh27:
	adrp	x2, l_.str.3@PAGE
Lloh28:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x3, x23
	mov	x4, x24
	bl	_Com_sprintf
	mov	x0, x22
	bl	_trap_R_RegisterShaderNoMip
	ldr	x9, [x27]
	ldr	x8, [x26]
	str	x0, [x9, x8, lsl #3]
	ldr	x8, [x26]
	ldr	x9, [x9, x8, lsl #3]
	cbnz	x9, LBB0_7
; %bb.6:
	ldr	w1, [x25]
Lloh29:
	adrp	x8, _DEFAULT_MODEL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DEFAULT_MODEL@GOTPAGEOFF]
Lloh31:
	ldr	x3, [x8]
Lloh32:
	adrp	x2, l_.str.2@PAGE
Lloh33:
	add	x2, x2, l_.str.2@PAGEOFF
Lloh34:
	adrp	x4, l_.str.1@PAGE
Lloh35:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_Com_sprintf
	mov	x0, x22
	bl	_trap_R_RegisterShaderNoMip
	ldr	x9, [x27]
	ldr	x8, [x26]
	str	x0, [x9, x8, lsl #3]
	ldr	x8, [x26]
	ldr	x9, [x9, x8, lsl #3]
	cbz	x9, LBB0_8
LBB0_7:
	add	x8, x8, #1
	str	x8, [x26]
LBB0_8:
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_Info_ValueForKey
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_Q_strncpyz
	mov	x0, x19
	bl	_Q_CleanStr
Lloh38:
	adrp	x8, _cgs@GOTPAGE
Lloh39:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x9, _GT_SINGLE_PLAYER@GOTPAGE
Lloh42:
	ldr	x9, [x9, _GT_SINGLE_PLAYER@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh44:
	adrp	x0, l_.str.5@PAGE
Lloh45:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_va
Lloh46:
	adrp	x8, _qtrue@GOTPAGE
Lloh47:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	bl	_trap_S_RegisterSound
LBB0_10:
	mov	x0, x19
	bl	_CG_LoadingString
	ldur	x8, [x29, #-88]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_CS_PLAYERS,8,3                 ; @CS_PLAYERS
	.comm	_loadingPlayerIconCount,8,3     ; @loadingPlayerIconCount
	.comm	_MAX_LOADING_PLAYER_ICONS,8,3   ; @MAX_LOADING_PLAYER_ICONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"model"

l_.str.1:                               ; @.str.1
	.asciz	"default"

l_.str.2:                               ; @.str.2
	.asciz	"models/players/%s/icon_%s.tga"

	.comm	_loadingPlayerIcons,8,3         ; @loadingPlayerIcons
l_.str.3:                               ; @.str.3
	.asciz	"models/players/characters/%s/icon_%s.tga"

	.comm	_DEFAULT_MODEL,8,3              ; @DEFAULT_MODEL
l_.str.4:                               ; @.str.4
	.asciz	"n"

	.comm	_cgs,8,3                        ; @cgs
	.comm	_GT_SINGLE_PLAYER,8,3           ; @GT_SINGLE_PLAYER
l_.str.5:                               ; @.str.5
	.asciz	"sound/player/announce/%s.wav"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
