	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_error_source
_handle_error_source:                   ## @handle_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	_AER_CORRECTABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movslq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_PCI_ERR_COR_STATUS@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	8(%rsi), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_pci_write_config_dword
LBB0_3:
	movq	%rbx, %rdi
	callq	_pci_aer_clear_device_status
	jmp	LBB0_9
LBB0_4:
	movq	_AER_NONFATAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_pci_channel_io_normal@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_AER_FATAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	_pci_channel_io_frozen@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	_PCIE_PORT_SERVICE_AER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pcie_do_recovery
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pci_dev_put                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AER_CORRECTABLE,8,3            ## @AER_CORRECTABLE
	.comm	_PCI_ERR_COR_STATUS,8,3         ## @PCI_ERR_COR_STATUS
	.comm	_AER_NONFATAL,8,3               ## @AER_NONFATAL
	.comm	_pci_channel_io_normal,4,2      ## @pci_channel_io_normal
	.comm	_PCIE_PORT_SERVICE_AER,4,2      ## @PCIE_PORT_SERVICE_AER
	.comm	_AER_FATAL,8,3                  ## @AER_FATAL
	.comm	_pci_channel_io_frozen,4,2      ## @pci_channel_io_frozen
	.no_dead_strip	_handle_error_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_error_source
_handle_error_source:                   ; @handle_error_source
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _AER_CORRECTABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AER_CORRECTABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldrsw	x8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _PCI_ERR_COR_STATUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_ERR_COR_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8
	ldr	w2, [x1, #8]
	mov	x0, x19
	mov	x1, x8
	bl	_pci_write_config_dword
LBB0_3:
	mov	x0, x19
	bl	_pci_aer_clear_device_status
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x9, _AER_NONFATAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AER_NONFATAL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _pci_channel_io_normal@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pci_channel_io_normal@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x9, _AER_FATAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AER_FATAL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
Lloh14:
	adrp	x8, _pci_channel_io_frozen@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pci_channel_io_frozen@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _PCIE_PORT_SERVICE_AER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCIE_PORT_SERVICE_AER@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pcie_do_recovery
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_dev_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AER_CORRECTABLE,8,3            ; @AER_CORRECTABLE
	.comm	_PCI_ERR_COR_STATUS,8,3         ; @PCI_ERR_COR_STATUS
	.comm	_AER_NONFATAL,8,3               ; @AER_NONFATAL
	.comm	_pci_channel_io_normal,4,2      ; @pci_channel_io_normal
	.comm	_PCIE_PORT_SERVICE_AER,4,2      ; @PCIE_PORT_SERVICE_AER
	.comm	_AER_FATAL,8,3                  ; @AER_FATAL
	.comm	_pci_channel_io_frozen,4,2      ; @pci_channel_io_frozen
	.no_dead_strip	_handle_error_source
.subsections_via_symbols
