	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoWrite8_sprot
_PicoWrite8_sprot:                      ## @PicoWrite8_sprot
	.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, %r14d
	movl	%edi, %ebx
	movl	%edi, %eax
	andl	$-8192, %eax                    ## imm = 0xE000
	cmpl	$10551296, %eax                 ## imm = 0xA10000
	jne	LBB0_1
## %bb.8:
	movl	%ebx, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PicoWrite8_io                  ## TAILCALL
LBB0_1:
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_carthw_sprot_get_val
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%rax), %ecx
	testb	$1, %bl
	jne	LBB0_3
## %bb.4:
	movzbl	%cl, %edx
	movl	%r14d, %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	jmp	LBB0_5
LBB0_6:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	%r14b, %ecx
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movzwl	%cx, %ecx
	orl	%r14d, %ecx
	orl	$255, %ecx
LBB0_5:
	movl	%ecx, (%rax)
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	%r14b, %ecx
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_elprintf                       ## 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
L_.str.1:                               ## @.str.1
	.asciz	"prot w8  [%06x]   %02x MISS @%06x"

	.no_dead_strip	_PicoWrite8_sprot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoWrite8_sprot
_PicoWrite8_sprot:                      ; @PicoWrite8_sprot
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	and	w8, w0, #0xffffe000
	cmp	w8, #2576, lsl #12              ; =10551296
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PicoWrite8_io
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	bl	_carthw_sprot_get_val
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x0]
	and	w9, w8, #0xff00
	bfi	w8, w20, #8, #24
	orr	w9, w9, w20
	orr	w9, w9, #0xff
	tst	w19, #0x1
	csel	w8, w8, w9, eq
	str	w8, [x0]
Lloh0:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	and	w3, w20, #0xff
Lloh3:
	adrp	x8, _SekPc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	and	w3, w20, #0xff
Lloh10:
	adrp	x8, _SekPc@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	ldr	w4, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_elprintf
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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
l_.str.1:                               ; @.str.1
	.asciz	"prot w8  [%06x]   %02x MISS @%06x"

	.no_dead_strip	_PicoWrite8_sprot
.subsections_via_symbols
