	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amenu_loop_options
_amenu_loop_options:                    ## @amenu_loop_options
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_opt2_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OPT2_ENTRY_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_me_count_enabled
	decl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PBTN_RIGHT@GOTPCREL(%rip), %r13
	movq	_PBTN_PLAY@GOTPCREL(%rip), %r12
	movq	_currentConfig@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PBTN_REW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PBTN_STOP@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	testq	%rbx, %rax
	jne	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	_amenu_loop_options.menu_sel(%rip), %edi
	callq	_draw_amenu_options
	movq	_PBTN_DOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PBTN_UP@GOTPCREL(%rip), %r15
	orq	(%r15), %rdi
	movq	_PBTN_LEFT@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	orq	(%r13), %rdi
	orq	(%r12), %rdi
	movq	_PBTN_STOP@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	movq	_PBTN_REW@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	callq	_in_menu_wait
	movq	%rax, %rbx
	testq	%rax, (%r15)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	_amenu_loop_options.menu_sel(%rip), %eax
	leal	-1(%rax), %ecx
	testl	%eax, %eax
	cmovlel	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, _amenu_loop_options.menu_sel(%rip)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	_amenu_loop_options.menu_sel(%rip), %edx
	movq	_PBTN_DOWN@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	leal	1(%rdx), %eax
	movl	$0, %ecx
	cmovgel	%ecx, %eax
	movl	%eax, _amenu_loop_options.menu_sel(%rip)
	movl	%eax, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_opt2_entries@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_OPT2_ENTRY_COUNT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_me_index2id
	movl	%eax, %r15d
	movq	_PBTN_RIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PBTN_LEFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	%rax, %rcx
	testq	%rbx, %rcx
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movl	(%r13), %esi
	xorl	%ecx, %ecx
	testq	%rbx, %rax
	setne	%cl
	movl	%r15d, %edx
	callq	_me_process
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MA_OPT2_GAMMA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	movq	_PBTN_LEFT@GOTPCREL(%rip), %r12
	movq	_PBTN_RIGHT@GOTPCREL(%rip), %r13
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_Framework_PollGetButtons
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	(%r13), %rcx
	orq	%rax, %rcx
	movq	_PBTN_RIGHT@GOTPCREL(%rip), %r13
	testq	%rbx, %rcx
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r15d
	movl	$300, %r12d                     ## imm = 0x12C
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	andq	%rbx, %rax
	negq	%rax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	$1, %eax
	addl	(%r14), %eax
	cmpl	$2, %eax
	cmovll	%r15d, %eax
	cmpl	$300, %eax                      ## imm = 0x12C
	cmovael	%r12d, %eax
	movl	%eax, (%r14)
	movl	_amenu_loop_options.menu_sel(%rip), %edi
	callq	_draw_amenu_options
	movl	$18, %edi
	callq	_Sleep
	xorl	%eax, %eax
	callq	_Framework_PollGetButtons
	movq	%rax, %rbx
	movq	_PBTN_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	orq	%rax, %rcx
	testq	%rbx, %rcx
	jne	LBB0_11
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PBTN_RIGHT@GOTPCREL(%rip), %r13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PBTN_PLAY@GOTPCREL(%rip), %r12
	testq	%rbx, (%r12)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_1
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_opt2_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OPT2_ENTRY_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	_me_process
	testl	%eax, %eax
	jne	LBB0_1
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MA_OPT2_DONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_1
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_amenu_loop_options.menu_sel,4,2 ## @amenu_loop_options.menu_sel
	.comm	_opt2_entries,4,2               ## @opt2_entries
	.comm	_OPT2_ENTRY_COUNT,4,2           ## @OPT2_ENTRY_COUNT
	.comm	_PBTN_UP,8,3                    ## @PBTN_UP
	.comm	_PBTN_DOWN,8,3                  ## @PBTN_DOWN
	.comm	_PBTN_LEFT,8,3                  ## @PBTN_LEFT
	.comm	_PBTN_RIGHT,8,3                 ## @PBTN_RIGHT
	.comm	_PBTN_PLAY,8,3                  ## @PBTN_PLAY
	.comm	_PBTN_STOP,8,3                  ## @PBTN_STOP
	.comm	_PBTN_REW,8,3                   ## @PBTN_REW
	.comm	_MA_OPT2_GAMMA,4,2              ## @MA_OPT2_GAMMA
	.comm	_currentConfig,4,2              ## @currentConfig
	.comm	_MA_OPT2_DONE,4,2               ## @MA_OPT2_DONE
	.no_dead_strip	_amenu_loop_options
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amenu_loop_options
_amenu_loop_options:                    ; @amenu_loop_options
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _opt2_entries@GOTPAGE
Lloh1:
	ldr	x21, [x21, _opt2_entries@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _OPT2_ENTRY_COUNT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OPT2_ENTRY_COUNT@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_me_count_enabled
	sub	w23, w0, #1
Lloh4:
	adrp	x26, _PBTN_LEFT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PBTN_LEFT@GOTPAGEOFF]
Lloh6:
	adrp	x27, _PBTN_RIGHT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PBTN_RIGHT@GOTPAGEOFF]
	adrp	x24, _amenu_loop_options.menu_sel@PAGE
	mov	w28, #300
Lloh8:
	adrp	x25, _currentConfig@GOTPAGE
Lloh9:
	ldr	x25, [x25, _currentConfig@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x8, _PBTN_STOP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PBTN_STOP@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _PBTN_REW@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PBTN_REW@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x19
	b.ne	LBB0_12
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w0, [x24, _amenu_loop_options.menu_sel@PAGEOFF]
	bl	_draw_amenu_options
Lloh16:
	adrp	x20, _PBTN_UP@GOTPAGE
Lloh17:
	ldr	x20, [x20, _PBTN_UP@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh18:
	adrp	x9, _PBTN_DOWN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PBTN_DOWN@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	orr	x8, x9, x8
	ldr	x9, [x26]
	orr	x8, x8, x9
	ldr	x9, [x27]
	orr	x8, x8, x9
Lloh21:
	adrp	x9, _PBTN_PLAY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PBTN_PLAY@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh24:
	adrp	x9, _PBTN_STOP@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PBTN_STOP@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh27:
	adrp	x9, _PBTN_REW@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PBTN_REW@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	orr	x0, x8, x9
	bl	_in_menu_wait
	mov	x19, x0
	ldr	x8, [x20]
	tst	x8, x0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24, _amenu_loop_options.menu_sel@PAGEOFF]
	subs	w8, w8, #1
	csel	w8, w23, w8, lt
	str	w8, [x24, _amenu_loop_options.menu_sel@PAGEOFF]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh30:
	adrp	x8, _PBTN_DOWN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PBTN_DOWN@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	w2, [x24, _amenu_loop_options.menu_sel@PAGEOFF]
	tst	x8, x19
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w2, w23
	csinc	w2, wzr, w2, ge
	str	w2, [x24, _amenu_loop_options.menu_sel@PAGEOFF]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_me_index2id
	mov	x20, x0
	ldr	x9, [x26]
	ldr	x8, [x27]
	orr	x9, x8, x9
	tst	x9, x19
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x22]
	tst	x8, x19
	cset	w3, ne
	mov	x2, x20
	bl	_me_process
Lloh33:
	adrp	x8, _MA_OPT2_GAMMA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MA_OPT2_GAMMA@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w20, w8, #0, eq
	b.eq	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh36:
	adrp	x8, _PBTN_PLAY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PBTN_PLAY@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	tst	x8, x19
	b.eq	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x22]
	mov	x2, x20
	mov	w3, #1
	bl	_me_process
Lloh39:
	adrp	x8, _MA_OPT2_DONE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MA_OPT2_DONE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w20, w8, #0, eq
	b.ne	LBB0_1
	b	LBB0_12
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_Framework_PollGetButtons
	mov	x19, x0
	ldr	x8, [x26]
	ldr	x9, [x27]
	orr	x9, x9, x8
	tst	x9, x0
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w9, [x25]
	sub	w10, w9, #1
	tst	x8, x19
	csinc	w8, w10, w9, ne
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	cmp	w8, #300
	csel	w8, w8, w28, lo
	str	w8, [x25]
	ldr	w0, [x24, _amenu_loop_options.menu_sel@PAGEOFF]
	bl	_draw_amenu_options
	mov	w0, #18
	bl	_Sleep
	b	LBB0_10
LBB0_12:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_amenu_loop_options.menu_sel,4,2 ; @amenu_loop_options.menu_sel
	.comm	_opt2_entries,4,2               ; @opt2_entries
	.comm	_OPT2_ENTRY_COUNT,4,2           ; @OPT2_ENTRY_COUNT
	.comm	_PBTN_UP,8,3                    ; @PBTN_UP
	.comm	_PBTN_DOWN,8,3                  ; @PBTN_DOWN
	.comm	_PBTN_LEFT,8,3                  ; @PBTN_LEFT
	.comm	_PBTN_RIGHT,8,3                 ; @PBTN_RIGHT
	.comm	_PBTN_PLAY,8,3                  ; @PBTN_PLAY
	.comm	_PBTN_STOP,8,3                  ; @PBTN_STOP
	.comm	_PBTN_REW,8,3                   ; @PBTN_REW
	.comm	_MA_OPT2_GAMMA,4,2              ; @MA_OPT2_GAMMA
	.comm	_currentConfig,4,2              ; @currentConfig
	.comm	_MA_OPT2_DONE,4,2               ; @MA_OPT2_DONE
	.no_dead_strip	_amenu_loop_options
.subsections_via_symbols
