	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgui_pointer_up
_rgui_pointer_up:                       ## @rgui_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	16(%rbp), %rbx
	xorl	%eax, %eax
	callq	_menu_display_get_header_height
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	%rax, %rsi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	cmpl	$0, 16(%r14)
	je	LBB0_7
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.3:
	movq	_fs_thumbnail@GOTPCREL(%rip), %rcx
	movb	$1, %al
	cmpq	$0, (%rcx)
	jne	LBB0_8
## %bb.4:
	cmpq	$0, (%r14)
	setg	%al
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	leal	-128(%r15), %ecx
	cmpl	$2, %ecx
	jae	LBB0_12
## %bb.9:
	testb	%al, %al
	je	LBB0_16
## %bb.10:
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jbe	LBB0_20
## %bb.11:
	movq	%r14, %rdi
	callq	_rgui_update_thumbnail_image
	jmp	LBB0_23
LBB0_5:
	movl	$-1, %r13d
	jmp	LBB0_23
LBB0_12:
	cmpl	$130, %r15d
	jne	LBB0_23
## %bb.13:
	movq	%rsi, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_menu_entries_get_size
	decl	%eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	jb	LBB0_23
## %bb.14:
	movl	%ecx, %eax
	cmpq	%rax, %rbx
	jne	LBB0_23
## %bb.15:
	movq	%rbx, %rsi
	movq	_MENU_ACTION_START@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_16:
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jbe	LBB0_18
## %bb.17:
	movq	_MENU_ACTION_CANCEL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rsi, %rbx
	callq	_menu_entries_get_size
	decl	%eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jb	LBB0_23
## %bb.19:
	movq	%rbx, %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %eax
	cmpq	%rax, %rbx
	jne	LBB0_22
LBB0_20:
	movq	_MENU_ACTION_SELECT@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_entry_action              ## TAILCALL
LBB0_22:
	callq	_menu_navigation_set_selection
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_menu_driver_navigation_set
LBB0_23:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fs_thumbnail,8,3               ## @fs_thumbnail
	.comm	_MENU_ACTION_SELECT,4,2         ## @MENU_ACTION_SELECT
	.comm	_MENU_ACTION_CANCEL,4,2         ## @MENU_ACTION_CANCEL
	.comm	_MENU_ACTION_START,4,2          ## @MENU_ACTION_START
	.no_dead_strip	_rgui_pointer_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgui_pointer_up
_rgui_pointer_up:                       ; @rgui_pointer_up
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x6
	mov	x24, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x0
	bl	_menu_display_get_header_height
	mov	x25, x0
	bl	_menu_navigation_get_selection
	cbz	x22, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_7
; %bb.2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _fs_thumbnail@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fs_thumbnail@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	w8, #1
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
	b	LBB0_23
LBB0_6:
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, gt
LBB0_7:
	sub	w9, w24, #128
	cmp	w9, #2
	b.hs	LBB0_11
; %bb.8:
	cmp	w25, w23
	cbz	w8, LBB0_15
; %bb.9:
	b.ls	LBB0_19
; %bb.10:
	mov	x0, x22
	bl	_rgui_update_thumbnail_image
	b	LBB0_22
LBB0_11:
	cmp	w24, #130
	b.ne	LBB0_22
; %bb.12:
	bl	_menu_entries_get_size
	mov	x8, x0
	mov	w0, #0
	sub	w8, w8, #1
	cmp	w8, w21
	b.lo	LBB0_23
; %bb.13:
	mov	w8, w21
	cmp	x20, x8
	b.ne	LBB0_23
; %bb.14:
Lloh3:
	adrp	x8, _MENU_ACTION_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MENU_ACTION_START@GOTPAGEOFF]
	b	LBB0_20
LBB0_15:
	b.ls	LBB0_17
; %bb.16:
Lloh5:
	adrp	x8, _MENU_ACTION_CANCEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MENU_ACTION_CANCEL@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
	bl	_menu_entries_get_size
	sub	w8, w0, #1
	cmp	w8, w21
	b.lo	LBB0_22
; %bb.18:
	cmp	x20, w21, uxtw
	b.ne	LBB0_21
LBB0_19:
Lloh7:
	adrp	x8, _MENU_ACTION_SELECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MENU_ACTION_SELECT@GOTPAGEOFF]
LBB0_20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_menu_entry_action
LBB0_21:
	mov	x0, x21
	bl	_menu_navigation_set_selection
	mov	w0, #0
	bl	_menu_driver_navigation_set
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_fs_thumbnail,8,3               ; @fs_thumbnail
	.comm	_MENU_ACTION_SELECT,4,2         ; @MENU_ACTION_SELECT
	.comm	_MENU_ACTION_CANCEL,4,2         ; @MENU_ACTION_CANCEL
	.comm	_MENU_ACTION_START,4,2          ; @MENU_ACTION_START
	.no_dead_strip	_rgui_pointer_up
.subsections_via_symbols
