	.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_render_selection_highlight
LCPI0_0:
	.long	0x3fc00000                      ## float 1.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_materialui_render_selection_highlight: ## @materialui_render_selection_highlight
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rbp), %r14
	movq	%r14, %rsi
	callq	_materialui_entry_onscreen
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	%r15d, %r12d
	subl	16(%rbx), %r12d
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	movl	4(%rbx), %ecx
	addl	%eax, %r13d
	subl	%ecx, %r13d
	subl	%eax, %ecx
	leal	(%r12,%rcx,2), %eax
	xorl	%r12d, %r12d
	testl	%eax, %eax
	cmovgl	%eax, %r12d
LBB0_3:
	xorl	%edi, %edi
	callq	_menu_entries_get_selection_buf_ptr
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_file_list_get_userdata_at_offset
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cvtsi2ss	%rcx, %xmm0
	subss	8(%rbx), %xmm0
	addss	(%rax), %xmm0
	cvttss2si	%xmm0, %edx
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rax), %xmm0
	addss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r12d, %ecx
	movl	%r15d, %r9d
	pushq	24(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_menu_display_draw_quad
	addq	$40, %rsp
	jmp	LBB0_7
LBB0_6:
	addq	$24, %rsp
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_materialui_render_selection_highlight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function materialui_render_selection_highlight
_materialui_render_selection_highlight: ; @materialui_render_selection_highlight
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x27, x6
	mov	x22, x5
	mov	x24, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x25, x0
	mov	x1, x6
	bl	_materialui_entry_onscreen
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x25, #16]
	sub	w26, w21, w8
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	w9, [x25, #4]
	add	w10, w8, w22
	sub	w22, w10, w9
	sub	w8, w9, w8
	add	w8, w26, w8, lsl #1
	cmp	w8, #0
	csel	w26, w8, wzr, gt
LBB0_3:
	mov	w0, #0
	bl	_menu_entries_get_selection_buf_ptr
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x27
	bl	_file_list_get_userdata_at_offset
	cbz	x0, LBB0_6
; %bb.5:
	ucvtf	s0, w24
	ldr	s1, [x25, #8]
	fsub	s0, s0, s1
	ldr	s1, [x0]
	fadd	s0, s0, s1
	fcvtzs	w2, s0
	ldr	x8, [x0, #8]
	scvtf	s0, x8
	fmov	s1, #1.50000000
	fadd	s0, s0, s1
	fcvtzs	w4, s0
	mov	x0, x23
	mov	x1, x22
	mov	x3, x26
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_menu_display_draw_quad
LBB0_6:
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_materialui_render_selection_highlight
.subsections_via_symbols
