	.file	"extr_mca_drv.c_recover_from_read_error.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"target address not valid"
.LC1:
	.string	"minstate not valid"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"user memory corruption. kill affected process - recovered."
	.align 8
.LC3:
	.string	"kernel context not recovered, iip 0x%lx\n"
	.text
	.p2align 4
	.type	recover_from_read_error, @function
recover_from_read_error:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, QWORD PTR mca_handler_bhhook[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	get_target_identifier@PLT
	lea	rdi, .LC0[rip]
	test	rax, rax
	je	.L8
	mov	rdi, rbp
	mov	rbx, rax
	call	peidx_bottom@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	call	peidx_bottom@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L10
.L4:
	lea	rdi, .LC1[rip]
.L8:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	jmp	fatal_mca@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	peidx_minstate_area@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	peidx_minstate_area@PLT
	cmp	QWORD PTR 4[r14], 0
	mov	rbp, QWORD PTR [r12]
	jne	.L5
	cmp	QWORD PTR [rax], 0
	mov	rsi, QWORD PTR 0[rbp]
	je	.L6
	mov	rdi, rsi
	call	mca_recover_range@PLT
	test	rax, rax
	jne	.L5
	mov	rsi, QWORD PTR 0[rbp]
.L6:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, .LC3[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	fatal_mca@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbp]
	lea	rdi, .LC2[rip]
	mov	QWORD PTR 56[rax], rbx
	mov	rdx, QWORD PTR 0[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	rdx, QWORD PTR 8[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	rdx, QWORD PTR 8[r13]
	mov	QWORD PTR 0[rbp], rdx
	mov	rdx, QWORD PTR 0[r13]
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rbp], 0
	mov	QWORD PTR 32[rbp], 0
	mov	DWORD PTR 16[rbp], 1
	mov	QWORD PTR 24[rbp], 0
	pop	rbx
	.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
	jmp	mca_recovered@PLT
	.cfi_endproc
.LFE0:
	.size	recover_from_read_error, .-recover_from_read_error
	.comm	mca_handler_bhhook,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_mca_drv.c_recover_from_read_error.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"target address not valid\000"
	.align	2
.LC1:
	.ascii	"minstate not valid\000"
	.align	2
.LC2:
	.ascii	"user memory corruption. kill affected process - rec"
	.ascii	"overed.\000"
	.align	2
.LC3:
	.ascii	"kernel context not recovered, iip 0x%lx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	recover_from_read_error, %function
recover_from_read_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L17
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r1
	mov	r4, r1
	mov	r6, r3
	ldr	r7, [r2]
	bl	get_target_identifier
	subs	r5, r0, #0
	beq	.L15
	mov	r0, r4
	bl	peidx_bottom
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	bl	peidx_bottom
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L16
.L4:
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L17+4
	b	fatal_mca
.L16:
	mov	r0, r4
	bl	peidx_minstate_area
	mov	r8, r0
	mov	r0, r4
	bl	peidx_minstate_area
	ldr	r3, [r8, #4]
	ldr	r4, [r6]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [r0]
	ldr	r1, [r4]
	cmp	r3, #0
	beq	.L6
	mov	r0, r1
	bl	mca_recover_range
	cmp	r0, #0
	bne	.L5
	ldr	r1, [r4]
.L6:
	ldr	r0, .L17+8
	pop	{r4, r5, r6, r7, r8, lr}
	b	fatal_mca
.L15:
	ldr	r0, .L17+12
	pop	{r4, r5, r6, r7, r8, lr}
	b	fatal_mca
.L5:
	mov	r2, #0
	mov	r1, #1
	ldr	r3, [r4, #8]
	str	r5, [r3, #28]
	ldr	r0, [r4]
	str	r0, [r3, #32]
	ldr	r0, [r4, #4]
	str	r0, [r3, #36]
	ldm	r7, {r0, ip}
	str	ip, [r4]
	str	r0, [r3]
	str	r2, [r4, #4]
	str	r2, [r4, #16]
	str	r2, [r4, #12]
	str	r1, [r4, #8]
	ldr	r0, .L17+16
	pop	{r4, r5, r6, r7, r8, lr}
	b	mca_recovered
.L18:
	.align	2
.L17:
	.word	mca_handler_bhhook
	.word	.LC1
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.size	recover_from_read_error, .-recover_from_read_error
	.comm	mca_handler_bhhook,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
