	.file	"extr_lcs.c_lcs_dev_recover_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lcs_dev_recover_store, @function
lcs_dev_recover_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dev_get_drvdata@PLT
	test	rax, rax
	je	.L9
	mov	rbp, rax
	mov	rax, QWORD PTR DEV_STATE_UP[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L4
	mov	r12, QWORD PTR EPERM[rip]
	neg	r12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	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
.L4:
	.cfi_restore_state
	mov	rsi, rsp
	mov	edx, 16
	mov	rdi, r13
	call	simple_strtoul@PLT
	cmp	eax, 1
	jne	.L1
	mov	rdi, rbp
	call	lcs_schedule_recovery@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12, QWORD PTR EINVAL[rip]
	neg	r12
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lcs_dev_recover_store, .-lcs_dev_recover_store
	.comm	EPERM,8,8
	.comm	EINVAL,8,8
	.comm	DEV_STATE_UP,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_lcs.c_lcs_dev_recover_store.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lcs_dev_recover_store, %function
lcs_dev_recover_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r3
	ldr	r3, .L11
	sub	sp, sp, #8
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	dev_get_drvdata
	subs	r5, r0, #0
	beq	.L9
	ldr	r3, .L11+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r6
	mov	r2, #16
	mov	r1, sp
	bl	simple_strtoul
	cmp	r0, #1
	movne	r0, r4
	bne	.L1
	mov	r0, r5
	bl	lcs_schedule_recovery
	mov	r0, r4
	b	.L1
.L9:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	DEV_STATE_UP
	.word	EPERM
	.word	EINVAL
	.size	lcs_dev_recover_store, .-lcs_dev_recover_store
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	DEV_STATE_UP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
