	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_pointer_up
_xmb_pointer_up:                        ## @xmb_pointer_up
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_menu_entries_get_size
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	-72(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	callq	_video_driver_get_size
	addl	$-128, %r13d
	cmpl	$6, %r13d
	ja	LBB0_45
## %bb.2:
	cvttss2si	(%r12), %rax
	movss	4(%r12), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	cvttss2si	%xmm0, %rdx
	movl	-72(%rbp), %ecx
	cvtsi2ss	%rcx, %xmm1
	subss	%xmm0, %xmm1
	cvttss2si	%xmm1, %rcx
	movq	16(%rbp), %rdi
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%r13,4), %rbx
	addq	%rsi, %rbx
	jmpq	*%rbx
LBB0_3:
	cmpl	%r14d, %edx
	jbe	LBB0_12
## %bb.4:
	cmpl	%r15d, %eax
	jbe	LBB0_23
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_menu_input_dialog_start_search
	cmpl	$1, %eax
	sbbl	%ebx, %ebx
	jmp	LBB0_45
LBB0_6:
	movl	$-1, %ebx
	jmp	LBB0_45
LBB0_7:
	cmpl	%r14d, %edx
	movl	$0, %ebx
	jbe	LBB0_25
## %bb.8:
	movq	_MENU_ACTION_SCROLL_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_9:
	cmpl	%r15d, %eax
	movl	$0, %ebx
	jae	LBB0_45
## %bb.10:
	cmpl	$1, 8(%r12)
	jne	LBB0_16
LBB0_40:
	movq	_MENU_ACTION_LEFT@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_12:
	cmpl	%r14d, %ecx
	jae	LBB0_29
## %bb.13:
	movq	_MENU_ACTION_SELECT@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_14:
	cmpl	%r15d, %eax
	movl	$0, %ebx
	jae	LBB0_45
## %bb.15:
	cmpl	$1, 8(%r12)
	jne	LBB0_40
LBB0_16:
	movq	_MENU_ACTION_RIGHT@GOTPCREL(%rip), %rax
LBB0_41:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rax), %edx
	callq	_menu_entry_action
	jmp	LBB0_45
LBB0_17:
	cmpl	%r14d, %edx
	movl	$0, %ebx
	jbe	LBB0_34
## %bb.18:
	movq	_MENU_ACTION_SCROLL_UP@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_menu_entry_action
	jmp	LBB0_45
LBB0_20:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	movl	$0, %ebx
	jb	LBB0_45
## %bb.21:
	movl	%ecx, %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rax, %rsi
	jne	LBB0_45
## %bb.22:
	movq	_MENU_ACTION_START@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_23:
	movq	_MENU_ACTION_CANCEL@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_25:
	cmpl	%r14d, %ecx
	jbe	LBB0_45
## %bb.26:
	movl	$0, -56(%rbp)
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, -64(%rbp)
	movl	-68(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_28
## %bb.27:
	leaq	-56(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%r12, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%edx, %r14d
	callq	_xmb_calculate_visible_range
	movl	-64(%rbp), %edi
	cmpl	%r14d, %edi
	jb	LBB0_39
LBB0_28:
	movq	_MENU_NAVIGATION_CTL_SET_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	LBB0_44
LBB0_29:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	movl	$0, %ebx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jb	LBB0_45
## %bb.30:
	movl	%ecx, %eax
	cmpq	%rax, %rsi
	jne	LBB0_42
## %bb.31:
	movq	_MENU_ACTION_SELECT@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %edx
LBB0_33:
	callq	_menu_entry_action
	movl	%eax, %ebx
LBB0_45:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	cmpl	%r14d, %ecx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jbe	LBB0_45
## %bb.35:
	leal	-1(%r14), %ebx
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	leal	2(%rbx), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_xmb_item_y
	addss	(%r12), %xmm0
	movl	-68(%rbp), %eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
	incl	%ebx
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_36
## %bb.37:
	movl	%ebx, %ecx
	xorl	%ebx, %ebx
	subq	%r14, %rcx
	movl	$0, %eax
	cmovaeq	%rcx, %rax
	cmpq	%rax, %r14
	jbe	LBB0_43
## %bb.38:
	xorl	%ebx, %ebx
	subq	%rax, %r14
	movl	$0, %edi
	cmovaeq	%r14, %rdi
LBB0_39:
	callq	_menu_navigation_set_selection
	movl	$1, %edi
	callq	_menu_driver_navigation_set
	jmp	LBB0_45
LBB0_42:
	movq	%rax, %rdi
	callq	_menu_navigation_set_selection
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_menu_driver_navigation_set
	jmp	LBB0_45
LBB0_43:
	movl	$0, -56(%rbp)
	movq	_MENU_NAVIGATION_CTL_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
LBB0_44:
	callq	_menu_driver_ctl
	jmp	LBB0_45
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_3
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_MENU_ACTION_CANCEL,4,2         ## @MENU_ACTION_CANCEL
	.comm	_MENU_ACTION_SELECT,4,2         ## @MENU_ACTION_SELECT
	.comm	_MENU_ACTION_START,4,2          ## @MENU_ACTION_START
	.comm	_MENU_ACTION_RIGHT,4,2          ## @MENU_ACTION_RIGHT
	.comm	_MENU_ACTION_LEFT,4,2           ## @MENU_ACTION_LEFT
	.comm	_MENU_ACTION_SCROLL_DOWN,4,2    ## @MENU_ACTION_SCROLL_DOWN
	.comm	_MENU_NAVIGATION_CTL_SET_LAST,4,2 ## @MENU_NAVIGATION_CTL_SET_LAST
	.comm	_MENU_ACTION_SCROLL_UP,4,2      ## @MENU_ACTION_SCROLL_UP
	.comm	_MENU_NAVIGATION_CTL_CLEAR,4,2  ## @MENU_NAVIGATION_CTL_CLEAR
	.no_dead_strip	_xmb_pointer_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_pointer_up
_xmb_pointer_up:                        ; @xmb_pointer_up
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x6
	mov	x26, x4
	mov	x23, x3
	mov	x25, x2
	mov	x24, x1
	mov	x21, x0
	bl	_menu_navigation_get_selection
	mov	x19, x0
	bl	_menu_entries_get_size
	cbz	x21, LBB0_6
; %bb.1:
	mov	x22, x0
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_video_driver_get_size
	sub	w10, w26, #128
	cmp	w10, #6
	b.hi	LBB0_17
; %bb.2:
	ldp	s0, s1, [x21]
	fcvtzu	w9, s0
	fcvtzu	w11, s1
	ldr	s0, [sp, #12]
	ucvtf	s0, s0
	fsub	s0, s0, s1
	fcvtzu	w8, s0
Lloh0:
	adrp	x12, lJTI0_0@PAGE
Lloh1:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_3
	ldrb	w14, [x12, x10]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_3:
	cmp	w11, w24
	b.ls	LBB0_21
; %bb.4:
	cmp	w9, w25
	b.ls	LBB0_23
; %bb.5:
	bl	_menu_input_dialog_start_search
	cmp	w0, #0
	csetm	w0, eq
	b	LBB0_25
LBB0_6:
	mov	w0, #-1
	b	LBB0_25
LBB0_7:
	cmp	w11, w24
	b.ls	LBB0_26
; %bb.8:
Lloh2:
	adrp	x8, _MENU_ACTION_SCROLL_DOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MENU_ACTION_SCROLL_DOWN@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
	cmp	w9, w25
	b.hs	LBB0_17
; %bb.10:
Lloh4:
	adrp	x8, _MENU_ACTION_LEFT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MENU_ACTION_LEFT@GOTPAGEOFF]
	ldr	w9, [x21, #8]
Lloh6:
	adrp	x10, _MENU_ACTION_RIGHT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MENU_ACTION_RIGHT@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	cmp	w9, w25
	b.hs	LBB0_17
; %bb.12:
Lloh8:
	adrp	x8, _MENU_ACTION_RIGHT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MENU_ACTION_RIGHT@GOTPAGEOFF]
	ldr	w9, [x21, #8]
Lloh10:
	adrp	x10, _MENU_ACTION_LEFT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MENU_ACTION_LEFT@GOTPAGEOFF]
LBB0_13:
	cmp	w9, #1
	csel	x8, x8, x10, eq
	b	LBB0_16
LBB0_14:
	cmp	w11, w24
	b.ls	LBB0_30
; %bb.15:
Lloh12:
	adrp	x8, _MENU_ACTION_SCROLL_UP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MENU_ACTION_SCROLL_UP@GOTPAGEOFF]
LBB0_16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_menu_entry_action
LBB0_17:
	mov	w0, #0
	b	LBB0_25
LBB0_18:
	mov	w0, #0
	sub	w8, w22, #1
	cmp	w8, w23
	b.lo	LBB0_25
; %bb.19:
	mov	w8, w23
	cmp	x19, x8
	b.ne	LBB0_25
; %bb.20:
Lloh14:
	adrp	x8, _MENU_ACTION_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MENU_ACTION_START@GOTPAGEOFF]
	b	LBB0_24
LBB0_21:
	cmp	w8, w24
	b.hs	LBB0_36
LBB0_22:
Lloh16:
	adrp	x8, _MENU_ACTION_SELECT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MENU_ACTION_SELECT@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh18:
	adrp	x8, _MENU_ACTION_CANCEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MENU_ACTION_CANCEL@GOTPAGEOFF]
LBB0_24:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_menu_entry_action
LBB0_25:
	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
	add	sp, sp, #96
	ret
LBB0_26:
	cmp	w8, w24
	b.ls	LBB0_17
; %bb.27:
	stp	w22, wzr, [sp]
	ldr	w1, [sp, #8]
	cbz	w1, LBB0_29
; %bb.28:
	add	x4, sp, #4
	mov	x5, sp
	mov	x0, x21
	mov	x2, x22
	mov	x3, x19
	bl	_xmb_calculate_visible_range
	ldr	w0, [sp]
	cmp	w0, w22
	b.lo	LBB0_35
LBB0_29:
Lloh20:
	adrp	x8, _MENU_NAVIGATION_CTL_SET_LAST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MENU_NAVIGATION_CTL_SET_LAST@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, #0
	b	LBB0_40
LBB0_30:
	cmp	w8, w24
	b.ls	LBB0_17
; %bb.31:
	sub	w20, w19, #1
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	add	w1, w20, #2
	mov	x0, x21
	mov	x2, x19
	bl	_xmb_item_y
	ldr	s1, [x21]
	fadd	s0, s0, s1
	ldr	s1, [sp, #8]
	ucvtf	s1, s1
	add	w20, w20, #1
	fcmp	s0, s1
	b.le	LBB0_32
; %bb.33:
	subs	x8, x20, x19
	csel	x8, xzr, x8, lo
	subs	x8, x19, x8
	b.ls	LBB0_39
; %bb.34:
	csel	x0, xzr, x8, lo
LBB0_35:
	bl	_menu_navigation_set_selection
	mov	w0, #1
	bl	_menu_driver_navigation_set
	b	LBB0_17
LBB0_36:
	sub	w8, w22, #1
	cmp	w8, w23
	b.lo	LBB0_17
; %bb.37:
	mov	w0, w23
	cmp	x19, x0
	b.eq	LBB0_22
; %bb.38:
	bl	_menu_navigation_set_selection
	mov	w0, #0
	bl	_menu_driver_navigation_set
	b	LBB0_17
LBB0_39:
	str	wzr, [sp, #4]
Lloh23:
	adrp	x8, _MENU_NAVIGATION_CTL_CLEAR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MENU_NAVIGATION_CTL_CLEAR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, sp, #4
LBB0_40:
	bl	_menu_driver_ctl
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
                                        ; -- End function
	.comm	_MENU_ACTION_CANCEL,4,2         ; @MENU_ACTION_CANCEL
	.comm	_MENU_ACTION_SELECT,4,2         ; @MENU_ACTION_SELECT
	.comm	_MENU_ACTION_START,4,2          ; @MENU_ACTION_START
	.comm	_MENU_ACTION_RIGHT,4,2          ; @MENU_ACTION_RIGHT
	.comm	_MENU_ACTION_LEFT,4,2           ; @MENU_ACTION_LEFT
	.comm	_MENU_ACTION_SCROLL_DOWN,4,2    ; @MENU_ACTION_SCROLL_DOWN
	.comm	_MENU_NAVIGATION_CTL_SET_LAST,4,2 ; @MENU_NAVIGATION_CTL_SET_LAST
	.comm	_MENU_ACTION_SCROLL_UP,4,2      ; @MENU_ACTION_SCROLL_UP
	.comm	_MENU_NAVIGATION_CTL_CLEAR,4,2  ; @MENU_NAVIGATION_CTL_CLEAR
	.no_dead_strip	_xmb_pointer_up
.subsections_via_symbols
