	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cd_menu_loop_options
_cd_menu_loop_options:                  ## @cd_menu_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-48(%rbp), %rsi
	movl	$4, %edi
	callq	_emu_findBios
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	leaq	-48(%rbp), %rsi
	movl	$8, %edi
	callq	_emu_findBios
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	leaq	-48(%rbp), %rsi
	movl	$1, %edi
	callq	_emu_findBios
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	_menuErrorMsg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	_PBTN_LEFT@GOTPCREL(%rip), %r15
	movq	_cdopt_entries@GOTPCREL(%rip), %r13
	movq	_CDOPT_ENTRY_COUNT@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-48(%rbp), %rsi
	callq	_emu_findBios
	testq	%rax, %rax
	jne	LBB0_27
LBB0_30:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_PBTN_X@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	jne	LBB0_31
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	_cd_menu_loop_options.menu_sel(%rip), %edi
	leaq	-72(%rbp), %rsi
	callq	_draw_cd_menu_options
	movq	_PBTN_DOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PBTN_UP@GOTPCREL(%rip), %r12
	orq	(%r12), %rdi
	orq	(%r15), %rdi
	movq	_PBTN_RIGHT@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	movq	_PBTN_X@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	movq	_PBTN_CIRCLE@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	movq	_PBTN_START@GOTPCREL(%rip), %rax
	orq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_in_menu_wait
	movq	%rax, %rbx
	testq	%rax, (%r12)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	_cd_menu_loop_options.menu_sel(%rip), %eax
	leal	-1(%rax), %ecx
	testl	%eax, %eax
	movl	$10, %eax
	cmovlel	%eax, %ecx
	movl	%ecx, _cd_menu_loop_options.menu_sel(%rip)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	_cd_menu_loop_options.menu_sel(%rip), %edx
	movq	_PBTN_DOWN@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$10, %edx
	leal	1(%rdx), %eax
	movl	$0, %ecx
	cmovgel	%ecx, %eax
	movl	%eax, _cd_menu_loop_options.menu_sel(%rip)
	movl	%eax, %edx
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %edi
	movl	(%r14), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_me_index2id
	movl	%eax, %r12d
	movq	_PBTN_RIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	orq	%rax, %rcx
	testq	%rbx, %rcx
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %edi
	movl	(%r14), %esi
	xorl	%ecx, %ecx
	testq	%rbx, %rax
	setne	%cl
	movl	%r12d, %edx
	callq	_me_process
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MA_CDOPT_READAHEAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_PicoCDBuffers@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rbx, (%r15)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%ecx, %eax
	sarl	%eax
	cmpl	$4, %ecx
	movl	$0, %ecx
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	leal	(%rcx,%rcx), %eax
	cmpl	$8192, %eax                     ## imm = 0x2000
	movl	$8192, %edx                     ## imm = 0x2000
	cmovgel	%edx, %eax
	cmpl	$2, %ecx
	movl	$2, %ecx
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	cmovll	%ecx, %eax
	movq	_PicoCDBuffers@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_PBTN_CIRCLE@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %edi
	movl	(%r14), %esi
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_me_process
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MA_CDOPT_DONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_31
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_PBTN_START@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$130, %r12d
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %r12d
	je	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$128, %r12d
	jne	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$4, %edi
	jmp	LBB0_26
LBB0_28:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$8, %edi
	jmp	LBB0_26
LBB0_27:
	movq	_romFileName@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rsi
	callq	_strcpy
	movq	_PGS_ReloadRom@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_engineState@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_31
LBB0_1:
	leaq	-48(%rbp), %rdi
	callq	_cd_menu_loop_options.cold.3
	jmp	LBB0_31
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_cd_menu_loop_options.cold.2
	jmp	LBB0_31
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_cd_menu_loop_options.cold.1
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function cd_menu_loop_options.cold.1
_cd_menu_loop_options.cold.1:           ## @cd_menu_loop_options.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_strlen
	cltq
	movq	(%rbx), %rcx
	addq	%r14, %rax
	decq	%rax
LBB1_2:                                 ## =>This Inner Loop Header: Depth=1
	movb	(%rax), %dl
	cmpq	%rcx, %rax
	jbe	LBB1_3
## %bb.1:                               ##   in Loop: Header=BB1_2 Depth=1
	decq	%rax
	cmpb	$47, %dl
	jne	LBB1_2
## %bb.4:
	addq	$2, %rax
	movq	%rax, %rsi
	jmp	LBB1_5
LBB1_3:
	leaq	1(%rax), %rsi
	cmpb	$47, %dl
	cmovneq	%rax, %rsi
LBB1_5:
	pushq	$8
	popq	%rdx
	callq	_strncpy
	ud2
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function cd_menu_loop_options.cold.2
_cd_menu_loop_options.cold.2:           ## @cd_menu_loop_options.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_strlen
	cltq
	movq	(%rbx), %rcx
	addq	%r14, %rax
	decq	%rax
LBB2_2:                                 ## =>This Inner Loop Header: Depth=1
	movb	(%rax), %dl
	cmpq	%rcx, %rax
	jbe	LBB2_3
## %bb.1:                               ##   in Loop: Header=BB2_2 Depth=1
	decq	%rax
	cmpb	$47, %dl
	jne	LBB2_2
## %bb.4:
	addq	$2, %rax
	movq	%rax, %rsi
	jmp	LBB2_5
LBB2_3:
	leaq	1(%rax), %rsi
	cmpb	$47, %dl
	cmovneq	%rax, %rsi
LBB2_5:
	pushq	$8
	popq	%rdx
	callq	_strncpy
	ud2
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function cd_menu_loop_options.cold.3
_cd_menu_loop_options.cold.3:           ## @cd_menu_loop_options.cold.3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_strlen
	cltq
	movq	(%rbx), %rcx
	addq	%r14, %rax
	decq	%rax
LBB3_2:                                 ## =>This Inner Loop Header: Depth=1
	movb	(%rax), %dl
	cmpq	%rcx, %rax
	jbe	LBB3_3
## %bb.1:                               ##   in Loop: Header=BB3_2 Depth=1
	decq	%rax
	cmpb	$47, %dl
	jne	LBB3_2
## %bb.4:
	addq	$2, %rax
	movq	%rax, %rsi
	jmp	LBB3_5
LBB3_3:
	leaq	1(%rax), %rsi
	cmpb	$47, %dl
	cmovneq	%rax, %rsi
LBB3_5:
	pushq	$8
	popq	%rdx
	callq	_strncpy
	ud2
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_cd_menu_loop_options.menu_sel,4,2 ## @cd_menu_loop_options.menu_sel
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOT FOUND"

	.comm	_menuErrorMsg,8,3               ## @menuErrorMsg
	.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_X,8,3                     ## @PBTN_X
	.comm	_PBTN_CIRCLE,8,3                ## @PBTN_CIRCLE
	.comm	_PBTN_START,8,3                 ## @PBTN_START
	.comm	_cdopt_entries,4,2              ## @cdopt_entries
	.comm	_CDOPT_ENTRY_COUNT,4,2          ## @CDOPT_ENTRY_COUNT
	.comm	_MA_CDOPT_READAHEAD,4,2         ## @MA_CDOPT_READAHEAD
	.comm	_PicoCDBuffers,4,2              ## @PicoCDBuffers
	.comm	_MA_CDOPT_DONE,4,2              ## @MA_CDOPT_DONE
	.comm	_romFileName,8,3                ## @romFileName
	.comm	_PGS_ReloadRom,4,2              ## @PGS_ReloadRom
	.comm	_engineState,4,2                ## @engineState
	.no_dead_strip	_cd_menu_loop_options
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cd_menu_loop_options
_cd_menu_loop_options:                  ; @cd_menu_loop_options
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x1, sp
	mov	w0, #4
	bl	_emu_findBios
	cbnz	x0, LBB0_28
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	mov	x1, sp
	mov	w0, #8
	bl	_emu_findBios
	cbnz	x0, LBB0_29
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	mov	x1, sp
	mov	w0, #1
	bl	_emu_findBios
	cbnz	x0, LBB0_30
; %bb.3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
Lloh6:
	adrp	x8, _menuErrorMsg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _menuErrorMsg@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	xzr, [x8]
Lloh9:
	adrp	x22, _PBTN_DOWN@GOTPAGE
Lloh10:
	ldr	x22, [x22, _PBTN_DOWN@GOTPAGEOFF]
Lloh11:
	adrp	x23, _PBTN_LEFT@GOTPAGE
Lloh12:
	ldr	x23, [x23, _PBTN_LEFT@GOTPAGEOFF]
Lloh13:
	adrp	x24, _PBTN_RIGHT@GOTPAGE
Lloh14:
	ldr	x24, [x24, _PBTN_RIGHT@GOTPAGEOFF]
Lloh15:
	adrp	x26, _PBTN_CIRCLE@GOTPAGE
Lloh16:
	ldr	x26, [x26, _PBTN_CIRCLE@GOTPAGEOFF]
Lloh17:
	adrp	x27, _PBTN_START@GOTPAGE
Lloh18:
	ldr	x27, [x27, _PBTN_START@GOTPAGEOFF]
Lloh19:
	adrp	x28, _cdopt_entries@GOTPAGE
Lloh20:
	ldr	x28, [x28, _cdopt_entries@GOTPAGEOFF]
Lloh21:
	adrp	x21, _CDOPT_ENTRY_COUNT@GOTPAGE
Lloh22:
	ldr	x21, [x21, _CDOPT_ENTRY_COUNT@GOTPAGEOFF]
	adrp	x25, _cd_menu_loop_options.menu_sel@PAGE
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, sp
	mov	w0, #1
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_emu_findBios
	cbnz	x0, LBB0_26
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh23:
	adrp	x8, _PBTN_X@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PBTN_X@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	tst	x8, x19
	b.ne	LBB0_27
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, _cd_menu_loop_options.menu_sel@PAGEOFF]
	add	x1, sp, #8
	bl	_draw_cd_menu_options
Lloh26:
	adrp	x20, _PBTN_UP@GOTPAGE
Lloh27:
	ldr	x20, [x20, _PBTN_UP@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x22]
	orr	x8, x9, x8
	ldr	x9, [x23]
	orr	x8, x8, x9
	ldr	x9, [x24]
	orr	x8, x8, x9
Lloh28:
	adrp	x9, _PBTN_X@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PBTN_X@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	orr	x8, x8, x9
	ldr	x9, [x26]
	orr	x8, x8, x9
	ldr	x9, [x27]
	orr	x0, x8, x9
	mov	w1, #0
	bl	_in_menu_wait
	mov	x19, x0
	ldr	x8, [x20]
	tst	x8, x0
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25, _cd_menu_loop_options.menu_sel@PAGEOFF]
	subs	w8, w8, #1
	mov	w9, #10
	csel	w8, w9, w8, lt
	str	w8, [x25, _cd_menu_loop_options.menu_sel@PAGEOFF]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	ldr	w2, [x25, _cd_menu_loop_options.menu_sel@PAGEOFF]
	tst	x8, x19
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w2, #9
	csinc	w2, wzr, w2, gt
	str	w2, [x25, _cd_menu_loop_options.menu_sel@PAGEOFF]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x28]
	ldr	w1, [x21]
	bl	_me_index2id
	mov	x20, x0
	ldr	x9, [x23]
	ldr	x8, [x24]
	orr	x9, x8, x9
	tst	x9, x19
	b.eq	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x28]
	ldr	w1, [x21]
	tst	x8, x19
	cset	w3, ne
	mov	x2, x20
	bl	_me_process
Lloh31:
	adrp	x8, _MA_CDOPT_READAHEAD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MA_CDOPT_READAHEAD@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w20, w8, #0, eq
	b.ne	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x23]
Lloh34:
	adrp	x8, _PicoCDBuffers@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PicoCDBuffers@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	x9, x19
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	asr	w9, w8, #1
	cmp	w8, #4
	csel	w8, wzr, w9, lt
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	w9, w8, #1
	cmp	w9, #2, lsl #12                 ; =8192
	mov	w10, #8192
	csel	w9, w9, w10, lt
	cmp	w8, #2
	mov	w8, #2
	csel	w8, w8, w9, lt
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh37:
	adrp	x9, _PicoCDBuffers@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PicoCDBuffers@GOTPAGEOFF]
Lloh39:
	str	w8, [x9]
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x26]
	tst	x8, x19
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x28]
	ldr	w1, [x21]
	mov	x2, x20
	mov	w3, #1
	bl	_me_process
	cbnz	w0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh40:
	adrp	x8, _MA_CDOPT_DONE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MA_CDOPT_DONE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_27
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x27]
	tst	x8, x19
	b.eq	LBB0_6
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w20, #130
	b.eq	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w20, #129
	b.eq	LBB0_4
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w20, #128
	b.ne	LBB0_6
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, sp
	mov	w0, #4
	b	LBB0_5
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, sp
	mov	w0, #8
	b	LBB0_5
LBB0_26:
Lloh43:
	adrp	x8, _romFileName@GOTPAGE
Lloh44:
	ldr	x8, [x8, _romFileName@GOTPAGEOFF]
Lloh45:
	ldr	x0, [x8]
	ldr	x1, [sp]
	bl	_strcpy
Lloh46:
	adrp	x8, _PGS_ReloadRom@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PGS_ReloadRom@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _engineState@GOTPAGE
Lloh50:
	ldr	x9, [x9, _engineState@GOTPAGEOFF]
Lloh51:
	str	w8, [x9]
LBB0_27:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_28:
	mov	x0, sp
	bl	_cd_menu_loop_options.cold.3
LBB0_29:
	mov	x0, sp
	bl	_cd_menu_loop_options.cold.2
LBB0_30:
	mov	x0, sp
	bl	_cd_menu_loop_options.cold.1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function cd_menu_loop_options.cold.1
_cd_menu_loop_options.cold.1:           ; @cd_menu_loop_options.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_OUTLINED_FUNCTION_0
	ldr	x9, [x19]
	add	x8, x20, w0, sxtw
	sub	x8, x8, #1
LBB1_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	x8, x9
	b.ls	LBB1_4
; %bb.2:                                ;   in Loop: Header=BB1_1 Depth=1
	sub	x8, x8, #1
	cmp	w10, #47
	b.ne	LBB1_1
; %bb.3:
	add	x1, x8, #2
	b	LBB1_5
LBB1_4:
	cmp	w10, #47
	cinc	x1, x8, eq
LBB1_5:
	bl	_OUTLINED_FUNCTION_1
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function cd_menu_loop_options.cold.2
_cd_menu_loop_options.cold.2:           ; @cd_menu_loop_options.cold.2
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_OUTLINED_FUNCTION_0
	ldr	x9, [x19]
	add	x8, x20, w0, sxtw
	sub	x8, x8, #1
LBB2_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	x8, x9
	b.ls	LBB2_4
; %bb.2:                                ;   in Loop: Header=BB2_1 Depth=1
	sub	x8, x8, #1
	cmp	w10, #47
	b.ne	LBB2_1
; %bb.3:
	add	x1, x8, #2
	b	LBB2_5
LBB2_4:
	cmp	w10, #47
	cinc	x1, x8, eq
LBB2_5:
	bl	_OUTLINED_FUNCTION_1
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function cd_menu_loop_options.cold.3
_cd_menu_loop_options.cold.3:           ; @cd_menu_loop_options.cold.3
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_OUTLINED_FUNCTION_0
	ldr	x9, [x19]
	add	x8, x20, w0, sxtw
	sub	x8, x8, #1
LBB3_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	x8, x9
	b.ls	LBB3_4
; %bb.2:                                ;   in Loop: Header=BB3_1 Depth=1
	sub	x8, x8, #1
	cmp	w10, #47
	b.ne	LBB3_1
; %bb.3:
	add	x1, x8, #2
	b	LBB3_5
LBB3_4:
	cmp	w10, #47
	cinc	x1, x8, eq
LBB3_5:
	bl	_OUTLINED_FUNCTION_1
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function OUTLINED_FUNCTION_0
_OUTLINED_FUNCTION_0:                   ; @OUTLINED_FUNCTION_0 Thunk
	.cfi_startproc
; %bb.0:
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	b	_strlen
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function OUTLINED_FUNCTION_1
_OUTLINED_FUNCTION_1:                   ; @OUTLINED_FUNCTION_1 Thunk
	.cfi_startproc
; %bb.0:
	mov	w2, #8
	b	_strncpy
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_cd_menu_loop_options.menu_sel,4,2 ; @cd_menu_loop_options.menu_sel
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOT FOUND"

	.comm	_menuErrorMsg,8,3               ; @menuErrorMsg
	.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_X,8,3                     ; @PBTN_X
	.comm	_PBTN_CIRCLE,8,3                ; @PBTN_CIRCLE
	.comm	_PBTN_START,8,3                 ; @PBTN_START
	.comm	_cdopt_entries,4,2              ; @cdopt_entries
	.comm	_CDOPT_ENTRY_COUNT,4,2          ; @CDOPT_ENTRY_COUNT
	.comm	_MA_CDOPT_READAHEAD,4,2         ; @MA_CDOPT_READAHEAD
	.comm	_PicoCDBuffers,4,2              ; @PicoCDBuffers
	.comm	_MA_CDOPT_DONE,4,2              ; @MA_CDOPT_DONE
	.comm	_romFileName,8,3                ; @romFileName
	.comm	_PGS_ReloadRom,4,2              ; @PGS_ReloadRom
	.comm	_engineState,4,2                ; @engineState
	.no_dead_strip	_cd_menu_loop_options
.subsections_via_symbols
