	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_error_source
_is_error_source:                       ## @is_error_source
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %edi
	callq	_PCI_BUS_NUM
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	16(%r15), %rax
	movq	_PCI_BUS_FLAGS_NO_AERSID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
LBB0_5:
	leaq	8(%r15), %rdi
	callq	_atomic_read
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_PCI_EXP_DEVCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pcie_capability_read_word
	movq	_PCI_EXP_AER_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_9
## %bb.7:
	movslq	4(%r15), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movq	8(%r14), %rax
	movq	_AER_CORRECTABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_PCI_ERR_UNCOR_STATUS@GOTPCREL(%rip), %rax
	cmoveq	_PCI_ERR_COR_STATUS@GOTPCREL(%rip), %rax
	movq	_PCI_ERR_UNCOR_MASK@GOTPCREL(%rip), %rbx
	cmoveq	_PCI_ERR_COR_MASK@GOTPCREL(%rip), %rbx
	movq	(%rax), %rsi
	addq	%r12, %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	addq	(%rbx), %r12
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_pci_read_config_dword
	movl	-40(%rbp), %eax
	notl	%eax
	xorl	%ebx, %ebx
	testl	%eax, -44(%rbp)
	setne	%bl
	jmp	LBB0_9
LBB0_2:
	movl	4(%rax), %eax
	shll	$8, %eax
	orl	(%r15), %eax
	movl	$1, %ebx
	cmpl	%eax, (%r14)
	je	LBB0_9
## %bb.3:
	cmpl	$0, 16(%r14)
	jne	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_BUS_FLAGS_NO_AERSID,4,2    ## @PCI_BUS_FLAGS_NO_AERSID
	.comm	_PCI_EXP_DEVCTL,4,2             ## @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_AER_FLAGS,4,2          ## @PCI_EXP_AER_FLAGS
	.comm	_AER_CORRECTABLE,8,3            ## @AER_CORRECTABLE
	.comm	_PCI_ERR_COR_STATUS,8,3         ## @PCI_ERR_COR_STATUS
	.comm	_PCI_ERR_COR_MASK,8,3           ## @PCI_ERR_COR_MASK
	.comm	_PCI_ERR_UNCOR_STATUS,8,3       ## @PCI_ERR_UNCOR_STATUS
	.comm	_PCI_ERR_UNCOR_MASK,8,3         ## @PCI_ERR_UNCOR_MASK
	.no_dead_strip	_is_error_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_error_source
_is_error_source:                       ; @is_error_source
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_PCI_BUS_NUM
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _PCI_BUS_FLAGS_NO_AERSID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PCI_BUS_FLAGS_NO_AERSID@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
LBB0_2:
	add	x0, x19, #8
	bl	_atomic_read
	cbz	x0, LBB0_10
; %bb.3:
Lloh3:
	adrp	x8, _PCI_EXP_DEVCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_DEVCTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x19
	bl	_pcie_capability_read_word
	ldr	w8, [sp, #4]
Lloh6:
	adrp	x9, _PCI_EXP_AER_FLAGS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_EXP_AER_FLAGS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.4:
	ldrsw	x21, [x19, #4]
	cbz	w21, LBB0_9
; %bb.5:
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _AER_CORRECTABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AER_CORRECTABLE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _PCI_ERR_COR_STATUS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PCI_ERR_COR_STATUS@GOTPAGEOFF]
Lloh14:
	adrp	x11, _PCI_ERR_UNCOR_STATUS@GOTPAGE
Lloh15:
	ldr	x11, [x11, _PCI_ERR_UNCOR_STATUS@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	add	x1, x8, x21
Lloh16:
	adrp	x8, _PCI_ERR_COR_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCI_ERR_COR_MASK@GOTPAGEOFF]
Lloh18:
	adrp	x9, _PCI_ERR_UNCOR_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PCI_ERR_UNCOR_MASK@GOTPAGEOFF]
	csel	x20, x8, x9, eq
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	x8, [x20]
	add	x1, x8, x21
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_dword
	ldp	w9, w8, [sp, #8]
	bics	wzr, w8, w9
	cset	w0, ne
	b	LBB0_10
LBB0_6:
	ldr	w9, [x20]
	ldr	w8, [x8, #4]
	ldr	w10, [x19]
	orr	w8, w10, w8, lsl #8
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_2
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_BUS_FLAGS_NO_AERSID,4,2    ; @PCI_BUS_FLAGS_NO_AERSID
	.comm	_PCI_EXP_DEVCTL,4,2             ; @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_AER_FLAGS,4,2          ; @PCI_EXP_AER_FLAGS
	.comm	_AER_CORRECTABLE,8,3            ; @AER_CORRECTABLE
	.comm	_PCI_ERR_COR_STATUS,8,3         ; @PCI_ERR_COR_STATUS
	.comm	_PCI_ERR_COR_MASK,8,3           ; @PCI_ERR_COR_MASK
	.comm	_PCI_ERR_UNCOR_STATUS,8,3       ; @PCI_ERR_UNCOR_STATUS
	.comm	_PCI_ERR_UNCOR_MASK,8,3         ; @PCI_ERR_UNCOR_MASK
	.no_dead_strip	_is_error_source
.subsections_via_symbols
