	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoRead8_plk3
_PicoRead8_plk3:                        ## @PicoRead8_plk3
	.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	%edi, %r14d
	movq	_prot_lk3_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$3, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$2, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$1, %edx
	jne	LBB0_6
## %bb.3:
	movq	_prot_lk3_data@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	sarl	%ebx
	jmp	LBB0_7
LBB0_5:
	movq	_prot_lk3_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	sarl	$4, %ecx
	shll	$4, %eax
	orl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$51, %ecx
	andl	$51, %eax
	leal	(%rcx,%rax,4), %eax
	movl	%eax, %ecx
	shrl	%ecx
	andl	$-43, %ecx
	andl	$85, %eax
	leal	(%rcx,%rax,2), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_prot_lk3_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$4, %ecx
	shll	$4, %eax
	orl	%ecx, %eax
	movzbl	%al, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_elprintf
LBB0_7:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_elprintf
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_prot_lk3_cmd,4,2               ## @prot_lk3_cmd
	.comm	_prot_lk3_data,4,2              ## @prot_lk3_data
	.comm	_EL_UIO,4,2                     ## @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled prot cmd %02x @%06x"

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

	.no_dead_strip	_PicoRead8_plk3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoRead8_plk3
_PicoRead8_plk3:                        ; @PicoRead8_plk3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _prot_lk3_cmd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _prot_lk3_cmd@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x21, _EL_UIO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _EL_UIO@GOTPAGEOFF]
Lloh5:
	adrp	x22, _SekPc@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SekPc@GOTPAGEOFF]
	cmp	w2, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #1
	b.ne	LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _prot_lk3_data@GOTPAGE
Lloh8:
	ldr	x8, [x8, _prot_lk3_data@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	asr	w20, w8, #1
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _prot_lk3_data@GOTPAGE
Lloh11:
	ldr	x8, [x8, _prot_lk3_data@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	asr	w9, w8, #4
	orr	w8, w9, w8, lsl #4
	mov	w9, #51
	and	w9, w9, w8, lsr #2
	mov	w10, #204
	and	w8, w10, w8, lsl #2
	orr	w8, w9, w8
	lsr	w9, w8, #1
	and	w9, w9, #0x55555555
	lsl	w8, w8, #1
	and	w8, w8, #0xaaaaaaaa
	orr	w20, w9, w8
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x8, _prot_lk3_data@GOTPAGE
Lloh14:
	ldr	x8, [x8, _prot_lk3_data@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsr	w9, w8, #4
	orr	w8, w9, w8, lsl #4
	and	w20, w8, #0xff
	b	LBB0_7
LBB0_6:
	ldr	w0, [x21]
	ldr	w3, [x22]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
	mov	w20, #0
LBB0_7:
	ldr	w0, [x21]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_elprintf
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_prot_lk3_cmd,4,2               ; @prot_lk3_cmd
	.comm	_prot_lk3_data,4,2              ; @prot_lk3_data
	.comm	_EL_UIO,4,2                     ; @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled prot cmd %02x @%06x"

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

	.no_dead_strip	_PicoRead8_plk3
.subsections_via_symbols
