	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_FindClientHeadFile
_CG_FindClientHeadFile:                 ## @CG_FindClientHeadFile
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_cgs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GT_TEAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_2:
	cmpl	$128, (%rdx)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
LBB0_3:
	xorl	%eax, %eax
	cmpb	$42, (%r8)
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.4(%rip), %r14
	cmoveq	%rcx, %r14
	sete	%al
	addq	%r8, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movb	$1, %r15b
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	setne	%r13b
	andb	%r15b, %r13b
	cmpb	$1, %r13b
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpb	$0, (%rbx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	24(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	16(%rbp)
	pushq	%rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	24(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	16(%rbp)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	callq	_Com_sprintf
	addq	$32, %rsp
	movq	%r12, %rdi
	callq	_CG_FileExists
	testq	%rax, %rax
	jne	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	_cgs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GT_TEAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	testb	%r13b, %r13b
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpb	$0, (%rbx)
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r9
	xorl	%eax, %eax
	pushq	24(%rbp)
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	testb	%r13b, %r13b
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpb	$0, (%rbx)
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=2
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r9
	xorl	%eax, %eax
	pushq	24(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=2
	pushq	16(%rbp)
	callq	_Com_sprintf
	addq	$32, %rsp
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.8(%rip), %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	16(%rbp), %r9
	xorl	%eax, %eax
	pushq	24(%rbp)
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.8(%rip), %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	16(%rbp), %r9
	xorl	%eax, %eax
	pushq	24(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=2
	callq	_Com_sprintf
	addq	$16, %rsp
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	callq	_CG_FileExists
	testq	%rax, %rax
	jne	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=2
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpb	$0, (%rbx)
	setne	%al
	testb	%r15b, %al
	movl	$0, %r15d
	jne	LBB0_5
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, (%r14)
	leaq	L_.str.3(%rip), %r14
	je	LBB0_4
## %bb.25:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_27:
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cgs,8,3                        ## @cgs
	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blue"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"heads/"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"models/players/%s%s/%s/%s%s_%s.%s"

L_.str.6:                               ## @.str.6
	.asciz	"models/players/%s%s/%s/%s_%s.%s"

	.comm	_qtrue,4,2                      ## @qtrue
L_.str.7:                               ## @.str.7
	.asciz	"models/players/%s%s/%s%s_%s.%s"

L_.str.8:                               ## @.str.8
	.asciz	"models/players/%s%s/%s_%s.%s"

	.comm	_qfalse,4,2                     ## @qfalse
	.no_dead_strip	_CG_FindClientHeadFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_FindClientHeadFile
_CG_FindClientHeadFile:                 ; @CG_FindClientHeadFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x7
	mov	x20, x6
	str	x5, [sp, #24]                   ; 8-byte Folded Spill
	mov	x22, x3
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _cgs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _GT_TEAM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GT_TEAM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x25, l_.str.2@PAGE
Lloh7:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldr	w8, [x2]
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh10:
	adrp	x10, l_.str@PAGE
Lloh11:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #128
	csel	x25, x10, x9, eq
LBB0_3:
	mov	x8, x4
	ldrb	w9, [x8], #1
	cmp	w9, #42
	csel	x26, x4, x8, ne
Lloh12:
	adrp	x8, l_.str.4@PAGE
Lloh13:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh14:
	adrp	x9, l_.str.3@PAGE
Lloh15:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x27, x9, x8, eq
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	w28, #1
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x22, #0
	cset	w8, ne
	and	w21, w8, w28
	cmp	w21, #1
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w8, [x22]
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	stp	x25, x19, [sp]
	mov	x0, x24
	mov	x1, x23
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x3, x27
	mov	x4, x26
	ldr	x5, [sp, #24]                   ; 8-byte Folded Reload
	mov	x6, x22
	mov	x7, x20
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	str	x19, [sp]
	mov	x0, x24
	mov	x1, x23
Lloh18:
	adrp	x2, l_.str.6@PAGE
Lloh19:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x3, x27
	mov	x4, x26
	ldr	x5, [sp, #24]                   ; 8-byte Folded Reload
	mov	x6, x20
	mov	x7, x25
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	bl	_Com_sprintf
	mov	x0, x24
	bl	_CG_FileExists
	cbnz	x0, LBB0_25
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
Lloh20:
	adrp	x8, _cgs@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _GT_TEAM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GT_TEAM@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	cbz	w21, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w8, [x22]
	cbz	w8, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=2
	str	x19, [sp]
	mov	x0, x24
	mov	x1, x23
Lloh26:
	adrp	x2, l_.str.7@PAGE
Lloh27:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x3, x27
	mov	x4, x26
	mov	x5, x22
	mov	x6, x20
	ldr	x7, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=2
	cbz	w21, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w8, [x22]
	cbz	w8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=2
	str	x19, [sp]
	mov	x0, x24
	mov	x1, x23
Lloh28:
	adrp	x2, l_.str.7@PAGE
Lloh29:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x3, x27
	mov	x4, x26
	mov	x5, x22
	mov	x6, x20
	mov	x7, x25
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x24
	mov	x1, x23
Lloh30:
	adrp	x2, l_.str.8@PAGE
Lloh31:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x3, x27
	mov	x4, x26
	mov	x5, x20
	ldr	x6, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x24
	mov	x1, x23
Lloh32:
	adrp	x2, l_.str.8@PAGE
Lloh33:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x3, x27
	mov	x4, x26
	mov	x5, x20
	mov	x6, x25
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x7, x19
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=2
	bl	_Com_sprintf
	mov	x0, x24
	bl	_CG_FileExists
	cbnz	x0, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=2
	cbz	x22, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w8, [x22]
	cmp	w8, #0
	cset	w8, ne
	and	w8, w8, w28
	mov	w28, #0
	tbnz	w8, #0, LBB0_5
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x27]
Lloh34:
	adrp	x27, l_.str.3@PAGE
Lloh35:
	add	x27, x27, l_.str.3@PAGEOFF
	cbz	w8, LBB0_4
; %bb.24:
Lloh36:
	adrp	x8, _qfalse@GOTPAGE
Lloh37:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:
Lloh38:
	adrp	x8, _qtrue@GOTPAGE
Lloh39:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_cgs,8,3                        ; @cgs
	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blue"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"heads/"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"models/players/%s%s/%s/%s%s_%s.%s"

l_.str.6:                               ; @.str.6
	.asciz	"models/players/%s%s/%s/%s_%s.%s"

	.comm	_qtrue,4,2                      ; @qtrue
l_.str.7:                               ; @.str.7
	.asciz	"models/players/%s%s/%s%s_%s.%s"

l_.str.8:                               ; @.str.8
	.asciz	"models/players/%s%s/%s_%s.%s"

	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_CG_FindClientHeadFile
.subsections_via_symbols
