	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_BuildQ3Model_List
_UI_BuildQ3Model_List:                  ## @UI_BuildQ3Model_List
	.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
	pushq	%rax
	movl	$4456, %eax                     ## imm = 0x1168
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_uiInfo@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-2096(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_trap_FS_GetFileList
	movl	%eax, -4476(%rbp)               ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_26
## %bb.1:
	movq	_MAX_PLAYERMODELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%r15)
	jge	LBB0_26
## %bb.2:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
	movl	%ecx, -4480(%rbp)               ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %rcx
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$47, -1(%rcx,%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, -1(%rbx,%rcx)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, -4496(%rbp)               ## 8-byte Spill
	movq	%rbx, -4472(%rbp)               ## 8-byte Spill
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-4472(%rbp), %rdi               ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_24
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movq	-4472(%rbp), %rsi               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_va
	movq	%rax, %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	-4144(%rbp), %rdx
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_trap_FS_GetFileList
	movl	%eax, -4484(%rbp)               ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MAX_PLAYERMODELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%r15)
	jge	LBB0_24
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	leaq	-4144(%rbp), %r13
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	%r13, %rdi
	leaq	-4208(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_COM_StripExtension
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	$5, %edx
	callq	_Q_stricmpn
	testq	%rax, %rax
	je	LBB0_12
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	%r12d
	cmpl	-4484(%rbp), %r12d              ## 4-byte Folded Reload
	jge	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=2
	movslq	%r14d, %rax
	addq	%rax, %r13
	incq	%r13
	movq	_MAX_PLAYERMODELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%r15)
	jl	LBB0_11
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=2
	leaq	-4208(%rbp), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	-4208(%rbp), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	-4208(%rbp), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_Q_stricmp
	leaq	-4464(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	L_.str.10(%rip), %rdx
	movq	-4472(%rbp), %rcx               ## 8-byte Reload
	leaq	-4203(%rbp), %r8
	xorl	%eax, %eax
	callq	_Com_sprintf
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	-4472(%rbp), %rdx               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_Com_sprintf
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r15), %rcx
	cltq
	movq	(%rcx,%rax,8), %rsi
	leaq	-4464(%rbp), %rdi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=3
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	8(%r15), %rcx
	cltq
	movq	(%rcx,%rax,8), %rdi
	movl	$8, %esi
	leaq	-4464(%rbp), %rdx
	xorl	%eax, %eax
	callq	_Com_sprintf
	leaq	L_.str.11(%rip), %rdi
	movq	-4472(%rbp), %rsi               ## 8-byte Reload
	leaq	-4208(%rbp), %rdx
	xorl	%eax, %eax
	callq	_va
	movq	%rax, %rdi
	callq	_trap_R_RegisterShaderNoMip
	movq	16(%r15), %rcx
	movslq	(%r15), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r15)
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-4480(%rbp), %ecx               ## 4-byte Reload
	incl	%ecx
	cmpl	-4476(%rbp), %ecx               ## 4-byte Folded Reload
	movq	-4472(%rbp), %rbx               ## 8-byte Reload
	jge	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-4496(%rbp), %rax               ## 8-byte Reload
	addq	%rax, %rbx
	incq	%rbx
	movq	_MAX_PLAYERMODELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%r15)
	jl	LBB0_3
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	addq	$4456, %rsp                     ## imm = 0x1168
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_uiInfo,24,3                    ## @uiInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"models/players"

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

	.comm	_MAX_PLAYERMODELS,4,2           ## @MAX_PLAYERMODELS
L_.str.2:                               ## @.str.2
	.asciz	"."

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

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

L_.str.5:                               ## @.str.5
	.asciz	"tga"

L_.str.6:                               ## @.str.6
	.asciz	"icon_"

L_.str.7:                               ## @.str.7
	.asciz	"icon_blue"

L_.str.8:                               ## @.str.8
	.asciz	"icon_red"

L_.str.9:                               ## @.str.9
	.asciz	"icon_default"

L_.str.10:                              ## @.str.10
	.asciz	"%s/%s"

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

	.no_dead_strip	_UI_BuildQ3Model_List
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_BuildQ3Model_List
_UI_BuildQ3Model_List:                  ; @UI_BuildQ3Model_List
	.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
	mov	w9, #4464
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #368
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh5:
	adrp	x21, _uiInfo@GOTPAGE
Lloh6:
	ldr	x21, [x21, _uiInfo@GOTPAGEOFF]
	str	wzr, [x21]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #2400
	mov	w3, #2048
	bl	_trap_FS_GetFileList
	ldr	w8, [x21]
Lloh11:
	adrp	x27, _MAX_PLAYERMODELS@GOTPAGE
Lloh12:
	ldr	x27, [x27, _MAX_PLAYERMODELS@GOTPAGEOFF]
	ldr	w9, [x27]
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	cmp	w0, #1
	ccmp	w8, w9, #0, ge
	b.ge	LBB0_25
; %bb.1:
	mov	w19, #0
	add	x20, sp, #2400
	add	x8, sp, #288
	add	x8, x8, #5
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
	mov	x0, x20
	bl	_strlen
	mov	x24, x0
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x8, w24
	sub	x8, x8, #1
	ldrb	w9, [x20, x8]
	cmp	w9, #47
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x20, x8]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_va
	add	x2, sp, #352
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w3, #2048
	bl	_trap_FS_GetFileList
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x27]
	cmp	w8, w9
	b.ge	LBB0_23
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	mov	w26, #0
	add	x23, sp, #352
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
	mov	x0, x23
	bl	_strlen
	mov	x28, x0
	add	x1, sp, #288
	mov	x0, x23
	bl	_COM_StripExtension
	add	x0, sp, #288
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #5
	bl	_Q_stricmpn
	cbz	x0, LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_10 Depth=2
	add	w26, w26, #1
	cmp	w26, w22
	b.ge	LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w8, w28, #1
	add	x23, x23, w8, sxtw
	ldr	w8, [x21]
	ldr	w9, [x27]
	cmp	w8, w9
	b.lt	LBB0_10
	b	LBB0_23
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
	add	x0, sp, #288
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_Q_stricmp
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x0, sp, #288
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_Q_stricmp
	cbz	x0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x0, sp, #288
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_Q_stricmp
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	stp	x20, x8, [sp]
	add	x0, sp, #32
	mov	w1, #256
Lloh29:
	adrp	x2, l_.str.10@PAGE
Lloh30:
	add	x2, x2, l_.str.10@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=2
	add	x0, sp, #32
	mov	w1, #256
	mov	x2, x20
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=2
	bl	_Com_sprintf
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	w25, #0
LBB0_20:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x21, #8]
	ldr	x1, [x9, w8, sxtw #3]
	add	x0, sp, #32
	bl	_Q_stricmp
	cbz	x0, LBB0_11
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=3
	add	w25, w25, #1
	ldr	w8, [x21]
	cmp	w25, w8
	b.lt	LBB0_20
LBB0_22:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [x21, #8]
	ldr	x0, [x9, w8, sxtw #3]
	add	x2, sp, #32
	mov	w1, #8
	bl	_Com_sprintf
	add	x8, sp, #288
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.11@PAGE
Lloh32:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	x1, x20
	bl	_va
	bl	_trap_R_RegisterShaderNoMip
	ldr	x8, [x21, #16]
	ldrsw	x9, [x21]
	add	w10, w9, #1
	str	w10, [x21]
	str	w0, [x8, x9, lsl #2]
	b	LBB0_11
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w19, w8
	b.ge	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x20, w24, sxtw
	add	x20, x8, #1
	ldr	w8, [x21]
	ldr	w9, [x27]
	cmp	w8, w9
	b.lt	LBB0_2
LBB0_25:
	ldur	x8, [x29, #-96]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #368
	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_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_uiInfo,24,3                    ; @uiInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"models/players"

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

	.comm	_MAX_PLAYERMODELS,4,2           ; @MAX_PLAYERMODELS
l_.str.2:                               ; @.str.2
	.asciz	"."

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

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

l_.str.5:                               ; @.str.5
	.asciz	"tga"

l_.str.6:                               ; @.str.6
	.asciz	"icon_"

l_.str.7:                               ; @.str.7
	.asciz	"icon_blue"

l_.str.8:                               ; @.str.8
	.asciz	"icon_red"

l_.str.9:                               ; @.str.9
	.asciz	"icon_default"

l_.str.10:                              ; @.str.10
	.asciz	"%s/%s"

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

	.no_dead_strip	_UI_BuildQ3Model_List
.subsections_via_symbols
