	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	$13, %eax
	subl	%edi, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_menu_draw_begin
	movq	_PicoPatchCount@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	addl	%r14d, %r14d
	leal	(%r14,%r14,4), %ecx
	movl	$130, %r12d
	subl	%ecx, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addl	$10, %r12d
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rbx, %rcx
	testl	%ecx, %ecx
	js	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$26, %ecx
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PicoPatches@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax,%r13)
	sete	%cl
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdx
	leal	(%rcx,%rcx,8), %r14d
	addl	$65526, %r14d                   ## imm = 0xFFF6
	movl	$14, %edi
	movl	%r12d, %esi
	movl	%r14d, %ecx
	movl	$3, %r8d
	callq	_smalltext_out16_lim
	movq	(%r15), %rax
	movq	8(%rax,%r13), %rdx
	movl	$38, %edi
	movl	%r12d, %esi
	movl	%r14d, %ecx
	movl	$47, %r8d
	callq	_smalltext_out16_lim
	movq	_PicoPatchCount@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_6:
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpl	$26, %ebx
	jg	LBB0_8
## %bb.7:
	addl	%ebx, %ebx
	leal	(%rbx,%rbx,4), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	$14, %edi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	movl	$4, %r8d
	callq	_smalltext_out16_lim
LBB0_8:
	leaq	L_.str.3(%rip), %rdx
	movl	$5, %edi
	movl	$130, %esi
	callq	_text_out16
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_draw_end                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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"

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:
	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
	mov	x19, x0
	mov	w8, #13
	sub	w21, w8, w0
	bl	_menu_draw_begin
Lloh0:
	adrp	x23, _PicoPatchCount@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PicoPatchCount@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x24, #0
	mov	x22, #0
	mov	w9, #10
	mov	w10, #130
	msub	w19, w19, w9, w10
Lloh2:
	adrp	x25, _PicoPatches@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PicoPatches@GOTPAGEOFF]
	mov	w27, #65526
	mov	w28, #65535
Lloh4:
	adrp	x26, l_.str.1@PAGE
Lloh5:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	w19, w19, #10
	add	x24, x24, #16
	cmp	x22, w8, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x21, x22
	tbnz	w9, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #26
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	ldr	w8, [x8, x24]
	cmp	w8, #0
	csel	w20, w28, w27, eq
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	csel	x2, x26, x8, eq
	mov	w0, #14
	mov	x1, x19
	mov	x3, x20
	mov	w4, #3
	bl	_smalltext_out16_lim
	ldr	x8, [x25]
	add	x8, x8, x24
	ldr	x2, [x8, #8]
	mov	w0, #38
	mov	x1, x19
	mov	x3, x20
	mov	w4, #47
	bl	_smalltext_out16_lim
	ldr	w8, [x23]
	b	LBB0_2
LBB0_6:
	mov	w22, #0
LBB0_7:
	add	w8, w22, w21
	cmp	w8, #26
	b.gt	LBB0_9
; %bb.8:
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #14
	mov	w3, #65535
	mov	w4, #4
	bl	_smalltext_out16_lim
LBB0_9:
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #5
	mov	w1, #130
	bl	_text_out16
	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
	b	_menu_draw_end
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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"

l_.str.2:                               ; @.str.2
	.asciz	"done"

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

	.no_dead_strip	_draw_patchlist
.subsections_via_symbols
