	.file	"extr_md.c_suspend_lo_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	suspend_lo_store, @function
suspend_lo_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, rsi
	mov	esi, 10
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	call	kstrtoull@PLT
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	mddev_lock@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L3
	cmp	QWORD PTR [rax], 0
	je	.L3
	mov	rdi, rbp
	call	mddev_suspend@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], rax
	call	mddev_resume@PLT
	mov	rdi, rbp
	call	mddev_unlock@PLT
.L4:
	mov	eax, r12d
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L3:
	.cfi_restore_state
	mov	ebx, DWORD PTR EINVAL[rip]
	mov	rdi, rbp
	call	mddev_unlock@PLT
	test	ebx, ebx
	je	.L4
	mov	eax, ebx
	neg	eax
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	suspend_lo_store, .-suspend_lo_store
	.comm	EINVAL,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_md.c_suspend_lo_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	suspend_lo_store, %function
suspend_lo_store:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L18
	sub	sp, sp, #20
	mov	r4, r0
	mov	r5, r2
	mov	r0, r1
	mov	r2, sp
	mov	r1, #10
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	kstrtoull
	cmp	r0, #0
	blt	.L1
	mov	r0, r4
	bl	mddev_lock
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	mov	r0, r4
	bl	mddev_suspend
	ldmia	sp, {r2-r3}
	mov	r0, r4
	stm	r4, {r2-r3}
	bl	mddev_resume
	mov	r0, r4
	bl	mddev_unlock
.L4:
	mov	r0, r5
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L3:
	ldr	r3, .L18+4
	mov	r0, r4
	ldr	r4, [r3]
	bl	mddev_unlock
	cmp	r4, #0
	rsbne	r0, r4, #0
	bne	.L1
	b	.L4
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	EINVAL
	.size	suspend_lo_store, .-suspend_lo_store
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
