	.file	"extr_ui_startserver.c_ServerOptions_SetPlayerItems.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Human"
.LC1:
	.string	"Open"
	.text
	.p2align 4
	.type	ServerOptions_SetPlayerItems, @function
ServerOptions_SetPlayerItems:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR s_serveroptions[rip+40], 0
	jne	.L2
	lea	rax, .LC0[rip]
	mov	rdx, QWORD PTR s_serveroptions[rip+24]
	mov	r9d, 1
	mov	QWORD PTR s_serveroptions[rip+32], rax
	mov	eax, DWORD PTR QMF_HIDDEN[rip]
	not	eax
	and	DWORD PTR [rdx], eax
.L3:
	cmp	r9d, DWORD PTR PLAYER_SLOTS[rip]
	mov	r11, QWORD PTR s_serveroptions[rip]
	mov	r10, QWORD PTR GT_TEAM[rip]
	jge	.L1
	movsx	rcx, r9d
	mov	r8, QWORD PTR s_serveroptions[rip+16]
	mov	rdi, QWORD PTR s_serveroptions[rip+24]
	mov	rax, rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	or	edx, esi
	mov	DWORD PTR [rdi+rax*4], edx
	mov	edx, DWORD PTR PLAYER_SLOTS[rip]
	add	rax, 1
	cmp	edx, eax
	jle	.L15
.L7:
	mov	edx, DWORD PTR QMF_INACTIVE[rip]
	or	edx, DWORD PTR QMF_HIDDEN[rip]
	cmp	DWORD PTR [r8+rax*4], 1
	mov	esi, DWORD PTR [rdi+rax*4]
	jne	.L5
	not	edx
	and	edx, esi
	mov	DWORD PTR [rdi+rax*4], edx
	mov	edx, DWORD PTR PLAYER_SLOTS[rip]
	add	rax, 1
	cmp	edx, eax
	jg	.L7
.L15:
	cmp	r11, r10
	jl	.L1
	cmp	edx, r9d
	jle	.L1
	mov	rsi, QWORD PTR s_serveroptions[rip+8]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	not	eax
	and	eax, edx
	mov	DWORD PTR [rsi+rcx*4], eax
	add	rcx, 1
	cmp	DWORD PTR PLAYER_SLOTS[rip], ecx
	jle	.L1
.L11:
	mov	eax, DWORD PTR QMF_INACTIVE[rip]
	or	eax, DWORD PTR QMF_HIDDEN[rip]
	cmp	DWORD PTR [r8+rcx*4], 2
	mov	edx, DWORD PTR [rsi+rcx*4]
	jne	.L9
	or	eax, edx
	mov	DWORD PTR [rsi+rcx*4], eax
	add	rcx, 1
	cmp	DWORD PTR PLAYER_SLOTS[rip], ecx
	jg	.L11
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rax, .LC1[rip]
	xor	r9d, r9d
	mov	QWORD PTR s_serveroptions[rip+32], rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ServerOptions_SetPlayerItems, .-ServerOptions_SetPlayerItems
	.comm	s_serveroptions,48,32
	.comm	QMF_INACTIVE,4,4
	.comm	QMF_HIDDEN,4,4
	.comm	PLAYER_SLOTS,4,4
	.comm	GT_TEAM,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ui_startserver.c_ServerOptions_SetPlayerItems.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Human\000"
	.align	2
.LC1:
	.ascii	"Open\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ServerOptions_SetPlayerItems, %function
ServerOptions_SetPlayerItems:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, .L16
	sub	sp, sp, #12
	ldr	r3, [r9, #20]
	cmp	r3, #0
	bne	.L2
	ldr	r2, [r9, #12]
	ldr	r6, .L16+4
	ldr	r3, [r2]
	ldr	r0, [r6]
	ldr	r1, .L16+8
	bic	r3, r3, r0
	mov	r0, #1
	str	r1, [r9, #16]
	str	r3, [r2]
.L3:
	ldr	r5, .L16+12
	ldr	r2, .L16+16
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r0, r3
	ldr	fp, [r9]
	str	r2, [sp, #4]
	bge	.L1
	ldr	r8, [r9, #8]
	lsl	r10, r0, #2
	sub	r10, r10, #4
	add	r8, r8, r10
	mov	ip, r8
	mov	r1, r0
	ldr	r2, [r9, #12]
	ldr	r6, .L16+4
	ldr	r7, .L16+20
	add	r2, r2, r10
.L7:
	ldr	lr, [r6]
	ldr	r3, [r7]
	ldr	r4, [ip, #4]!
	orr	r3, r3, lr
	ldr	lr, [r2, #4]!
	cmp	r4, #1
	biceq	r3, lr, r3
	orrne	r3, lr, r3
	str	r3, [r2]
	ldr	r3, [r5]
	add	r1, r1, #1
	cmp	r3, r1
	bgt	.L7
	ldr	r2, [sp, #4]
	cmp	fp, r2
	blt	.L1
	cmp	r3, r0
	ble	.L1
	ldr	r3, [r9, #4]
	add	r10, r3, r10
.L11:
	ldr	r2, [r6]
	ldr	r3, [r7]
	ldr	r1, [r8, #4]!
	orr	r3, r3, r2
	ldr	r2, [r10, #4]!
	cmp	r1, #2
	orreq	r3, r2, r3
	bicne	r3, r2, r3
	str	r3, [r10]
	ldr	r3, [r5]
	add	r0, r0, #1
	cmp	r3, r0
	bgt	.L11
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L16+24
	mov	r0, #0
	str	r3, [r9, #16]
	b	.L3
.L17:
	.align	2
.L16:
	.word	s_serveroptions
	.word	QMF_HIDDEN
	.word	.LC0
	.word	PLAYER_SLOTS
	.word	GT_TEAM
	.word	QMF_INACTIVE
	.word	.LC1
	.size	ServerOptions_SetPlayerItems, .-ServerOptions_SetPlayerItems
	.comm	s_serveroptions,24,4
	.comm	QMF_INACTIVE,4,4
	.comm	QMF_HIDDEN,4,4
	.comm	PLAYER_SLOTS,4,4
	.comm	GT_TEAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
