	.file	"extr_ras.c_ras_error_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Fatal hardware error detected. Check RTAS error log for details. Powering off immediately\n"
	.align 8
.LC1:
	.string	"Recoverable hardware error detected\n"
	.text
	.p2align 4
	.type	ras_error_interrupt, @function
ras_error_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	lea	rdi, ras_log_buf_lock[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock@PLT
	xor	eax, eax
	call	rtas_get_error_log_max@PLT
	lea	rdi, ras_log_buf[rip]
	mov	ebp, eax
	call	__pa@PLT
	mov	r13d, DWORD PTR RTAS_INTERNAL_ERROR[rip]
	mov	edi, r12d
	mov	ebx, eax
	call	virq_to_hw@PLT
	push	rbp
	.cfi_def_cfa_offset 56
	mov	edi, DWORD PTR ras_check_exception_token[rip]
	xor	ecx, ecx
	push	rbx
	.cfi_def_cfa_offset 64
	mov	r8d, DWORD PTR RTAS_VECTOR_EXTERNAL_INTERRUPT[rip]
	mov	r9d, eax
	mov	edx, 1
	push	1
	.cfi_def_cfa_offset 72
	mov	esi, 6
	push	r13
	.cfi_def_cfa_offset 80
	call	rtas_call@PLT
	mov	rdi, QWORD PTR ras_log_buf[rip]
	add	rsp, 32
	.cfi_def_cfa_offset 48
	test	eax, eax
	je	.L2
	mov	esi, DWORD PTR ERR_TYPE_RTAS_LOG[rip]
	xor	edx, edx
	call	log_error@PLT
.L3:
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
.L5:
	lea	rdi, ras_log_buf_lock[rip]
	call	spin_unlock@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	rtas_error_severity@PLT
	cmp	rax, QWORD PTR RTAS_SEVERITY_ERROR_SYNC[rip]
	jl	.L4
	mov	esi, DWORD PTR ERR_TYPE_RTAS_LOG[rip]
	mov	rdi, QWORD PTR ras_log_buf[rip]
	mov	edx, 1
	call	log_error@PLT
	lea	rdi, .LC0[rip]
	call	pr_emerg@PLT
	xor	eax, eax
	call	emergency_sync@PLT
	xor	eax, eax
	call	kernel_power_off@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR ERR_TYPE_RTAS_LOG[rip]
	mov	rdi, QWORD PTR ras_log_buf[rip]
	xor	edx, edx
	call	log_error@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ras_error_interrupt, .-ras_error_interrupt
	.comm	ras_log_buf_lock,4,4
	.comm	ras_log_buf,8,8
	.comm	ras_check_exception_token,4,4
	.comm	RTAS_VECTOR_EXTERNAL_INTERRUPT,4,4
	.comm	RTAS_SEVERITY_ERROR_SYNC,8,8
	.comm	RTAS_INTERNAL_ERROR,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	ERR_TYPE_RTAS_LOG,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_ras.c_ras_error_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Fatal hardware error detected. Check RTAS error log"
	.ascii	" for details. Powering off immediately\012\000"
	.align	2
.LC1:
	.ascii	"Recoverable hardware error detected\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ras_error_interrupt, %function
ras_error_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	sub	sp, sp, #24
	ldr	r0, .L8
	bl	spin_lock
	ldr	r2, .L8+4
	ldr	r3, .L8+8
	mov	r0, r4
	ldr	r8, [r2]
	ldr	r9, [r3]
	bl	virq_to_hw
	ldr	r6, .L8+12
	ldr	r3, .L8+16
	mov	r5, r0
	mov	r0, r6
	ldr	r10, [r3]
	bl	__pa
	mov	r4, r0
	bl	rtas_get_error_log_max
	mov	r7, #1
	mov	r3, r0
	str	r4, [sp, #16]
	str	r3, [sp, #20]
	mov	r0, r8
	mov	r2, r7
	mov	r3, #0
	mov	r1, #6
	str	r5, [sp, #4]
	str	r10, [sp, #8]
	str	r9, [sp]
	str	r7, [sp, #12]
	bl	rtas_call
	subs	r4, r0, #0
	ldr	r0, [r6]
	beq	.L2
	ldr	r3, .L8+20
	mov	r2, #0
	ldr	r1, [r3]
	bl	log_error
.L3:
	ldr	r0, .L8+24
	bl	pr_err
.L5:
	ldr	r0, .L8
	bl	spin_unlock
	ldr	r3, .L8+28
	ldr	r0, [r3]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	bl	rtas_error_severity
	ldr	r3, .L8+32
	ldr	r3, [r3]
	cmp	r0, r3
	ldr	r3, .L8+20
	blt	.L4
	mov	r2, r7
	ldr	r1, [r3]
	ldr	r0, [r6]
	bl	log_error
	ldr	r0, .L8+36
	bl	pr_emerg
	bl	emergency_sync
	bl	kernel_power_off
	b	.L5
.L4:
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, [r3]
	bl	log_error
	b	.L3
.L9:
	.align	2
.L8:
	.word	ras_log_buf_lock
	.word	ras_check_exception_token
	.word	RTAS_VECTOR_EXTERNAL_INTERRUPT
	.word	ras_log_buf
	.word	RTAS_INTERNAL_ERROR
	.word	ERR_TYPE_RTAS_LOG
	.word	.LC1
	.word	IRQ_HANDLED
	.word	RTAS_SEVERITY_ERROR_SYNC
	.word	.LC0
	.size	ras_error_interrupt, .-ras_error_interrupt
	.comm	ras_log_buf_lock,4,4
	.comm	ras_log_buf,4,4
	.comm	ras_check_exception_token,4,4
	.comm	RTAS_VECTOR_EXTERNAL_INTERRUPT,4,4
	.comm	RTAS_SEVERITY_ERROR_SYNC,4,4
	.comm	RTAS_INTERNAL_ERROR,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	ERR_TYPE_RTAS_LOG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
