	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_error_intr
_pdc_error_intr:                        ## @pdc_error_intr
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	callq	_ata_ehi_clear_desc
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_ata_ehi_push_desc
	movq	_PDC_DRIVE_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_AC_ERR_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_PDC_OVERRUN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_PDC_UNDERRUN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_AC_ERR_HSM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	_PDC2_ATA_HBA_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_PDC2_ATA_DMA_CNT_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_AC_ERR_ATA_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_PDC_PH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_PDC_SH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_PDC_DH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_PDC2_HTO_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_PDC_PCI_SYS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PDC1_PCI_PARITY_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_AC_ERR_HOST_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_sata_scr_valid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SCR_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_pdc_sata_scr_read
	movl	-96(%rbp), %eax
	orl	%eax, (%r14)
LBB0_2:
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	andl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	orl	-60(%rbp), %r15d                ## 4-byte Folded Reload
	orl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	orl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	orl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	orl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	andl	%eax, %r15d
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	andl	%eax, %ecx
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	cmovel	%ecx, %edx
	orl	-64(%rbp), %r13d                ## 4-byte Folded Reload
	andl	%eax, %r13d
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%r13d, %ecx
	orl	%edx, %ecx
	orl	-76(%rbp), %r12d                ## 4-byte Folded Reload
	andl	%eax, %r12d
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmovel	%r12d, %eax
	orl	%ecx, %eax
	testl	%r15d, %r15d
	cmovel	%r15d, %ebx
	orl	%eax, %ebx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	orl	%ebx, (%rax)
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_pdc_reset_port
	movq	%rbx, %rdi
	callq	_ata_port_abort
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port_status 0x%08x"

	.comm	_PDC_DRIVE_ERR,4,2              ## @PDC_DRIVE_ERR
	.comm	_AC_ERR_DEV,4,2                 ## @AC_ERR_DEV
	.comm	_PDC_OVERRUN_ERR,4,2            ## @PDC_OVERRUN_ERR
	.comm	_PDC_UNDERRUN_ERR,4,2           ## @PDC_UNDERRUN_ERR
	.comm	_AC_ERR_HSM,4,2                 ## @AC_ERR_HSM
	.comm	_PDC2_ATA_HBA_ERR,4,2           ## @PDC2_ATA_HBA_ERR
	.comm	_PDC2_ATA_DMA_CNT_ERR,4,2       ## @PDC2_ATA_DMA_CNT_ERR
	.comm	_AC_ERR_ATA_BUS,4,2             ## @AC_ERR_ATA_BUS
	.comm	_PDC_PH_ERR,4,2                 ## @PDC_PH_ERR
	.comm	_PDC_SH_ERR,4,2                 ## @PDC_SH_ERR
	.comm	_PDC_DH_ERR,4,2                 ## @PDC_DH_ERR
	.comm	_PDC2_HTO_ERR,4,2               ## @PDC2_HTO_ERR
	.comm	_PDC_PCI_SYS_ERR,4,2            ## @PDC_PCI_SYS_ERR
	.comm	_PDC1_PCI_PARITY_ERR,4,2        ## @PDC1_PCI_PARITY_ERR
	.comm	_AC_ERR_HOST_BUS,4,2            ## @AC_ERR_HOST_BUS
	.comm	_SCR_ERROR,4,2                  ## @SCR_ERROR
	.no_dead_strip	_pdc_error_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_error_intr
_pdc_error_intr:                        ; @pdc_error_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #40]                   ; 4-byte Folded Spill
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_ata_ehi_clear_desc
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_ata_ehi_push_desc
Lloh2:
	adrp	x8, _PDC_DRIVE_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PDC_DRIVE_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
Lloh5:
	adrp	x8, _AC_ERR_DEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AC_ERR_DEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
Lloh8:
	adrp	x8, _PDC_OVERRUN_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PDC_OVERRUN_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
Lloh11:
	adrp	x8, _PDC_UNDERRUN_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PDC_UNDERRUN_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh14:
	adrp	x8, _AC_ERR_HSM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AC_ERR_HSM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh17:
	adrp	x8, _PDC2_ATA_HBA_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PDC2_ATA_HBA_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
Lloh20:
	adrp	x8, _PDC2_ATA_DMA_CNT_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PDC2_ATA_DMA_CNT_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh23:
	adrp	x8, _AC_ERR_ATA_BUS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AC_ERR_ATA_BUS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
Lloh26:
	adrp	x8, _PDC_PH_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PDC_PH_ERR@GOTPAGEOFF]
Lloh28:
	ldr	w25, [x8]
Lloh29:
	adrp	x8, _PDC_SH_ERR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PDC_SH_ERR@GOTPAGEOFF]
Lloh31:
	ldr	w26, [x8]
Lloh32:
	adrp	x8, _PDC_DH_ERR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PDC_DH_ERR@GOTPAGEOFF]
Lloh34:
	ldr	w27, [x8]
Lloh35:
	adrp	x8, _PDC2_HTO_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PDC2_HTO_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w28, [x8]
Lloh38:
	adrp	x8, _PDC_PCI_SYS_ERR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PDC_PCI_SYS_ERR@GOTPAGEOFF]
Lloh40:
	ldr	w21, [x8]
Lloh41:
	adrp	x8, _PDC1_PCI_PARITY_ERR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PDC1_PCI_PARITY_ERR@GOTPAGEOFF]
Lloh43:
	ldr	w23, [x8]
Lloh44:
	adrp	x8, _AC_ERR_HOST_BUS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AC_ERR_HOST_BUS@GOTPAGEOFF]
Lloh46:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_sata_scr_valid
	cbz	x0, LBB0_2
; %bb.1:
Lloh47:
	adrp	x8, _SCR_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SCR_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	add	x2, sp, #44
	mov	x0, x19
	bl	_pdc_sata_scr_read
	ldr	w8, [sp, #44]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	ldp	w10, w8, [sp, #36]              ; 8-byte Folded Reload
	and	w8, w8, w22
	orr	w9, w26, w25
	orr	w9, w9, w27
	orr	w9, w9, w28
	orr	w9, w9, w21
	orr	w9, w9, w23
	tst	w10, w8
	ldp	w11, w10, [sp, #28]             ; 8-byte Folded Reload
	csel	w10, wzr, w10, eq
	ldr	w12, [sp, #24]                  ; 4-byte Folded Reload
	orr	w11, w12, w11
	tst	w11, w8
	ldr	w11, [sp, #20]                  ; 4-byte Folded Reload
	csel	w11, wzr, w11, eq
	orr	w10, w11, w10
	ldp	w12, w11, [sp, #12]             ; 8-byte Folded Reload
	orr	w11, w12, w11
	tst	w11, w8
	ldr	w11, [sp, #8]                   ; 4-byte Folded Reload
	csel	w11, wzr, w11, eq
	orr	w10, w10, w11
	tst	w9, w8
	csel	w8, wzr, w24, eq
	orr	w8, w10, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	str	w8, [x20]
	mov	x0, x19
	bl	_pdc_reset_port
	mov	x0, x19
	bl	_ata_port_abort
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port_status 0x%08x"

	.comm	_PDC_DRIVE_ERR,4,2              ; @PDC_DRIVE_ERR
	.comm	_AC_ERR_DEV,4,2                 ; @AC_ERR_DEV
	.comm	_PDC_OVERRUN_ERR,4,2            ; @PDC_OVERRUN_ERR
	.comm	_PDC_UNDERRUN_ERR,4,2           ; @PDC_UNDERRUN_ERR
	.comm	_AC_ERR_HSM,4,2                 ; @AC_ERR_HSM
	.comm	_PDC2_ATA_HBA_ERR,4,2           ; @PDC2_ATA_HBA_ERR
	.comm	_PDC2_ATA_DMA_CNT_ERR,4,2       ; @PDC2_ATA_DMA_CNT_ERR
	.comm	_AC_ERR_ATA_BUS,4,2             ; @AC_ERR_ATA_BUS
	.comm	_PDC_PH_ERR,4,2                 ; @PDC_PH_ERR
	.comm	_PDC_SH_ERR,4,2                 ; @PDC_SH_ERR
	.comm	_PDC_DH_ERR,4,2                 ; @PDC_DH_ERR
	.comm	_PDC2_HTO_ERR,4,2               ; @PDC2_HTO_ERR
	.comm	_PDC_PCI_SYS_ERR,4,2            ; @PDC_PCI_SYS_ERR
	.comm	_PDC1_PCI_PARITY_ERR,4,2        ; @PDC1_PCI_PARITY_ERR
	.comm	_AC_ERR_HOST_BUS,4,2            ; @AC_ERR_HOST_BUS
	.comm	_SCR_ERROR,4,2                  ; @SCR_ERROR
	.no_dead_strip	_pdc_error_intr
.subsections_via_symbols
