	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_patchlist
_draw_patchlist:                        ## @draw_patchlist
	.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	_g_menuscreen_h@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_me_sfont_h@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %ebx
	shrl	$31, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	%eax, %ebx
	sarl	%ebx
	movl	%ebx, %eax
	subl	%edi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_menu_draw_begin
	movq	_PicoPatchCount@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$16, %r15
	cmpq	%rcx, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r12), %rbx
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PicoPatches@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_me_sfont_h@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	imull	%ebx, %esi
	xorl	%ecx, %ecx
	cmpl	$0, (%rax,%r15)
	sete	%cl
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdx
	leal	(%rcx,%rcx,8), %r13d
	addl	$65526, %r13d                   ## imm = 0xFFF6
	movl	$14, %edi
	movl	%r13d, %ecx
	callq	_smalltext_out16
	movq	_me_sfont_w@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	14(,%rax,4), %edi
	imull	(%r14), %ebx
	movq	_PicoPatches@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r15), %rdx
	movl	%ebx, %esi
	movl	%r13d, %ecx
	callq	_smalltext_out16
	movq	_PicoPatchCount@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_6:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_7:
	addl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_9
## %bb.8:
	movq	_me_sfont_h@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	leaq	L_.str.2(%rip), %rdx
	movl	$14, %edi
	movl	%r12d, %esi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
LBB0_9:
	movq	_me_sfont_h@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdx
	movl	$5, %edi
	movl	%ebx, %esi
	callq	_text_out16
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_draw_end                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_menuscreen_h,4,2             ## @g_menuscreen_h
	.comm	_me_sfont_h,4,2                 ## @me_sfont_h
	.comm	_PicoPatchCount,4,2             ## @PicoPatchCount
	.comm	_PicoPatches,8,3                ## @PicoPatches
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ON "

L_.str.1:                               ## @.str.1
	.asciz	"OFF"

	.comm	_me_sfont_w,4,2                 ## @me_sfont_w
L_.str.2:                               ## @.str.2
	.asciz	"done"

L_.str.3:                               ## @.str.3
	.asciz	">"

	.no_dead_strip	_draw_patchlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_patchlist
_draw_patchlist:                        ; @draw_patchlist
	.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
Lloh0:
	adrp	x8, _g_menuscreen_h@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_menuscreen_h@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _me_sfont_h@GOTPAGE
Lloh4:
	ldr	x20, [x20, _me_sfont_h@GOTPAGEOFF]
	ldr	w9, [x20]
	sdiv	w22, w8, w9
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w19, w8, #1
	sub	w23, w19, w0
	mov	w0, #1
	mov	w1, #0
	bl	_menu_draw_begin
Lloh5:
	adrp	x8, _PicoPatchCount@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PicoPatchCount@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	mov	x26, #0
	mov	x24, #0
Lloh8:
	adrp	x27, _PicoPatches@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PicoPatches@GOTPAGEOFF]
Lloh10:
	adrp	x21, _me_sfont_w@GOTPAGE
Lloh11:
	ldr	x21, [x21, _me_sfont_w@GOTPAGEOFF]
Lloh12:
	adrp	x28, l_.str.1@PAGE
Lloh13:
	add	x28, x28, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	add	x26, x26, #16
	cmp	x24, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x23, x24
	tbnz	w25, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w22
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	ldr	w8, [x8, x26]
	ldr	w9, [x20]
	mul	w1, w9, w25
	cmp	w8, #0
	mov	w8, #65526
	mov	w9, #65535
	csel	w19, w9, w8, eq
Lloh14:
	adrp	x8, l_.str@PAGE
Lloh15:
	add	x8, x8, l_.str@PAGEOFF
	csel	x2, x28, x8, eq
	mov	w0, #14
	mov	x3, x19
	bl	_smalltext_out16
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w0, w8, #14
	ldr	w8, [x20]
	mul	w1, w8, w25
	ldr	x8, [x27]
	add	x8, x8, x26
	ldr	x2, [x8, #8]
	mov	x3, x19
	bl	_smalltext_out16
Lloh16:
	adrp	x8, _PicoPatchCount@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PicoPatchCount@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	b	LBB0_2
LBB0_6:
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_8
LBB0_7:
	mov	w24, #0
LBB0_8:
	add	w8, w24, w23
	cmp	w8, w22
	b.ge	LBB0_10
; %bb.9:
	ldr	w9, [x20]
	mul	w1, w9, w8
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #14
	mov	w3, #65535
	bl	_smalltext_out16
LBB0_10:
	ldr	w8, [x20]
	mul	w1, w8, w19
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #5
	bl	_text_out16
	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
	b	_menu_draw_end
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_g_menuscreen_h,4,2             ; @g_menuscreen_h
	.comm	_me_sfont_h,4,2                 ; @me_sfont_h
	.comm	_PicoPatchCount,4,2             ; @PicoPatchCount
	.comm	_PicoPatches,8,3                ; @PicoPatches
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ON "

l_.str.1:                               ; @.str.1
	.asciz	"OFF"

	.comm	_me_sfont_w,4,2                 ; @me_sfont_w
l_.str.2:                               ; @.str.2
	.asciz	"done"

l_.str.3:                               ; @.str.3
	.asciz	">"

	.no_dead_strip	_draw_patchlist
.subsections_via_symbols
