	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_update_scroll            ## -- Begin function ozone_update_scroll
	.p2align	4, 0x90
_ozone_update_scroll:                   ## @ozone_update_scroll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_menu_entries_get_selection_buf_ptr
	movq	%rax, %r14
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	callq	_video_driver_get_size
	movl	20(%rbx), %edx
	movl	24(%rbx), %eax
	leal	(%rax,%rdx), %esi
	movl	4(%rbx), %r8d
	addl	%r8d, %esi
	addl	(%r12), %esi
	movl	4(%r12), %ecx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	addl	%esi, %edi
	cvtsi2ss	%edi, %xmm0
	movl	-48(%rbp), %ecx
	notl	%edx
	addl	%ecx, %edx
	subl	28(%rbx), %edx
	cvtsi2ss	%rdx, %xmm1
	shrl	%ecx
	cvtsi2ss	%ecx, %xmm2
	subss	%xmm0, %xmm2
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r8d, %xmm0
	addss	%xmm2, %xmm0
	movss	(%rbx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm3
	subss	%xmm2, %xmm3
	addss	%xmm0, %xmm2
	addl	%eax, %eax
	cvtsi2ss	%eax, %xmm4
	subss	%xmm4, %xmm3
	cmpltss	%xmm1, %xmm2
	movaps	%xmm2, %xmm1
	andnps	%xmm0, %xmm1
	andps	%xmm3, %xmm2
	orps	%xmm1, %xmm2
	xorps	%xmm0, %xmm0
	minss	%xmm2, %xmm0
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	leaq	4(%rbx), %r15
	movl	$0, 8(%rbx)
	addq	$8, %rbx
	movq	$0, -56(%rbp)
	movq	_ANIMATION_CURSOR_DURATION@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -64(%rbp)
	movq	_EASING_OUT_QUAD@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movq	%rbx, -104(%rbp)
	movq	%r14, -80(%rbp)
	movl	$1065353216, -96(%rbp)          ## imm = 0x3F800000
	movq	$0, -88(%rbp)
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_menu_animation_push
	movq	$0, -56(%rbp)
	movq	(%r12), %rax
	movq	%rax, -64(%rbp)
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movq	%r15, -104(%rbp)
	movq	%r14, -80(%rbp)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	%rbx, %rdi
	callq	_menu_animation_push
	jmp	LBB0_3
LBB0_2:
	movl	12(%rbx), %eax
	movl	%eax, 16(%rbx)
	cvttss2si	%xmm0, %eax
	movl	%eax, 4(%rbx)
LBB0_3:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANIMATION_CURSOR_DURATION,8,3  ## @ANIMATION_CURSOR_DURATION
	.comm	_EASING_OUT_QUAD,8,3            ## @EASING_OUT_QUAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_update_scroll            ; -- Begin function ozone_update_scroll
	.p2align	2
_ozone_update_scroll:                   ; @ozone_update_scroll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	w0, #0
	bl	_menu_entries_get_selection_buf_ptr
	mov	x19, x0
	add	x1, sp, #4
	mov	x0, #0
	bl	_video_driver_get_size
	mov	x23, x20
	ldr	w8, [x23, #4]!
	ldp	w9, w10, [x20, #20]
	add	w11, w10, w9
	add	w11, w11, w8
	ldp	w12, w13, [x21]
	add	w11, w11, w12
	cmp	w13, #0
	cinc	w12, w13, lt
	add	w11, w11, w12, asr #1
	scvtf	s0, w11
	ldr	w11, [sp, #4]
	mvn	w9, w9
	ldr	w12, [x20, #28]
	add	w9, w11, w9
	sub	w9, w9, w12
	ucvtf	s1, w9
	lsr	w9, w11, #1
	ucvtf	s2, w9
	scvtf	s3, w8
	fsub	s0, s2, s0
	fadd	s0, s0, s3
	ldr	s2, [x20]
	fadd	s3, s2, s0
	lsl	w8, w10, #1
	scvtf	s4, w8
	fsub	s2, s1, s2
	fsub	s2, s2, s4
	fcmp	s3, s1
	fcsel	s0, s2, s0, mi
	movi	d1, #0000000000000000
	fmin	s8, s0, s1
	cbz	w22, LBB0_2
; %bb.1:
	str	wzr, [x20, #8]!
Lloh0:
	adrp	x21, _ANIMATION_CURSOR_DURATION@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ANIMATION_CURSOR_DURATION@GOTPAGEOFF]
	str	xzr, [sp, #56]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _EASING_OUT_QUAD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EASING_OUT_QUAD@GOTPAGEOFF]
	ldr	x9, [x22]
	stp	x9, x8, [sp, #40]
	str	x20, [sp, #8]
	mov	w8, #1065353216
	str	w8, [sp, #16]
	stp	xzr, x19, [sp, #24]
	add	x0, sp, #8
	bl	_menu_animation_push
	ldr	x8, [x21]
	ldr	x9, [x22]
	stp	x8, xzr, [sp, #48]
	stp	x19, x9, [sp, #32]
	str	x23, [sp, #8]
	str	s8, [sp, #16]
	str	xzr, [sp, #24]
	add	x0, sp, #8
	bl	_menu_animation_push
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20, #12]
	str	w8, [x20, #16]
	fcvtzs	w8, s8
	str	w8, [x20, #4]
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ANIMATION_CURSOR_DURATION,8,3  ; @ANIMATION_CURSOR_DURATION
	.comm	_EASING_OUT_QUAD,8,3            ; @EASING_OUT_QUAD
.subsections_via_symbols
