	.file	"extr_ecore_mcp.c_ecore_mcp_handle_critical_error.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"The MFW notified that a critical error occurred in the device [epoch 0x%08x, pf 0x%x, status 0x%08x]\n"
	.align 8
.LC1:
	.string	"The MFW notified that a critical error occurred in the device\n"
	.align 8
.LC2:
	.string	"Not acknowledging the notification to allow the MFW crash dump\n"
	.align 8
.LC3:
	.string	"Acknowledging the notification to not allow the MFW crash dump [driver debug data collection is preferable]\n"
	.text
	.p2align 4
	.type	ecore_mcp_handle_critical_error, @function
ecore_mcp_handle_critical_error:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	ECORE_LEADING_HWFN@PLT
	cmp	rbp, rax
	je	.L10
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdx, rsp
	mov	rsi, r12
	mov	rdi, rbp
	call	ecore_mcp_mdump_get_retain@PLT
	cmp	eax, DWORD PTR ECORE_SUCCESS[rip]
	jne	.L3
	cmp	QWORD PTR 16[rsp], 0
	jne	.L12
.L3:
	lea	rdx, .LC1[rip]
	xor	esi, esi
	mov	rdi, rbp
	xor	eax, eax
	call	DP_NOTICE@PLT
.L4:
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L13
	lea	rdx, .LC3[rip]
	xor	esi, esi
	mov	rdi, rbp
	xor	eax, eax
	call	DP_NOTICE@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	ecore_mcp_mdump_ack@PLT
	mov	esi, DWORD PTR ECORE_HW_ERR_HW_ATTN[rip]
	mov	rdi, rbp
	call	ecore_hw_err_notify@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdx, .LC2[rip]
	xor	esi, esi
	mov	rdi, rbp
	xor	eax, eax
	call	DP_NOTICE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r9d, DWORD PTR [rsp]
	mov	r8d, DWORD PTR 4[rsp]
	xor	esi, esi
	mov	rdi, rbp
	mov	ecx, DWORD PTR 8[rsp]
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	DP_NOTICE@PLT
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ecore_mcp_handle_critical_error, .-ecore_mcp_handle_critical_error
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_HW_ERR_HW_ATTN,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_ecore_mcp.c_ecore_mcp_handle_critical_error.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"The MFW notified that a critical error occurred in "
	.ascii	"the device [epoch 0x%08x, pf 0x%x, status 0x%08x]\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"The MFW notified that a critical error occurred in "
	.ascii	"the device\012\000"
	.align	2
.LC2:
	.ascii	"Not acknowledging the notification to allow the MFW"
	.ascii	" crash dump\012\000"
	.align	2
.LC3:
	.ascii	"Acknowledging the notification to not allow the MFW"
	.ascii	" crash dump [driver debug data collection is prefer"
	.ascii	"able]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecore_mcp_handle_critical_error, %function
ecore_mcp_handle_critical_error:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L17
	mov	r4, r0
	sub	sp, sp, #36
	ldr	r0, [r0]
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	ECORE_LEADING_HWFN
	cmp	r4, r0
	beq	.L13
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L13:
	mov	r1, r5
	add	r2, sp, #12
	bl	ecore_mcp_mdump_get_retain
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L3
	ldr	r3, [sp, #24]
	cmp	r3, #0
	bne	.L15
.L3:
	mov	r1, #0
	mov	r0, r4
	ldr	r2, .L17+8
	bl	DP_NOTICE
.L4:
	ldr	r3, [r4]
	ldr	r1, [r3]
	cmp	r1, #0
	bne	.L16
	ldr	r2, .L17+12
	mov	r0, r4
	bl	DP_NOTICE
	mov	r1, r5
	mov	r0, r4
	bl	ecore_mcp_mdump_ack
	ldr	r3, .L17+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	ecore_hw_err_notify
	b	.L1
.L16:
	mov	r0, r4
	mov	r1, #0
	ldr	r2, .L17+20
	bl	DP_NOTICE
	b	.L1
.L15:
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #16]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r1, #0
	mov	r0, r4
	ldr	r3, [sp, #20]
	ldr	r2, .L17+24
	bl	DP_NOTICE
	b	.L4
.L14:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	ECORE_SUCCESS
	.word	.LC1
	.word	.LC3
	.word	ECORE_HW_ERR_HW_ATTN
	.word	.LC2
	.word	.LC0
	.size	ecore_mcp_handle_critical_error, .-ecore_mcp_handle_critical_error
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_HW_ERR_HW_ATTN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
