	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function denali_pio_read
_denali_pio_read:                       ## @denali_pio_read
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_DENALI_MAP01@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	callq	_DENALI_BANK
	movl	%eax, %r13d
	movq	_DENALI_CAP_HW_ECC_FIXUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_INTR__ECC_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_INTR__ECC_UNCOR_ERR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_denali_reset_irq
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpq	$4, %r14
	jb	LBB0_6
## %bb.4:
	orl	%r13d, %r12d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	shrq	$2, %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	*8(%rbx)
	movl	%eax, (%r15,%r14,4)
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_5
LBB0_6:
	movq	_INTR__PAGE_XFER_INC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_denali_wait_for_irq
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	_INTR__ERASED_PAGE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movl	$255, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_memset
LBB0_10:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	andl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	testl	%ebx, %ebx
	cmovel	%ebx, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DENALI_MAP01,4,2               ## @DENALI_MAP01
	.comm	_DENALI_CAP_HW_ECC_FIXUP,4,2    ## @DENALI_CAP_HW_ECC_FIXUP
	.comm	_INTR__ECC_UNCOR_ERR,4,2        ## @INTR__ECC_UNCOR_ERR
	.comm	_INTR__ECC_ERR,4,2              ## @INTR__ECC_ERR
	.comm	_INTR__PAGE_XFER_INC,4,2        ## @INTR__PAGE_XFER_INC
	.comm	_EIO,4,2                        ## @EIO
	.comm	_INTR__ERASED_PAGE,4,2          ## @INTR__ERASED_PAGE
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.no_dead_strip	_denali_pio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function denali_pio_read
_denali_pio_read:                       ; @denali_pio_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _DENALI_MAP01@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DENALI_MAP01@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	bl	_DENALI_BANK
	mov	x23, x0
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _DENALI_CAP_HW_ECC_FIXUP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DENALI_CAP_HW_ECC_FIXUP@GOTPAGEOFF]
Lloh5:
	adrp	x10, _INTR__ECC_ERR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _INTR__ECC_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _INTR__ECC_UNCOR_ERR@GOTPAGE
Lloh9:
	ldr	x11, [x11, _INTR__ECC_UNCOR_ERR@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w24, [x8]
	mov	x0, x21
	bl	_denali_reset_irq
	cmp	x19, #4
	b.lo	LBB0_3
; %bb.1:
	orr	w8, w25, w22
	orr	w22, w8, w23
	lsr	x23, x19, #2
	mov	x25, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	str	w0, [x25], #4
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_3:
Lloh10:
	adrp	x22, _INTR__PAGE_XFER_INC@GOTPAGE
Lloh11:
	ldr	x22, [x22, _INTR__PAGE_XFER_INC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_denali_wait_for_irq
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.4:
	mov	x21, x0
Lloh12:
	adrp	x8, _INTR__ERASED_PAGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTR__ERASED_PAGE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #255
	mov	x2, x19
	bl	_memset
LBB0_6:
Lloh15:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w21, w24
	csneg	w0, wzr, w8, eq
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DENALI_MAP01,4,2               ; @DENALI_MAP01
	.comm	_DENALI_CAP_HW_ECC_FIXUP,4,2    ; @DENALI_CAP_HW_ECC_FIXUP
	.comm	_INTR__ECC_UNCOR_ERR,4,2        ; @INTR__ECC_UNCOR_ERR
	.comm	_INTR__ECC_ERR,4,2              ; @INTR__ECC_ERR
	.comm	_INTR__PAGE_XFER_INC,4,2        ; @INTR__PAGE_XFER_INC
	.comm	_EIO,4,2                        ; @EIO
	.comm	_INTR__ERASED_PAGE,4,2          ; @INTR__ERASED_PAGE
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.no_dead_strip	_denali_pio_read
.subsections_via_symbols
