	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function debug_menu_loop
_debug_menu_loop:                       ## @debug_menu_loop
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PBTN_MOK@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PBTN_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$1, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	sbbl	$-1, %ecx
	movq	_PBTN_UP@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	cmpl	$1, %ebx
	adcl	$-1, %ecx
	testl	%ecx, %ecx
	movl	$0, %eax
	cmovlel	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %r14
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
                                        ##     Child Loop BB0_36 Depth 2
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_menu_draw_begin
	cmpl	$4, %r12d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	ja	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_PDebugMain
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_plat_debug_cat
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_draw_text_debug
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_draw_frame_debug
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_pemu_forced_frame
	movl	$1, %edi
	callq	_make_bg
	movq	_g_menuscreen_h@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	$-120, %ecx
	movq	_g_menuscreen_w@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%esi, %ecx
	movslq	%ecx, %rax
	addq	%rax, %rax
	movq	_g_menuscreen_ptr@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,2), %rdi
	addq	$-320, %rdi                     ## imm = 0xFEC0
	callq	_PDebugShowSpriteStats
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_g_menuscreen_ptr@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_g_menuscreen_w@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_g_menuscreen_h@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	addl	%edx, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r15), %rdi
	movl	(%rbx), %esi
	callq	_PDebugShowPalette
	movslq	(%rbx), %rsi
	imulq	$240, %rsi, %rax
	addq	(%r15), %rax
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,2), %rdi
	addq	$32, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_PDebugShowSprite
	xorl	%eax, %eax
	callq	_PDebugSpriteList
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	$6, %edx
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_PDebug32x
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_draw_text_debug
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PBTN_MA2@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	callq	_menu_draw_end
	movq	_PBTN_MBACK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %r15
	orl	(%r14), %edi
	orl	(%rbx), %edi
	movq	_PBTN_MA3@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_PBTN_L@GOTPCREL(%rip), %r14
	orl	(%r14), %edi
	movq	_PBTN_R@GOTPCREL(%rip), %r13
	orl	(%r13), %edi
	movq	_PBTN_UP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_PBTN_DOWN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_PBTN_LEFT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_PBTN_RIGHT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	xorl	%esi, %esi
	movl	$70, %edx
	callq	_in_menu_wait
	testl	%eax, (%r12)
	jne	LBB0_38
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	-1(%rdx), %eax
	testl	%edx, %edx
	movl	$4, %ecx
	cmovlel	%ecx, %eax
	testl	%ebx, (%r14)
	cmovel	%edx, %eax
	leal	1(%rax), %r12d
	cmpl	$4, %eax
	movl	$0, %ecx
	cmovgel	%ecx, %r12d
	testl	%ebx, (%r13)
	cmovel	%eax, %r12d
	cmpl	$3, %r12d
	je	LBB0_37
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %r12d
	movq	%r15, %r14
	je	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	movq	_PBTN_MA3@GOTPCREL(%rip), %r15
	jne	LBB0_1
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, (%r14)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_PDebugCPUStep
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, (%r15)
	je	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%edi, %edi
	movl	$-1, %esi
	callq	_in_menu_wait_any
	testl	%eax, (%r15)
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_mplayer_loop
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PBTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PBTN_MA2@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_1
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	xorl	%eax, %eax
	callq	_PDebugDumpMem
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_PBTN_MA2@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PBTN_MA2@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%edi, %edi
	movl	$-1, %esi
	callq	_in_menu_wait_any
	testl	%eax, (%rbx)
	jne	LBB0_23
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PBTN_LEFT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	movq	_PicoDrawMask@GOTPCREL(%rip), %rcx
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PDRAW_LAYERB_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%eax, (%rcx)
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PBTN_RIGHT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PDRAW_LAYERA_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%eax, (%rcx)
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PBTN_DOWN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PDRAW_SPRITES_LOW_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%eax, (%rcx)
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PBTN_UP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PDRAW_SPRITES_HI_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%eax, (%rcx)
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PBTN_MA2@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PDRAW_32X_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%eax, (%rcx)
LBB0_34:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, (%r14)
	je	LBB0_1
## %bb.35:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PsndOut@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_PicoSkipFrame@GOTPCREL(%rip), %r15
	movl	$1, (%r15)
	xorl	%eax, %eax
	callq	_PicoFrame
	movl	$0, (%r15)
	testl	%ebx, (%r14)
	je	LBB0_1
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%edi, %edi
	movl	$-1, %esi
	callq	_in_menu_wait_any
	testl	%eax, (%r14)
	jne	LBB0_36
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_g_menuscreen_w@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_me_sfont_h@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %edi
	movq	_g_menuscreen_h@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_me_mfont_h@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
LBB0_38:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_g_menuscreen_w,4,2             ## @g_menuscreen_w
	.comm	_me_sfont_h,4,2                 ## @me_sfont_h
	.comm	_g_menuscreen_h,4,2             ## @g_menuscreen_h
	.comm	_me_mfont_h,4,2                 ## @me_mfont_h
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dumped"

	.comm	_g_menuscreen_ptr,8,3           ## @g_menuscreen_ptr
	.comm	_PBTN_MOK,4,2                   ## @PBTN_MOK
	.comm	_PBTN_MBACK,4,2                 ## @PBTN_MBACK
	.comm	_PBTN_MA2,4,2                   ## @PBTN_MA2
	.comm	_PBTN_MA3,4,2                   ## @PBTN_MA3
	.comm	_PBTN_L,4,2                     ## @PBTN_L
	.comm	_PBTN_R,4,2                     ## @PBTN_R
	.comm	_PBTN_UP,4,2                    ## @PBTN_UP
	.comm	_PBTN_DOWN,4,2                  ## @PBTN_DOWN
	.comm	_PBTN_LEFT,4,2                  ## @PBTN_LEFT
	.comm	_PBTN_RIGHT,4,2                 ## @PBTN_RIGHT
L_.str.1:                               ## @.str.1
	.asciz	"dumps"

	.comm	_PDRAW_LAYERB_ON,4,2            ## @PDRAW_LAYERB_ON
	.comm	_PicoDrawMask,4,2               ## @PicoDrawMask
	.comm	_PDRAW_LAYERA_ON,4,2            ## @PDRAW_LAYERA_ON
	.comm	_PDRAW_SPRITES_LOW_ON,4,2       ## @PDRAW_SPRITES_LOW_ON
	.comm	_PDRAW_SPRITES_HI_ON,4,2        ## @PDRAW_SPRITES_HI_ON
	.comm	_PDRAW_32X_ON,4,2               ## @PDRAW_32X_ON
	.comm	_PsndOut,8,3                    ## @PsndOut
	.comm	_PicoSkipFrame,4,2              ## @PicoSkipFrame
	.no_dead_strip	_debug_menu_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function debug_menu_loop
_debug_menu_loop:                       ; @debug_menu_loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w26, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w20, #0
Lloh0:
	adrp	x23, _PBTN_MOK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PBTN_MOK@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PBTN_MBACK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PBTN_MBACK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PBTN_MA2@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PBTN_MA2@GOTPAGEOFF]
Lloh6:
	adrp	x27, _PBTN_MA3@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PBTN_MA3@GOTPAGEOFF]
Lloh8:
	adrp	x28, _PBTN_L@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PBTN_L@GOTPAGEOFF]
Lloh10:
	adrp	x21, _PBTN_R@GOTPAGE
Lloh11:
	ldr	x21, [x21, _PBTN_R@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh12:
	adrp	x8, _PBTN_DOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PBTN_DOWN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w22
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cinc	w8, w8, ne
Lloh15:
	adrp	x9, _PBTN_UP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PBTN_UP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w22
	cset	w9, ne
	sub	w8, w8, w9
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x19
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
                                        ;     Child Loop BB0_37 Depth 2
	mov	w0, #1
	mov	w1, #0
	bl	_menu_draw_begin
	cmp	w26, #4
	b.hi	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, w26
Lloh18:
	adrp	x11, lJTI0_0@PAGE
Lloh19:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_4
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_PDebugMain
	mov	x22, x0
	bl	_plat_debug_cat
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_draw_text_debug
	mov	w19, #0
	cbz	w20, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh20:
	adrp	x8, _g_menuscreen_w@GOTPAGE
Lloh21:
	ldr	x8, [x8, _g_menuscreen_w@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _me_sfont_h@GOTPAGE
Lloh24:
	ldr	x9, [x9, _me_sfont_h@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	mov	w10, #-6
	madd	w0, w9, w10, w8
Lloh26:
	adrp	x8, _g_menuscreen_h@GOTPAGE
Lloh27:
	ldr	x8, [x8, _g_menuscreen_h@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _me_mfont_h@GOTPAGE
Lloh30:
	ldr	x9, [x9, _me_mfont_h@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	sub	w1, w8, w9
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	w3, #65535
	bl	_smalltext_out16
	mov	w19, #0
	b	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_draw_frame_debug
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	mov	w1, #0
	bl	_pemu_forced_frame
	mov	w0, #1
	bl	_make_bg
Lloh34:
	adrp	x8, _g_menuscreen_ptr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _g_menuscreen_ptr@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _g_menuscreen_h@GOTPAGE
Lloh38:
	ldr	x9, [x9, _g_menuscreen_h@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	w9, w9, #120
Lloh40:
	adrp	x10, _g_menuscreen_w@GOTPAGE
Lloh41:
	ldr	x10, [x10, _g_menuscreen_w@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x10]
	mul	w9, w9, w1
	add	x8, x8, w9, sxtw #1
	cmp	w1, #0
	cinc	w9, w1, lt
	asr	w9, w9, #1
	add	x8, x8, w9, sxtw #1
	sub	x0, x8, #320
	bl	_PDebugShowSpriteStats
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh43:
	adrp	x22, _g_menuscreen_ptr@GOTPAGE
Lloh44:
	ldr	x22, [x22, _g_menuscreen_ptr@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh45:
	adrp	x19, _g_menuscreen_w@GOTPAGE
Lloh46:
	ldr	x19, [x19, _g_menuscreen_w@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh47:
	adrp	x9, _g_menuscreen_h@GOTPAGE
Lloh48:
	ldr	x9, [x9, _g_menuscreen_h@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w2, w8, #1
	mov	w1, #0
	bl	_memset
	ldr	x0, [x22]
	ldr	w1, [x19]
	bl	_PDebugShowPalette
	ldr	x8, [x22]
	ldr	w1, [x19]
	mov	w9, #120
	mul	w9, w1, w9
	add	x8, x8, w9, sxtw #1
	cmp	w1, #0
	cinc	w9, w1, lt
	asr	w9, w9, #1
	add	x8, x8, w9, sxtw #1
	add	x0, x8, #32
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	mov	x2, x19
	bl	_PDebugShowSprite
	bl	_PDebugSpriteList
	mov	x1, x19
	mov	w2, #6
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_PDebug32x
	mov	w1, #0
	mov	w2, #0
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_draw_text_debug
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x19, x20
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_menu_draw_end
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w8, w8, w9
Lloh50:
	adrp	x9, _PBTN_UP@GOTPAGE
Lloh51:
	ldr	x9, [x9, _PBTN_UP@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh53:
	adrp	x9, _PBTN_DOWN@GOTPAGE
Lloh54:
	ldr	x9, [x9, _PBTN_DOWN@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh56:
	adrp	x9, _PBTN_LEFT@GOTPAGE
Lloh57:
	ldr	x9, [x9, _PBTN_LEFT@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh59:
	adrp	x9, _PBTN_RIGHT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _PBTN_RIGHT@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w0, w8, w9
	mov	x1, #0
	mov	w2, #70
	bl	_in_menu_wait
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_39
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	ldr	w8, [x28]
	subs	w9, w26, #1
	mov	w10, #4
	csel	w9, w10, w9, lt
	tst	w8, w0
	csel	w8, w26, w9, eq
	ldr	w9, [x21]
	cmp	w8, #3
	csinc	w10, wzr, w8, gt
	tst	w9, w0
	csel	w26, w8, w10, eq
	cmp	w26, #3
	b.eq	LBB0_1
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w26, #1
	b.eq	LBB0_25
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x19
	cbnz	w26, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_PDebugCPUStep
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_21
LBB0_19:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, #0
	mov	w1, #-1
	bl	_in_menu_wait_any
	ldr	w8, [x27]
	tst	w8, w0
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	bl	_mplayer_loop
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
Lloh62:
	adrp	x9, _PBTN_LEFT@GOTPAGE
Lloh63:
	ldr	x9, [x9, _PBTN_LEFT@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x20, x19
	bics	wzr, w8, w22
	b.ne	LBB0_2
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh65:
	adrp	x0, l_.str.1@PAGE
Lloh66:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #511
	bl	_mkdir
	bl	_PDebugDumpMem
	ldr	w8, [x25]
	mov	w20, #1
	tst	w8, w22
	b.eq	LBB0_2
LBB0_23:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, #0
	mov	w1, #-1
	bl	_in_menu_wait_any
	ldr	w8, [x25]
	tst	w8, w0
	b.ne	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #1
	b	LBB0_2
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh67:
	adrp	x8, _PBTN_LEFT@GOTPAGE
Lloh68:
	ldr	x8, [x8, _PBTN_LEFT@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	tst	w8, w22
Lloh70:
	adrp	x10, _PicoDrawMask@GOTPAGE
Lloh71:
	ldr	x10, [x10, _PicoDrawMask@GOTPAGEOFF]
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh72:
	adrp	x8, _PDRAW_LAYERB_ON@GOTPAGE
Lloh73:
	ldr	x8, [x8, _PDRAW_LAYERB_ON@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	ldr	w9, [x10]
	eor	w8, w9, w8
	str	w8, [x10]
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh75:
	adrp	x8, _PBTN_RIGHT@GOTPAGE
Lloh76:
	ldr	x8, [x8, _PBTN_RIGHT@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh78:
	adrp	x8, _PDRAW_LAYERA_ON@GOTPAGE
Lloh79:
	ldr	x8, [x8, _PDRAW_LAYERA_ON@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	ldr	w9, [x10]
	eor	w8, w9, w8
	str	w8, [x10]
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh81:
	adrp	x8, _PBTN_DOWN@GOTPAGE
Lloh82:
	ldr	x8, [x8, _PBTN_DOWN@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh84:
	adrp	x8, _PDRAW_SPRITES_LOW_ON@GOTPAGE
Lloh85:
	ldr	x8, [x8, _PDRAW_SPRITES_LOW_ON@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	ldr	w9, [x10]
	eor	w8, w9, w8
	str	w8, [x10]
LBB0_31:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh87:
	adrp	x8, _PBTN_UP@GOTPAGE
Lloh88:
	ldr	x8, [x8, _PBTN_UP@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh90:
	adrp	x8, _PDRAW_SPRITES_HI_ON@GOTPAGE
Lloh91:
	ldr	x8, [x8, _PDRAW_SPRITES_HI_ON@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	ldr	w9, [x10]
	eor	w8, w9, w8
	str	w8, [x10]
LBB0_33:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
	tst	w8, w22
	b.eq	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh93:
	adrp	x8, _PDRAW_32X_ON@GOTPAGE
Lloh94:
	ldr	x8, [x8, _PDRAW_32X_ON@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	ldr	w9, [x10]
	eor	w8, w9, w8
	str	w8, [x10]
LBB0_35:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	mov	x20, x19
	tst	w8, w22
	b.eq	LBB0_2
; %bb.36:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh96:
	adrp	x8, _PsndOut@GOTPAGE
Lloh97:
	ldr	x8, [x8, _PsndOut@GOTPAGEOFF]
Lloh98:
	str	xzr, [x8]
	mov	w8, #1
Lloh99:
	adrp	x20, _PicoSkipFrame@GOTPAGE
Lloh100:
	ldr	x20, [x20, _PicoSkipFrame@GOTPAGEOFF]
	str	w8, [x20]
	bl	_PicoFrame
	str	wzr, [x20]
	ldr	w8, [x23]
	mov	x20, x19
	tst	w8, w22
	b.eq	LBB0_2
LBB0_37:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, #0
	mov	w1, #-1
	bl	_in_menu_wait_any
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_37
; %bb.38:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x19
	b	LBB0_2
LBB0_39:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGotStr	Lloh96, Lloh97, Lloh98
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_g_menuscreen_w,4,2             ; @g_menuscreen_w
	.comm	_me_sfont_h,4,2                 ; @me_sfont_h
	.comm	_g_menuscreen_h,4,2             ; @g_menuscreen_h
	.comm	_me_mfont_h,4,2                 ; @me_mfont_h
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dumped"

	.comm	_g_menuscreen_ptr,8,3           ; @g_menuscreen_ptr
	.comm	_PBTN_MOK,4,2                   ; @PBTN_MOK
	.comm	_PBTN_MBACK,4,2                 ; @PBTN_MBACK
	.comm	_PBTN_MA2,4,2                   ; @PBTN_MA2
	.comm	_PBTN_MA3,4,2                   ; @PBTN_MA3
	.comm	_PBTN_L,4,2                     ; @PBTN_L
	.comm	_PBTN_R,4,2                     ; @PBTN_R
	.comm	_PBTN_UP,4,2                    ; @PBTN_UP
	.comm	_PBTN_DOWN,4,2                  ; @PBTN_DOWN
	.comm	_PBTN_LEFT,4,2                  ; @PBTN_LEFT
	.comm	_PBTN_RIGHT,4,2                 ; @PBTN_RIGHT
l_.str.1:                               ; @.str.1
	.asciz	"dumps"

	.comm	_PDRAW_LAYERB_ON,4,2            ; @PDRAW_LAYERB_ON
	.comm	_PicoDrawMask,4,2               ; @PicoDrawMask
	.comm	_PDRAW_LAYERA_ON,4,2            ; @PDRAW_LAYERA_ON
	.comm	_PDRAW_SPRITES_LOW_ON,4,2       ; @PDRAW_SPRITES_LOW_ON
	.comm	_PDRAW_SPRITES_HI_ON,4,2        ; @PDRAW_SPRITES_HI_ON
	.comm	_PDRAW_32X_ON,4,2               ; @PDRAW_32X_ON
	.comm	_PsndOut,8,3                    ; @PsndOut
	.comm	_PicoSkipFrame,4,2              ; @PicoSkipFrame
	.no_dead_strip	_debug_menu_loop
.subsections_via_symbols
