	.file	"extr_ui_playersettings.c_PlayerSettings_DrawPlayer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"model"
	.text
	.p2align 4
	.type	PlayerSettings_DrawPlayer, @function
PlayerSettings_DrawPlayer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_QPATH[rip]
	mov	rcx, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L15:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L15
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L16
.L4:
	mov	rsi, rsp
	lea	rdi, .LC0[rip]
	mov	edx, r8d
	call	trap_Cvar_VariableStringBuffer@PLT
	mov	esi, DWORD PTR s_playersettings[rip+4]
	mov	rdi, rsp
	call	strcmp@PLT
	test	rax, rax
	je	.L5
	mov	rsi, rsp
	lea	rdi, s_playersettings[rip]
	call	UI_PlayerInfo_SetModel@PLT
	mov	edi, DWORD PTR s_playersettings[rip+4]
	mov	rsi, rsp
	call	strcpy@PLT
	mov	eax, DWORD PTR qfalse[rip]
	sub	rsp, 8
	xor	ecx, ecx
	mov	edx, DWORD PTR TORSO_STAND[rip]
	mov	r9d, DWORD PTR WP_MACHINEGUN[rip]
	lea	rdi, s_playersettings[rip]
	mov	r8d, DWORD PTR vec3_origin[rip]
	mov	esi, DWORD PTR LEGS_IDLE[rip]
	push	rax
	call	UI_PlayerInfo_SetInfo@PLT
	pop	rax
	pop	rdx
.L5:
	mov	eax, DWORD PTR uis[rip]
	mov	edx, DWORD PTR 4[rbx]
	lea	r8, s_playersettings[rip]
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	mov	r9d, eax
	mov	ecx, DWORD PTR [rbx]
	shr	r9d, 31
	add	r9d, eax
	sar	r9d
	call	UI_DrawPlayer@PLT
	mov	rax, QWORD PTR -24[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	PlayerSettings_DrawPlayer, .-PlayerSettings_DrawPlayer
	.comm	vec3_origin,4,4
	.comm	uis,4,4
	.comm	s_playersettings,8,8
	.comm	qfalse,4,4
	.comm	YAW,8,8
	.comm	WP_MACHINEGUN,4,4
	.comm	TORSO_STAND,4,4
	.comm	ROLL,8,8
	.comm	PITCH,8,8
	.comm	MAX_QPATH,4,4
	.comm	LEGS_IDLE,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_ui_playersettings.c_PlayerSettings_DrawPlayer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"model\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	PlayerSettings_DrawPlayer, %function
PlayerSettings_DrawPlayer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	ldr	r3, .L11
	ldr	r5, .L11+4
	ldr	r2, [r3]
	mov	r4, r0
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r6, sp, #16
	ldr	r3, .L11+8
	mov	r1, r6
	ldr	r0, .L11+12
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	trap_Cvar_VariableStringBuffer
	mov	r0, r6
	ldr	r1, [r5, #4]
	bl	strcmp
	cmp	r0, #0
	bne	.L9
.L2:
	ldr	r3, .L11+16
	str	r5, [sp]
	ldr	r2, [r3]
	ldr	r3, [r4]
	add	r2, r2, r2, lsr #31
	asr	r2, r2, #1
	str	r2, [sp, #4]
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	bl	UI_DrawPlayer
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L9:
	mov	r1, r6
	mov	r0, r5
	bl	UI_PlayerInfo_SetModel
	mov	r1, r6
	ldr	r0, [r5, #4]
	bl	strcpy
	ldr	r1, .L11+20
	ldr	r2, .L11+24
	ldr	ip, [r1]
	ldr	r0, [r2]
	ldr	r3, .L11+28
	ldr	r2, .L11+32
	ldr	r1, [r3]
	stmib	sp, {r0, ip}
	ldr	r3, .L11+36
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #0
	ldr	r2, [r2]
	bl	UI_PlayerInfo_SetInfo
	b	.L2
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	MAX_QPATH
	.word	s_playersettings
	.word	.LC1
	.word	.LC0
	.word	uis
	.word	qfalse
	.word	WP_MACHINEGUN
	.word	vec3_origin
	.word	TORSO_STAND
	.word	LEGS_IDLE
	.size	PlayerSettings_DrawPlayer, .-PlayerSettings_DrawPlayer
	.comm	vec3_origin,4,4
	.comm	uis,4,4
	.comm	s_playersettings,8,4
	.comm	qfalse,4,4
	.comm	YAW,4,4
	.comm	WP_MACHINEGUN,4,4
	.comm	TORSO_STAND,4,4
	.comm	ROLL,4,4
	.comm	PITCH,4,4
	.comm	MAX_QPATH,4,4
	.comm	LEGS_IDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
