	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function materialui_get_scroll
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_materialui_get_scroll:                 ## @materialui_get_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%edi, %edi
	callq	_menu_entries_get_selection_buf_ptr
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_menu_display_get_header_height
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	xorps	%xmm0, %xmm0
	testq	%r15, %r15
	je	LBB0_13
## %bb.1:
	testq	%r14, %r14
	je	LBB0_13
## %bb.2:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_video_driver_get_size
	movl	-44(%rbp), %eax
	addl	(%r15), %ebx
	subl	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	xorps	%xmm1, %xmm1
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	movss	%xmm1, -40(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movss	-36(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_file_list_get_userdata_at_offset
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movss	-40(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	(%rax), %xmm0
	movss	%xmm0, -40(%rbp)                ## 4-byte Spill
	jmp	LBB0_7
LBB0_3:
	movss	%xmm1, -40(%rbp)                ## 4-byte Spill
LBB0_8:
	mulss	LCPI0_0(%rip), %xmm0
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_file_list_get_userdata_at_offset
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm0
	movss	-40(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm2
	movss	-36(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_11
LBB0_9:
	movss	-36(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-40(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
LBB0_11:
	xorps	%xmm0, %xmm0
	ucomiss	%xmm2, %xmm1
	ja	LBB0_13
## %bb.12:
	subss	%xmm1, %xmm2
	movaps	%xmm2, %xmm0
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_materialui_get_scroll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function materialui_get_scroll
_materialui_get_scroll:                 ; @materialui_get_scroll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	mov	x21, x0
	mov	w0, #0
	bl	_menu_entries_get_selection_buf_ptr
	mov	x19, x0
	bl	_menu_navigation_get_selection
	mov	x20, x0
	bl	_menu_display_get_header_height
	str	xzr, [sp, #8]
	movi	d0, #0000000000000000
	cbz	x21, LBB0_11
; %bb.1:
	cbz	x19, LBB0_11
; %bb.2:
	mov	x22, x0
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_video_driver_get_size
	ldr	w8, [sp, #8]
	ldr	w9, [x21]
	add	w9, w22, w9
	sub	w8, w8, w9
	ucvtf	s9, w8
	fmov	s10, #0.50000000
	cbz	x20, LBB0_7
; %bb.3:
	mov	x21, #0
	movi	d8, #0000000000000000
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x20, x21
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_file_list_get_userdata_at_offset
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	s0, [x0]
	fadd	s8, s8, s0
	b	LBB0_4
LBB0_7:
	movi	d8, #0000000000000000
LBB0_8:
	fmul	s9, s9, s10
	mov	x0, x19
	mov	x1, x20
	bl	_file_list_get_userdata_at_offset
	cbz	x0, LBB0_10
; %bb.9:
	ldr	s0, [x0]
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	fadd	s8, s8, s0
LBB0_10:
	movi	d0, #0000000000000000
	fcmp	s8, s9
	fsub	s1, s8, s9
	fcsel	s0, s0, s1, mi
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_materialui_get_scroll
.subsections_via_symbols
