	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_sidebar_goto             ## -- Begin function ozone_sidebar_goto
	.p2align	4, 0x90
_ozone_sidebar_goto:                    ## @ozone_sidebar_goto
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-64(%rbp), %rsi
	xorl	%edi, %edi
	callq	_video_driver_get_size
	movq	%rbx, -48(%rbp)
	movl	(%rbx), %ecx
	movq	%rbx, %rax
	cmpl	%r14d, %ecx
	je	LBB0_2
## %bb.1:
	movl	%ecx, 4(%rbx)
	movl	%r14d, (%rbx)
	movl	48(%rbx), %eax
	movl	%eax, 52(%rbx)
	leaq	-48(%rbp), %rdi
	callq	_menu_animation_kill_by_tag
	movq	-48(%rbp), %rax
LBB0_2:
	leaq	24(%rbx), %rcx
	movl	$0, 24(%rbx)
	movq	$0, -72(%rbp)
	movq	_ANIMATION_CURSOR_DURATION@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	%rdx, -80(%rbp)
	movq	_EASING_OUT_QUAD@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%rdx, -88(%rbp)
	movq	%rcx, -120(%rbp)
	movq	%rax, -96(%rbp)
	movl	$1065353216, -112(%rbp)         ## imm = 0x3F800000
	movq	$0, -104(%rbp)
	leaq	-120(%rbp), %rdi
	callq	_menu_animation_push
	movq	%rbx, %rdi
	callq	_ozone_get_selected_sidebar_y_position
	movl	28(%rbx), %eax
	movl	32(%rbx), %ecx
	leaq	28(%rbx), %r13
	addl	%ecx, %eax
	incl	%eax
	cvtsi2ss	%eax, %xmm1
	addss	%xmm0, %xmm1
	movl	36(%rbx), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	movl	-64(%rbp), %eax
	notl	%ecx
	addl	%eax, %ecx
	subl	40(%rbx), %ecx
	addss	%xmm1, %xmm0
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rcx, %xmm0
	movss	%xmm0, -60(%rbp)                ## 4-byte Spill
	shrl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_ozone_get_sidebar_height
	movss	-56(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	ucomiss	%xmm3, %xmm2
	jne	LBB0_4
	jnp	LBB0_3
LBB0_4:
	xorps	%xmm1, %xmm1
	cvtsi2ssl	(%r13), %xmm1
	subss	%xmm2, %xmm3
	addss	%xmm1, %xmm3
	jmp	LBB0_5
LBB0_3:
	xorps	%xmm3, %xmm3
LBB0_5:
	movaps	%xmm0, %xmm1
	addss	%xmm3, %xmm1
	movss	-60(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_7
## %bb.6:
	movaps	%xmm2, %xmm1
	subss	%xmm0, %xmm1
	subss	44(%rbx), %xmm1
	movaps	%xmm1, %xmm3
LBB0_7:
	xorps	%xmm0, %xmm0
	minss	%xmm3, %xmm0
	movq	$0, -72(%rbp)
	movq	(%r15), %rax
	movq	%rax, -80(%rbp)
	movq	(%r12), %rax
	movq	%rax, -88(%rbp)
	movq	%r13, -120(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -96(%rbp)
	movss	%xmm0, -112(%rbp)
	movq	$0, -104(%rbp)
	leaq	-120(%rbp), %rdi
	callq	_menu_animation_push
	cmpl	%r14d, 8(%rbx)
	jae	LBB0_9
## %bb.8:
	movq	_MENU_ENUM_LABEL_HORIZONTAL_MENU@GOTPCREL(%rip), %rcx
	movq	_MENU_SETTING_HORIZONTAL_MENU@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ozone_system_tabs_idx@GOTPCREL(%rip), %rcx
	movq	16(%rbx), %rax
	movl	%r14d, %edx
	movq	(%rax,%rdx,8), %rax
	shlq	$2, %rax
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	_ozone_system_tabs_type@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rax
LBB0_10:
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ozone_change_tab
	addq	$88, %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
	.comm	_MENU_ENUM_LABEL_HORIZONTAL_MENU,4,2 ## @MENU_ENUM_LABEL_HORIZONTAL_MENU
	.comm	_MENU_SETTING_HORIZONTAL_MENU,4,2 ## @MENU_SETTING_HORIZONTAL_MENU
	.comm	_ozone_system_tabs_idx,8,3      ## @ozone_system_tabs_idx
	.comm	_ozone_system_tabs_type,8,3     ## @ozone_system_tabs_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_sidebar_goto             ; -- Begin function ozone_sidebar_goto
	.p2align	2
_ozone_sidebar_goto:                    ; @ozone_sidebar_goto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d11, d10, [sp, #80]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #76
	mov	x0, #0
	bl	_video_driver_get_size
	str	x19, [sp, #8]
	ldr	w9, [x19]
	mov	x8, x19
	cmp	w9, w20
	b.eq	LBB0_2
; %bb.1:
	stp	w20, w9, [x19]
	ldr	w8, [x19, #48]
	str	w8, [x19, #52]
	add	x0, sp, #8
	bl	_menu_animation_kill_by_tag
	ldr	x8, [sp, #8]
LBB0_2:
	mov	x9, x19
	str	wzr, [x9, #24]!
Lloh0:
	adrp	x21, _ANIMATION_CURSOR_DURATION@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ANIMATION_CURSOR_DURATION@GOTPAGEOFF]
	str	xzr, [sp, #64]
	ldr	x10, [x21]
Lloh2:
	adrp	x22, _EASING_OUT_QUAD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EASING_OUT_QUAD@GOTPAGEOFF]
	ldr	x11, [x22]
	stp	x11, x10, [sp, #48]
	str	x9, [sp, #16]
	mov	w9, #1065353216
	str	w9, [sp, #24]
	stp	xzr, x8, [sp, #32]
	add	x0, sp, #16
	bl	_menu_animation_push
	mov	x0, x19
	bl	_ozone_get_selected_sidebar_y_position
	mov	x23, x19
	ldr	w8, [x23, #28]!
	ldp	w9, w10, [x19, #32]
	add	w8, w9, w8
	add	w8, w8, #1
	scvtf	s1, w8
	cmp	w10, #0
	cinc	w8, w10, lt
	asr	w8, w8, #1
	scvtf	s2, w8
	fadd	s0, s0, s1
	fadd	s9, s0, s2
	ldr	w8, [sp, #76]
	ldr	w10, [x19, #40]
	mvn	w9, w9
	add	w9, w8, w9
	sub	w9, w9, w10
	ucvtf	s8, w9
	lsr	w8, w8, #1
	ucvtf	s10, w8
	mov	x0, x19
	bl	_ozone_get_sidebar_height
	fcmp	s9, s10
	b.eq	LBB0_4
; %bb.3:
	ldr	s1, [x23]
	scvtf	s1, s1
	fsub	s2, s10, s9
	fadd	s1, s2, s1
	b	LBB0_5
LBB0_4:
	movi	d1, #0000000000000000
LBB0_5:
	fadd	s2, s0, s1
	fcmp	s2, s8
	b.pl	LBB0_7
; %bb.6:
	fsub	s0, s8, s0
	ldr	s1, [x19, #44]
	fsub	s1, s0, s1
LBB0_7:
	movi	d0, #0000000000000000
	fmin	s0, s1, s0
	ldr	x8, [x21]
	ldr	x9, [x22]
	stp	x8, xzr, [sp, #56]
	str	x23, [sp, #16]
	ldr	x8, [sp, #8]
	str	s0, [sp, #24]
	stp	x8, x9, [sp, #40]
	str	xzr, [sp, #32]
	add	x0, sp, #16
	bl	_menu_animation_push
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.hs	LBB0_9
; %bb.8:
Lloh4:
	adrp	x8, _MENU_ENUM_LABEL_HORIZONTAL_MENU@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MENU_ENUM_LABEL_HORIZONTAL_MENU@GOTPAGEOFF]
Lloh6:
	adrp	x9, _MENU_SETTING_HORIZONTAL_MENU@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MENU_SETTING_HORIZONTAL_MENU@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _ozone_system_tabs_idx@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ozone_system_tabs_idx@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, w20, uxtw #3]
	lsl	x9, x9, #2
	add	x8, x8, x9
Lloh11:
	adrp	x10, _ozone_system_tabs_type@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ozone_system_tabs_type@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x9, x10, x9
LBB0_10:
	ldr	w1, [x8]
	ldr	w2, [x9]
	mov	x0, x19
	bl	_ozone_change_tab
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ANIMATION_CURSOR_DURATION,8,3  ; @ANIMATION_CURSOR_DURATION
	.comm	_EASING_OUT_QUAD,8,3            ; @EASING_OUT_QUAD
	.comm	_MENU_ENUM_LABEL_HORIZONTAL_MENU,4,2 ; @MENU_ENUM_LABEL_HORIZONTAL_MENU
	.comm	_MENU_SETTING_HORIZONTAL_MENU,4,2 ; @MENU_SETTING_HORIZONTAL_MENU
	.comm	_ozone_system_tabs_idx,8,3      ; @ozone_system_tabs_idx
	.comm	_ozone_system_tabs_type,8,3     ; @ozone_system_tabs_type
.subsections_via_symbols
