	.file	"extr_menu.c_dispmenu_loop_options.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dispmenu_loop_options, @function
dispmenu_loop_options:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR Pico[rip]
	mov	esi, DWORD PTR OPT3_ENTRY_COUNT[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	edi, DWORD PTR opt3_entries[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebp, DWORD PTR 48[rax]
	not	ebp
	call	me_count_enabled@PLT
	and	ebp, 1
	lea	r12d, -1[rax]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L62:
	test	ebp, ebp
	je	.L7
	xor	edi, edi
	call	menu_opt3_preview@PLT
	mov	rax, QWORD PTR PBTN_RIGHT[rip]
	mov	rdx, QWORD PTR PBTN_LEFT[rip]
	or	rdx, rax
	test	rdx, rbx
	jne	.L8
	xor	ebp, ebp
.L9:
	test	QWORD PTR PBTN_CIRCLE[rip], rbx
	jne	.L61
.L24:
	test	QWORD PTR PBTN_X[rip], rbx
	jne	.L1
.L31:
	mov	edi, DWORD PTR menu_sel.1962[rip]
	call	draw_dispmenu_options@PLT
	mov	rdi, QWORD PTR PBTN_UP[rip]
	xor	esi, esi
	or	rdi, QWORD PTR PBTN_DOWN[rip]
	or	rdi, QWORD PTR PBTN_LEFT[rip]
	or	rdi, QWORD PTR PBTN_RIGHT[rip]
	or	rdi, QWORD PTR PBTN_X[rip]
	or	rdi, QWORD PTR PBTN_CIRCLE[rip]
	call	in_menu_wait@PLT
	mov	edx, DWORD PTR menu_sel.1962[rip]
	mov	rbx, rax
	test	QWORD PTR PBTN_UP[rip], rax
	je	.L3
	sub	edx, 1
	js	.L4
	mov	DWORD PTR menu_sel.1962[rip], edx
.L3:
	test	QWORD PTR PBTN_DOWN[rip], rbx
	je	.L5
	add	edx, 1
	cmp	edx, r12d
	jg	.L6
	mov	DWORD PTR menu_sel.1962[rip], edx
.L5:
	mov	esi, DWORD PTR OPT3_ENTRY_COUNT[rip]
	mov	edi, DWORD PTR opt3_entries[rip]
	call	me_index2id@PLT
	mov	r13d, eax
	cmp	eax, 133
	je	.L62
.L7:
	cmp	r13d, 134
	jne	.L10
	test	ebp, ebp
	jne	.L10
	mov	edi, 1
	call	menu_opt3_preview@PLT
	mov	rax, QWORD PTR PBTN_RIGHT[rip]
	mov	rdx, QWORD PTR PBTN_LEFT[rip]
	or	rdx, rax
	test	rdx, rbx
	jne	.L11
	mov	ebp, 1
	test	QWORD PTR PBTN_CIRCLE[rip], rbx
	je	.L24
.L61:
	mov	esi, DWORD PTR OPT3_ENTRY_COUNT[rip]
	mov	edi, DWORD PTR opt3_entries[rip]
	mov	edx, r13d
	mov	ecx, 1
	sub	r13d, 130
	call	me_process@PLT
	cmp	r13d, 7
	ja	.L24
	lea	rdx, .L26[rip]
	movsx	rax, DWORD PTR [rdx+r13*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L26:
	.long	.L30-.L26
	.long	.L29-.L26
	.long	.L28-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L24-.L26
	.long	.L27-.L26
	.long	.L1-.L26
	.text
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR PBTN_RIGHT[rip]
	mov	rdx, QWORD PTR PBTN_LEFT[rip]
	or	rdx, rax
	test	rdx, rbx
	je	.L9
	xor	ecx, ecx
	mov	esi, DWORD PTR OPT3_ENTRY_COUNT[rip]
	test	rax, rbx
	mov	edx, r13d
	mov	edi, DWORD PTR opt3_entries[rip]
	setne	cl
	call	me_process@PLT
	lea	eax, -128[r13]
	cmp	eax, 10
	ja	.L9
	lea	rdx, .L13[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L13:
	.long	.L17-.L13
	.long	.L32-.L13
	.long	.L9-.L13
	.long	.L9-.L13
	.long	.L9-.L13
	.long	.L59-.L13
	.long	.L14-.L13
	.long	.L12-.L13
	.long	.L12-.L13
	.long	.L9-.L13
	.long	.L12-.L13
	.text
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, ebp
	call	menu_opt3_preview@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	xor	ecx, ecx
	mov	esi, DWORD PTR OPT3_ENTRY_COUNT[rip]
	test	rbx, rax
	mov	edi, DWORD PTR opt3_entries[rip]
	setne	cl
	mov	edx, 133
	call	me_process@PLT
.L59:
	lea	r14, currentConfig[rip+4]
	xor	ebp, ebp
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rcx, QWORD PTR .LC0[rip]
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR [r14]
	movq	xmm1, rcx
	test	rax, rbx
	jne	.L21
	mov	rax, QWORD PTR .LC1[rip]
	movq	xmm1, rax
.L21:
	addsd	xmm0, xmm1
	pxor	xmm2, xmm2
	movss	xmm4, DWORD PTR .LC2[rip]
	mov	edi, ebp
	cvtsd2ss	xmm0, xmm0
	movaps	xmm1, xmm0
	cmpnless	xmm1, xmm2
	andps	xmm0, xmm1
	andnps	xmm1, xmm4
	orps	xmm0, xmm1
	movss	DWORD PTR [r14], xmm0
	call	menu_opt3_preview@PLT
	mov	edi, DWORD PTR menu_sel.1962[rip]
	call	draw_dispmenu_options@PLT
.L20:
	xor	edi, edi
	call	psp_pad_read@PLT
	mov	rdx, QWORD PTR PBTN_RIGHT[rip]
	mov	rbx, rax
	mov	rax, QWORD PTR PBTN_LEFT[rip]
	or	rdx, rax
	test	rdx, rbx
	jne	.L23
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	xor	ecx, ecx
	mov	esi, DWORD PTR OPT3_ENTRY_COUNT[rip]
	test	rbx, rax
	mov	edi, DWORD PTR opt3_entries[rip]
	setne	cl
	mov	edx, 134
	call	me_process@PLT
.L14:
	lea	r14, currentConfig[rip+8]
	mov	ebp, 1
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L17:
	mov	ecx, DWORD PTR currentConfig[rip+12]
	mov	eax, ecx
	mov	edx, ecx
	sar	eax, 13
	sar	edx, 15
	and	edx, 2
	and	eax, 1
	or	eax, edx
	mov	edx, eax
	lea	eax, 1[rax+rax]
	sar	edx
	test	QWORD PTR PBTN_LEFT[rip], rbx
	cmovne	eax, edx
	mov	edx, 3
	cmp	eax, 3
	cmovg	eax, edx
	and	ecx, -73729
	mov	edx, eax
	sal	eax, 13
	sal	edx, 15
	and	eax, 8192
	and	edx, 65536
	or	eax, edx
	or	eax, ecx
	mov	DWORD PTR currentConfig[rip+12], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	edi, ebp
	call	menu_opt3_preview@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L28:
	movabs	rax, 4584664421730195866
	mov	edi, ebp
	mov	DWORD PTR currentConfig[rip+8], 0x3fc7ae14
	mov	QWORD PTR currentConfig[rip], rax
	call	menu_opt3_preview@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L29:
	movabs	rax, 4575657222473777152
	mov	edi, ebp
	mov	DWORD PTR currentConfig[rip+8], 0x3f800000
	mov	QWORD PTR currentConfig[rip], rax
	call	menu_opt3_preview@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L30:
	movabs	rax, 4575657222475454874
	mov	edi, ebp
	mov	DWORD PTR currentConfig[rip+8], 0x3fa00000
	mov	QWORD PTR currentConfig[rip], rax
	call	menu_opt3_preview@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L6:
	mov	DWORD PTR menu_sel.1962[rip], 0
	xor	edx, edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	DWORD PTR menu_sel.1962[rip], r12d
	mov	edx, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L32:
	lea	r14, currentConfig[rip]
	jmp	.L20
	.cfi_endproc
.LFE0:
	.size	dispmenu_loop_options, .-dispmenu_loop_options
	.local	menu_sel.1962
	.comm	menu_sel.1962,4,4
	.comm	opt3_entries,4,4
	.comm	currentConfig,16,16
	.comm	Pico,8,8
	.comm	PBTN_X,8,8
	.comm	PBTN_UP,8,8
	.comm	PBTN_RIGHT,8,8
	.comm	PBTN_LEFT,8,8
	.comm	PBTN_DOWN,8,8
	.comm	PBTN_CIRCLE,8,8
	.comm	OPT3_ENTRY_COUNT,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1202590843
	.long	-1081836831
	.align 8
.LC1:
	.long	1202590843
	.long	1065646817
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC2:
	.long	1008981770
	.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_menu.c_dispmenu_loop_options.c"
	.text
	.global	__aeabi_f2d
	.global	__aeabi_dadd
	.global	__aeabi_d2f
	.global	__aeabi_fcmple
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dispmenu_loop_options, %function
dispmenu_loop_options:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L53
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r3]
	sub	sp, sp, #20
	ldr	r6, [r3, #48]
	ldr	r3, .L53+4
	mvn	r6, r6
	ldr	r1, [r3]
	ldr	r3, .L53+8
	ldr	r7, .L53+12
	ldr	r0, [r3]
	bl	me_count_enabled
	sub	r3, r0, #1
	ldr	fp, .L53+16
	ldr	r8, .L53+20
	ldr	r9, .L53+24
	ldr	r10, .L53+28
	and	r6, r6, #1
	str	r3, [sp, #8]
	b	.L31
.L52:
	mov	r0, #1
	bl	menu_opt3_preview
	ldr	r2, [r9]
	ldr	r3, [r8]
	orr	r3, r2, r3
	tst	r3, r4
	moveq	r6, #1
	bne	.L49
.L9:
	ldr	r3, [r10]
	tst	r4, r3
	bne	.L50
.L24:
	ldr	r3, .L53+32
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L1
.L31:
	ldr	r0, [r7]
	bl	draw_dispmenu_options
	ldr	r2, .L53+36
	ldr	r3, [fp]
	ldr	r0, [r2]
	ldr	r2, [r8]
	orr	r3, r3, r0
	orr	r3, r3, r2
	ldr	r2, .L53+32
	ldr	r0, [r9]
	ldr	r2, [r2]
	orr	r3, r3, r0
	ldr	r0, [r10]
	orr	r3, r3, r2
	orr	r0, r3, r0
	mov	r1, #0
	bl	in_menu_wait
	ldr	r3, [fp]
	mov	r4, r0
	tst	r0, r3
	ldr	r2, [r7]
	beq	.L3
	subs	r2, r2, #1
	ldrmi	r3, [sp, #8]
	strpl	r2, [r7]
	movmi	r2, r3
	strmi	r3, [r7]
.L3:
	ldr	r3, .L53+36
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L5
	ldr	r3, [sp, #8]
	add	r2, r2, #1
	cmp	r2, r3
	movgt	r3, #0
	movgt	r2, r3
	strle	r2, [r7]
	strgt	r3, [r7]
.L5:
	ldr	r3, .L53+4
	ldr	r1, [r3]
	ldr	r3, .L53+8
	ldr	r0, [r3]
	bl	me_index2id
	cmp	r0, #133
	movne	r3, #0
	andeq	r3, r6, #1
	cmp	r3, #0
	mov	r5, r0
	bne	.L51
	eor	r3, r6, #1
	cmp	r0, #134
	movne	r3, #0
	andeq	r3, r3, #1
	cmp	r3, #0
	bne	.L52
	ldr	r2, [r9]
	ldr	r3, [r8]
	orr	r3, r2, r3
	tst	r3, r4
	beq	.L9
	tst	r2, r4
	ldr	r1, .L53+4
	mov	r2, r0
	ldr	r0, .L53+8
	movne	r3, #1
	moveq	r3, #0
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	me_process
	sub	r3, r5, #128
	cmp	r3, #10
	ldrls	pc, [pc, r3, asl #2]
	b	.L9
.L13:
	.word	.L17
	.word	.L32
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L47
	.word	.L14
	.word	.L12
	.word	.L12
	.word	.L9
	.word	.L12
.L12:
	mov	r0, r6
	bl	menu_opt3_preview
	ldr	r3, [r10]
	tst	r4, r3
	beq	.L24
.L50:
	ldr	r1, .L53+4
	ldr	r0, .L53+8
	mov	r2, r5
	mov	r3, #1
	ldr	r1, [r1]
	ldr	r0, [r0]
	sub	r5, r5, #130
	bl	me_process
	cmp	r5, #7
	ldrls	pc, [pc, r5, asl #2]
	b	.L24
.L26:
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L24
	.word	.L24
	.word	.L24
	.word	.L27
	.word	.L1
.L51:
	mov	r0, #0
	bl	menu_opt3_preview
	ldr	r2, [r9]
	ldr	r3, [r8]
	orr	r3, r2, r3
	ands	r3, r3, r4
	moveq	r6, r3
	beq	.L9
	ldr	r1, .L53+4
	ldr	r0, .L53+8
	tst	r4, r2
	movne	r3, #1
	moveq	r3, #0
	mov	r2, #133
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	me_process
.L47:
	ldr	r3, .L53+40
	mov	r6, #0
	str	r3, [sp, #4]
	str	r5, [sp, #12]
	b	.L20
.L23:
	ldr	r3, [sp, #4]
	ldr	r0, [r3]	@ float
	bl	__aeabi_f2d
	tst	r4, r5
	ldreq	r3, .L53+44
	ldrne	r3, .L53+48
	ldr	r2, .L53+52
	bl	__aeabi_dadd
	bl	__aeabi_d2f
	mov	r1, #0
	mov	r4, r0
	bl	__aeabi_fcmple
	mov	r2, r0
	cmp	r2, #0
	ldrne	r4, .L53+56
	ldr	r3, [sp, #4]
	mov	r0, r6
	str	r4, [r3]	@ float
	bl	menu_opt3_preview
	ldr	r0, [r7]
	bl	draw_dispmenu_options
.L20:
	mov	r0, #0
	bl	psp_pad_read
	ldr	r4, [r8]
	ldr	r1, [r9]
	mov	r5, r0
	orr	r1, r4, r1
	tst	r1, r0
	bne	.L23
	mov	r4, r0
	ldr	r5, [sp, #12]
	b	.L9
.L49:
	ldr	r1, .L53+4
	ldr	r0, .L53+8
	tst	r4, r2
	movne	r3, #1
	moveq	r3, #0
	mov	r2, #134
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	me_process
.L14:
	ldr	r3, .L53+60
	mov	r6, #1
	str	r3, [sp, #4]
	str	r5, [sp, #12]
	b	.L20
.L17:
	ldr	r1, .L53+64
	ldr	r3, [r8]
	ldr	r2, [r1, #12]
	tst	r4, r3
	asr	r3, r2, #15
	lsl	r0, r2, #18
	and	r3, r3, #2
	orr	r3, r3, r0, lsr #31
	lsleq	r3, r3, #1
	asrne	r3, r3, #1
	orreq	r3, r3, #1
	cmp	r3, #3
	movge	r3, #3
	lsl	r0, r3, #15
	lsl	r3, r3, #13
	and	r0, r0, #65536
	and	r3, r3, #8192
	bic	r2, r2, #73728
	orr	r3, r0, r3
	orr	r3, r3, r2
	str	r3, [r1, #12]
	b	.L9
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	mov	r0, r6
	bl	menu_opt3_preview
	b	.L24
.L28:
	ldr	r3, .L53+64
	ldr	r2, .L53+68
	ldr	r1, .L53+72
	str	r2, [r3]	@ float
	ldr	r2, .L53+76
	mov	r0, r6
	str	r1, [r3, #4]	@ float
	str	r2, [r3, #8]	@ float
	bl	menu_opt3_preview
	b	.L24
.L29:
	mov	r2, #1065353216
	ldr	r3, .L53+64
	mov	r0, r6
	str	r2, [r3, #8]	@ float
	str	r2, [r3, #4]	@ float
	str	r2, [r3]	@ float
	bl	menu_opt3_preview
	b	.L24
.L30:
	mov	r1, #1065353216
	ldr	r3, .L53+64
	ldr	r2, .L53+68
	mov	r0, r6
	str	r2, [r3]	@ float
	ldr	r2, .L53+72
	str	r1, [r3, #4]	@ float
	str	r2, [r3, #8]	@ float
	bl	menu_opt3_preview
	b	.L24
.L32:
	ldr	r3, .L53+64
	str	r5, [sp, #12]
	str	r3, [sp, #4]
	b	.L20
.L54:
	.align	2
.L53:
	.word	Pico
	.word	OPT3_ENTRY_COUNT
	.word	opt3_entries
	.word	.LANCHOR0
	.word	PBTN_UP
	.word	PBTN_LEFT
	.word	PBTN_RIGHT
	.word	PBTN_CIRCLE
	.word	PBTN_X
	.word	PBTN_DOWN
	.word	currentConfig+4
	.word	1065646817
	.word	-1081836831
	.word	1202590843
	.word	1008981770
	.word	currentConfig+8
	.word	currentConfig
	.word	1067030938
	.word	1067450368
	.word	1070050836
	.size	dispmenu_loop_options, .-dispmenu_loop_options
	.comm	opt3_entries,4,4
	.comm	currentConfig,16,4
	.comm	Pico,4,4
	.comm	PBTN_X,4,4
	.comm	PBTN_UP,4,4
	.comm	PBTN_RIGHT,4,4
	.comm	PBTN_LEFT,4,4
	.comm	PBTN_DOWN,4,4
	.comm	PBTN_CIRCLE,4,4
	.comm	OPT3_ENTRY_COUNT,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	menu_sel.4246, %object
	.size	menu_sel.4246, 4
menu_sel.4246:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
