	.file	"extr_materialui.c_materialui_pointer_up.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	materialui_pointer_up, @function
materialui_pointer_up:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 8[rsp], esi
	mov	r15, QWORD PTR 112[rsp]
	mov	DWORD PTR 12[rsp], ecx
	mov	QWORD PTR 24[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	menu_display_get_header_height@PLT
	mov	r14d, eax
	xor	eax, eax
	call	menu_navigation_get_selection@PLT
	mov	r13, rax
	xor	eax, eax
	call	menu_entries_get_size@PLT
	mov	QWORD PTR 16[rsp], rax
	test	rbp, rbp
	je	.L29
	mov	r9d, DWORD PTR 32[rbp]
	test	r9d, r9d
	jne	.L43
	lea	rsi, 36[rsp]
	lea	rdi, 32[rsp]
	mov	DWORD PTR 4[rsp], r9d
	call	video_driver_get_size@PLT
	lea	eax, -128[rbx]
	mov	r9d, DWORD PTR 4[rsp]
	cmp	eax, 4
	ja	.L1
	lea	rdx, .L5[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L6-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, DWORD PTR 36[rsp]
	mov	ecx, DWORD PTR 32[rsp]
	mov	eax, r8d
	sub	eax, DWORD PTR 28[rbp]
	cmp	eax, r12d
	jb	.L9
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, ecx
	sub	eax, edx
	cmp	eax, DWORD PTR 8[rsp]
	jb	.L9
	cmp	r14d, r12d
	jbe	.L11
	mov	r12d, DWORD PTR 20[rbp]
	test	r12d, r12d
	je	.L44
	mov	edx, DWORD PTR 4[rbp]
	mov	r11d, DWORD PTR 24[rbp]
	mov	ecx, eax
	sub	ecx, edx
	test	r11d, r11d
	je	.L16
	lea	eax, [rdx+rdx]
	mov	ebx, ecx
	sub	ebx, eax
	mov	eax, ebx
	cmp	ecx, DWORD PTR 8[rsp]
	jb	.L26
	add	edx, eax
	cmp	edx, DWORD PTR 8[rsp]
	jb	.L45
.L17:
	cmp	DWORD PTR 8[rsp], eax
	ja	.L1
.L36:
	mov	ecx, DWORD PTR MENU_ACTION_CANCEL[rip]
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, rbp
	call	materialui_menu_entry_action@PLT
	mov	r9d, eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r9d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	pxor	xmm0, xmm0
	call	menu_input_set_pointer_y_accel@PLT
	mov	edi, DWORD PTR MUI_THUMBNAIL_STREAM_DELAY_DEFAULT[rip]
	call	menu_thumbnail_set_stream_delay@PLT
	mov	DWORD PTR 32[rbp], 0
	xor	r9d, r9d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR MENU_LIST_PLAIN[rip]
	mov	rdi, rbp
	call	materialui_list_get_size@PLT
	mov	ecx, DWORD PTR MENU_ACTION_LEFT[rip]
	cmp	eax, 1
	je	.L39
	mov	edi, DWORD PTR 20[rbp]
	test	edi, edi
	jne	.L24
	mov	esi, DWORD PTR 16[rbp]
	test	esi, esi
	jne	.L24
	mov	ecx, DWORD PTR 12[rbp]
	test	ecx, ecx
	je	.L25
.L24:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
.L41:
	mov	edx, DWORD PTR 52[rsp]
	mov	r9, r13
	mov	r8d, r12d
	mov	ecx, r14d
	mov	rsi, r15
	mov	rdi, rbp
	call	materialui_pointer_up_swipe_horz_plain_list@PLT
	mov	r9d, eax
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR MENU_LIST_PLAIN[rip]
	mov	rdi, rbp
	call	materialui_list_get_size@PLT
	mov	ecx, DWORD PTR MENU_ACTION_RIGHT[rip]
	cmp	eax, 1
	je	.L39
	mov	r10d, DWORD PTR 20[rbp]
	test	r10d, r10d
	jne	.L21
	mov	r9d, DWORD PTR 16[rbp]
	test	r9d, r9d
	jne	.L21
	mov	r8d, DWORD PTR 12[rbp]
	test	r8d, r8d
	je	.L22
.L21:
	sub	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 120
	push	1
	.cfi_def_cfa_offset 128
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	ecx, DWORD PTR 12[rsp]
	cmp	rcx, QWORD PTR 16[rsp]
	jnb	.L1
	cmp	rcx, r13
	jne	.L1
	mov	ecx, DWORD PTR MENU_ACTION_START[rip]
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L9:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9, r13
	mov	edx, r12d
	mov	rdi, rbp
	mov	eax, DWORD PTR 128[rsp]
	push	rax
	.cfi_def_cfa_offset 128
	push	r15
	.cfi_def_cfa_offset 136
	push	QWORD PTR 48[rsp]
	.cfi_def_cfa_offset 144
	mov	esi, DWORD PTR 40[rsp]
	call	materialui_pointer_up_nav_bar@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	r9d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, DWORD PTR 12[rsp]
	cmp	r12, QWORD PTR 16[rsp]
	jnb	.L1
	mov	eax, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 8[rsp]
	cmp	eax, esi
	jnb	.L1
	add	edx, eax
	sub	ecx, edx
	cmp	ecx, esi
	jbe	.L1
	cmp	ebx, 128
	je	.L47
	mov	edi, DWORD PTR 12[rsp]
	mov	DWORD PTR 4[rsp], r9d
	call	menu_navigation_set_selection@PLT
	pxor	xmm0, xmm0
	call	menu_input_set_pointer_y_accel@PLT
	mov	r9d, DWORD PTR 4[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r9d, DWORD PTR MENU_ACTION_LEFT[rip]
.L40:
	mov	r8, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR 12[rsp]
	mov	rcx, r13
	mov	rsi, r15
	mov	rdi, rbp
	call	materialui_pointer_up_swipe_horz_default@PLT
	mov	r9d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r9d, DWORD PTR MENU_ACTION_RIGHT[rip]
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L44:
	mov	ebx, DWORD PTR 16[rbp]
	test	ebx, ebx
	je	.L36
	mov	edx, DWORD PTR 4[rbp]
	mov	ecx, eax
	sub	ecx, edx
.L16:
	cmp	DWORD PTR 8[rsp], ecx
	ja	.L26
	add	edx, edx
	sub	eax, edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L26:
	xor	eax, eax
	call	menu_input_dialog_start_search@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	neg	eax
	mov	r9d, eax
	jmp	.L1
.L29:
	mov	r9d, -1
	jmp	.L1
.L45:
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], r9d
	call	materialui_switch_list_view@PLT
	mov	r9d, DWORD PTR 4[rsp]
	jmp	.L1
.L47:
	cmp	r12, r13
	je	.L19
	mov	edi, DWORD PTR 12[rsp]
	call	menu_navigation_set_selection@PLT
.L19:
	mov	ecx, DWORD PTR MENU_ACTION_SELECT[rip]
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, rbp
	call	materialui_menu_entry_action@PLT
	mov	r9d, eax
	jmp	.L1
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	materialui_pointer_up, .-materialui_pointer_up
	.comm	MUI_THUMBNAIL_STREAM_DELAY_DEFAULT,4,4
	.comm	MENU_LIST_PLAIN,4,4
	.comm	MENU_ACTION_START,4,4
	.comm	MENU_ACTION_SELECT,4,4
	.comm	MENU_ACTION_RIGHT,4,4
	.comm	MENU_ACTION_LEFT,4,4
	.comm	MENU_ACTION_CANCEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_materialui.c_materialui_pointer_up.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	materialui_pointer_up, %function
materialui_pointer_up:
	@ args = 16, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	ldr	r3, .L46
	sub	sp, sp, #52
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r3, [sp, #92]
	mov	r6, r1
	mov	r7, r2
	str	r3, [sp, #28]
	mov	r4, r0
	ldr	fp, [sp, #96]
	bl	menu_display_get_header_height
	mov	r9, r0
	bl	menu_navigation_get_selection
	mov	r5, r0
	bl	menu_entries_get_size
	cmp	r4, #0
	str	r0, [sp, #24]
	beq	.L29
	ldr	r10, [r4, #32]
	cmp	r10, #0
	bne	.L40
	add	r1, sp, #40
	add	r0, sp, #36
	bl	video_driver_get_size
	ldr	r3, [sp, #88]
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L1
.L5:
	.word	.L6
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L6:
	ldr	r0, [sp, #40]
	ldr	r1, [r4, #28]
	ldr	r3, [sp, #36]
	sub	r1, r0, r1
	cmp	r1, r7
	bcc	.L9
	ldr	ip, [r4]
	sub	r1, r3, ip
	cmp	r1, r6
	bcc	.L9
	cmp	r9, r7
	bhi	.L41
	ldr	r2, [sp, #24]
	cmp	r2, r8
	bls	.L1
	ldr	r1, [r4, #8]
	cmp	r1, r6
	bcs	.L1
	add	ip, ip, r1
	sub	r3, r3, ip
	cmp	r3, r6
	bls	.L1
	ldr	r3, [sp, #88]
	cmp	r3, #128
	beq	.L42
	mov	r0, r8
	bl	menu_navigation_set_selection
	mov	r0, #0
	bl	menu_input_set_pointer_y_accel
.L1:
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	mov	r0, r10
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L40:
	mov	r0, #0
	bl	menu_input_set_pointer_y_accel
	ldr	r3, .L46+4
	ldr	r0, [r3]
	bl	menu_thumbnail_set_stream_delay
	mov	r0, #0
	mov	r10, r0
	str	r0, [r4, #32]
	b	.L1
.L8:
	ldr	r3, .L46+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	materialui_list_get_size
	cmp	r0, #1
	moveq	r2, r5
	ldreq	r3, .L46+12
	beq	.L36
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L25
.L24:
	mov	r2, #0
	b	.L38
.L7:
	ldr	r3, .L46+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	materialui_list_get_size
	cmp	r0, #1
	moveq	r2, r5
	ldreq	r3, .L46+16
	beq	.L36
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L22
.L21:
	mov	r2, #1
.L38:
	str	r2, [sp, #8]
	mov	r3, r9
	mov	r1, fp
	mov	r0, r4
	ldr	r2, [sp, #40]
	str	r5, [sp, #4]
	str	r7, [sp]
	bl	materialui_pointer_up_swipe_horz_plain_list
	mov	r10, r0
	b	.L1
.L4:
	ldr	r6, [sp, #24]
	cmp	r6, r8
	movls	r6, #0
	movhi	r6, #1
	cmp	r5, r8
	movne	r6, #0
	cmp	r6, #0
	beq	.L1
	mov	r2, r5
	ldr	r3, .L46+20
.L36:
	mov	r1, fp
	mov	r0, r4
	ldr	r3, [r3]
	bl	materialui_menu_entry_action
	mov	r10, r0
	b	.L1
.L9:
	ldr	r2, [sp, #100]
	stm	sp, {r0, r5}
	str	r2, [sp, #16]
	ldr	r2, [sp, #28]
	mov	r1, r6
	str	r2, [sp, #8]
	mov	r0, r4
	mov	r2, r7
	str	fp, [sp, #12]
	bl	materialui_pointer_up_nav_bar
	mov	r10, r0
	b	.L1
.L41:
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #4]
	cmp	r3, #0
	sub	r3, r1, r0
	beq	.L16
	cmp	r6, r3
	sub	r3, r3, r0, lsl #1
	bhi	.L26
	add	r0, r0, r3
	cmp	r0, r6
	bcc	.L45
.L17:
	cmp	r6, r3
	bhi	.L1
.L33:
	mov	r2, r5
	ldr	r3, .L46+24
	b	.L36
.L22:
	ldr	r3, .L46+12
.L37:
	ldr	r2, [sp, #24]
	mov	r1, fp
	str	r2, [sp]
	ldr	ip, [r3]
	mov	r2, r8
	mov	r3, r5
	mov	r0, r4
	str	ip, [sp, #4]
	bl	materialui_pointer_up_swipe_horz_default
	mov	r10, r0
	b	.L1
.L25:
	ldr	r3, .L46+16
	b	.L37
.L44:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L33
	ldr	r0, [r4, #4]
	sub	r3, r1, r0
.L16:
	cmp	r3, r6
	subcs	r3, r1, r0, lsl #1
	bcs	.L17
.L26:
	bl	menu_input_dialog_start_search
	clz	r2, r0
	lsr	r2, r2, #5
	rsb	r10, r2, #0
	b	.L1
.L29:
	mvn	r10, #0
	b	.L1
.L45:
	mov	r0, r4
	bl	materialui_switch_list_view
	b	.L1
.L42:
	cmp	r5, r8
	beq	.L19
	mov	r0, r8
	bl	menu_navigation_set_selection
.L19:
	mov	r2, r8
	ldr	r3, .L46+28
	b	.L36
.L43:
	bl	__stack_chk_fail
.L47:
	.align	2
.L46:
	.word	.LC0
	.word	MUI_THUMBNAIL_STREAM_DELAY_DEFAULT
	.word	MENU_LIST_PLAIN
	.word	MENU_ACTION_LEFT
	.word	MENU_ACTION_RIGHT
	.word	MENU_ACTION_START
	.word	MENU_ACTION_CANCEL
	.word	MENU_ACTION_SELECT
	.size	materialui_pointer_up, .-materialui_pointer_up
	.comm	MUI_THUMBNAIL_STREAM_DELAY_DEFAULT,4,4
	.comm	MENU_LIST_PLAIN,4,4
	.comm	MENU_ACTION_START,4,4
	.comm	MENU_ACTION_SELECT,4,4
	.comm	MENU_ACTION_RIGHT,4,4
	.comm	MENU_ACTION_LEFT,4,4
	.comm	MENU_ACTION_CANCEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
