	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoWrite8_plk3b
_PicoWrite8_plk3b:                      ## @PicoWrite8_plk3b
	.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
	movl	%esi, %ebx
	movl	%edi, %edx
	movq	_EL_UIO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movzbl	%bl, %ecx
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elprintf
	movl	%ebx, %eax
	shll	$15, %eax
	leal	32768(%rax), %edx
	movq	_Pico@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	cmpl	%esi, %edx
	jle	LBB0_1
## %bb.4:
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
LBB0_1:
	movq	8(%rcx), %rdi
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movslq	%eax, %rsi
LBB0_3:
	addq	%rdi, %rsi
	movl	$32768, %edx                    ## imm = 0x8000
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_UIO,4,2                     ## @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prot w8  [%06x]   %02x @%06x"

	.comm	_SekPc,4,2                      ## @SekPc
	.comm	_Pico,16,3                      ## @Pico
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
L_.str.1:                               ## @.str.1
	.asciz	"prot_lk3: bank too large: %02x"

	.no_dead_strip	_PicoWrite8_plk3b
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoWrite8_plk3b
_PicoWrite8_plk3b:                      ; @PicoWrite8_plk3b
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x2, x0
Lloh0:
	adrp	x20, _EL_UIO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EL_UIO@GOTPAGEOFF]
	ldr	w0, [x20]
	and	w8, w1, #0xff
Lloh2:
	adrp	x9, _SekPc@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SekPc@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
	lsl	w8, w19, #15
	add	w11, w8, #8, lsl #12            ; =32768
Lloh7:
	adrp	x10, _Pico@GOTPAGE
Lloh8:
	ldr	x10, [x10, _Pico@GOTPAGEOFF]
	ldrsw	x9, [x10]
	cmp	w11, w9
	b.le	LBB0_2
; %bb.1:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_elprintf
LBB0_2:
	ldr	x0, [x10, #8]
	cbz	w8, LBB0_4
; %bb.3:
	add	x1, x0, w8, sxtw
	b	LBB0_5
LBB0_4:
	add	x1, x0, x9
LBB0_5:
	mov	w2, #32768
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_memcpy
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_UIO,4,2                     ; @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prot w8  [%06x]   %02x @%06x"

	.comm	_SekPc,4,2                      ; @SekPc
	.comm	_Pico,16,3                      ; @Pico
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
l_.str.1:                               ; @.str.1
	.asciz	"prot_lk3: bank too large: %02x"

	.no_dead_strip	_PicoWrite8_plk3b
.subsections_via_symbols
