	.file	"extr_cg_view.c_CG_OffsetFirstPersonView.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CG_OffsetFirstPersonView, @function
CG_OffsetFirstPersonView:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR cg[rip+96]
	mov	rdi, QWORD PTR PM_INTERMISSION[rip]
	cmp	QWORD PTR [rax], rdi
	je	.L34
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, QWORD PTR STAT_HEALTH[rip]
	pxor	xmm1, xmm1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, QWORD PTR cg[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR cg[rip+80]
	comiss	xmm1, DWORD PTR [rax+rdx*4]
	jnb	.L39
	movss	xmm2, DWORD PTR cg[rip+8]
	ucomiss	xmm2, xmm1
	jp	.L21
	jne	.L21
.L5:
	xor	r12d, r12d
	mov	edi, DWORD PTR cg[rip+72]
	mov	esi, r12d
	call	VectorCopy@PLT
	mov	rax, QWORD PTR cg[rip+88]
	mov	edi, r12d
	mov	esi, DWORD PTR [rax]
	call	DotProduct@PLT
	mov	rax, QWORD PTR PITCH[rip]
	mulss	xmm0, DWORD PTR cg_runpitch[rip]
	mov	edi, r12d
	lea	rax, 0[rbp+rax*4]
	addss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR cg[rip+88]
	mov	esi, DWORD PTR 4[rax]
	call	DotProduct@PLT
	mov	rax, QWORD PTR ROLL[rip]
	mov	ecx, DWORD PTR cg[rip+32]
	pxor	xmm2, xmm2
	movss	xmm1, DWORD PTR cg_runroll[rip]
	lea	rdx, 0[rbp+rax*4]
	cmp	ecx, 200
	mov	eax, 200
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR [rdx]
	cmovge	eax, ecx
	cvtsi2ss	xmm2, eax
	mov	eax, DWORD PTR cg[rip+56]
	test	DWORD PTR PMF_DUCKED[rip], eax
	mov	rax, QWORD PTR PITCH[rip]
	subss	xmm0, xmm1
	lea	rax, 0[rbp+rax*4]
	movss	DWORD PTR [rdx], xmm0
	movss	xmm1, DWORD PTR cg[rip+36]
	mulss	xmm1, DWORD PTR cg_bobpitch[rip]
	mulss	xmm1, xmm2
	jne	.L40
	addss	xmm1, DWORD PTR [rax]
	movss	DWORD PTR [rax], xmm1
	movss	xmm0, DWORD PTR cg[rip+36]
	mulss	xmm0, DWORD PTR cg_bobroll[rip]
	mulss	xmm0, xmm2
.L19:
	test	BYTE PTR cg[rip+40], 1
	je	.L11
	xorps	xmm0, XMMWORD PTR .LC6[rip]
.L11:
	addss	xmm0, DWORD PTR [rdx]
	pxor	xmm2, xmm2
	mov	esi, DWORD PTR DUCK_TIME[rip]
	cvtsi2ss	xmm2, DWORD PTR cg[rip+44]
	movss	DWORD PTR [rdx], xmm0
	pxor	xmm0, xmm0
	movss	xmm1, DWORD PTR 8[rbx]
	cvtsi2ss	xmm0, QWORD PTR cg[rip+64]
	addss	xmm1, xmm0
	movss	DWORD PTR 8[rbx], xmm1
	movss	xmm0, DWORD PTR cg[rip+12]
	subss	xmm0, xmm2
	cvttss2si	eax, xmm0
	cmp	esi, eax
	jle	.L12
	mov	edi, esi
	pxor	xmm0, xmm0
	sub	edi, eax
	mov	eax, DWORD PTR cg[rip+48]
	imul	eax, edi
	cdq
	idiv	esi
	cvtsi2ss	xmm0, eax
	subss	xmm1, xmm0
	movss	DWORD PTR 8[rbx], xmm1
.L12:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, ecx
	mulss	xmm0, DWORD PTR cg[rip+36]
	mulss	xmm0, DWORD PTR cg_bobup[rip]
	comiss	xmm0, DWORD PTR .LC0[rip]
	jbe	.L13
	movss	xmm0, DWORD PTR .LC0[rip]
.L13:
	addss	xmm0, xmm1
	movss	xmm2, DWORD PTR LAND_DEFLECT_TIME[rip]
	movss	DWORD PTR 8[rbx], xmm0
	movss	xmm1, DWORD PTR cg[rip+12]
	subss	xmm1, DWORD PTR cg[rip+24]
	comiss	xmm2, xmm1
	jbe	.L32
	divss	xmm1, xmm2
	mulss	xmm1, DWORD PTR cg[rip+52]
	addss	xmm0, xmm1
	movss	DWORD PTR 8[rbx], xmm0
.L17:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	CG_StepOffset@PLT
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	movss	xmm3, DWORD PTR .LC5[rip]
	mulss	xmm1, xmm3
	addss	xmm1, DWORD PTR [rax]
	movss	DWORD PTR [rax], xmm1
	movss	xmm0, DWORD PTR cg[rip+36]
	mulss	xmm0, DWORD PTR cg_bobroll[rip]
	mulss	xmm0, xmm2
	mulss	xmm0, xmm3
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L21:
	movss	xmm0, DWORD PTR cg[rip+12]
	subss	xmm0, xmm2
	movss	xmm2, DWORD PTR DAMAGE_DEFLECT_TIME[rip]
	comiss	xmm2, xmm0
	ja	.L41
	subss	xmm0, xmm2
	movss	xmm2, DWORD PTR .LC4[rip]
	divss	xmm0, DWORD PTR DAMAGE_RETURN_TIME[rip]
	subss	xmm2, xmm0
	comiss	xmm2, xmm1
	movaps	xmm0, xmm2
	jbe	.L5
.L37:
	mov	rax, QWORD PTR PITCH[rip]
	movss	xmm1, DWORD PTR cg[rip+16]
	lea	rax, 0[rbp+rax*4]
	mulss	xmm1, xmm0
	addss	xmm1, DWORD PTR [rax]
	movss	DWORD PTR [rax], xmm1
	mov	rax, QWORD PTR ROLL[rip]
	mulss	xmm0, DWORD PTR cg[rip+20]
	lea	rax, 0[rbp+rax*4]
	addss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR [rax], xmm0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	movss	xmm3, DWORD PTR LAND_RETURN_TIME[rip]
	movaps	xmm4, xmm2
	addss	xmm4, xmm3
	comiss	xmm4, xmm1
	jbe	.L17
	subss	xmm1, xmm2
	movss	xmm2, DWORD PTR .LC4[rip]
	xor	eax, eax
	divss	xmm1, xmm3
	subss	xmm2, xmm1
	movss	xmm1, DWORD PTR cg[rip+52]
	mulss	xmm1, xmm2
	addss	xmm0, xmm1
	movss	DWORD PTR 8[rbx], xmm0
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	CG_StepOffset@PLT
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	mov	rdx, QWORD PTR ROLL[rip]
	mov	DWORD PTR 0[rbp+rdx*4], 0x42200000
	mov	rdx, QWORD PTR PITCH[rip]
	mov	DWORD PTR 0[rbp+rdx*4], 0xc1700000
	mov	rdx, QWORD PTR STAT_DEAD_YAW[rip]
	movss	xmm0, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR YAW[rip]
	movss	DWORD PTR 0[rbp+rax*4], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, QWORD PTR cg[rip+64]
	addss	xmm0, DWORD PTR 8[rbx]
	movss	DWORD PTR 8[rbx], xmm0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	divss	xmm0, xmm2
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	CG_OffsetFirstPersonView, .-CG_OffsetFirstPersonView
	.comm	cg_runroll,4,4
	.comm	cg_runpitch,4,4
	.comm	cg_bobup,4,4
	.comm	cg_bobroll,4,4
	.comm	cg_bobpitch,4,4
	.comm	cg,104,32
	.comm	YAW,8,8
	.comm	STAT_HEALTH,8,8
	.comm	STAT_DEAD_YAW,8,8
	.comm	ROLL,8,8
	.comm	PM_INTERMISSION,8,8
	.comm	PMF_DUCKED,4,4
	.comm	PITCH,8,8
	.comm	NECK_LENGTH,4,4
	.comm	LAND_RETURN_TIME,4,4
	.comm	LAND_DEFLECT_TIME,4,4
	.comm	FALL_TIME,4,4
	.comm	DUCK_TIME,4,4
	.comm	DAMAGE_RETURN_TIME,4,4
	.comm	DAMAGE_DEFLECT_TIME,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1086324736
	.align 4
.LC4:
	.long	1065353216
	.align 4
.LC5:
	.long	1077936128
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC6:
	.long	2147483648
	.long	0
	.long	0
	.long	0
	.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_view.c_CG_OffsetFirstPersonView.c"
	.text
	.global	__aeabi_fcmple
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.global	__aeabi_fcmpeq
	.global	__aeabi_fsub
	.global	__aeabi_fcmpgt
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_OffsetFirstPersonView, %function
CG_OffsetFirstPersonView:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, .L40
	ldr	r2, .L40+4
	ldr	r3, [r4, #72]
	ldr	r2, [r2]
	ldr	r1, [r3]
	cmp	r1, r2
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, .L40+8
	ldr	r7, [r3, #4]
	ldr	r3, [r2]
	mov	r1, #0
	ldr	r0, [r7, r3, lsl #2]	@ float
	bl	__aeabi_fcmple
	cmp	r0, #0
	ldr	r6, [r4, #64]
	ldr	r5, [r4]
	bne	.L38
	ldr	r7, [r4, #4]	@ float
	mov	r1, #0
	mov	r0, r7
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	beq	.L21
.L34:
	ldr	r9, .L40+12
	ldr	r10, .L40+16
.L5:
	mov	r7, #0
	ldr	r0, [r4, #60]
	mov	r1, r7
	bl	VectorCopy
	ldr	r3, [r4, #68]
	mov	r0, r7
	ldr	r1, [r3]
	bl	DotProduct
	ldr	r3, .L40+20
	ldr	r8, [r10]
	ldr	r1, [r3]	@ float
	bl	__aeabi_fmul
	mov	r1, r0
	ldr	r0, [r5, r8, lsl #2]	@ float
	bl	__aeabi_fadd
	ldr	r3, [r4, #68]
	str	r0, [r5, r8, lsl #2]	@ float
	ldr	r1, [r3, #4]
	mov	r0, r7
	bl	DotProduct
	ldr	r3, .L40+24
	ldr	r8, [r9]
	ldr	r1, [r3]	@ float
	bl	__aeabi_fmul
	mov	r1, r0
	ldr	r0, [r5, r8, lsl #2]	@ float
	bl	__aeabi_fsub
	ldr	r7, [r4, #28]
	str	r0, [r5, r8, lsl #2]	@ float
	cmp	r7, #200
	movge	r0, r7
	movlt	r0, #200
	bl	__aeabi_i2f
	mov	r9, r0
	ldr	r3, .L40+28
	ldr	r0, [r4, #32]	@ float
	ldr	r1, [r3]	@ float
	bl	__aeabi_fmul
	mov	r1, r9
	bl	__aeabi_fmul
	ldr	r3, .L40+32
	ldr	r2, [r4, #52]
	ldr	r3, [r3]
	mov	r1, r0
	tst	r2, r3
	ldr	r10, [r10]
	beq	.L10
	ldr	r1, .L40+36
	bl	__aeabi_fmul
	mov	r1, r0
	ldr	r0, [r5, r10, lsl #2]	@ float
	bl	__aeabi_fadd
	ldr	r3, .L40+40
	str	r0, [r5, r10, lsl #2]	@ float
	ldr	r1, [r3]	@ float
	ldr	r0, [r4, #32]	@ float
	bl	__aeabi_fmul
	mov	r1, r9
	bl	__aeabi_fmul
	ldr	r1, .L40+36
	bl	__aeabi_fmul
	mov	r1, r0
.L19:
	ldr	r3, [r4, #36]
	ldr	r0, [r5, r8, lsl #2]	@ float
	tst	r3, #1
	addne	r1, r1, #-2147483648
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r0, [r4, #56]
	str	r3, [r5, r8, lsl #2]	@ float
	bl	__aeabi_i2f
	ldr	r1, [r6, #8]	@ float
	bl	__aeabi_fadd
	mov	r5, r0
	ldr	r0, [r4, #40]
	str	r5, [r6, #8]	@ float
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r0, [r4, #8]	@ float
	bl	__aeabi_fsub
	bl	__aeabi_f2iz
	ldr	r3, .L40+44
	ldr	r1, [r3]
	cmp	r1, r0
	ble	.L12
	ldr	r3, [r4, #44]
	sub	r0, r1, r0
	mul	r0, r3, r0
	bl	__aeabi_idiv
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_fsub
	mov	r5, r0
	str	r0, [r6, #8]	@ float
.L12:
	mov	r0, r7
	bl	__aeabi_i2f
	ldr	r1, [r4, #32]	@ float
	bl	__aeabi_fmul
	ldr	r3, .L40+48
	ldr	r1, [r3]	@ float
	bl	__aeabi_fmul
	ldr	r1, .L40+52
	mov	r7, r0
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	ldrne	r7, .L40+52
	mov	r1, r5
	mov	r0, r7
	bl	__aeabi_fadd
	str	r0, [r6, #8]	@ float
	ldr	r1, [r4, #20]	@ float
	mov	r7, r0
	ldr	r0, [r4, #8]	@ float
	bl	__aeabi_fsub
	ldr	r3, .L40+56
	mov	r1, r0
	ldr	r8, [r3]	@ float
	mov	r5, r0
	mov	r0, r8
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	beq	.L32
	mov	r1, r8
	mov	r0, r5
	bl	__aeabi_fdiv
.L36:
	ldr	r1, [r4, #48]	@ float
	bl	__aeabi_fmul
	mov	r1, r7
	bl	__aeabi_fadd
	str	r0, [r6, #8]	@ float
.L17:
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	CG_StepOffset
.L21:
	mov	r1, r7
	ldr	r0, [r4, #8]	@ float
	bl	__aeabi_fsub
	ldr	r3, .L40+60
	mov	r1, r0
	ldr	r8, [r3]	@ float
	mov	r7, r0
	mov	r0, r8
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	mov	r1, r8
	mov	r0, r7
	bne	.L39
	bl	__aeabi_fsub
	ldr	r3, .L40+64
	ldr	r1, [r3]	@ float
	bl	__aeabi_fdiv
	mov	r1, r0
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r1, #0
	mov	r7, r0
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	beq	.L34
	mov	r0, r7
	ldr	r10, .L40+16
	ldr	r1, [r4, #12]	@ float
	ldr	r8, [r10]
.L35:
	bl	__aeabi_fmul
	mov	r1, r0
	ldr	r0, [r5, r8, lsl #2]	@ float
	bl	__aeabi_fadd
	str	r0, [r5, r8, lsl #2]	@ float
	ldr	r1, [r4, #16]	@ float
	mov	r0, r7
	bl	__aeabi_fmul
	ldr	r9, .L40+12
	mov	r1, r0
	ldr	r8, [r9]
	ldr	r0, [r5, r8, lsl #2]	@ float
	bl	__aeabi_fadd
	str	r0, [r5, r8, lsl #2]	@ float
	b	.L5
.L10:
	ldr	r0, [r5, r10, lsl #2]	@ float
	bl	__aeabi_fadd
	ldr	r3, .L40+40
	str	r0, [r5, r10, lsl #2]	@ float
	ldr	r1, [r3]	@ float
	ldr	r0, [r4, #32]	@ float
	bl	__aeabi_fmul
	mov	r1, r9
	bl	__aeabi_fmul
	mov	r1, r0
	b	.L19
.L32:
	ldr	r3, .L40+68
	mov	r0, r8
	ldr	r9, [r3]	@ float
	mov	r1, r9
	bl	__aeabi_fadd
	mov	r1, r5
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	beq	.L17
	mov	r1, r8
	mov	r0, r5
	bl	__aeabi_fsub
	mov	r1, r9
	bl	__aeabi_fdiv
	mov	r1, r0
	mov	r0, #1065353216
	bl	__aeabi_fsub
	b	.L36
.L38:
	ldr	r2, .L40+12
	ldr	r0, .L40+72
	ldr	r1, [r2]
	ldr	r3, .L40+16
	ldr	r2, .L40+76
	ldr	r3, [r3]
	str	r0, [r5, r1, lsl #2]	@ float
	ldr	r1, .L40+80
	ldr	r2, [r2]
	str	r1, [r5, r3, lsl #2]	@ float
	ldr	r3, .L40+84
	ldr	r2, [r7, r2, lsl #2]	@ float
	ldr	r3, [r3]
	ldr	r0, [r4, #56]
	str	r2, [r5, r3, lsl #2]	@ float
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r0, [r6, #8]	@ float
	bl	__aeabi_fadd
	str	r0, [r6, #8]	@ float
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L39:
	bl	__aeabi_fdiv
	ldr	r10, .L40+16
	mov	r7, r0
	ldr	r1, [r4, #12]	@ float
	ldr	r8, [r10]
	b	.L35
.L41:
	.align	2
.L40:
	.word	cg
	.word	PM_INTERMISSION
	.word	STAT_HEALTH
	.word	ROLL
	.word	PITCH
	.word	cg_runpitch
	.word	cg_runroll
	.word	cg_bobpitch
	.word	PMF_DUCKED
	.word	1077936128
	.word	cg_bobroll
	.word	DUCK_TIME
	.word	cg_bobup
	.word	1086324736
	.word	LAND_DEFLECT_TIME
	.word	DAMAGE_DEFLECT_TIME
	.word	DAMAGE_RETURN_TIME
	.word	LAND_RETURN_TIME
	.word	1109393408
	.word	STAT_DEAD_YAW
	.word	-1049624576
	.word	YAW
	.size	CG_OffsetFirstPersonView, .-CG_OffsetFirstPersonView
	.comm	cg_runroll,4,4
	.comm	cg_runpitch,4,4
	.comm	cg_bobup,4,4
	.comm	cg_bobroll,4,4
	.comm	cg_bobpitch,4,4
	.comm	cg,76,4
	.comm	YAW,4,4
	.comm	STAT_HEALTH,4,4
	.comm	STAT_DEAD_YAW,4,4
	.comm	ROLL,4,4
	.comm	PM_INTERMISSION,4,4
	.comm	PMF_DUCKED,4,4
	.comm	PITCH,4,4
	.comm	NECK_LENGTH,4,4
	.comm	LAND_RETURN_TIME,4,4
	.comm	LAND_DEFLECT_TIME,4,4
	.comm	FALL_TIME,4,4
	.comm	DUCK_TIME,4,4
	.comm	DAMAGE_RETURN_TIME,4,4
	.comm	DAMAGE_DEFLECT_TIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
