	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carthw_pier_prot_read8
_carthw_pier_prot_read8:                ## @carthw_pier_prot_read8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_pier_dump_prot@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	decq	%rax
	movq	%rax, (%rcx)
LBB0_2:
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_carthw_pier_statef
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elprintf
LBB0_4:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_elprintf
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$32767, %ebx                    ## imm = 0x7FFF
	xorl	$1, %ebx
	movl	(%rax,%rbx,4), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pier_dump_prot,8,3             ## @pier_dump_prot
	.comm	_EL_STATUS,4,2                  ## @EL_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prot off on r8 @%06x"

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

	.comm	_Pico,8,3                       ## @Pico
	.no_dead_strip	_carthw_pier_prot_read8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carthw_pier_prot_read8
_carthw_pier_prot_read8:                ; @carthw_pier_prot_read8
	.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
Lloh0:
	adrp	x9, _pier_dump_prot@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pier_dump_prot@GOTPAGEOFF]
	ldr	x8, [x9]
	subs	x10, x8, #1
	b.lt	LBB0_2
; %bb.1:
	str	x10, [x9]
	mov	x8, x10
LBB0_2:
Lloh2:
	adrp	x20, _SekPc@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SekPc@GOTPAGEOFF]
	cbnz	x8, LBB0_4
; %bb.3:
	bl	_carthw_pier_statef
Lloh4:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
LBB0_4:
Lloh9:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_elprintf
Lloh14:
	adrp	x8, _Pico@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	and	w9, w19, #0x7fff
	eor	w9, w9, #0x1
	ldr	w0, [x8, w9, uxtw #2]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_pier_dump_prot,8,3             ; @pier_dump_prot
	.comm	_EL_STATUS,4,2                  ; @EL_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prot off on r8 @%06x"

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

	.comm	_Pico,8,3                       ; @Pico
	.no_dead_strip	_carthw_pier_prot_read8
.subsections_via_symbols
