	.file	"extr_cg_players.c_CG_LoadClientInfo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CG_RegisterClientModelname( %s, %s, %s, %s %s ) failed"
	.align 8
.LC1:
	.string	"DEFAULT_TEAM_MODEL / skin (%s/%s) failed to register"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"default"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"DEFAULT_MODEL (%s) failed to register"
	.section	.rodata.str1.1
.LC4:
	.string	"tag_flag"
.LC5:
	.string	"sound/player/%s/%s"
	.text
	.p2align 4
	.type	CG_LoadClientInfo, @function
CG_LoadClientInfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_QPATH[rip]
	mov	rsi, rsp
	mov	r13, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L49:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L49
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L50
.L4:
	mov	rcx, QWORD PTR 24[r12]
	mov	rdx, QWORD PTR 16[r12]
	mov	r9, rsp
	mov	rdi, r12
	mov	rsi, QWORD PTR 8[r12]
	mov	r8, QWORD PTR 32[r12]
	mov	BYTE PTR [rsp], 0
	mov	rbx, rsp
	mov	r15, QWORD PTR qtrue[rip]
	call	CG_RegisterClientModelname@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR qfalse[rip]
	mov	rsi, QWORD PTR 64[r12]
	mov	QWORD PTR 56[r12], rax
	test	rsi, rsi
	jne	.L51
.L14:
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR DEFAULT_MODEL[rip]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR GT_TEAM[rip]
	cmp	QWORD PTR cgs[rip], rax
	jl	.L17
	mov	rax, QWORD PTR DEFAULT_TEAM_MODEL[rip]
	mov	QWORD PTR -104[rbp], rax
.L17:
	mov	edx, DWORD PTR MAX_CUSTOM_SOUNDS[rip]
	xor	ebx, ebx
	lea	r13, .LC5[rip]
	test	edx, edx
	jg	.L18
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR 48[r12]
	cmp	QWORD PTR [rax+r14], 0
	je	.L52
.L23:
	add	rbx, 1
	cmp	DWORD PTR MAX_CUSTOM_SOUNDS[rip], ebx
	jle	.L21
.L18:
	mov	rax, QWORD PTR cg_customSoundNames[rip]
	lea	r14, 0[0+rbx*8]
	mov	rcx, QWORD PTR [rax+rbx*8]
	test	rcx, rcx
	je	.L21
	mov	rax, QWORD PTR 48[r12]
	mov	QWORD PTR [rax+rbx*8], 0
	test	r15d, r15d
	je	.L22
	mov	rsi, QWORD PTR -96[rbp]
	lea	rdx, 1[rcx]
	mov	rdi, r13
	mov	QWORD PTR -80[rbp], rcx
	mov	r9, QWORD PTR qfalse[rip]
	mov	QWORD PTR -88[rbp], r9
	call	va@PLT
	mov	rdx, QWORD PTR 48[r12]
	mov	r9, QWORD PTR -88[rbp]
	mov	edi, eax
	add	rdx, r14
	mov	rsi, r9
	mov	QWORD PTR -72[rbp], rdx
	call	trap_S_RegisterSound@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR 48[r12]
	cmp	QWORD PTR [rax+r14], 0
	jne	.L23
.L52:
	mov	rsi, QWORD PTR -104[rbp]
	lea	rdx, 1[rcx]
	mov	rdi, r13
	add	rbx, 1
	mov	r9, QWORD PTR qfalse[rip]
	mov	QWORD PTR -80[rbp], r9
	call	va@PLT
	mov	r8, QWORD PTR 48[r12]
	mov	r9, QWORD PTR -80[rbp]
	mov	edi, eax
	add	r8, r14
	mov	rsi, r9
	mov	QWORD PTR -72[rbp], r8
	call	trap_S_RegisterSound@PLT
	mov	r8, QWORD PTR -72[rbp]
	cmp	DWORD PTR MAX_CUSTOM_SOUNDS[rip], ebx
	mov	QWORD PTR [r8], rax
	jg	.L18
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR qfalse[rip]
	xor	ebx, ebx
	mov	QWORD PTR 40[r12], rax
	sub	r12, QWORD PTR cgs[rip+8]
	mov	eax, DWORD PTR MAX_GENTITIES[rip]
	sar	r12, 3
	imul	r12d, r12d, 954437177
	test	eax, eax
	jg	.L19
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	add	rbx, 1
	cmp	DWORD PTR MAX_GENTITIES[rip], ebx
	jle	.L1
.L19:
	mov	rdi, rbx
	sal	rdi, 4
	add	rdi, QWORD PTR cg_entities[rip]
	cmp	DWORD PTR [rdi], r12d
	jne	.L24
	mov	rax, QWORD PTR ET_PLAYER[rip]
	cmp	QWORD PTR 8[rdi], rax
	jne	.L24
	call	CG_ResetPlayerEntity@PLT
	add	rbx, 1
	cmp	DWORD PTR MAX_GENTITIES[rip], ebx
	jg	.L19
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L53
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	QWORD PTR cg_buildScript[rip], 0
	jne	.L54
	mov	rax, QWORD PTR GT_TEAM[rip]
	cmp	QWORD PTR cgs[rip], rax
	jl	.L8
.L57:
	mov	rax, QWORD PTR TEAM_BLUE[rip]
	mov	edx, r13d
	cmp	QWORD PTR [r12], rax
	je	.L55
	mov	esi, DWORD PTR DEFAULT_REDTEAM_NAME[rip]
	mov	rdi, rbx
	call	Q_strncpyz@PLT
.L10:
	mov	rdx, QWORD PTR 16[r12]
	mov	rcx, QWORD PTR DEFAULT_TEAM_HEAD[rip]
	mov	r9, rbx
	mov	rdi, r12
	mov	rsi, QWORD PTR DEFAULT_TEAM_MODEL[rip]
	mov	r8, rdx
	call	CG_RegisterClientModelname@PLT
	test	eax, eax
	je	.L56
.L12:
	mov	rax, QWORD PTR qfalse[rip]
	mov	rsi, QWORD PTR 64[r12]
	mov	QWORD PTR 56[r12], rax
	mov	r15d, eax
	test	rsi, rsi
	je	.L14
.L51:
	xor	ecx, ecx
	xor	edx, edx
	lea	rdi, -60[rbp]
	mov	r8d, 1
	lea	r9, .LC4[rip]
	call	trap_R_LerpTag@PLT
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR qtrue[rip]
	mov	QWORD PTR 56[r12], rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L50:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L54:
	mov	rcx, QWORD PTR 24[r12]
	mov	rdx, QWORD PTR 16[r12]
	xor	eax, eax
	mov	r9, rsp
	mov	rsi, QWORD PTR 8[r12]
	mov	r8, QWORD PTR 32[r12]
	lea	rdi, .LC0[rip]
	call	CG_Error@PLT
	mov	rax, QWORD PTR GT_TEAM[rip]
	cmp	QWORD PTR cgs[rip], rax
	jge	.L57
.L8:
	mov	rsi, QWORD PTR DEFAULT_MODEL[rip]
	lea	r8, .LC2[rip]
	mov	r9, rbx
	mov	rdi, r12
	mov	rdx, r8
	mov	rcx, rsi
	call	CG_RegisterClientModelname@PLT
	test	eax, eax
	jne	.L12
	mov	rsi, QWORD PTR DEFAULT_MODEL[rip]
	lea	rdi, .LC3[rip]
	call	CG_Error@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L55:
	mov	esi, DWORD PTR DEFAULT_BLUETEAM_NAME[rip]
	mov	rdi, rbx
	call	Q_strncpyz@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L56:
	mov	rdx, QWORD PTR 16[r12]
	mov	rsi, QWORD PTR DEFAULT_TEAM_MODEL[rip]
	lea	rdi, .LC1[rip]
	call	CG_Error@PLT
	jmp	.L12
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CG_LoadClientInfo, .-CG_LoadClientInfo
	.comm	qtrue,8,8
	.comm	qfalse,8,8
	.comm	cgs,16,16
	.comm	cg_redTeamName,4,4
	.comm	cg_entities,8,8
	.comm	cg_customSoundNames,8,8
	.comm	cg_buildScript,8,8
	.comm	cg_blueTeamName,4,4
	.comm	TEAM_BLUE,8,8
	.comm	MAX_QPATH,4,4
	.comm	MAX_GENTITIES,4,4
	.comm	MAX_CUSTOM_SOUNDS,4,4
	.comm	GT_TEAM,8,8
	.comm	ET_PLAYER,8,8
	.comm	DEFAULT_TEAM_MODEL,8,8
	.comm	DEFAULT_TEAM_HEAD,8,8
	.comm	DEFAULT_REDTEAM_NAME,4,4
	.comm	DEFAULT_MODEL,8,8
	.comm	DEFAULT_BLUETEAM_NAME,4,4
	.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_cg_players.c_CG_LoadClientInfo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CG_RegisterClientModelname( %s, %s, %s, %s %s ) fai"
	.ascii	"led\000"
	.align	2
.LC1:
	.ascii	"DEFAULT_TEAM_MODEL / skin (%s/%s) failed to registe"
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"default\000"
	.align	2
.LC3:
	.ascii	"DEFAULT_MODEL (%s) failed to register\000"
	.align	2
.LC4:
	.ascii	"tag_flag\000"
	.align	2
.LC5:
	.ascii	"sound/player/%s/%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_LoadClientInfo, %function
CG_LoadClientInfo:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	ip, #0
	ldr	r3, .L50
	ldr	r2, [r0, #16]
	ldr	r7, [r3]
	ldr	lr, .L50+4
	add	r3, r7, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r9, sp, #8
	stm	sp, {r2, r9}
	ldr	r4, .L50+8
	ldmib	r0, {r1, r2, r3}
	ldr	lr, [lr]
	str	lr, [fp, #-40]
	mov	lr,#0
	mov	r5, r0
	ldr	r8, [r4]
	strb	ip, [sp, #8]
	bl	CG_RegisterClientModelname
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L50+12
	ldr	r1, [r5, #32]
	ldr	r2, .L50+16
	str	r3, [fp, #-48]
	ldr	r3, [r3]
	cmp	r1, #0
	ldr	r6, .L50+20
	str	r2, [fp, #-60]
	str	r3, [r5, #28]
	bne	.L45
.L11:
	ldr	r2, [fp, #-60]
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r9, .L50+24
	cmp	r2, r3
	ldrge	r3, .L50+28
	ldrlt	r3, .L50+32
	ldr	r1, [r5, #4]
	ldr	r3, [r3]
	str	r1, [fp, #-56]
	str	r3, [fp, #-64]
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L18
	mov	r4, #0
	ldr	r10, .L50+36
	mov	r3, r4
	b	.L15
.L19:
	ldr	r2, [r5, #24]
	ldr	r2, [r2, r7]
	cmp	r2, #0
	beq	.L46
.L20:
	ldr	r2, [r9]
	add	r4, r4, #1
	cmp	r2, r4
	ble	.L18
.L15:
	ldr	r2, [r10]
	lsl	r7, r4, #2
	ldr	r6, [r2, r4, lsl #2]
	cmp	r6, #0
	beq	.L18
	ldr	r2, [r5, #24]
	cmp	r8, #0
	str	r3, [r2, r4, lsl #2]
	beq	.L19
	ldr	r1, [fp, #-56]
	add	r2, r6, #1
	ldr	r0, .L50+40
	bl	va
	ldr	r3, [fp, #-48]
	ldr	r2, [r5, #24]
	ldr	r1, [r3]
	str	r2, [fp, #-52]
	bl	trap_S_RegisterSound
	ldr	r2, [fp, #-52]
	mov	r3, #0
	str	r0, [r2, r7]
	ldr	r2, [r5, #24]
	ldr	r2, [r2, r7]
	cmp	r2, #0
	bne	.L20
.L46:
	add	r2, r6, #1
	ldr	r1, [fp, #-64]
	ldr	r0, .L50+40
	bl	va
	ldr	r3, [fp, #-48]
	ldr	r6, [r5, #24]
	ldr	r1, [r3]
	bl	trap_S_RegisterSound
	ldr	r2, [r9]
	add	r4, r4, #1
	cmp	r2, r4
	mov	r3, #0
	str	r0, [r6, r7]
	bgt	.L15
.L18:
	ldr	r3, [fp, #-60]
	ldr	r6, .L50+44
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-48]
	sub	r2, r5, r2
	asr	r2, r2, #2
	rsb	r3, r2, r2, lsl #3
	ldr	r0, [r6]
	add	r3, r3, r3, lsl #6
	ldr	r1, [r1]
	add	r3, r2, r3, lsl #3
	rsb	r3, r3, r3, lsl #15
	cmp	r0, #0
	str	r1, [r5, #20]
	add	r5, r2, r3, lsl #3
	ble	.L1
	mov	r4, #0
	ldr	r7, .L50+48
	ldr	r8, .L50+52
	b	.L16
.L21:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L1
.L16:
	ldr	r0, [r7]
	ldr	r3, [r0, r4, lsl #3]
	add	r0, r0, r4, lsl #3
	cmp	r3, r5
	bne	.L21
	ldr	r2, [r0, #4]
	ldr	r3, [r8]
	cmp	r2, r3
	bne	.L21
	bl	CG_ResetPlayerEntity
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L16
.L1:
	ldr	r3, .L50+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L50+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L48
.L4:
	ldr	r3, .L50+16
	ldr	r6, .L50+20
	ldr	r2, [r3]
	str	r3, [fp, #-60]
	ldr	r3, [r6]
	cmp	r2, r3
	blt	.L5
	ldr	r3, .L50+60
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r0, r9
	cmp	r2, r3
	ldreq	r3, .L50+64
	ldrne	r3, .L50+68
	mov	r2, r7
	ldr	r1, [r3]
	bl	Q_strncpyz
	ldr	r2, [r5, #8]
	ldr	r3, .L50+72
	stm	sp, {r2, r9}
	ldr	r7, .L50+28
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r1, [r7]
	bl	CG_RegisterClientModelname
	cmp	r0, #0
	beq	.L49
.L9:
	ldr	r3, .L50+12
	ldr	r1, [r5, #32]
	str	r3, [fp, #-48]
	ldr	r3, [r3]
	cmp	r1, #0
	mov	r8, r3
	str	r3, [r5, #28]
	beq	.L11
.L45:
	mov	r3, #0
	mov	r2, #1
	ldr	r0, .L50+76
	str	r2, [sp]
	str	r0, [sp, #4]
	mov	r2, r3
	sub	r0, fp, #44
	bl	trap_R_LerpTag
	cmp	r0, #0
	ldrne	r3, [r4]
	strne	r3, [r5, #28]
	b	.L11
.L48:
	ldr	r3, [r5, #16]
	ldr	r0, .L50+80
	stm	sp, {r3, r9}
	ldmib	r5, {r1, r2, r3}
	bl	CG_Error
	b	.L4
.L5:
	ldr	r7, .L50+32
	ldr	r2, .L50+84
	ldr	r3, [r7]
	mov	r0, r5
	mov	r1, r3
	str	r9, [sp, #4]
	str	r2, [sp]
	bl	CG_RegisterClientModelname
	cmp	r0, #0
	bne	.L9
	ldr	r1, [r7]
	ldr	r0, .L50+88
	bl	CG_Error
	b	.L9
.L49:
	ldr	r1, [r7]
	ldr	r2, [r5, #8]
	ldr	r0, .L50+92
	bl	CG_Error
	b	.L9
.L47:
	bl	__stack_chk_fail
.L51:
	.align	2
.L50:
	.word	MAX_QPATH
	.word	.LC6
	.word	qtrue
	.word	qfalse
	.word	cgs
	.word	GT_TEAM
	.word	MAX_CUSTOM_SOUNDS
	.word	DEFAULT_TEAM_MODEL
	.word	DEFAULT_MODEL
	.word	cg_customSoundNames
	.word	.LC5
	.word	MAX_GENTITIES
	.word	cg_entities
	.word	ET_PLAYER
	.word	cg_buildScript
	.word	TEAM_BLUE
	.word	DEFAULT_BLUETEAM_NAME
	.word	DEFAULT_REDTEAM_NAME
	.word	DEFAULT_TEAM_HEAD
	.word	.LC4
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.size	CG_LoadClientInfo, .-CG_LoadClientInfo
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	cgs,8,4
	.comm	cg_redTeamName,4,4
	.comm	cg_entities,4,4
	.comm	cg_customSoundNames,4,4
	.comm	cg_buildScript,4,4
	.comm	cg_blueTeamName,4,4
	.comm	TEAM_BLUE,4,4
	.comm	MAX_QPATH,4,4
	.comm	MAX_GENTITIES,4,4
	.comm	MAX_CUSTOM_SOUNDS,4,4
	.comm	GT_TEAM,4,4
	.comm	ET_PLAYER,4,4
	.comm	DEFAULT_TEAM_MODEL,4,4
	.comm	DEFAULT_TEAM_HEAD,4,4
	.comm	DEFAULT_REDTEAM_NAME,4,4
	.comm	DEFAULT_MODEL,4,4
	.comm	DEFAULT_BLUETEAM_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
