	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ozone_compute_entries_position
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ozone_compute_entries_position
	.p2align	4, 0x90
_ozone_compute_entries_position:        ## @ozone_compute_entries_position
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%esi, %esi
	callq	_ozone_get_entries_padding
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	96(%rbx), %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_font_driver_get_line_height
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_MENU_ENTRIES_CTL_START_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_menu_entries_ctl
	xorl	%eax, %eax
	callq	_menu_entries_get_size
	movq	%rax, %r13
	xorl	%edi, %edi
	callq	_menu_entries_get_selection_buf_ptr
	movq	%rax, %r12
	leaq	-76(%rbp), %rdi
	leaq	-100(%rbp), %rsi
	callq	_video_driver_get_size
	movq	$0, 32(%rbx)
	movq	$0, -56(%rbp)
	testq	%r13, %r13
	je	LBB0_16
## %bb.1:
	leaq	-128(%rbp), %r15
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movq	%rax, 16(%r14)
	addq	8(%r14), %rax
	movq	%rax, 32(%rbx)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax
	incq	%rax
	movq	%rax, -56(%rbp)
	cmpq	%r13, %rax
	jae	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -64(%rbp)
	movq	%r15, %rdi
	callq	_menu_entry_init
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -128(%rbp)
	movl	-56(%rbp), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_menu_entry_get
	cmpq	$0, 88(%rbx)
	movl	$0, %ecx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, %ecx
	cmpq	$1, %r13
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-112(%rbp), %edx
	movl	-108(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_ozone_entries_icon_get_texture
	movq	8(%rbx), %rdx
	movq	_OZONE_ENTRIES_ICONS_TEXTURE_CORE_INFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rdx,%rsi,8), %rax
	sete	%cl
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, (%rbx)
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_file_list_get_userdata_at_offset
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	72(%rbx), %rax
	movq	%rax, 8(%r14)
	movl	$0, (%r14)
	movq	%r15, %rdi
	leaq	-64(%rbp), %rsi
	callq	_menu_entry_get_sublabel
	movq	-64(%rbp), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_MENU_SUBLABEL_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movb	$0, (%r12)
	movq	64(%rbx), %rax
	movq	8(%r14), %rcx
	leaq	40(%rax,%rcx), %rax
	movq	%rax, 8(%r14)
	movl	-76(%rbp), %eax
	movl	40(%rbx), %ecx
	addl	-72(%rbp), %ecx                 ## 4-byte Folded Reload
	addl	%ecx, %ecx
	subl	%ecx, %eax
	cmpl	$1, 16(%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	56(%rbx), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 80(%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	48(%rbx), %eax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsi
	cltd
	idivl	20(%rbx)
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_word_wrap
	movq	%r12, %rdi
	callq	_ozone_count_lines
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$2, %eax
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	decl	%eax
	imull	-68(%rbp), %eax                 ## 4-byte Folded Reload
	addq	%rax, 8(%r14)
	movl	$1, (%r14)
	jmp	LBB0_13
LBB0_16:
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	movq	%rax, 24(%rbx)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_file_list_get_userdata_at_offset
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_ozone_update_scroll
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_ENTRIES_CTL_START_GET,4,2 ## @MENU_ENTRIES_CTL_START_GET
	.comm	_OZONE_ENTRIES_ICONS_TEXTURE_CORE_INFO,8,3 ## @OZONE_ENTRIES_ICONS_TEXTURE_CORE_INFO
	.comm	_MENU_SUBLABEL_MAX_LENGTH,4,2   ## @MENU_SUBLABEL_MAX_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_compute_entries_position ; -- Begin function ozone_compute_entries_position
	.p2align	2
_ozone_compute_entries_position:        ; @ozone_compute_entries_position
	.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
	sub	sp, sp, #64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w1, #0
	bl	_ozone_get_entries_padding
	mov	x20, x0
	ldr	w0, [x19, #96]
	fmov	s0, #1.00000000
	bl	_font_driver_get_line_height
	mov	x21, x0
Lloh3:
	adrp	x8, _MENU_ENTRIES_CTL_START_GET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_START_GET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	sub	x1, x29, #104
	bl	_menu_entries_ctl
	bl	_menu_entries_get_size
	mov	x23, x0
	mov	w0, #0
	bl	_menu_entries_get_selection_buf_ptr
	mov	x22, x0
	sub	x0, x29, #96
	sub	x1, x29, #92
	bl	_video_driver_get_size
	str	xzr, [x19, #32]
	stur	xzr, [x29, #-104]
	cbz	x23, LBB0_15
; %bb.1:
Lloh6:
	adrp	x27, _MENU_SUBLABEL_MAX_LENGTH@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MENU_SUBLABEL_MAX_LENGTH@GOTPAGEOFF]
Lloh8:
	adrp	x28, _OZONE_ENTRIES_ICONS_TEXTURE_CORE_INFO@GOTPAGE
Lloh9:
	ldr	x28, [x28, _OZONE_ENTRIES_ICONS_TEXTURE_CORE_INFO@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	sp, x26
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #32]
	str	x8, [x24, #16]
	ldr	x9, [x24, #8]
	add	x8, x9, x8
	str	x8, [x19, #32]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-104]
	add	x8, x8, #1
	stur	x8, [x29, #-104]
	cmp	x8, x23
	b.hs	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stur	xzr, [x29, #-136]
	sub	x0, x29, #128
	bl	_menu_entry_init
	stp	xzr, xzr, [x29, #-128]
	ldur	w2, [x29, #-104]
	sub	x0, x29, #128
	mov	w1, #0
	mov	x3, #0
	mov	w4, #1
	bl	_menu_entry_get
	mov	w8, #0
	ldr	x9, [x19, #88]
	cmp	x9, #0
	ccmp	x23, #1, #0, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w2, w1, [x29, #-112]
	mov	x0, x19
	mov	w3, #0
	bl	_ozone_entries_icon_get_texture
	ldr	x8, [x19, #8]
	ldr	x9, [x28]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x0, x8
	cset	w8, eq
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x19]
	ldur	x1, [x29, #-104]
	mov	x0, x22
	bl	_file_list_get_userdata_at_offset
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldr	x8, [x19, #72]
	str	x8, [x0, #8]
	str	wzr, [x0]
	sub	x0, x29, #128
	sub	x1, x29, #136
	bl	_menu_entry_get_sublabel
	ldur	x0, [x29, #-136]
	bl	_string_is_empty
	cbnz	w0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, sp
	ldr	w8, [x27]
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	strb	wzr, [x25]
	ldr	x8, [x19, #64]
	ldr	x9, [x24, #8]
	add	x8, x8, x9
	add	x8, x8, #40
	str	x8, [x24, #8]
	ldur	w8, [x29, #-96]
	ldr	w9, [x19, #40]
	add	w9, w9, w20
	sub	w8, w8, w9, lsl #1
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19, #56]
	sub	w8, w8, w9
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #80]
	cbz	x9, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19, #48]
	sub	w8, w8, w9
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x1, [x29, #-136]
	ldr	w9, [x19, #20]
	sdiv	w2, w8, w9
	mov	x0, x25
	mov	w3, #0
	mov	w4, #0
	bl	_word_wrap
	mov	x0, x25
	bl	_ozone_count_lines
	cmp	w0, #2
	b.lo	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w0, #1
	mul	w8, w8, w21
	ldr	x9, [x24, #8]
	add	x8, x9, x8
	str	x8, [x24, #8]
	mov	w8, #1
	str	w8, [x24]
	b	LBB0_2
LBB0_15:
	bl	_menu_navigation_get_selection
	mov	x1, x0
	str	x0, [x19, #24]
	mov	x0, x22
	bl	_file_list_get_userdata_at_offset
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_ozone_update_scroll
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #80
	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
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_ENTRIES_CTL_START_GET,4,2 ; @MENU_ENTRIES_CTL_START_GET
	.comm	_OZONE_ENTRIES_ICONS_TEXTURE_CORE_INFO,8,3 ; @OZONE_ENTRIES_ICONS_TEXTURE_CORE_INFO
	.comm	_MENU_SUBLABEL_MAX_LENGTH,4,2   ; @MENU_SUBLABEL_MAX_LENGTH
.subsections_via_symbols
