	.file	"extr_block.c_force_ro_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	force_ro_store, @function
force_ro_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dev_to_disk@PLT
	mov	edi, eax
	call	mmc_blk_get@PLT
	xor	edx, edx
	mov	rsi, rsp
	mov	rdi, rbx
	mov	r12, rax
	call	simple_strtoul@PLT
	cmp	QWORD PTR [rsp], rbx
	je	.L9
	mov	r14d, 1
	test	rax, rax
	je	.L10
.L4:
	mov	rdi, rbp
	call	dev_to_disk@PLT
	mov	esi, r14d
	mov	edi, eax
	call	set_disk_ro@PLT
.L3:
	mov	rdi, r12
	call	mmc_blk_put@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	r14d, r14d
	cmp	QWORD PTR [r12], 0
	setne	r14b
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	force_ro_store, .-force_ro_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_block.c_force_ro_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	force_ro_store, %function
force_ro_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r3
	ldr	r3, .L12
	sub	sp, sp, #8
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r8, r0
	bl	dev_to_disk
	bl	mmc_blk_get
	mov	r2, #0
	mov	r6, r0
	mov	r1, sp
	mov	r0, r4
	bl	simple_strtoul
	ldr	r3, [sp]
	cmp	r3, r4
	beq	.L9
	mov	r7, r0
	mov	r0, r8
	bl	dev_to_disk
	cmp	r7, #0
	movne	r1, #1
	beq	.L10
.L4:
	bl	set_disk_ro
.L3:
	mov	r0, r6
	bl	mmc_blk_put
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r1, [r6]
	subs	r1, r1, #0
	movne	r1, #1
	b	.L4
.L9:
	ldr	r3, .L12+4
	ldr	r4, [r3]
	rsb	r5, r4, #0
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	EINVAL
	.size	force_ro_store, .-force_ro_store
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
