	.file	"extr_traps_64.c_sun4v_log_error.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: Reporting on cpu %d\n"
.LC1:
	.string	"%s: TPC [0x%016lx] <%pS>\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"%s: RAW [%016llx:%016llx:%016llx:%016llx\n"
	.align 8
.LC3:
	.string	"%s:      %016llx:%016llx:%016llx:%016llx]\n"
	.align 8
.LC4:
	.string	"%s: handle [0x%016llx] stick [0x%016llx]\n"
	.section	.rodata.str1.1
.LC5:
	.string	"%s: type [%s]\n"
.LC6:
	.string	"%s: attrs [0x%08x] < "
.LC7:
	.string	">\n"
.LC8:
	.string	"%s: raddr [0x%016llx]\n"
.LC9:
	.string	"%s: size [0x%x]\n"
.LC10:
	.string	"%s: cpu[%u]\n"
.LC11:
	.string	"%s: asi [0x%02x]\n"
.LC12:
	.string	"%s: reg [0x%04x]\n"
	.section	.rodata.str1.8
	.align 8
.LC13:
	.string	"%s: Queue overflowed %d times.\n"
	.text
	.p2align 4
	.type	sun4v_log_error, @function
sun4v_log_error:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	rsi, rcx
	call	printk@PLT
	mov	rdx, QWORD PTR 0[r13]
	mov	rsi, rbp
	xor	eax, eax
	lea	rdi, .LC1[rip]
	mov	rcx, rdx
	call	printk@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	r9d, DWORD PTR 12[rbx]
	mov	rsi, rbp
	mov	r8d, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printk@PLT
	mov	r9d, DWORD PTR 28[rbx]
	mov	r8d, DWORD PTR 24[rbx]
	mov	rsi, rbp
	mov	ecx, DWORD PTR 20[rbx]
	mov	edx, DWORD PTR 16[rbx]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printk@PLT
	mov	ecx, DWORD PTR 28[rbx]
	mov	edx, DWORD PTR 32[rbx]
	mov	rsi, rbp
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	printk@PLT
	mov	edi, DWORD PTR 24[rbx]
	call	sun4v_err_type_to_str@PLT
	mov	rsi, rbp
	lea	rdi, .LC5[rip]
	mov	edx, eax
	xor	eax, eax
	call	printk@PLT
	mov	r12d, DWORD PTR [rbx]
	mov	rsi, rbp
	xor	eax, eax
	lea	rdi, .LC6[rip]
	mov	edx, r12d
	call	printk@PLT
	mov	edi, r12d
	call	sun4v_emit_err_attr_strings@PLT
	lea	rdi, .LC7[rip]
	call	pr_cont@PLT
	mov	eax, DWORD PTR SUN4V_ERR_ATTRS_MEMORY[rip]
	mov	edx, DWORD PTR SUN4V_ERR_ATTRS_PIO[rip]
	mov	ecx, DWORD PTR SUN4V_ERR_ATTRS_ASI[rip]
	or	edx, eax
	or	edx, ecx
	test	edx, r12d
	jne	.L30
.L2:
	or	eax, ecx
	test	eax, r12d
	jne	.L31
.L4:
	mov	eax, DWORD PTR SUN4V_ERR_ATTRS_PROCESSOR[rip]
	or	eax, DWORD PTR SUN4V_ERR_ATTRS_INT_REGISTERS[rip]
	or	eax, DWORD PTR SUN4V_ERR_ATTRS_FPU_REGISTERS[rip]
	or	eax, DWORD PTR SUN4V_ERR_ATTRS_PRIV_REG[rip]
	test	eax, r12d
	jne	.L32
.L5:
	test	DWORD PTR SUN4V_ERR_ATTRS_ASI[rip], r12d
	jne	.L33
.L6:
	mov	eax, DWORD PTR SUN4V_ERR_ATTRS_INT_REGISTERS[rip]
	or	eax, DWORD PTR SUN4V_ERR_ATTRS_FPU_REGISTERS[rip]
	or	eax, DWORD PTR SUN4V_ERR_ATTRS_PRIV_REG[rip]
	test	eax, r12d
	je	.L7
	mov	eax, DWORD PTR 20[rbx]
	mov	edx, DWORD PTR SUN4V_ERR_ASR_VALID[rip]
	test	eax, edx
	jne	.L34
.L7:
	mov	rdi, r13
	call	show_regs@PLT
	mov	rdi, r14
	call	atomic_read@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L35
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	mov	edx, DWORD PTR 16[rbx]
	mov	rsi, rbp
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	printk@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edx, DWORD PTR 12[rbx]
	mov	rsi, rbp
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	printk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edx, DWORD PTR 8[rbx]
	mov	rsi, rbp
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	printk@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edx, DWORD PTR 4[rbx]
	xor	eax, eax
	mov	rsi, rbp
	lea	rdi, .LC8[rip]
	call	printk@PLT
	cmp	DWORD PTR 4[rbx], -1
	je	.L3
.L28:
	mov	eax, DWORD PTR SUN4V_ERR_ATTRS_MEMORY[rip]
	mov	ecx, DWORD PTR SUN4V_ERR_ATTRS_ASI[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, r14
	xor	esi, esi
	call	atomic_set@PLT
	xor	eax, eax
	call	wmb@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	mov	rsi, rbp
	lea	rdi, .LC13[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	printk@PLT
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	not	edx
	mov	rsi, rbp
	lea	rdi, .LC12[rip]
	and	edx, eax
	xor	eax, eax
	call	printk@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, r13
	mov	rdi, rbp
	call	sun4v_report_real_raddr@PLT
	jmp	.L28
	.cfi_endproc
.LFE0:
	.size	sun4v_log_error, .-sun4v_log_error
	.comm	SUN4V_ERR_ATTRS_PROCESSOR,4,4
	.comm	SUN4V_ERR_ATTRS_PRIV_REG,4,4
	.comm	SUN4V_ERR_ATTRS_PIO,4,4
	.comm	SUN4V_ERR_ATTRS_MEMORY,4,4
	.comm	SUN4V_ERR_ATTRS_INT_REGISTERS,4,4
	.comm	SUN4V_ERR_ATTRS_FPU_REGISTERS,4,4
	.comm	SUN4V_ERR_ATTRS_ASI,4,4
	.comm	SUN4V_ERR_ASR_VALID,4,4
	.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_traps_64.c_sun4v_log_error.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: Reporting on cpu %d\012\000"
	.align	2
.LC1:
	.ascii	"%s: TPC [0x%016lx] <%pS>\012\000"
	.align	2
.LC2:
	.ascii	"%s: RAW [%016llx:%016llx:%016llx:%016llx\012\000"
	.align	2
.LC3:
	.ascii	"%s:      %016llx:%016llx:%016llx:%016llx]\012\000"
	.align	2
.LC4:
	.ascii	"%s: handle [0x%016llx] stick [0x%016llx]\012\000"
	.align	2
.LC5:
	.ascii	"%s: type [%s]\012\000"
	.align	2
.LC6:
	.ascii	"%s: attrs [0x%08x] < \000"
	.align	2
.LC7:
	.ascii	">\012\000"
	.align	2
.LC8:
	.ascii	"%s: raddr [0x%016llx]\012\000"
	.align	2
.LC9:
	.ascii	"%s: size [0x%x]\012\000"
	.align	2
.LC10:
	.ascii	"%s: cpu[%u]\012\000"
	.align	2
.LC11:
	.ascii	"%s: asi [0x%02x]\012\000"
	.align	2
.LC12:
	.ascii	"%s: reg [0x%04x]\012\000"
	.align	2
.LC13:
	.ascii	"%s: Queue overflowed %d times.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sun4v_log_error, %function
sun4v_log_error:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r5, r3
	mov	r4, r1
	sub	sp, sp, #12
	mov	r1, r3
	ldr	r0, .L36
	ldr	fp, [sp, #48]
	bl	printk
	ldr	r3, [r7]
	mov	r1, r5
	mov	r2, r3
	ldr	r0, .L36+4
	bl	printk
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldm	r4, {r2, r3}
	mov	r1, r5
	ldr	r0, .L36+8
	bl	printk
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #24]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r1, r5
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #16]
	ldr	r0, .L36+12
	bl	printk
	ldr	r3, [r4, #28]
	mov	r1, r5
	ldr	r2, [r4, #32]
	ldr	r0, .L36+16
	bl	printk
	ldr	r0, [r4, #24]
	bl	sun4v_err_type_to_str
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L36+20
	bl	printk
	ldr	r6, [r4]
	mov	r1, r5
	mov	r2, r6
	ldr	r0, .L36+24
	bl	printk
	mov	r0, r6
	bl	sun4v_emit_err_attr_strings
	ldr	r0, .L36+28
	bl	pr_cont
	ldr	r9, .L36+32
	ldr	r3, .L36+36
	ldr	r8, .L36+40
	ldr	r2, [r9]
	ldr	r3, [r3]
	ldr	r1, [r8]
	orr	r3, r2, r3
	orr	r3, r3, r1
	tst	r3, r6
	bne	.L30
.L2:
	orr	r2, r2, r1
	tst	r2, r6
	bne	.L31
.L4:
	ldr	r2, .L36+44
	ldr	r3, .L36+48
	ldr	r10, .L36+52
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r9, .L36+56
	ldr	r0, [r10]
	orr	r2, r2, r1
	ldr	r1, [r9]
	orr	r2, r2, r0
	orr	r2, r2, r1
	tst	r2, r6
	bne	.L32
.L5:
	ldr	r2, [r8]
	tst	r6, r2
	bne	.L33
.L6:
	ldr	r3, [r3]
	ldr	r1, [r10]
	ldr	r2, [r9]
	orr	r3, r3, r1
	orr	r3, r3, r2
	tst	r3, r6
	beq	.L7
	ldr	r2, .L36+60
	ldr	r3, [r4, #20]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L34
.L7:
	mov	r0, r7
	bl	show_regs
	mov	r0, fp
	bl	atomic_read
	subs	r4, r0, #0
	bne	.L35
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r1, r5
	ldr	r2, [r4, #16]
	ldr	r0, .L36+64
	bl	printk
	ldr	r3, .L36+48
	b	.L6
.L32:
	mov	r1, r5
	ldr	r2, [r4, #12]
	ldr	r0, .L36+68
	bl	printk
	ldr	r3, .L36+48
	b	.L5
.L31:
	mov	r1, r5
	ldr	r2, [r4, #8]
	ldr	r0, .L36+72
	bl	printk
	b	.L4
.L30:
	mov	r1, r5
	ldr	r2, [r4, #4]
	ldr	r0, .L36+76
	bl	printk
	ldr	r3, [r4, #4]
	cmn	r3, #1
	beq	.L3
.L28:
	ldr	r2, [r9]
	ldr	r1, [r8]
	b	.L2
.L35:
	mov	r1, #0
	mov	r0, fp
	bl	atomic_set
	bl	wmb
	mov	r2, r4
	mov	r1, r5
	ldr	r0, .L36+80
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	printk
.L34:
	mov	r1, r5
	bic	r2, r3, r2
	ldr	r0, .L36+84
	bl	printk
	b	.L7
.L3:
	mov	r1, r7
	mov	r0, r5
	bl	sun4v_report_real_raddr
	b	.L28
.L37:
	.align	2
.L36:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	SUN4V_ERR_ATTRS_MEMORY
	.word	SUN4V_ERR_ATTRS_PIO
	.word	SUN4V_ERR_ATTRS_ASI
	.word	SUN4V_ERR_ATTRS_PROCESSOR
	.word	SUN4V_ERR_ATTRS_INT_REGISTERS
	.word	SUN4V_ERR_ATTRS_FPU_REGISTERS
	.word	SUN4V_ERR_ATTRS_PRIV_REG
	.word	SUN4V_ERR_ASR_VALID
	.word	.LC11
	.word	.LC10
	.word	.LC9
	.word	.LC8
	.word	.LC13
	.word	.LC12
	.size	sun4v_log_error, .-sun4v_log_error
	.comm	SUN4V_ERR_ATTRS_PROCESSOR,4,4
	.comm	SUN4V_ERR_ATTRS_PRIV_REG,4,4
	.comm	SUN4V_ERR_ATTRS_PIO,4,4
	.comm	SUN4V_ERR_ATTRS_MEMORY,4,4
	.comm	SUN4V_ERR_ATTRS_INT_REGISTERS,4,4
	.comm	SUN4V_ERR_ATTRS_FPU_REGISTERS,4,4
	.comm	SUN4V_ERR_ATTRS_ASI,4,4
	.comm	SUN4V_ERR_ASR_VALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
