	.file	"extr_aer.c_aer_print_error.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PCIe Bus Error: severity=%s, type=Inaccessible, (Unregistered Agent ID)\n"
	.align 8
.LC1:
	.string	"PCIe Bus Error: severity=%s, type=%s, (%s)\n"
	.align 8
.LC2:
	.string	"  device [%04x:%04x] error status/mask=%08x/%08x\n"
	.align 8
.LC3:
	.string	"  Error of this Agent is reported first\n"
	.text
	.p2align 4
	.globl	aer_print_error
	.type	aer_print_error, @function
aer_print_error:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	lea	r13, 28[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 16[rdi]
	mov	esi, DWORD PTR [rsi]
	mov	r15d, DWORD PTR [rdi]
	mov	rdi, QWORD PTR 8[rbx]
	mov	r14d, DWORD PTR [rax]
	test	esi, esi
	je	.L16
	call	AER_GET_LAYER_ERROR@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	movsx	r12, eax
	call	AER_GET_AGENT@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rbp
	movsx	rdx, eax
	mov	rax, QWORD PTR aer_error_layer[rip]
	mov	ecx, DWORD PTR [rax+r12*4]
	mov	rax, QWORD PTR aer_error_severity_string[rip]
	mov	r9d, DWORD PTR [rax+rsi*4]
	mov	rax, QWORD PTR aer_agent_string[rip]
	lea	rsi, .LC1[rip]
	mov	r8d, DWORD PTR [rax+rdx*4]
	mov	edx, r9d
	xor	eax, eax
	call	pci_err@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 12[rbp]
	mov	rdi, rbp
	mov	r9d, DWORD PTR 16[rbx]
	mov	r8d, DWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	pci_err@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	__aer_print_error@PLT
	cmp	QWORD PTR 32[rbx], 0
	jne	.L17
.L3:
	mov	eax, DWORD PTR 20[rbx]
	test	eax, eax
	je	.L4
	sal	r14d, 8
	or	r14d, r15d
	cmp	r14d, eax
	jne	.L4
	cmp	DWORD PTR 24[rbx], 1
	jg	.L18
.L4:
	mov	r12d, DWORD PTR 16[rbx]
	mov	r15, QWORD PTR 32[rbx]
	lea	rdi, 4[rbp]
	mov	r14, QWORD PTR 8[rbx]
	not	r12d
	and	r12d, DWORD PTR [rbx]
	call	dev_name@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r8, r13
	mov	rcx, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdx, r14
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	esi, r12d
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	trace_aer_event@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbp
	call	__print_tlp_header@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR aer_error_severity_string[rip]
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR [rax+rdi*4]
	mov	rdi, rbp
	xor	eax, eax
	call	pci_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	pci_err@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	aer_print_error, .-aer_print_error
	.comm	aer_error_severity_string,8,8
	.comm	aer_error_layer,8,8
	.comm	aer_agent_string,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_aer.c_aer_print_error.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PCIe Bus Error: severity=%s, type=Inaccessible, (Un"
	.ascii	"registered Agent ID)\012\000"
	.align	2
.LC1:
	.ascii	"PCIe Bus Error: severity=%s, type=%s, (%s)\012\000"
	.align	2
.LC2:
	.ascii	"  device [%04x:%04x] error status/mask=%08x/%08x\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"  Error of this Agent is reported first\012\000"
	.text
	.align	2
	.global	aer_print_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	aer_print_error, %function
aer_print_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r1
	ldr	r1, [r1]
	ldr	r3, [r0, #16]
	cmp	r1, #0
	ldr	r9, [r3]
	mov	r5, r0
	ldr	r6, [r0]
	ldr	r3, [r4, #4]
	sub	sp, sp, #12
	add	r8, r4, #20
	beq	.L16
	mov	r0, r3
	bl	AER_GET_LAYER_ERROR
	ldr	r1, [r4]
	mov	r7, r0
	ldr	r0, [r4, #4]
	bl	AER_GET_AGENT
	ldr	r1, .L19
	ldr	r3, .L19+4
	ldr	r1, [r1]
	ldr	r2, .L19+8
	ldr	ip, [r4, #4]
	ldr	r1, [r1, r0, lsl #2]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r3, r7, lsl #2]
	ldr	r2, [r2, ip, lsl #2]
	mov	r0, r5
	str	r1, [sp]
	ldr	r1, .L19+12
	bl	pci_err
	ldr	r2, [r4, #8]
	ldr	r3, [r4]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r5, #8]
	ldr	r2, [r5, #12]
	ldr	r1, .L19+16
	mov	r0, r5
	bl	pci_err
	mov	r1, r4
	mov	r0, r5
	bl	__aer_print_error
	ldr	r3, [r4, #24]
	cmp	r3, #0
	bne	.L17
.L3:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L4
	orr	r6, r6, r9, lsl #8
	sub	r6, r6, r3
	clz	r6, r6
	ldr	r2, [r4, #16]
	lsr	r6, r6, #5
	cmp	r2, #1
	movle	r6, #0
	cmp	r6, #0
	bne	.L18
.L4:
	add	r0, r5, #4
	bl	dev_name
	ldr	r3, [r4]
	ldr	r1, [r4, #8]
	str	r8, [sp]
	bic	r1, r3, r1
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #24]
	bl	trace_aer_event
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	mov	r1, r8
	mov	r0, r5
	bl	__print_tlp_header
	b	.L3
.L16:
	ldr	r2, .L19+8
	ldr	r1, .L19+20
	ldr	r2, [r2]
	ldr	r2, [r2, r3, lsl #2]
	bl	pci_err
	b	.L3
.L18:
	mov	r0, r5
	ldr	r1, .L19+24
	bl	pci_err
	b	.L4
.L20:
	.align	2
.L19:
	.word	aer_agent_string
	.word	aer_error_layer
	.word	aer_error_severity_string
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.size	aer_print_error, .-aer_print_error
	.comm	aer_error_severity_string,4,4
	.comm	aer_error_layer,4,4
	.comm	aer_agent_string,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
