	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function report_error_detected
_report_error_detected:                 ## @report_error_detected
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r13
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_device_lock
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_pci_dev_set_io_state
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	*%rcx
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	(%r13), %rax
	movq	_PCI_HEADER_TYPE_BRIDGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_PCI_ERS_RESULT_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_PCI_ERS_RESULT_NO_AER_DRIVER@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_pci_uevent_ers
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_merge_result
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_device_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_HEADER_TYPE_BRIDGE,8,3     ## @PCI_HEADER_TYPE_BRIDGE
	.comm	_PCI_ERS_RESULT_NO_AER_DRIVER,4,2 ## @PCI_ERS_RESULT_NO_AER_DRIVER
	.comm	_PCI_ERS_RESULT_NONE,4,2        ## @PCI_ERS_RESULT_NONE
	.no_dead_strip	_report_error_detected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function report_error_detected
_report_error_detected:                 ; @report_error_detected
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_device_lock
	mov	x0, x21
	mov	x1, x22
	bl	_pci_dev_set_io_state
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	blr	x8
	mov	x22, x0
	b	LBB0_9
LBB0_5:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _PCI_ERS_RESULT_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_ERS_RESULT_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _PCI_ERS_RESULT_NO_AER_DRIVER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_ERS_RESULT_NO_AER_DRIVER@GOTPAGEOFF]
LBB0_8:
	ldr	w22, [x8]
LBB0_9:
	mov	x0, x21
	mov	x1, x22
	bl	_pci_uevent_ers
	ldr	w0, [x19]
	mov	x1, x22
	bl	_merge_result
	str	w0, [x19]
	mov	x0, x20
	bl	_device_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_HEADER_TYPE_BRIDGE,8,3     ; @PCI_HEADER_TYPE_BRIDGE
	.comm	_PCI_ERS_RESULT_NO_AER_DRIVER,4,2 ; @PCI_ERS_RESULT_NO_AER_DRIVER
	.comm	_PCI_ERS_RESULT_NONE,4,2        ; @PCI_ERS_RESULT_NONE
	.no_dead_strip	_report_error_detected
.subsections_via_symbols
