	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aer_inject
_aer_inject:                            ## @aer_inject
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	32(%rdi), %esi
	movl	36(%rdi), %edi
	callq	_PCI_DEVFN
	movl	%eax, %r15d
	movl	(%r12), %esi
	movl	28(%r12), %edi
	movl	%eax, %edx
	callq	_pci_get_domain_bus_and_slot
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_pcie_find_root_port
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movslq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.7:
	movq	%rax, %r13
	movq	_PCI_ERR_UNCOR_SEVER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	-96(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_dword
	movq	_PCI_ERR_COR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_dword
	movq	_PCI_ERR_UNCOR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_dword
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$36, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	%rax, %r13
	movl	(%rbx), %esi
	movl	$36, %edi
	callq	_kzalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_aer_mask_override@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.16:
	movl	-64(%rbp), %eax
	xorl	%edx, %edx
	cmpl	$0, 4(%r12)
	sete	%dl
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	andl	%eax, %edx
	movl	%edx, -64(%rbp)
	movq	_PCI_ERR_COR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_pci_write_config_dword
	movl	-60(%rbp), %eax
	xorl	%edx, %edx
	cmpl	$0, 8(%r12)
	sete	%dl
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	andl	%eax, %edx
	movl	%edx, -60(%rbp)
	movq	_PCI_ERR_UNCOR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_pci_write_config_dword
	jmp	LBB0_17
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_58
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_pci_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
LBB0_6:
	callq	_pci_err
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%r13d, %r13d
LBB0_57:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_pci_dev_put
LBB0_58:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_57
LBB0_15:
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
LBB0_17:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	_inject_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	___find_aer_error_by_dev
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	jmp	LBB0_20
LBB0_19:
	movl	(%r12), %edx
	movl	28(%r12), %esi
	movq	%r13, %rdi
	movl	%r15d, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_aer_error_init
	movq	%r13, %rdi
	addq	$16, %rdi
	movq	_einjected@GOTPCREL(%rip), %rsi
	callq	_list_add
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_20:
	movl	8(%r12), %eax
	orl	%eax, (%r13)
	movl	4(%r12), %ecx
	orl	%ecx, 4(%r13)
	movups	12(%r12), %xmm0
	movups	%xmm0, 20(%r13)
	movq	_aer_mask_override@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_21
LBB0_28:
	movq	%rbx, %rdi
	callq	___find_aer_error_by_dev
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_31
LBB0_21:
	testl	%ecx, %ecx
	je	LBB0_25
## %bb.22:
	movl	-64(%rbp), %edx
	notl	%edx
	testl	%edx, %ecx
	je	LBB0_23
LBB0_25:
	testl	%eax, %eax
	je	LBB0_28
## %bb.26:
	movl	-60(%rbp), %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_28
## %bb.27:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_24
LBB0_30:
	movq	8(%rbx), %rdi
	callq	_pci_domain_nr
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movl	4(%rbx), %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	callq	_aer_error_init
	addq	$16, %rbx
	movq	_einjected@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	xorl	%r13d, %r13d
LBB0_31:
	cmpl	$0, 4(%r12)
	je	LBB0_35
## %bb.32:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx), %eax
	movq	_PCI_ERR_ROOT_COR_RCV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_34
## %bb.33:
	movq	_PCI_ERR_ROOT_MULTI_COR_RCV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_34:
	orl	%eax, %ecx
	movl	%ecx, 8(%rdx)
	movzwl	14(%rdx), %eax
	shll	$16, %eax
	movl	(%r12), %ecx
	shll	$8, %ecx
	orl	%r15d, %eax
	orl	%ecx, %eax
	movl	%eax, 12(%rdx)
LBB0_35:
	movl	8(%r12), %edx
	testl	%edx, %edx
	je	LBB0_45
## %bb.36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	8(%rdi), %eax
	movq	_PCI_ERR_ROOT_UNCOR_RCV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_38
## %bb.37:
	movq	_PCI_ERR_ROOT_MULTI_UNCOR_RCV@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, 8(%rdi)
LBB0_38:
	testl	%edx, -96(%rbp)
	je	LBB0_42
## %bb.39:
	movq	_PCI_ERR_ROOT_FATAL_RCV@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 8(%rdx)
	testl	%ecx, %eax
	je	LBB0_41
## %bb.40:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_42:
	movq	_PCI_ERR_ROOT_NONFATAL_RCV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jmp	LBB0_43
LBB0_41:
	movq	_PCI_ERR_ROOT_FIRST_FATAL@GOTPCREL(%rip), %rsi
	movl	%eax, %edx
	movl	(%rsi), %eax
LBB0_43:
	orl	%edx, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 8(%rdx)
LBB0_44:
	orl	%ecx, %eax
	movl	%eax, 8(%rdx)
	movzwl	12(%rdx), %eax
	movl	(%r12), %ecx
	shll	$24, %ecx
	shll	$16, %r15d
	orl	%eax, %r15d
	orl	%ecx, %r15d
	movl	%r15d, 12(%rdx)
LBB0_45:
	movq	_inject_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_aer_mask_override@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_47
## %bb.46:
	movq	_PCI_ERR_COR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_pci_write_config_dword
	movq	_PCI_ERR_UNCOR_MASK@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_pci_write_config_dword
LBB0_47:
	movq	8(%r14), %rdi
	callq	_pci_bus_set_aer_ops
	testl	%eax, %eax
	jne	LBB0_48
## %bb.49:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rdi
	callq	_pci_bus_set_aer_ops
	testl	%eax, %eax
	je	LBB0_50
LBB0_48:
	movl	%eax, %ebx
LBB0_56:
	movq	%r13, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_57
LBB0_50:
	movq	_PCIE_PORT_SERVICE_AER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pcie_port_find_device
	testq	%rax, %rax
	je	LBB0_54
## %bb.51:
	movq	%rax, %rdi
	callq	_to_pcie_device
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_get_service_data
	movq	8(%r15), %rbx
	testl	%eax, %eax
	je	LBB0_52
## %bb.53:
	movl	4(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %r12d
	movq	%r14, %rdi
	callq	_pci_name
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_pci_info
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_local_irq_disable
	movl	(%r15), %edi
	callq	_generic_handle_irq
	xorl	%eax, %eax
	callq	_local_irq_enable
	jmp	LBB0_56
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_24:
	movq	%r14, %rdi
	callq	_pci_warn
	movq	_inject_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_57
LBB0_54:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_pci_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_55
LBB0_52:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_pci_warn
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
LBB0_55:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_56
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Root port not found\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device doesn't support AER\n"

	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_PCI_ERR_UNCOR_SEVER,8,3        ## @PCI_ERR_UNCOR_SEVER
	.comm	_PCI_ERR_COR_MASK,8,3           ## @PCI_ERR_COR_MASK
	.comm	_PCI_ERR_UNCOR_MASK,8,3         ## @PCI_ERR_UNCOR_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Root port doesn't support AER\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_aer_mask_override,8,3          ## @aer_mask_override
	.comm	_inject_lock,4,2                ## @inject_lock
	.comm	_einjected,4,2                  ## @einjected
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"The correctable error(s) is masked by device\n"

L_.str.4:                               ## @.str.4
	.asciz	"The uncorrectable error(s) is masked by device\n"

	.comm	_PCI_ERR_ROOT_COR_RCV,4,2       ## @PCI_ERR_ROOT_COR_RCV
	.comm	_PCI_ERR_ROOT_MULTI_COR_RCV,4,2 ## @PCI_ERR_ROOT_MULTI_COR_RCV
	.comm	_PCI_ERR_ROOT_UNCOR_RCV,4,2     ## @PCI_ERR_ROOT_UNCOR_RCV
	.comm	_PCI_ERR_ROOT_MULTI_UNCOR_RCV,4,2 ## @PCI_ERR_ROOT_MULTI_UNCOR_RCV
	.comm	_PCI_ERR_ROOT_FATAL_RCV,4,2     ## @PCI_ERR_ROOT_FATAL_RCV
	.comm	_PCI_ERR_ROOT_FIRST_FATAL,4,2   ## @PCI_ERR_ROOT_FIRST_FATAL
	.comm	_PCI_ERR_ROOT_NONFATAL_RCV,4,2  ## @PCI_ERR_ROOT_NONFATAL_RCV
	.comm	_PCIE_PORT_SERVICE_AER,4,2      ## @PCIE_PORT_SERVICE_AER
L_.str.5:                               ## @.str.5
	.asciz	"AER service is not initialized\n"

L_.str.6:                               ## @.str.6
	.asciz	"Injecting errors %08x/%08x into device %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"AER device not found\n"

	.no_dead_strip	_aer_inject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aer_inject
_aer_inject:                            ; @aer_inject
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
	ldr	w0, [x0, #36]
	ldr	w1, [x20, #32]
	bl	_PCI_DEVFN
	mov	x23, x0
	ldr	w0, [x20, #28]
	ldr	w1, [x20]
	mov	x2, x23
	bl	_pci_get_domain_bus_and_slot
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_pcie_find_root_port
	cbz	x0, LBB0_9
; %bb.2:
	ldrsw	x24, [x19]
	cbz	w24, LBB0_10
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x8, _PCI_ERR_UNCOR_SEVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ERR_UNCOR_SEVER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x24
	add	x2, sp, #28
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh3:
	adrp	x25, _PCI_ERR_COR_MASK@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PCI_ERR_COR_MASK@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x24
	add	x2, sp, #24
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh5:
	adrp	x26, _PCI_ERR_UNCOR_MASK@GOTPAGE
Lloh6:
	ldr	x26, [x26, _PCI_ERR_UNCOR_MASK@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x1, x8, x24
	add	x2, sp, #20
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w28, [x21]
	cbz	w28, LBB0_11
; %bb.4:
Lloh7:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #36
	bl	_kzalloc
	mov	x27, x0
	cbz	x0, LBB0_13
; %bb.5:
	ldr	w1, [x22]
	mov	w0, #36
	bl	_kzalloc
	mov	x22, x0
	cbz	x0, LBB0_14
; %bb.6:
Lloh9:
	adrp	x8, _aer_mask_override@GOTPAGE
Lloh10:
	ldr	x8, [x8, _aer_mask_override@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.7:
	ldr	w9, [sp, #24]
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w8, eq
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	and	w2, w9, w8
	str	w2, [sp, #24]
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	x0, x19
	bl	_pci_write_config_dword
	ldr	w9, [sp, #20]
	ldr	w8, [x20, #8]
	cmp	w8, #0
	cset	w8, eq
	str	w9, [sp]                        ; 4-byte Folded Spill
	and	w2, w9, w8
	str	w2, [sp, #20]
	ldr	x8, [x26]
	add	x1, x8, x24
	mov	x0, x19
	bl	_pci_write_config_dword
	b	LBB0_19
LBB0_8:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_9:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_err
	mov	x22, #0
	mov	x27, #0
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	b	LBB0_12
LBB0_11:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
LBB0_12:
	bl	_pci_err
	mov	x22, #0
	mov	x27, #0
Lloh23:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	mov	x22, #0
LBB0_14:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_16:
	mov	x0, x27
	bl	_kfree
	mov	x0, x22
	bl	_kfree
	mov	x0, x19
	bl	_pci_dev_put
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	str	xzr, [sp]                       ; 8-byte Folded Spill
LBB0_19:
Lloh27:
	adrp	x0, _inject_lock@GOTPAGE
Lloh28:
	ldr	x0, [x0, _inject_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	___find_aer_error_by_dev
	cbz	x0, LBB0_21
; %bb.20:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	mov	x27, x0
	b	LBB0_22
LBB0_21:
	ldr	w1, [x20, #28]
	ldr	w2, [x20]
	mov	x0, x27
	mov	x3, x23
	mov	x4, x24
	bl	_aer_error_init
	add	x0, x27, #16
Lloh29:
	adrp	x1, _einjected@GOTPAGE
Lloh30:
	ldr	x1, [x1, _einjected@GOTPAGEOFF]
	bl	_list_add
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
LBB0_22:
	ldp	w9, w8, [x20, #4]
	ldp	w10, w11, [x27]
	orr	w10, w10, w8
	orr	w11, w11, w9
	stp	w10, w11, [x27]
	ldur	q0, [x20, #12]
	stur	q0, [x27, #20]
Lloh31:
	adrp	x10, _aer_mask_override@GOTPAGE
Lloh32:
	ldr	x10, [x10, _aer_mask_override@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	cbz	x10, LBB0_25
LBB0_23:
	mov	x0, x21
	bl	___find_aer_error_by_dev
	cbz	x0, LBB0_30
; %bb.24:
	mov	x27, x22
	mov	x22, x0
	b	LBB0_31
LBB0_25:
	cbz	w9, LBB0_27
; %bb.26:
	ldr	w10, [sp, #24]
	bics	wzr, w9, w10
	b.eq	LBB0_52
LBB0_27:
	cbz	w8, LBB0_23
; %bb.28:
	ldr	w9, [sp, #20]
	bics	wzr, w8, w9
	b.ne	LBB0_23
; %bb.29:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w23, w8
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_53
LBB0_30:
	ldr	x0, [x21, #8]
	bl	_pci_domain_nr
	mov	x1, x0
	ldr	x8, [x21, #8]
	ldr	w2, [x8]
	ldr	w3, [x21, #4]
	mov	x0, x22
	mov	x4, x28
	bl	_aer_error_init
	add	x0, x22, #16
Lloh39:
	adrp	x1, _einjected@GOTPAGE
Lloh40:
	ldr	x1, [x1, _einjected@GOTPAGEOFF]
	bl	_list_add
	mov	x27, #0
LBB0_31:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_33
; %bb.32:
	ldr	w8, [x22, #8]
Lloh41:
	adrp	x9, _PCI_ERR_ROOT_COR_RCV@GOTPAGE
Lloh42:
	ldr	x9, [x9, _PCI_ERR_ROOT_COR_RCV@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _PCI_ERR_ROOT_MULTI_COR_RCV@GOTPAGE
Lloh45:
	ldr	x10, [x10, _PCI_ERR_ROOT_MULTI_COR_RCV@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, w9, w10, eq
	orr	w8, w9, w8
	ldrh	w9, [x22, #14]
	ldr	w10, [x20]
	orr	w9, w23, w9, lsl #16
	orr	w9, w9, w10, lsl #8
	stp	w8, w9, [x22, #8]
LBB0_33:
	ldr	w10, [x20, #8]
	cbz	w10, LBB0_42
; %bb.34:
	ldr	w9, [x22, #8]
Lloh47:
	adrp	x8, _PCI_ERR_ROOT_UNCOR_RCV@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PCI_ERR_ROOT_UNCOR_RCV@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_36
; %bb.35:
Lloh50:
	adrp	x11, _PCI_ERR_ROOT_MULTI_UNCOR_RCV@GOTPAGE
Lloh51:
	ldr	x11, [x11, _PCI_ERR_ROOT_MULTI_UNCOR_RCV@GOTPAGEOFF]
Lloh52:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w9, [x22, #8]
LBB0_36:
	ldr	w11, [sp, #28]
	tst	w11, w10
	b.eq	LBB0_39
; %bb.37:
Lloh53:
	adrp	x10, _PCI_ERR_ROOT_FATAL_RCV@GOTPAGE
Lloh54:
	ldr	x10, [x10, _PCI_ERR_ROOT_FATAL_RCV@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	orr	w10, w9, w10
	str	w10, [x22, #8]
	tst	w10, w8
	b.ne	LBB0_41
; %bb.38:
Lloh56:
	adrp	x9, _PCI_ERR_ROOT_FIRST_FATAL@GOTPAGE
Lloh57:
	ldr	x9, [x9, _PCI_ERR_ROOT_FIRST_FATAL@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	b	LBB0_40
LBB0_39:
Lloh59:
	adrp	x10, _PCI_ERR_ROOT_NONFATAL_RCV@GOTPAGE
Lloh60:
	ldr	x10, [x10, _PCI_ERR_ROOT_NONFATAL_RCV@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x10]
LBB0_40:
	orr	w10, w9, w10
	str	w10, [x22, #8]
LBB0_41:
	orr	w8, w10, w8
	ldrh	w9, [x22, #12]
	ldr	w10, [x20]
	bfi	w9, w23, #16, #16
	orr	w9, w9, w10, lsl #24
	stp	w8, w9, [x22, #8]
LBB0_42:
Lloh62:
	adrp	x0, _inject_lock@GOTPAGE
Lloh63:
	ldr	x0, [x0, _inject_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh64:
	adrp	x8, _aer_mask_override@GOTPAGE
Lloh65:
	ldr	x8, [x8, _aer_mask_override@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	cbz	x8, LBB0_44
; %bb.43:
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	x0, x19
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_pci_write_config_dword
	ldr	x8, [x26]
	add	x1, x8, x24
	mov	x0, x19
	ldr	w2, [sp]                        ; 4-byte Folded Reload
	bl	_pci_write_config_dword
LBB0_44:
	ldr	x0, [x19, #8]
	bl	_pci_bus_set_aer_ops
	cbnz	w0, LBB0_46
; %bb.45:
	ldr	x0, [x21, #8]
	bl	_pci_bus_set_aer_ops
	cbz	w0, LBB0_49
LBB0_46:
	mov	x23, x0
LBB0_47:
	mov	x22, x27
LBB0_48:
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_16
LBB0_49:
Lloh67:
	adrp	x8, _PCIE_PORT_SERVICE_AER@GOTPAGE
Lloh68:
	ldr	x8, [x8, _PCIE_PORT_SERVICE_AER@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pcie_port_find_device
	cbz	x0, LBB0_54
; %bb.50:
	bl	_to_pcie_device
	mov	x21, x0
	bl	_get_service_data
	ldr	x22, [x21, #8]
	cbz	w0, LBB0_55
; %bb.51:
	ldp	w23, w20, [x20, #4]
	mov	x0, x19
	bl	_pci_name
	mov	x4, x0
Lloh70:
	adrp	x1, l_.str.6@PAGE
Lloh71:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x20
	bl	_pci_info
	bl	_local_irq_disable
	ldr	w0, [x21]
	bl	_generic_handle_irq
	bl	_local_irq_enable
	mov	w23, #0
	b	LBB0_47
LBB0_52:
Lloh72:
	adrp	x8, _EINVAL@GOTPAGE
Lloh73:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	neg	w23, w8
Lloh75:
	adrp	x1, l_.str.3@PAGE
Lloh76:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_53:
	mov	x0, x19
	bl	_pci_warn
Lloh77:
	adrp	x0, _inject_lock@GOTPAGE
Lloh78:
	ldr	x0, [x0, _inject_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	b	LBB0_48
LBB0_54:
Lloh79:
	adrp	x1, l_.str.7@PAGE
Lloh80:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_pci_err
Lloh81:
	adrp	x8, _ENODEV@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_56
LBB0_55:
Lloh83:
	adrp	x1, l_.str.5@PAGE
Lloh84:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_pci_warn
Lloh85:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh86:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_56:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_47
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpAdd	Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Root port not found\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device doesn't support AER\n"

	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_PCI_ERR_UNCOR_SEVER,8,3        ; @PCI_ERR_UNCOR_SEVER
	.comm	_PCI_ERR_COR_MASK,8,3           ; @PCI_ERR_COR_MASK
	.comm	_PCI_ERR_UNCOR_MASK,8,3         ; @PCI_ERR_UNCOR_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Root port doesn't support AER\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_aer_mask_override,8,3          ; @aer_mask_override
	.comm	_inject_lock,4,2                ; @inject_lock
	.comm	_einjected,4,2                  ; @einjected
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"The correctable error(s) is masked by device\n"

l_.str.4:                               ; @.str.4
	.asciz	"The uncorrectable error(s) is masked by device\n"

	.comm	_PCI_ERR_ROOT_COR_RCV,4,2       ; @PCI_ERR_ROOT_COR_RCV
	.comm	_PCI_ERR_ROOT_MULTI_COR_RCV,4,2 ; @PCI_ERR_ROOT_MULTI_COR_RCV
	.comm	_PCI_ERR_ROOT_UNCOR_RCV,4,2     ; @PCI_ERR_ROOT_UNCOR_RCV
	.comm	_PCI_ERR_ROOT_MULTI_UNCOR_RCV,4,2 ; @PCI_ERR_ROOT_MULTI_UNCOR_RCV
	.comm	_PCI_ERR_ROOT_FATAL_RCV,4,2     ; @PCI_ERR_ROOT_FATAL_RCV
	.comm	_PCI_ERR_ROOT_FIRST_FATAL,4,2   ; @PCI_ERR_ROOT_FIRST_FATAL
	.comm	_PCI_ERR_ROOT_NONFATAL_RCV,4,2  ; @PCI_ERR_ROOT_NONFATAL_RCV
	.comm	_PCIE_PORT_SERVICE_AER,4,2      ; @PCIE_PORT_SERVICE_AER
l_.str.5:                               ; @.str.5
	.asciz	"AER service is not initialized\n"

l_.str.6:                               ; @.str.6
	.asciz	"Injecting errors %08x/%08x into device %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"AER device not found\n"

	.no_dead_strip	_aer_inject
.subsections_via_symbols
