	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function schizo_pci_bus
_schizo_pci_bus:                        ## @schizo_pci_bus
	.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
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_mtx_lock_spin
	movq	_STX_PCI_AFAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SCHIZO_PCI_READ_8
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_STX_PCI_AFSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SCHIZO_PCI_READ_8
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_STX_PCI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SCHIZO_PCI_READ_8
	movl	%eax, %r14d
	movq	_STX_PCI_IOMMU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SCHIZO_PCI_READ_8
	movl	%eax, %r15d
	movq	_SCHIZO_FLAGS_XMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_XMS_PCI_X_ERR_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SCHIZO_PCI_READ_8
	movl	%eax, %r12d
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movl	4(%rbx), %edi
	movl	12(%rbx), %esi
	movq	_STX_CS_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_STX_CS_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PCIR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$2, %r9d
	callq	_PCIB_READ_CONFIG
                                        ## kill: def $eax killed $eax def $rax
	movq	_STX_PCI_CTRL_MMU_ERR@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_9
## %bb.4:
	movq	_TOM_PCI_IOMMU_ERR@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_9
## %bb.5:
	movq	_PCIM_STATUS_STABORT@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.6:
	movq	_TOM_PCI_IOMMU_ERRMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	movq	_TOM_PCI_IOMMU_INVALID_ERR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_9
## %bb.7:
	movq	_TOM_PCI_IOMMU_ERR_ILLTSBTBW@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	jne	LBB0_9
## %bb.8:
	movq	_TOM_PCI_IOMMU_ERR_BAD_VA@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_10
LBB0_9:
	movq	_PCIM_STATUS_STABORT@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	testl	%eax, (%rcx)
	setne	%sil
LBB0_10:
	movl	%r15d, %r13d
	movq	_PCIM_STATUS_PERR@GOTPCREL(%rip), %rcx
	movq	_PCIM_STATUS_SERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_PCIM_STATUS_RMABORT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_PCIM_STATUS_RTABORT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_PCIM_STATUS_MDPERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_13
## %bb.11:
	movq	_SCZ_PCI_CTRL_BUS_UNUS@GOTPCREL(%rip), %rcx
	movq	_TOM_PCI_CTRL_DTO_ERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_STX_PCI_CTRL_TTO_ERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_STX_PCI_CTRL_RTRY_ERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_SCZ_PCI_CTRL_SBH_ERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_STX_PCI_CTRL_SERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%r14d, %edx
	jne	LBB0_13
## %bb.12:
	movq	_STX_PCI_AFSR_P_MA@GOTPCREL(%rip), %rcx
	movq	_STX_PCI_AFSR_P_TA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_STX_PCI_AFSR_P_RTRY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_STX_PCI_AFSR_P_PERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_STX_PCI_AFSR_P_TTO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_STX_PCI_AFSR_P_UNUS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%r15d, %edx
	je	LBB0_14
LBB0_13:
	movl	$1, %esi
LBB0_14:
	movq	_XMS_PCI_X_ERR_STAT_P_SC_DSCRD@GOTPCREL(%rip), %rcx
	movq	_XMS_PCI_X_ERR_STAT_P_SC_TTO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_XMS_PCI_X_ERR_STAT_P_SDSTAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_XMS_PCI_X_ERR_STAT_P_SMMU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_XMS_PCI_X_ERR_STAT_P_CDSTAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_XMS_PCI_X_ERR_STAT_P_CMMU@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_XMS_PCI_X_ERR_STAT_PERR_RCV@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	andl	%r12d, %edx
	orl	%esi, %edx
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	jne	LBB0_16
## %bb.15:
	incl	24(%rbx)
LBB0_16:
	movl	4(%rbx), %edi
	movq	16(%rbx), %rdx
	addq	$65, %rdx
	movslq	-48(%rbp), %rcx                 ## 4-byte Folded Reload
	movslq	%r15d, %r8
	movslq	%r14d, %r9
	movslq	%r13d, %r10
	movslq	%r12d, %r11
	subq	$8, %rsp
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	movq	%rax, %r12
	callq	_device_printf
	addq	$32, %rsp
	movl	4(%rbx), %edi
	movl	12(%rbx), %esi
	movq	_STX_CS_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_STX_CS_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PCIR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	movl	%r12d, %r9d
	pushq	$2
	callq	_PCIB_WRITE_CONFIG
	addq	$16, %rsp
	movq	_STX_PCI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_SCHIZO_PCI_WRITE_8
	movq	_STX_PCI_AFSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_SCHIZO_PCI_WRITE_8
	movq	_STX_PCI_IOMMU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_SCHIZO_PCI_WRITE_8
	movq	_SCHIZO_FLAGS_XMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_18
## %bb.17:
	movq	_XMS_PCI_X_ERR_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_SCHIZO_PCI_WRITE_8
LBB0_18:
	movl	8(%rbx), %edi
	callq	_mtx_unlock_spin
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_20
## %bb.19:
	movl	4(%rbx), %edi
	callq	_device_get_nameunit
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_panic
LBB0_20:
	movq	_FILTER_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STX_PCI_AFAR,4,2               ## @STX_PCI_AFAR
	.comm	_STX_PCI_AFSR,4,2               ## @STX_PCI_AFSR
	.comm	_STX_PCI_CTRL,4,2               ## @STX_PCI_CTRL
	.comm	_STX_PCI_IOMMU,4,2              ## @STX_PCI_IOMMU
	.comm	_SCHIZO_FLAGS_XMODE,4,2         ## @SCHIZO_FLAGS_XMODE
	.comm	_XMS_PCI_X_ERR_STAT,4,2         ## @XMS_PCI_X_ERR_STAT
	.comm	_STX_CS_DEVICE,4,2              ## @STX_CS_DEVICE
	.comm	_STX_CS_FUNC,4,2                ## @STX_CS_FUNC
	.comm	_PCIR_STATUS,4,2                ## @PCIR_STATUS
	.comm	_STX_PCI_CTRL_MMU_ERR,4,2       ## @STX_PCI_CTRL_MMU_ERR
	.comm	_TOM_PCI_IOMMU_ERR,4,2          ## @TOM_PCI_IOMMU_ERR
	.comm	_PCIM_STATUS_STABORT,4,2        ## @PCIM_STATUS_STABORT
	.comm	_TOM_PCI_IOMMU_ERRMASK,4,2      ## @TOM_PCI_IOMMU_ERRMASK
	.comm	_TOM_PCI_IOMMU_INVALID_ERR,4,2  ## @TOM_PCI_IOMMU_INVALID_ERR
	.comm	_TOM_PCI_IOMMU_ERR_ILLTSBTBW,4,2 ## @TOM_PCI_IOMMU_ERR_ILLTSBTBW
	.comm	_TOM_PCI_IOMMU_ERR_BAD_VA,4,2   ## @TOM_PCI_IOMMU_ERR_BAD_VA
	.comm	_PCIM_STATUS_PERR,4,2           ## @PCIM_STATUS_PERR
	.comm	_PCIM_STATUS_SERR,4,2           ## @PCIM_STATUS_SERR
	.comm	_PCIM_STATUS_RMABORT,4,2        ## @PCIM_STATUS_RMABORT
	.comm	_PCIM_STATUS_RTABORT,4,2        ## @PCIM_STATUS_RTABORT
	.comm	_PCIM_STATUS_MDPERR,4,2         ## @PCIM_STATUS_MDPERR
	.comm	_SCZ_PCI_CTRL_BUS_UNUS,4,2      ## @SCZ_PCI_CTRL_BUS_UNUS
	.comm	_TOM_PCI_CTRL_DTO_ERR,4,2       ## @TOM_PCI_CTRL_DTO_ERR
	.comm	_STX_PCI_CTRL_TTO_ERR,4,2       ## @STX_PCI_CTRL_TTO_ERR
	.comm	_STX_PCI_CTRL_RTRY_ERR,4,2      ## @STX_PCI_CTRL_RTRY_ERR
	.comm	_SCZ_PCI_CTRL_SBH_ERR,4,2       ## @SCZ_PCI_CTRL_SBH_ERR
	.comm	_STX_PCI_CTRL_SERR,4,2          ## @STX_PCI_CTRL_SERR
	.comm	_STX_PCI_AFSR_P_MA,4,2          ## @STX_PCI_AFSR_P_MA
	.comm	_STX_PCI_AFSR_P_TA,4,2          ## @STX_PCI_AFSR_P_TA
	.comm	_STX_PCI_AFSR_P_RTRY,4,2        ## @STX_PCI_AFSR_P_RTRY
	.comm	_STX_PCI_AFSR_P_PERR,4,2        ## @STX_PCI_AFSR_P_PERR
	.comm	_STX_PCI_AFSR_P_TTO,4,2         ## @STX_PCI_AFSR_P_TTO
	.comm	_STX_PCI_AFSR_P_UNUS,4,2        ## @STX_PCI_AFSR_P_UNUS
	.comm	_XMS_PCI_X_ERR_STAT_P_SC_DSCRD,4,2 ## @XMS_PCI_X_ERR_STAT_P_SC_DSCRD
	.comm	_XMS_PCI_X_ERR_STAT_P_SC_TTO,4,2 ## @XMS_PCI_X_ERR_STAT_P_SC_TTO
	.comm	_XMS_PCI_X_ERR_STAT_P_SDSTAT,4,2 ## @XMS_PCI_X_ERR_STAT_P_SDSTAT
	.comm	_XMS_PCI_X_ERR_STAT_P_SMMU,4,2  ## @XMS_PCI_X_ERR_STAT_P_SMMU
	.comm	_XMS_PCI_X_ERR_STAT_P_CDSTAT,4,2 ## @XMS_PCI_X_ERR_STAT_P_CDSTAT
	.comm	_XMS_PCI_X_ERR_STAT_P_CMMU,4,2  ## @XMS_PCI_X_ERR_STAT_P_CMMU
	.comm	_XMS_PCI_X_ERR_STAT_PERR_RCV,4,2 ## @XMS_PCI_X_ERR_STAT_PERR_RCV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI bus %c error AFAR %#llx AFSR %#llx PCI CSR %#llx IOMMU %#llx PCI-X %#llx STATUS %#x\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: fatal PCI bus error"

	.comm	_FILTER_HANDLED,4,2             ## @FILTER_HANDLED
	.no_dead_strip	_schizo_pci_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function schizo_pci_bus
_schizo_pci_bus:                        ; @schizo_pci_bus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_mtx_lock_spin
Lloh0:
	adrp	x8, _STX_PCI_AFAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STX_PCI_AFAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SCHIZO_PCI_READ_8
	mov	x24, x0
Lloh3:
	adrp	x27, _STX_PCI_AFSR@GOTPAGE
Lloh4:
	ldr	x27, [x27, _STX_PCI_AFSR@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_SCHIZO_PCI_READ_8
	mov	x20, x0
Lloh5:
	adrp	x8, _STX_PCI_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STX_PCI_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SCHIZO_PCI_READ_8
	mov	x23, x0
Lloh8:
	adrp	x26, _STX_PCI_IOMMU@GOTPAGE
Lloh9:
	ldr	x26, [x26, _STX_PCI_IOMMU@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_SCHIZO_PCI_READ_8
	mov	x21, x0
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _SCHIZO_FLAGS_XMODE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SCHIZO_FLAGS_XMODE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _XMS_PCI_X_ERR_STAT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _XMS_PCI_X_ERR_STAT@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x10]
	mov	x0, x19
	bl	_SCHIZO_PCI_READ_8
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldr	w0, [x19, #4]
	ldr	w1, [x19, #12]
Lloh15:
	adrp	x8, _STX_CS_DEVICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STX_CS_DEVICE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _STX_CS_FUNC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STX_CS_FUNC@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _PCIR_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCIR_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	mov	w5, #2
	bl	_PCIB_READ_CONFIG
	mov	x25, x0
Lloh24:
	adrp	x8, _STX_PCI_CTRL_MMU_ERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STX_PCI_CTRL_MMU_ERR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x8]
Lloh27:
	adrp	x8, _PCIM_STATUS_STABORT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCIM_STATUS_STABORT@GOTPAGEOFF]
	tst	w9, w23
	b.eq	LBB0_9
; %bb.4:
Lloh29:
	adrp	x9, _TOM_PCI_IOMMU_ERR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TOM_PCI_IOMMU_ERR@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_9
; %bb.5:
	ldr	w9, [x8]
	tst	w9, w25
	b.eq	LBB0_21
; %bb.6:
Lloh32:
	adrp	x9, _TOM_PCI_IOMMU_ERRMASK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _TOM_PCI_IOMMU_ERRMASK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w9, w9, w21
Lloh35:
	adrp	x10, _TOM_PCI_IOMMU_INVALID_ERR@GOTPAGE
Lloh36:
	ldr	x10, [x10, _TOM_PCI_IOMMU_INVALID_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_9
; %bb.7:
Lloh38:
	adrp	x9, _TOM_PCI_IOMMU_ERR_ILLTSBTBW@GOTPAGE
Lloh39:
	ldr	x9, [x9, _TOM_PCI_IOMMU_ERR_ILLTSBTBW@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w21
	b.ne	LBB0_9
; %bb.8:
Lloh41:
	adrp	x9, _TOM_PCI_IOMMU_ERR_BAD_VA@GOTPAGE
Lloh42:
	ldr	x9, [x9, _TOM_PCI_IOMMU_ERR_BAD_VA@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_21
LBB0_9:
	ldr	w8, [x8]
	tst	w8, w25
	cset	w8, ne
LBB0_10:
Lloh44:
	adrp	x9, _PCIM_STATUS_PERR@GOTPAGE
Lloh45:
	ldr	x9, [x9, _PCIM_STATUS_PERR@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
Lloh47:
	adrp	x10, _PCIM_STATUS_SERR@GOTPAGE
Lloh48:
	ldr	x10, [x10, _PCIM_STATUS_SERR@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
Lloh50:
	adrp	x11, _PCIM_STATUS_RMABORT@GOTPAGE
Lloh51:
	ldr	x11, [x11, _PCIM_STATUS_RMABORT@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh52:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh53:
	adrp	x10, _PCIM_STATUS_RTABORT@GOTPAGE
Lloh54:
	ldr	x10, [x10, _PCIM_STATUS_RTABORT@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh56:
	adrp	x10, _PCIM_STATUS_MDPERR@GOTPAGE
Lloh57:
	ldr	x10, [x10, _PCIM_STATUS_MDPERR@GOTPAGEOFF]
Lloh58:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w25
	b.ne	LBB0_13
; %bb.11:
Lloh59:
	adrp	x9, _SCZ_PCI_CTRL_BUS_UNUS@GOTPAGE
Lloh60:
	ldr	x9, [x9, _SCZ_PCI_CTRL_BUS_UNUS@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
Lloh62:
	adrp	x10, _TOM_PCI_CTRL_DTO_ERR@GOTPAGE
Lloh63:
	ldr	x10, [x10, _TOM_PCI_CTRL_DTO_ERR@GOTPAGEOFF]
Lloh64:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh65:
	adrp	x10, _STX_PCI_CTRL_TTO_ERR@GOTPAGE
Lloh66:
	ldr	x10, [x10, _STX_PCI_CTRL_TTO_ERR@GOTPAGEOFF]
Lloh67:
	ldr	w10, [x10]
Lloh68:
	adrp	x11, _STX_PCI_CTRL_RTRY_ERR@GOTPAGE
Lloh69:
	ldr	x11, [x11, _STX_PCI_CTRL_RTRY_ERR@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh70:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh71:
	adrp	x10, _SCZ_PCI_CTRL_SBH_ERR@GOTPAGE
Lloh72:
	ldr	x10, [x10, _SCZ_PCI_CTRL_SBH_ERR@GOTPAGEOFF]
Lloh73:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh74:
	adrp	x10, _STX_PCI_CTRL_SERR@GOTPAGE
Lloh75:
	ldr	x10, [x10, _STX_PCI_CTRL_SERR@GOTPAGEOFF]
Lloh76:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w23
	b.ne	LBB0_13
; %bb.12:
Lloh77:
	adrp	x9, _STX_PCI_AFSR_P_MA@GOTPAGE
Lloh78:
	ldr	x9, [x9, _STX_PCI_AFSR_P_MA@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
Lloh80:
	adrp	x10, _STX_PCI_AFSR_P_TA@GOTPAGE
Lloh81:
	ldr	x10, [x10, _STX_PCI_AFSR_P_TA@GOTPAGEOFF]
Lloh82:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh83:
	adrp	x10, _STX_PCI_AFSR_P_RTRY@GOTPAGE
Lloh84:
	ldr	x10, [x10, _STX_PCI_AFSR_P_RTRY@GOTPAGEOFF]
Lloh85:
	ldr	w10, [x10]
Lloh86:
	adrp	x11, _STX_PCI_AFSR_P_PERR@GOTPAGE
Lloh87:
	ldr	x11, [x11, _STX_PCI_AFSR_P_PERR@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh88:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh89:
	adrp	x10, _STX_PCI_AFSR_P_TTO@GOTPAGE
Lloh90:
	ldr	x10, [x10, _STX_PCI_AFSR_P_TTO@GOTPAGEOFF]
Lloh91:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh92:
	adrp	x10, _STX_PCI_AFSR_P_UNUS@GOTPAGE
Lloh93:
	ldr	x10, [x10, _STX_PCI_AFSR_P_UNUS@GOTPAGEOFF]
Lloh94:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w20
	b.eq	LBB0_14
LBB0_13:
	mov	w8, #1
LBB0_14:
Lloh95:
	adrp	x9, _XMS_PCI_X_ERR_STAT_P_SC_DSCRD@GOTPAGE
Lloh96:
	ldr	x9, [x9, _XMS_PCI_X_ERR_STAT_P_SC_DSCRD@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
Lloh98:
	adrp	x10, _XMS_PCI_X_ERR_STAT_P_SC_TTO@GOTPAGE
Lloh99:
	ldr	x10, [x10, _XMS_PCI_X_ERR_STAT_P_SC_TTO@GOTPAGEOFF]
Lloh100:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh101:
	adrp	x10, _XMS_PCI_X_ERR_STAT_P_SDSTAT@GOTPAGE
Lloh102:
	ldr	x10, [x10, _XMS_PCI_X_ERR_STAT_P_SDSTAT@GOTPAGEOFF]
Lloh103:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh104:
	adrp	x10, _XMS_PCI_X_ERR_STAT_P_SMMU@GOTPAGE
Lloh105:
	ldr	x10, [x10, _XMS_PCI_X_ERR_STAT_P_SMMU@GOTPAGEOFF]
Lloh106:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh107:
	adrp	x10, _XMS_PCI_X_ERR_STAT_P_CDSTAT@GOTPAGE
Lloh108:
	ldr	x10, [x10, _XMS_PCI_X_ERR_STAT_P_CDSTAT@GOTPAGEOFF]
Lloh109:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh110:
	adrp	x10, _XMS_PCI_X_ERR_STAT_P_CMMU@GOTPAGE
Lloh111:
	ldr	x10, [x10, _XMS_PCI_X_ERR_STAT_P_CMMU@GOTPAGEOFF]
Lloh112:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh113:
	adrp	x10, _XMS_PCI_X_ERR_STAT_PERR_RCV@GOTPAGE
Lloh114:
	ldr	x10, [x10, _XMS_PCI_X_ERR_STAT_PERR_RCV@GOTPAGEOFF]
Lloh115:
	ldr	w10, [x10]
	orr	w9, w9, w10
	and	w9, w9, w22
	orr	w8, w9, w8
	cmp	w8, #0
	cset	w28, eq
	cbnz	w8, LBB0_16
; %bb.15:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_16:
	ldr	w0, [x19, #4]
	sxtw	x3, w24
	ldr	x8, [x19, #16]
	add	x2, x8, #65
	sxtw	x4, w20
	sxtw	x5, w23
	sxtw	x6, w21
	sxtw	x7, w22
	str	w25, [sp]
Lloh116:
	adrp	x1, l_.str@PAGE
Lloh117:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
	ldr	w0, [x19, #4]
	ldr	w1, [x19, #12]
Lloh118:
	adrp	x8, _STX_CS_DEVICE@GOTPAGE
Lloh119:
	ldr	x8, [x8, _STX_CS_DEVICE@GOTPAGEOFF]
Lloh120:
	ldr	w2, [x8]
Lloh121:
	adrp	x8, _STX_CS_FUNC@GOTPAGE
Lloh122:
	ldr	x8, [x8, _STX_CS_FUNC@GOTPAGEOFF]
Lloh123:
	ldr	w3, [x8]
Lloh124:
	adrp	x8, _PCIR_STATUS@GOTPAGE
Lloh125:
	ldr	x8, [x8, _PCIR_STATUS@GOTPAGEOFF]
Lloh126:
	ldr	w4, [x8]
	mov	x5, x25
	mov	w6, #2
	bl	_PCIB_WRITE_CONFIG
Lloh127:
	adrp	x8, _STX_PCI_CTRL@GOTPAGE
Lloh128:
	ldr	x8, [x8, _STX_PCI_CTRL@GOTPAGEOFF]
Lloh129:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_SCHIZO_PCI_WRITE_8
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x20
	bl	_SCHIZO_PCI_WRITE_8
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x21
	bl	_SCHIZO_PCI_WRITE_8
	ldr	w8, [x19]
Lloh130:
	adrp	x9, _SCHIZO_FLAGS_XMODE@GOTPAGE
Lloh131:
	ldr	x9, [x9, _SCHIZO_FLAGS_XMODE@GOTPAGEOFF]
Lloh132:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh133:
	adrp	x8, _XMS_PCI_X_ERR_STAT@GOTPAGE
Lloh134:
	ldr	x8, [x8, _XMS_PCI_X_ERR_STAT@GOTPAGEOFF]
Lloh135:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_SCHIZO_PCI_WRITE_8
LBB0_18:
	ldr	w0, [x19, #8]
	bl	_mtx_unlock_spin
	tbnz	w28, #0, LBB0_20
; %bb.19:
	ldr	w0, [x19, #4]
	bl	_device_get_nameunit
	mov	x1, x0
Lloh136:
	adrp	x0, l_.str.1@PAGE
Lloh137:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_20:
Lloh138:
	adrp	x8, _FILTER_HANDLED@GOTPAGE
Lloh139:
	ldr	x8, [x8, _FILTER_HANDLED@GOTPAGEOFF]
Lloh140:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	w8, #1
	b	LBB0_10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpAdd	Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.cfi_endproc
                                        ; -- End function
	.comm	_STX_PCI_AFAR,4,2               ; @STX_PCI_AFAR
	.comm	_STX_PCI_AFSR,4,2               ; @STX_PCI_AFSR
	.comm	_STX_PCI_CTRL,4,2               ; @STX_PCI_CTRL
	.comm	_STX_PCI_IOMMU,4,2              ; @STX_PCI_IOMMU
	.comm	_SCHIZO_FLAGS_XMODE,4,2         ; @SCHIZO_FLAGS_XMODE
	.comm	_XMS_PCI_X_ERR_STAT,4,2         ; @XMS_PCI_X_ERR_STAT
	.comm	_STX_CS_DEVICE,4,2              ; @STX_CS_DEVICE
	.comm	_STX_CS_FUNC,4,2                ; @STX_CS_FUNC
	.comm	_PCIR_STATUS,4,2                ; @PCIR_STATUS
	.comm	_STX_PCI_CTRL_MMU_ERR,4,2       ; @STX_PCI_CTRL_MMU_ERR
	.comm	_TOM_PCI_IOMMU_ERR,4,2          ; @TOM_PCI_IOMMU_ERR
	.comm	_PCIM_STATUS_STABORT,4,2        ; @PCIM_STATUS_STABORT
	.comm	_TOM_PCI_IOMMU_ERRMASK,4,2      ; @TOM_PCI_IOMMU_ERRMASK
	.comm	_TOM_PCI_IOMMU_INVALID_ERR,4,2  ; @TOM_PCI_IOMMU_INVALID_ERR
	.comm	_TOM_PCI_IOMMU_ERR_ILLTSBTBW,4,2 ; @TOM_PCI_IOMMU_ERR_ILLTSBTBW
	.comm	_TOM_PCI_IOMMU_ERR_BAD_VA,4,2   ; @TOM_PCI_IOMMU_ERR_BAD_VA
	.comm	_PCIM_STATUS_PERR,4,2           ; @PCIM_STATUS_PERR
	.comm	_PCIM_STATUS_SERR,4,2           ; @PCIM_STATUS_SERR
	.comm	_PCIM_STATUS_RMABORT,4,2        ; @PCIM_STATUS_RMABORT
	.comm	_PCIM_STATUS_RTABORT,4,2        ; @PCIM_STATUS_RTABORT
	.comm	_PCIM_STATUS_MDPERR,4,2         ; @PCIM_STATUS_MDPERR
	.comm	_SCZ_PCI_CTRL_BUS_UNUS,4,2      ; @SCZ_PCI_CTRL_BUS_UNUS
	.comm	_TOM_PCI_CTRL_DTO_ERR,4,2       ; @TOM_PCI_CTRL_DTO_ERR
	.comm	_STX_PCI_CTRL_TTO_ERR,4,2       ; @STX_PCI_CTRL_TTO_ERR
	.comm	_STX_PCI_CTRL_RTRY_ERR,4,2      ; @STX_PCI_CTRL_RTRY_ERR
	.comm	_SCZ_PCI_CTRL_SBH_ERR,4,2       ; @SCZ_PCI_CTRL_SBH_ERR
	.comm	_STX_PCI_CTRL_SERR,4,2          ; @STX_PCI_CTRL_SERR
	.comm	_STX_PCI_AFSR_P_MA,4,2          ; @STX_PCI_AFSR_P_MA
	.comm	_STX_PCI_AFSR_P_TA,4,2          ; @STX_PCI_AFSR_P_TA
	.comm	_STX_PCI_AFSR_P_RTRY,4,2        ; @STX_PCI_AFSR_P_RTRY
	.comm	_STX_PCI_AFSR_P_PERR,4,2        ; @STX_PCI_AFSR_P_PERR
	.comm	_STX_PCI_AFSR_P_TTO,4,2         ; @STX_PCI_AFSR_P_TTO
	.comm	_STX_PCI_AFSR_P_UNUS,4,2        ; @STX_PCI_AFSR_P_UNUS
	.comm	_XMS_PCI_X_ERR_STAT_P_SC_DSCRD,4,2 ; @XMS_PCI_X_ERR_STAT_P_SC_DSCRD
	.comm	_XMS_PCI_X_ERR_STAT_P_SC_TTO,4,2 ; @XMS_PCI_X_ERR_STAT_P_SC_TTO
	.comm	_XMS_PCI_X_ERR_STAT_P_SDSTAT,4,2 ; @XMS_PCI_X_ERR_STAT_P_SDSTAT
	.comm	_XMS_PCI_X_ERR_STAT_P_SMMU,4,2  ; @XMS_PCI_X_ERR_STAT_P_SMMU
	.comm	_XMS_PCI_X_ERR_STAT_P_CDSTAT,4,2 ; @XMS_PCI_X_ERR_STAT_P_CDSTAT
	.comm	_XMS_PCI_X_ERR_STAT_P_CMMU,4,2  ; @XMS_PCI_X_ERR_STAT_P_CMMU
	.comm	_XMS_PCI_X_ERR_STAT_PERR_RCV,4,2 ; @XMS_PCI_X_ERR_STAT_PERR_RCV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI bus %c error AFAR %#llx AFSR %#llx PCI CSR %#llx IOMMU %#llx PCI-X %#llx STATUS %#x\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: fatal PCI bus error"

	.comm	_FILTER_HANDLED,4,2             ; @FILTER_HANDLED
	.no_dead_strip	_schizo_pci_bus
.subsections_via_symbols
