	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ServerOptions_InitPlayerItems
_ServerOptions_InitPlayerItems:         ## @ServerOptions_InitPlayerItems
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_s_serveroptions@GOTPCREL(%rip), %r14
	movq	40(%r14), %rax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%sil
	movq	_PLAYER_SLOTS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movb	%sil, %cl
	movq	24(%r14), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rsi,%rdi,8)
	incq	%rdi
	movslq	(%rbx), %rdx
	cmpq	%rdx, %rdi
	jl	LBB0_2
LBB0_3:
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	(%r14), %rax
	movq	_GT_TEAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.5:
	cmpl	$9, %edx
	jl	LBB0_8
## %bb.6:
	movq	24(%r14), %rax
	movl	$8, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$2, (%rax,%rcx,8)
	incq	%rcx
	movslq	(%rbx), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_7
LBB0_8:
	cmpq	$0, 32(%r14)
	jne	LBB0_10
## %bb.9:
	movq	_QMF_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%r14), %rcx
	orl	%eax, 4(%rcx)
	movl	$0, (%rcx)
	movq	16(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	$4, %edx
	callq	_trap_Cvar_VariableStringBuffer
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_Q_CleanStr
LBB0_10:
	movq	(%r14), %rax
	movq	_GT_TEAM@GOTPCREL(%rip), %rdx
	movl	(%rbx), %ecx
	cmpq	(%rdx), %rax
	jge	LBB0_11
## %bb.17:
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.18:
	movq	8(%r14), %rax
	xorl	%ecx, %ecx
	movq	_QMF_INACTIVE@GOTPCREL(%rip), %rdx
	movq	_QMF_HIDDEN@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	orl	(%rdx), %edi
	orl	%edi, 4(%rax,%rcx,8)
	incq	%rcx
	movslq	(%rbx), %rdi
	cmpq	%rdi, %rcx
	jl	LBB0_19
	jmp	LBB0_20
LBB0_11:
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_14
## %bb.12:
	movq	8(%r14), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rdx,%rax,8)
	incq	%rax
	movl	(%rbx), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movslq	%esi, %rsi
	cmpq	%rsi, %rax
	jl	LBB0_13
LBB0_14:
	cmpl	%ecx, %eax
	jge	LBB0_20
## %bb.15:
	movq	8(%r14), %rcx
	movl	%eax, %eax
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, (%rcx,%rax,8)
	incq	%rax
	movslq	(%rbx), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_16
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_serveroptions,48,3           ## @s_serveroptions
	.comm	_PLAYER_SLOTS,4,2               ## @PLAYER_SLOTS
	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
	.comm	_QMF_INACTIVE,4,2               ## @QMF_INACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

	.comm	_QMF_HIDDEN,4,2                 ## @QMF_HIDDEN
	.no_dead_strip	_ServerOptions_InitPlayerItems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ServerOptions_InitPlayerItems
_ServerOptions_InitPlayerItems:         ; @ServerOptions_InitPlayerItems
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _s_serveroptions@GOTPAGE
Lloh1:
	ldr	x20, [x20, _s_serveroptions@GOTPAGEOFF]
	ldr	x8, [x20, #40]
	cmp	x8, #0
	cset	w9, eq
Lloh2:
	adrp	x19, _PLAYER_SLOTS@GOTPAGE
Lloh3:
	ldr	x19, [x19, _PLAYER_SLOTS@GOTPAGEOFF]
	ldr	w10, [x19]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x11, #0
	ldr	x12, [x20, #24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x12], #8
	add	x11, x11, #1
	ldrsw	x10, [x19]
	cmp	x11, x10
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x21, _GT_TEAM@GOTPAGE
Lloh5:
	ldr	x21, [x21, _GT_TEAM@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	ccmp	w10, #9, #8, lt
	b.lt	LBB0_7
; %bb.5:
	ldr	x8, [x20, #24]
	add	x8, x8, #64
	mov	w9, #8
	mov	w10, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x8], #8
	add	x9, x9, #1
	ldrsw	x11, [x19]
	cmp	x9, x11
	b.lt	LBB0_6
LBB0_7:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _QMF_INACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QMF_INACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	x10, x9, [x20, #16]
	ldr	w11, [x9, #4]
	orr	w8, w11, w8
	stp	wzr, w8, [x9]
	ldr	w1, [x10]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #4
	bl	_trap_Cvar_VariableStringBuffer
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_Q_CleanStr
LBB0_9:
	ldr	x8, [x20]
	ldr	x10, [x21]
	ldr	w9, [x19]
	cmp	x8, x10
	b.ge	LBB0_13
; %bb.10:
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.11:
	mov	x8, #0
	ldr	x9, [x20, #8]
	add	x9, x9, #4
Lloh11:
	adrp	x10, _QMF_INACTIVE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _QMF_INACTIVE@GOTPAGEOFF]
Lloh13:
	adrp	x11, _QMF_HIDDEN@GOTPAGE
Lloh14:
	ldr	x11, [x11, _QMF_HIDDEN@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	ldr	w13, [x11]
	orr	w12, w13, w12
	ldr	w13, [x9]
	orr	w12, w12, w13
	str	w12, [x9], #8
	add	x8, x8, #1
	ldrsw	x12, [x19]
	cmp	x8, x12
	b.lt	LBB0_12
	b	LBB0_20
LBB0_13:
	cmp	w9, #2
	b.lt	LBB0_17
; %bb.14:
	mov	x8, #0
	ldr	x10, [x20, #8]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x10], #8
	add	x8, x8, #1
	ldr	w9, [x19]
	cmp	w9, #0
	cinc	w11, w9, lt
	asr	w11, w11, #1
	cmp	x8, w11, sxtw
	b.lt	LBB0_15
; %bb.16:
	cmp	w8, w9
	b.lt	LBB0_18
	b	LBB0_20
LBB0_17:
	mov	w8, #0
	cmp	w8, w9
	b.ge	LBB0_20
LBB0_18:
	ldr	x10, [x20, #8]
	mov	w9, w8
	add	x8, x10, w8, uxtw #3
	mov	w10, #1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x8], #8
	add	x9, x9, #1
	ldrsw	x11, [x19]
	cmp	x9, x11
	b.lt	LBB0_19
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_s_serveroptions,48,3           ; @s_serveroptions
	.comm	_PLAYER_SLOTS,4,2               ; @PLAYER_SLOTS
	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
	.comm	_QMF_INACTIVE,4,2               ; @QMF_INACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

	.comm	_QMF_HIDDEN,4,2                 ; @QMF_HIDDEN
	.no_dead_strip	_ServerOptions_InitPlayerItems
.subsections_via_symbols
