	.file	"extr_ui_players.c_UI_MachinegunSpinAngle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	UI_MachinegunSpinAngle
	.type	UI_MachinegunSpinAngle, @function
UI_MachinegunSpinAngle:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	r9, QWORD PTR dp_realtime[rip]
	mov	r8d, DWORD PTR 8[rdi]
	mov	ecx, DWORD PTR SPIN_SPEED[rip]
	mov	rax, r9
	sub	rax, QWORD PTR [rdi]
	mov	edi, DWORD PTR 12[rdi]
	test	r8d, r8d
	je	.L2
	imul	eax, ecx
	pxor	xmm0, xmm0
	mov	ebp, DWORD PTR TORSO_ATTACK[rip]
	lea	ecx, [rax+rdi]
	mov	eax, DWORD PTR ANIM_TOGGLEBIT[rip]
	cvtsi2ss	xmm0, ecx
	not	eax
	and	eax, DWORD PTR 16[rbx]
	cmp	eax, DWORD PTR TORSO_ATTACK2[rip]
	je	.L1
.L4:
	xor	edx, edx
	cmp	eax, ebp
	setne	dl
	cmp	r8d, edx
	je	.L8
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR COAST_TIME[rip]
	mov	edx, eax
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	mov	ebp, DWORD PTR TORSO_ATTACK[rip]
	cmp	esi, eax
	cvtsi2ss	xmm1, esi
	mov	eax, esi
	cmovle	edx, esi
	sub	eax, edx
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR ANIM_TOGGLEBIT[rip]
	not	eax
	and	eax, DWORD PTR 16[rbx]
	cmp	DWORD PTR TORSO_ATTACK2[rip], eax
	divss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, ecx
	addss	xmm0, xmm1
	mulss	xmm0, DWORD PTR .LC0[rip]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, edx
	mulss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, edi
	addss	xmm0, xmm1
	jne	.L4
.L5:
	mov	QWORD PTR [rbx], r9
	movss	DWORD PTR 12[rsp], xmm0
	call	AngleMod@PLT
	movss	xmm0, DWORD PTR 12[rsp]
	mov	DWORD PTR 12[rbx], eax
	xor	eax, eax
	cmp	DWORD PTR TORSO_ATTACK[rip], ebp
	sete	al
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ebp, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	UI_MachinegunSpinAngle, .-UI_MachinegunSpinAngle
	.comm	dp_realtime,8,8
	.comm	TORSO_ATTACK2,4,4
	.comm	TORSO_ATTACK,4,4
	.comm	SPIN_SPEED,4,4
	.comm	COAST_TIME,4,4
	.comm	ANIM_TOGGLEBIT,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1056964608
	.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_players.c_UI_MachinegunSpinAngle.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fadd
	.global	__aeabi_fmul
	.align	2
	.global	UI_MachinegunSpinAngle
	.syntax unified
	.arm
	.fpu softvfp
	.type	UI_MachinegunSpinAngle, %function
UI_MachinegunSpinAngle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldm	r0, {r0, r6}
	ldr	r3, .L9
	cmp	r6, #0
	ldr	r7, [r3]
	ldr	r3, .L9+4
	ldr	r10, [r4, #8]
	ldr	fp, [r3]
	sub	r0, r7, r0
	beq	.L2
	mla	r0, fp, r0, r10
	bl	__aeabi_i2f
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	ldr	r1, [r3]
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	ldr	r8, .L9+16
	bic	r3, r3, r1
	cmp	r3, r2
	mov	r5, r0
	ldr	r9, [r8]
	beq	.L1
.L4:
	subs	r9, r3, r9
	movne	r9, #1
	cmp	r6, r9
	beq	.L8
.L1:
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L9+20
	ldr	r8, .L9+16
	ldr	r9, [r3]
	cmp	r9, r0
	movlt	r5, r9
	movge	r5, r0
	sub	r0, r9, r5
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r9
	mov	r9, r3
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r9
	bl	__aeabi_fdiv
	mov	r9, r0
	mov	r0, fp
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r9
	bl	__aeabi_fadd
	mov	r1, #1056964608
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_fmul
	mov	r5, r0
	mov	r0, r10
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_fadd
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	ldr	r1, [r3]
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	bic	r3, r3, r1
	cmp	r2, r3
	mov	r5, r0
	ldr	r9, [r8]
	bne	.L4
.L5:
	mov	r0, r5
	str	r7, [r4]
	bl	AngleMod
	ldr	r3, [r8]
	str	r0, [r4, #8]
	sub	r9, r3, r9
	clz	r9, r9
	lsr	r9, r9, #5
	mov	r0, r5
	str	r9, [r4, #4]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r9, r3
	b	.L5
.L10:
	.align	2
.L9:
	.word	dp_realtime
	.word	SPIN_SPEED
	.word	ANIM_TOGGLEBIT
	.word	TORSO_ATTACK2
	.word	TORSO_ATTACK
	.word	COAST_TIME
	.size	UI_MachinegunSpinAngle, .-UI_MachinegunSpinAngle
	.comm	dp_realtime,4,4
	.comm	TORSO_ATTACK2,4,4
	.comm	TORSO_ATTACK,4,4
	.comm	SPIN_SPEED,4,4
	.comm	COAST_TIME,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
