	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_LegsSequencing
_UI_LegsSequencing:                     ## @UI_LegsSequencing
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ANIM_TOGGLEBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rdi), %eax
	movq	8(%rdi), %rdx
	movq	_LEGS_JUMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rdx, %rdx
	jle	LBB0_6
## %bb.1:
	cmpl	%ecx, %eax
	jne	LBB0_9
## %bb.2:
	movq	_JUMP_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_M_PI@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	_UI_TIMER_JUMP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	%rsi, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rcx
	jmp	LBB0_5
LBB0_6:
	movq	%rdi, %rbx
	movq	_LEGS_LAND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	%ecx, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_UI_ForceLegsAnim
	movq	_UI_TIMER_LAND@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_jumpHeight@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_9
LBB0_8:
	cmpl	%esi, %eax
	jne	LBB0_9
## %bb.10:
	movq	_LEGS_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_UI_SetLegsAnim                 ## TAILCALL
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	movl	%eax, %edi
	callq	_sin
	imull	%ebx, %eax
	movq	_jumpHeight@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANIM_TOGGLEBIT,4,2             ## @ANIM_TOGGLEBIT
	.comm	_LEGS_JUMP,4,2                  ## @LEGS_JUMP
	.comm	_JUMP_HEIGHT,4,2                ## @JUMP_HEIGHT
	.comm	_M_PI,4,2                       ## @M_PI
	.comm	_UI_TIMER_JUMP,4,2              ## @UI_TIMER_JUMP
	.comm	_jumpHeight,4,2                 ## @jumpHeight
	.comm	_LEGS_LAND,4,2                  ## @LEGS_LAND
	.comm	_UI_TIMER_LAND,4,2              ## @UI_TIMER_LAND
	.comm	_LEGS_IDLE,4,2                  ## @LEGS_IDLE
	.no_dead_strip	_UI_LegsSequencing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_LegsSequencing
_UI_LegsSequencing:                     ; @UI_LegsSequencing
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ANIM_TOGGLEBIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ANIM_TOGGLEBIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bic	w9, w8, w9
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x10, _LEGS_JUMP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LEGS_JUMP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.2:
Lloh6:
	adrp	x9, _JUMP_HEIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _JUMP_HEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x9]
Lloh9:
	adrp	x9, _M_PI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _M_PI@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
Lloh12:
	adrp	x10, _UI_TIMER_JUMP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _UI_TIMER_JUMP@GOTPAGEOFF]
Lloh14:
	ldrsw	x10, [x10]
	sub	x8, x10, x8
	mul	x8, x8, x9
	sdiv	x0, x8, x10
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_sin
	mul	w8, w0, w19
Lloh15:
	adrp	x9, _jumpHeight@GOTPAGE
Lloh16:
	ldr	x9, [x9, _jumpHeight@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	b	LBB0_7
LBB0_3:
	mov	x19, x0
Lloh18:
	adrp	x8, _LEGS_LAND@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LEGS_LAND@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_UI_ForceLegsAnim
Lloh21:
	adrp	x8, _UI_TIMER_LAND@GOTPAGE
Lloh22:
	ldr	x8, [x8, _UI_TIMER_LAND@GOTPAGEOFF]
Lloh23:
	ldrsw	x8, [x8]
	str	x8, [x19, #8]
Lloh24:
	adrp	x8, _jumpHeight@GOTPAGE
Lloh25:
	ldr	x8, [x8, _jumpHeight@GOTPAGEOFF]
Lloh26:
	str	wzr, [x8]
	b	LBB0_7
LBB0_5:
	cmp	w9, w1
	b.ne	LBB0_7
; %bb.6:
Lloh27:
	adrp	x8, _LEGS_IDLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LEGS_IDLE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UI_SetLegsAnim
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ANIM_TOGGLEBIT,4,2             ; @ANIM_TOGGLEBIT
	.comm	_LEGS_JUMP,4,2                  ; @LEGS_JUMP
	.comm	_JUMP_HEIGHT,4,2                ; @JUMP_HEIGHT
	.comm	_M_PI,4,2                       ; @M_PI
	.comm	_UI_TIMER_JUMP,4,2              ; @UI_TIMER_JUMP
	.comm	_jumpHeight,4,2                 ; @jumpHeight
	.comm	_LEGS_LAND,4,2                  ; @LEGS_LAND
	.comm	_UI_TIMER_LAND,4,2              ; @UI_TIMER_LAND
	.comm	_LEGS_IDLE,4,2                  ; @LEGS_IDLE
	.no_dead_strip	_UI_LegsSequencing
.subsections_via_symbols
