	.file	"extr_ui_players.c_UI_LegsSequencing.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	UI_LegsSequencing, @function
UI_LegsSequencing:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR ANIM_TOGGLEBIT[rip]
	mov	rcx, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR LEGS_JUMP[rip]
	not	eax
	and	eax, DWORD PTR [rdi]
	test	rcx, rcx
	jg	.L7
	mov	esi, DWORD PTR LEGS_LAND[rip]
	cmp	eax, edx
	je	.L8
	cmp	esi, eax
	je	.L9
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmp	eax, edx
	jne	.L1
	movsx	rsi, DWORD PTR UI_TIMER_JUMP[rip]
	movsx	rax, DWORD PTR M_PI[rip]
	mov	rdx, rsi
	sub	rdx, rcx
	imul	rax, rdx
	cqo
	idiv	rsi
	mov	edi, eax
	call	sin@PLT
	imul	eax, DWORD PTR JUMP_HEIGHT[rip]
	mov	DWORD PTR jumpHeight[rip], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR LEGS_IDLE[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	UI_SetLegsAnim@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	QWORD PTR 8[rsp], rdi
	call	UI_ForceLegsAnim@PLT
	movsx	rax, DWORD PTR UI_TIMER_LAND[rip]
	mov	rdi, QWORD PTR 8[rsp]
	mov	DWORD PTR jumpHeight[rip], 0
	mov	QWORD PTR 8[rdi], rax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	UI_LegsSequencing, .-UI_LegsSequencing
	.comm	jumpHeight,4,4
	.comm	UI_TIMER_LAND,4,4
	.comm	UI_TIMER_JUMP,4,4
	.comm	M_PI,4,4
	.comm	LEGS_LAND,4,4
	.comm	LEGS_JUMP,4,4
	.comm	LEGS_IDLE,4,4
	.comm	JUMP_HEIGHT,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
	.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_LegsSequencing.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UI_LegsSequencing, %function
UI_LegsSequencing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, .L9
	ldr	r2, [r0, #4]
	ldr	ip, [r1]
	ldr	r3, [r0]
	ldr	r1, .L9+4
	cmp	r2, #0
	push	{r4, lr}
	ldr	r1, [r1]
	bic	r3, r3, ip
	bgt	.L7
	ldr	r2, .L9+8
	cmp	r3, r1
	ldr	r1, [r2]
	beq	.L8
	cmp	r1, r3
	popne	{r4, pc}
	ldr	r3, .L9+12
	pop	{r4, lr}
	ldr	r1, [r3]
	b	UI_SetLegsAnim
.L7:
	cmp	r3, r1
	popne	{r4, pc}
	ldr	r1, .L9+16
	ldr	r3, .L9+20
	ldr	r1, [r1]
	ldr	r0, [r3]
	sub	r2, r1, r2
	mul	r0, r2, r0
	bl	__aeabi_idiv
	bl	sin
	ldr	r3, .L9+24
	ldr	r2, .L9+28
	ldr	r3, [r3]
	mul	r3, r0, r3
	str	r3, [r2]
	pop	{r4, pc}
.L8:
	mov	r4, r0
	bl	UI_ForceLegsAnim
	mov	r1, #0
	ldr	r3, .L9+32
	ldr	r2, .L9+28
	ldr	r3, [r3]
	str	r1, [r2]
	str	r3, [r4, #4]
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	ANIM_TOGGLEBIT
	.word	LEGS_JUMP
	.word	LEGS_LAND
	.word	LEGS_IDLE
	.word	UI_TIMER_JUMP
	.word	M_PI
	.word	JUMP_HEIGHT
	.word	jumpHeight
	.word	UI_TIMER_LAND
	.size	UI_LegsSequencing, .-UI_LegsSequencing
	.comm	jumpHeight,4,4
	.comm	UI_TIMER_LAND,4,4
	.comm	UI_TIMER_JUMP,4,4
	.comm	M_PI,4,4
	.comm	LEGS_LAND,4,4
	.comm	LEGS_JUMP,4,4
	.comm	LEGS_IDLE,4,4
	.comm	JUMP_HEIGHT,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
