	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PlayerModel_SetMenuItems
_PlayerModel_SetMenuItems:              ## @PlayerModel_SetMenuItems
	.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	$72, %rsp
	.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	_s_playermodel@GOTPCREL(%rip), %r13
	movl	44(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movl	$16, %edx
	callq	_trap_Cvar_VariableStringBuffer
	movl	44(%r13), %edi
	callq	_Q_CleanStr
	movl	40(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	$64, %edx
	callq	_trap_Cvar_VariableStringBuffer
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %r14
	leaq	L_.str.2(%rip), %rdi
	callq	_strlen
	movslq	%eax, %r15
	addq	%r14, %r15
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%rax, %r14
	subq	%r15, %r14
	leal	1(%r14), %edx
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_Q_strncpyz
	addq	$5, %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_strcat
	movq	_s_playermodel@GOTPCREL(%rip), %rax
	movl	40(%rax), %edi
	movq	%r13, %rsi
	movq	_s_playermodel@GOTPCREL(%rip), %r13
	callq	_Q_stricmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, 16(%r13)
	movq	_MAX_MODELSPERPAGE@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, 20(%r13)
	cmpl	$16, %r14d
	movl	$16, %edx
	cmovll	%r14d, %edx
	movq	32(%r13), %rdi
	movq	%r15, %rsi
	callq	_Q_strncpyz
	movq	32(%r13), %rdi
	callq	_Q_strupr
	movq	%r12, %rdi
	callq	_strlen
	cmpl	$15, %eax
	movl	$15, %edx
	cmovll	%eax, %edx
	incl	%edx
	movq	24(%r13), %rdi
	movq	%r12, %rsi
	callq	_Q_strncpyz
	movq	24(%r13), %rdi
	callq	_Q_strupr
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

	.comm	_s_playermodel,48,3             ## @s_playermodel
L_.str.1:                               ## @.str.1
	.asciz	"model"

L_.str.2:                               ## @.str.2
	.asciz	"models/players/"

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

	.comm	_MAX_MODELSPERPAGE,4,2          ## @MAX_MODELSPERPAGE
	.no_dead_strip	_PlayerModel_SetMenuItems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PlayerModel_SetMenuItems
_PlayerModel_SetMenuItems:              ; @PlayerModel_SetMenuItems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x23, _s_playermodel@GOTPAGE
Lloh4:
	ldr	x23, [x23, _s_playermodel@GOTPAGEOFF]
	ldr	w1, [x23, #44]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #16
	bl	_trap_Cvar_VariableStringBuffer
	ldr	w0, [x23, #44]
	bl	_Q_CleanStr
	ldr	w1, [x23, #40]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #64
	bl	_trap_Cvar_VariableStringBuffer
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x24, #0
Lloh9:
	adrp	x19, l_.str.2@PAGE
Lloh10:
	add	x19, x19, l_.str.2@PAGEOFF
Lloh11:
	adrp	x20, l_.str.3@PAGE
Lloh12:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	x21, [x8, x24, lsl #3]
	mov	x0, x19
	bl	_strlen
	add	x22, x21, w0, sxtw
	mov	x0, x22
	mov	x1, x20
	bl	_strstr
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	sub	x25, x0, x22
	add	w2, w25, #1
	add	x0, sp, #8
	mov	x1, x22
	bl	_Q_strncpyz
	add	x21, x21, #5
	add	x0, sp, #8
	mov	x1, x21
	bl	_strcat
	ldr	w0, [x23, #40]
	add	x1, sp, #8
	bl	_Q_stricmp
	cbnz	w0, LBB0_2
; %bb.5:
Lloh13:
	adrp	x8, _MAX_MODELSPERPAGE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_MODELSPERPAGE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	sdiv	w8, w24, w8
	stp	w24, w8, [x23, #16]
	mov	w8, #16
	cmp	w25, #16
	csel	w2, w25, w8, lt
	ldr	x0, [x23, #32]
	mov	x1, x22
	bl	_Q_strncpyz
	ldr	x0, [x23, #32]
	bl	_Q_strupr
	mov	x0, x21
	bl	_strlen
	mov	w8, #15
	cmp	w0, #15
	csel	w8, w0, w8, lt
	add	w2, w8, #1
	ldr	x0, [x23, #24]
	mov	x1, x21
	bl	_Q_strncpyz
	ldr	x0, [x23, #24]
	bl	_Q_strupr
LBB0_6:
	ldr	x8, [sp, #72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

	.comm	_s_playermodel,48,3             ; @s_playermodel
l_.str.1:                               ; @.str.1
	.asciz	"model"

l_.str.2:                               ; @.str.2
	.asciz	"models/players/"

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

	.comm	_MAX_MODELSPERPAGE,4,2          ; @MAX_MODELSPERPAGE
	.no_dead_strip	_PlayerModel_SetMenuItems
.subsections_via_symbols
