	.file	"extr_cg_players.c_CG_PlayerFlag.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"tag_flag"
	.text
	.p2align 4
	.type	CG_PlayerFlag, @function
CG_PlayerFlag:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	mov	edx, 48
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	lea	r13, 48[rsp]
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR cgs[rip+12]
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, QWORD PTR [rbx]
	mov	DWORD PTR 8[rsp], eax
	call	VectorCopy@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR 36[rbx]
	mov	rsi, rbx
	lea	rcx, .LC2[rip]
	mov	rdi, r12
	mov	QWORD PTR 36[rsp], rax
	call	CG_PositionEntityOnTag@PLT
	mov	rdi, r12
	call	trap_R_AddRefEntityToScene@PLT
	mov	edx, 48
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	mov	eax, DWORD PTR cgs[rip+8]
	mov	rsi, QWORD PTR 48[rsp]
	mov	DWORD PTR 92[rsp], r14d
	mov	rdi, QWORD PTR [rbx]
	mov	DWORD PTR 56[rsp], eax
	call	VectorCopy@PLT
	mov	rax, QWORD PTR 36[rbx]
	xor	edi, edi
	mov	QWORD PTR 84[rsp], rax
	call	VectorClear@PLT
	mov	eax, DWORD PTR ANIM_TOGGLEBIT[rip]
	not	eax
	and	eax, DWORD PTR 24[rbp]
	cmp	DWORD PTR LEGS_IDLE[rip], eax
	je	.L2
	cmp	DWORD PTR LEGS_IDLECR[rip], eax
	je	.L2
	cmp	DWORD PTR LEGS_WALK[rip], eax
	mov	edx, DWORD PTR qtrue[rip]
	je	.L5
	cmp	DWORD PTR LEGS_WALKCR[rip], eax
	mov	r15d, DWORD PTR FLAG_RUN[rip]
	jne	.L4
.L5:
	mov	r15d, DWORD PTR FLAG_STAND[rip]
	test	edx, edx
	je	.L8
.L20:
	xor	r14d, r14d
	mov	rdi, QWORD PTR 40[rbp]
	mov	rsi, r14
	call	VectorCopy@PLT
	add	DWORD PTR 8[r14], 100
	mov	rdi, r14
	call	VectorNormalize@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rsi, r14
	mov	edi, DWORD PTR 8[rax]
	call	DotProduct@PLT
	call	fabs@PLT
	movsd	xmm1, QWORD PTR .LC3[rip]
	comisd	xmm1, xmm0
	jbe	.L8
	mov	rax, QWORD PTR 16[rsp]
	mov	rsi, r14
	mov	edi, DWORD PTR [rax]
	call	DotProduct@PLT
	comiss	xmm0, DWORD PTR .LC0[rip]
	jbe	.L19
	movss	xmm0, DWORD PTR .LC0[rip]
.L11:
	call	acos@PLT
	mov	rax, QWORD PTR 16[rsp]
	xor	r14d, r14d
	mov	rsi, r14
	mov	edi, DWORD PTR 4[rax]
	call	DotProduct@PLT
	xor	edi, edi
	lea	r8, 16[rbp]
	mov	rcx, rbp
	mov	rax, QWORD PTR YAW[rip]
	mov	edx, 90
	mov	esi, 25
	movss	xmm0, DWORD PTR .LC4[rip]
	mov	edi, DWORD PTR [rdi+rax*4]
	call	CG_SwingAngles@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR qfalse[rip]
	mov	r15d, DWORD PTR FLAG_STAND[rip]
.L4:
	test	edx, edx
	jne	.L20
.L8:
	mov	rdx, QWORD PTR 32[rbp]
	mov	rax, QWORD PTR cgs[rip]
	mov	ecx, 1
	mov	rsi, rbp
	lea	rdi, [rax+rdx*4]
	mov	edx, r15d
	call	CG_RunLerpFrame@PLT
	mov	rdx, QWORD PTR 4[rbp]
	mov	eax, DWORD PTR 12[rbp]
	xor	edi, edi
	mov	rsi, QWORD PTR 64[rsp]
	mov	QWORD PTR 72[rsp], rdx
	mov	DWORD PTR 80[rsp], eax
	call	AnglesToAxis@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	rsi, r12
	mov	rdi, r13
	lea	rcx, .LC2[rip]
	call	CG_PositionRotatedEntityOnTag@PLT
	mov	rdi, r13
	call	trap_R_AddRefEntityToScene@PLT
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	movss	xmm1, DWORD PTR .LC1[rip]
	maxss	xmm1, xmm0
	movaps	xmm0, xmm1
	jmp	.L11
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CG_PlayerFlag, .-CG_PlayerFlag
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	cgs,16,16
	.comm	YAW,8,8
	.comm	M_PI,4,4
	.comm	LEGS_WALKCR,4,4
	.comm	LEGS_WALK,4,4
	.comm	LEGS_IDLECR,4,4
	.comm	LEGS_IDLE,4,4
	.comm	FLAG_STAND,4,4
	.comm	FLAG_RUN,4,4
	.comm	ANIM_TOGGLEBIT,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1065353216
	.align 4
.LC1:
	.long	3212836864
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	3435973837
	.long	1072483532
	.section	.rodata.cst4
	.align 4
.LC4:
	.long	1041865114
	.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_PlayerFlag.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tag_flag\000"
	.global	__aeabi_dcmplt
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmplt
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_PlayerFlag, %function
CG_PlayerFlag:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r2
	mov	r7, r1
	mov	r5, r0
	sub	sp, sp, #92
	ldr	r3, .L21
	ldr	r6, .L21+4
	mov	r2, #36
	mov	r1, #0
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #84]
	mov	r3,#0
	bl	memset
	ldr	r3, [r6, #8]
	mov	r1, #0
	ldr	r0, [r4]
	str	r3, [sp, #16]
	bl	VectorCopy
	ldr	r3, [r4, #28]
	ldr	ip, [r4, #24]
	mov	r1, r4
	ldr	r2, [r4, #4]
	str	r3, [sp, #40]
	add	r0, sp, #12
	ldr	r3, .L21+8
	str	ip, [sp, #36]
	bl	CG_PositionEntityOnTag
	add	r0, sp, #12
	bl	trap_R_AddRefEntityToScene
	mov	r2, #32
	mov	r1, #0
	add	r0, sp, #48
	bl	memset
	ldr	r3, [r6, #4]
	mov	r1, #0
	ldr	r0, [r4]
	str	r3, [sp, #52]
	str	r7, [sp, #80]
	bl	VectorCopy
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #24]
	mov	r0, #0
	str	r2, [sp, #76]
	str	r3, [sp, #72]
	bl	VectorClear
	ldr	r1, .L21+12
	ldr	r2, .L21+16
	ldr	r3, [r5, #20]
	ldr	r1, [r1]
	ldr	r2, [r2]
	bic	r3, r3, r1
	cmp	r2, r3
	beq	.L2
	ldr	r2, .L21+20
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L2
	ldr	r1, .L21+24
	ldr	r2, .L21+28
	ldr	r1, [r1]
	ldr	r2, [r2]
	cmp	r1, r3
	beq	.L5
	ldr	r1, .L21+32
	ldr	r1, [r1]
	cmp	r1, r3
	beq	.L5
	ldr	r3, .L21+36
	cmp	r2, #0
	ldr	r4, [r3]
	beq	.L8
.L19:
	mov	r7, #0
	ldr	r0, [r5, #28]
	mov	r1, r7
	bl	VectorCopy
	ldr	r3, [r7, #8]
	mov	r0, r7
	add	r3, r3, #100
	str	r3, [r7, #8]
	bl	VectorNormalize
	ldr	r3, [sp, #20]
	mov	r1, r7
	ldr	r0, [r3, #8]
	bl	DotProduct
	bl	fabs
	ldr	r2, .L21+40
	ldr	r3, .L21+44
	bl	__aeabi_dcmplt
	cmp	r0, r7
	beq	.L8
	ldr	r3, [sp, #20]
	mov	r1, r7
	ldr	r0, [r3]
	bl	DotProduct
	mov	r1, #1065353216
	mov	r7, r0
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	movne	r7, #1065353216
	bne	.L11
	mov	r0, r7
	ldr	r1, .L21+48
	bl	__aeabi_fcmplt
	cmp	r0, #0
	ldrne	r7, .L21+48
.L11:
	mov	r0, r7
	bl	acos
	ldr	r3, [sp, #20]
	mov	r1, #0
	ldr	r0, [r3, #4]
	bl	DotProduct
	mov	r2, #0
	ldr	r3, .L21+52
	add	r1, r5, #16
	ldr	r0, [r3]
	ldr	r3, .L21+56
	ldr	r0, [r2, r0, lsl #2]
	str	r1, [sp, #4]
	mov	r2, #90
	mov	r1, #25
	str	r5, [sp]
	bl	CG_SwingAngles
	b	.L8
.L2:
	ldr	r2, .L21+60
	ldr	r3, .L21+64
	ldr	r2, [r2]
	ldr	r4, [r3]
.L4:
	cmp	r2, #0
	bne	.L19
.L8:
	ldr	r3, [r6]
	ldr	r0, [r5, #24]
	mov	r2, r4
	mov	r1, r5
	add	r0, r3, r0, lsl #2
	mov	r3, #1
	bl	CG_RunLerpFrame
	ldr	ip, [r5, #12]
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #4]
	ldr	r1, [sp, #56]
	mov	r0, #0
	str	ip, [sp, #68]
	str	r2, [sp, #64]
	str	r3, [sp, #60]
	bl	AnglesToAxis
	ldr	r3, .L21+8
	ldr	r2, [sp, #16]
	add	r1, sp, #12
	add	r0, sp, #48
	bl	CG_PositionRotatedEntityOnTag
	add	r0, sp, #48
	bl	trap_R_AddRefEntityToScene
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	ldr	r3, .L21+64
	ldr	r4, [r3]
	b	.L4
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC1
	.word	cgs
	.word	.LC0
	.word	ANIM_TOGGLEBIT
	.word	LEGS_IDLE
	.word	LEGS_IDLECR
	.word	LEGS_WALK
	.word	qtrue
	.word	LEGS_WALKCR
	.word	FLAG_RUN
	.word	-858993459
	.word	1072483532
	.word	-1082130432
	.word	YAW
	.word	1041865114
	.word	qfalse
	.word	FLAG_STAND
	.size	CG_PlayerFlag, .-CG_PlayerFlag
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	cgs,12,4
	.comm	YAW,4,4
	.comm	M_PI,4,4
	.comm	LEGS_WALKCR,4,4
	.comm	LEGS_WALK,4,4
	.comm	LEGS_IDLECR,4,4
	.comm	LEGS_IDLE,4,4
	.comm	FLAG_STAND,4,4
	.comm	FLAG_RUN,4,4
	.comm	ANIM_TOGGLEBIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
