	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_romload_prepare           ## -- Begin function menu_romload_prepare
	.p2align	4, 0x90
_menu_romload_prepare:                  ## @menu_romload_prepare
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_strlen
	cltq
	leaq	(%r14,%rax), %rbx
	testl	%eax, %eax
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rbx)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rbx
	cmpq	%r14, %rbx
	ja	LBB0_1
LBB0_3:
	movl	$1, %edi
	movl	$1, %esi
	callq	_menu_draw_begin
	leaq	L_.str(%rip), %r14
	movl	$1, %edi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	movq	_me_sfont_h@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$1, %edi
	movq	%rbx, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	xorl	%eax, %eax
	callq	_menu_draw_end
	movl	$1, %edi
	movl	$1, %esi
	callq	_menu_draw_begin
	movl	$1, %edi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	movl	(%r15), %esi
	movl	$1, %edi
	movq	%rbx, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	xorl	%eax, %eax
	callq	_menu_draw_end
	movl	$1, %edi
	movl	$1, %esi
	callq	_menu_draw_begin
	movl	$1, %edi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	movl	(%r15), %esi
	movl	$1, %edi
	movq	%rbx, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	xorl	%eax, %eax
	callq	_menu_draw_end
	movq	_load_progress_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PicoCartLoadProgressCB@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_cdload_progress_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PicoCDLoadProgressCB@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_cdload_called@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Loading"

	.comm	_me_sfont_h,4,2                 ## @me_sfont_h
	.comm	_load_progress_cb,4,2           ## @load_progress_cb
	.comm	_PicoCartLoadProgressCB,4,2     ## @PicoCartLoadProgressCB
	.comm	_cdload_progress_cb,4,2         ## @cdload_progress_cb
	.comm	_PicoCDLoadProgressCB,4,2       ## @PicoCDLoadProgressCB
	.comm	_cdload_called,8,3              ## @cdload_called
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_romload_prepare           ; -- Begin function menu_romload_prepare
	.p2align	2
_menu_romload_prepare:                  ; @menu_romload_prepare
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_strlen
	add	x19, x20, w0, sxtw
	cmp	w0, #1
	b.lt	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cmp	w8, #47
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x19, x19, #1
	cmp	x19, x20
	b.hi	LBB0_1
LBB0_3:
	mov	w0, #1
	mov	w1, #1
	bl	_menu_draw_begin
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	w0, #1
	mov	w1, #1
	mov	x2, x20
	mov	w3, #65535
	bl	_smalltext_out16
Lloh2:
	adrp	x21, _me_sfont_h@GOTPAGE
Lloh3:
	ldr	x21, [x21, _me_sfont_h@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #1
	mov	x2, x19
	mov	w3, #65535
	bl	_smalltext_out16
	bl	_menu_draw_end
	mov	w0, #1
	mov	w1, #1
	bl	_menu_draw_begin
	mov	w0, #1
	mov	w1, #1
	mov	x2, x20
	mov	w3, #65535
	bl	_smalltext_out16
	ldr	w1, [x21]
	mov	w0, #1
	mov	x2, x19
	mov	w3, #65535
	bl	_smalltext_out16
	bl	_menu_draw_end
	mov	w0, #1
	mov	w1, #1
	bl	_menu_draw_begin
	mov	w0, #1
	mov	w1, #1
	mov	x2, x20
	mov	w3, #65535
	bl	_smalltext_out16
	ldr	w1, [x21]
	mov	w0, #1
	mov	x2, x19
	mov	w3, #65535
	bl	_smalltext_out16
	bl	_menu_draw_end
Lloh4:
	adrp	x8, _load_progress_cb@GOTPAGE
Lloh5:
	ldr	x8, [x8, _load_progress_cb@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _PicoCartLoadProgressCB@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PicoCartLoadProgressCB@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
Lloh10:
	adrp	x8, _cdload_progress_cb@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cdload_progress_cb@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PicoCDLoadProgressCB@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PicoCDLoadProgressCB@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
Lloh16:
	adrp	x8, _cdload_called@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cdload_called@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Loading"

	.comm	_me_sfont_h,4,2                 ; @me_sfont_h
	.comm	_load_progress_cb,4,2           ; @load_progress_cb
	.comm	_PicoCartLoadProgressCB,4,2     ; @PicoCartLoadProgressCB
	.comm	_cdload_progress_cb,4,2         ; @cdload_progress_cb
	.comm	_PicoCDLoadProgressCB,4,2       ; @PicoCDLoadProgressCB
	.comm	_cdload_called,8,3              ; @cdload_called
.subsections_via_symbols
