	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoRead16_sprot
_PicoRead16_sprot:                      ## @PicoRead16_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movl	%edi, %eax
	andl	$-8192, %eax                    ## imm = 0xE000
	cmpl	$10551296, %eax                 ## imm = 0xA10000
	jne	LBB0_1
## %bb.5:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PicoRead16_io                  ## TAILCALL
LBB0_1:
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_carthw_sprot_get_val
	movq	%rax, %r15
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movl	(%r15), %ecx
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_elprintf
	movl	(%r15), %r14d
	jmp	LBB0_4
LBB0_3:
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_elprintf
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_UIO,4,2                     ## @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prot r16 [%06x] %04x @%06x"

	.comm	_SekPc,4,2                      ## @SekPc
L_.str.1:                               ## @.str.1
	.asciz	"prot r16 [%06x] MISS @%06x"

	.no_dead_strip	_PicoRead16_sprot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoRead16_sprot
_PicoRead16_sprot:                      ; @PicoRead16_sprot
	.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, x0
	and	w8, w0, #0xffffe000
	cmp	w8, #2576, lsl #12              ; =10551296
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PicoRead16_io
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_carthw_sprot_get_val
	mov	x20, x0
Lloh0:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	x20, LBB0_4
; %bb.3:
	ldr	w3, [x20]
Lloh3:
	adrp	x8, _SekPc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elprintf
	ldr	w0, [x20]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _SekPc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_elprintf
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_UIO,4,2                     ; @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prot r16 [%06x] %04x @%06x"

	.comm	_SekPc,4,2                      ; @SekPc
l_.str.1:                               ; @.str.1
	.asciz	"prot r16 [%06x] MISS @%06x"

	.no_dead_strip	_PicoRead16_sprot
.subsections_via_symbols
