	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_FindClientHeadFile
_UI_FindClientHeadFile:                 ## @UI_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	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	xorl	%eax, %eax
	cmpb	$42, (%rcx)
	sete	%al
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %r15
	cmoveq	%rdx, %r15
	addq	%rcx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movb	$1, %r12b
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r13, %r13
	setne	%r14b
	andb	%r12b, %r14b
	cmpb	$1, %r14b
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpb	$0, (%r13)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	16(%rbp)
	leaq	L_.str(%rip), %rbx
	pushq	%rbx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_Com_sprintf
	addq	$32, %rsp
	movq	%rbx, %rdi
	callq	_UI_FileExists
	testq	%rax, %rax
	je	LBB0_7
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	16(%rbp)
	leaq	L_.str(%rip), %rbx
	pushq	%rbx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_Com_sprintf
	addq	$32, %rsp
	movq	%rbx, %rdi
	callq	_UI_FileExists
	testq	%rax, %rax
	jne	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	testb	%r14b, %r14b
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpb	$0, (%r13)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=2
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	xorl	%eax, %eax
	pushq	16(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_Com_sprintf
	addq	$32, %rsp
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	16(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_Com_sprintf
	addq	$16, %rsp
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	callq	_UI_FileExists
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=2
	testq	%r13, %r13
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=2
	cmpb	$0, (%r13)
	setne	%al
	testb	%r12b, %al
	movl	$0, %r12d
	jne	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$0, (%r15)
	leaq	L_.str.1(%rip), %r15
	je	LBB0_1
## %bb.14:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	addq	$40, %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	"default"

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

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

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

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

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

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_FindClientHeadFile
_UI_FindClientHeadFile:                 ; @UI_FindClientHeadFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x8, x3
	ldrb	w9, [x8], #1
	cmp	w9, #42
Lloh0:
	adrp	x9, l_.str.2@PAGE
Lloh1:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x25, x3, x8, ne
Lloh2:
	adrp	x27, l_.str.1@PAGE
Lloh3:
	add	x27, x27, l_.str.1@PAGEOFF
	csel	x26, x27, x9, eq
Lloh4:
	adrp	x28, l_.str@PAGE
Lloh5:
	add	x28, x28, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x26]
	mov	x26, x27
	cbnz	w8, LBB0_16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	x28, x19, [sp]
	mov	x0, x24
	mov	x1, x23
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x26
	mov	x4, x25
	mov	x5, x21
	mov	x6, x22
	mov	x7, x20
	bl	_Com_sprintf
	mov	x0, x24
	bl	_UI_FileExists
	cbz	x0, LBB0_7
	b	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x19, [sp]
	mov	x0, x24
	mov	x1, x23
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x3, x26
	mov	x4, x25
	mov	x5, x21
	mov	x6, x20
	mov	x7, x28
	bl	_Com_sprintf
	mov	x0, x24
	bl	_UI_FileExists
	cbnz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x22, LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x19, [sp]
	mov	x0, x24
	mov	x1, x23
Lloh10:
	adrp	x2, l_.str.5@PAGE
Lloh11:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x3, x26
	mov	x4, x25
	mov	x5, x22
	mov	x6, x20
	mov	x7, x21
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, x23
Lloh12:
	adrp	x2, l_.str.6@PAGE
Lloh13:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x3, x26
	mov	x4, x25
	mov	x5, x20
	mov	x6, x21
	mov	x7, x19
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_Com_sprintf
	mov	x0, x24
	bl	_UI_FileExists
	cbnz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	x22, LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	str	x19, [sp]
	mov	x0, x24
	mov	x1, x23
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x3, x26
	mov	x4, x25
	mov	x5, x21
	mov	x6, x20
	mov	x7, x28
	bl	_Com_sprintf
	mov	x0, x24
	bl	_UI_FileExists
	cbnz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, x23
Lloh16:
	adrp	x2, l_.str.6@PAGE
Lloh17:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x3, x26
	mov	x4, x25
	mov	x5, x20
	mov	x6, x21
	mov	x7, x19
	bl	_Com_sprintf
	mov	x0, x24
	bl	_UI_FileExists
	cbz	x0, LBB0_1
LBB0_15:
Lloh18:
	adrp	x8, _qtrue@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh20:
	adrp	x8, _qfalse@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default"

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

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

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

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

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

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

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