	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function UI_RunLerpFrame
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_UI_RunLerpFrame:                       ## @UI_RunLerpFrame
	.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	%rsi, %rbx
	cmpl	%edx, (%rsi)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 48(%rbx)
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rsi
	callq	_UI_SetLerpFrameAnimation
LBB0_3:
	movq	_dp_realtime@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rbx), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_11
## %bb.4:
	movq	24(%rbx), %rdx
	movq	40(%rbx), %rax
	movq	%rax, 56(%rbx)
	movq	%rsi, 16(%rbx)
	movq	48(%rbx), %r8
	movslq	(%r8), %rdi
	addq	%rdi, %rsi
	cmpq	%rdx, %rcx
	cmovlq	%rdx, %rsi
	movq	%rsi, 8(%rbx)
	movq	%rsi, %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:
	cqto
	idivq	%rdi
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	movslq	4(%r8), %rdi
	cmpl	%eax, %edi
	jg	LBB0_10
## %bb.8:
	movl	8(%r8), %r9d
	testl	%r9d, %r9d
	je	LBB0_19
## %bb.9:
	subl	%edi, %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%r9d
	subl	%r9d, %edi
	addl	%edx, %edi
	movl	%edi, %eax
LBB0_10:
	cltq
	addq	16(%r8), %rax
	movq	%rax, 40(%rbx)
	cmpq	%rsi, %rcx
	jg	LBB0_12
LBB0_11:
	leaq	200(%rcx), %rax
	cmpq	%rax, %rsi
	jle	LBB0_14
LBB0_12:
	movq	%rcx, 8(%rbx)
LBB0_13:
	movq	%rcx, %rsi
LBB0_14:
	movq	16(%rbx), %rax
	cmpq	%rcx, %rax
	jle	LBB0_16
## %bb.15:
	movq	%rcx, 16(%rbx)
	movq	%rcx, %rax
LBB0_16:
	xorpd	%xmm0, %xmm0
	subq	%rax, %rsi
	je	LBB0_18
## %bb.17:
	subq	%rax, %rcx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rcx, %xmm0
	cvtsi2ss	%rsi, %xmm1
	divss	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtss2sd	%xmm0, %xmm1
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	%xmm1, %xmm0
LBB0_18:
	movsd	%xmm0, 32(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_19:
	movq	%rcx, 8(%rbx)
	movq	16(%r8), %rax
	addq	%rdi, %rax
	decq	%rax
	movq	%rax, 40(%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_dp_realtime,8,3                ## @dp_realtime
	.no_dead_strip	_UI_RunLerpFrame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_RunLerpFrame
_UI_RunLerpFrame:                       ; @UI_RunLerpFrame
	.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
	mov	x19, x1
	ldr	w8, [x1]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_3
LBB0_2:
	mov	x1, x19
	bl	_UI_SetLerpFrameAnimation
LBB0_3:
Lloh0:
	adrp	x8, _dp_realtime@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dp_realtime@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.4:
	ldp	x11, x10, [x19, #40]
	str	x11, [x19, #56]
	str	x9, [x19, #16]
	ldr	x11, [x19, #24]
	ldpsw	x13, x12, [x10]
	add	x9, x9, x13
	cmp	x8, x11
	csel	x9, x11, x9, lt
	str	x9, [x19, #8]
	sub	x11, x9, x11
	sdiv	x11, x11, x13
	cmp	w12, w11
	b.gt	LBB0_7
; %bb.5:
	ldr	w13, [x10, #8]
	cbz	w13, LBB0_16
; %bb.6:
	sub	w11, w11, w12
	sdiv	w14, w11, w13
	msub	w11, w14, w13, w11
	sub	w12, w12, w13
	add	w11, w12, w11
LBB0_7:
	ldr	x10, [x10, #16]
	add	x10, x10, w11, sxtw
	str	x10, [x19, #40]
	cmp	x8, x9
	b.gt	LBB0_9
LBB0_8:
	add	x10, x8, #200
	cmp	x9, x10
	b.le	LBB0_11
LBB0_9:
	str	x8, [x19, #8]
LBB0_10:
	mov	x9, x8
LBB0_11:
	ldr	x10, [x19, #16]
	cmp	x10, x8
	b.le	LBB0_13
; %bb.12:
	str	x8, [x19, #16]
	mov	x10, x8
LBB0_13:
	movi	d0, #0000000000000000
	subs	x9, x9, x10
	b.eq	LBB0_15
; %bb.14:
	sub	x8, x8, x10
	scvtf	s0, x8
	scvtf	s1, x9
	fdiv	s0, s0, s1
	fcvt	d0, s0
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
LBB0_15:
	str	d0, [x19, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x9, [x10, #16]
	add	x9, x12, x9
	str	x8, [x19, #8]
	sub	x9, x9, #1
	str	x9, [x19, #40]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dp_realtime,8,3                ; @dp_realtime
	.no_dead_strip	_UI_RunLerpFrame
.subsections_via_symbols
