	.file	"extr_fs.c_jffs2_remount_fs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	jffs2_remount_fs
	.type	jffs2_remount_fs, @function
jffs2_remount_fs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	JFFS2_SB_INFO@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR JFFS2_SB_FLAG_RO[rip], eax
	je	.L2
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR MS_RDONLY[rip], eax
	je	.L11
.L2:
	xor	eax, eax
	call	lock_kernel@PLT
	mov	edx, DWORD PTR MS_RDONLY[rip]
	test	DWORD PTR [rbx], edx
	je	.L12
.L4:
	mov	eax, DWORD PTR [r12]
	test	eax, edx
	je	.L13
.L5:
	or	eax, DWORD PTR MS_NOATIME[rip]
	mov	DWORD PTR [r12], eax
	xor	eax, eax
	call	unlock_kernel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR EROFS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	call	jffs2_start_garbage_collect_thread@PLT
	mov	eax, DWORD PTR [r12]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	lea	r13, 4[rbp]
	call	jffs2_stop_garbage_collect_thread@PLT
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	jffs2_flush_wbuf_pad@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	edx, DWORD PTR MS_RDONLY[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	jffs2_remount_fs, .-jffs2_remount_fs
	.comm	MS_RDONLY,4,4
	.comm	MS_NOATIME,4,4
	.comm	JFFS2_SB_FLAG_RO,4,4
	.comm	EROFS,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_fs.c_jffs2_remount_fs.c"
	.text
	.align	2
	.global	jffs2_remount_fs
	.syntax unified
	.arm
	.fpu softvfp
	.type	jffs2_remount_fs, %function
jffs2_remount_fs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r7, r0
	bl	JFFS2_SB_INFO
	ldr	r3, .L14
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r4, r0
	tst	r2, r3
	ldr	r6, .L14+4
	beq	.L2
	ldr	r2, [r7]
	ldr	r3, [r6]
	tst	r2, r3
	beq	.L11
.L2:
	bl	lock_kernel
	ldr	r2, [r7]
	ldr	r3, [r6]
	tst	r3, r2
	beq	.L12
.L4:
	ldr	r2, [r5]
	tst	r2, r3
	beq	.L13
.L5:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	orr	r3, r3, r2
	str	r3, [r5]
	bl	unlock_kernel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, r4
	bl	jffs2_start_garbage_collect_thread
	ldr	r2, [r5]
	b	.L5
.L12:
	add	r7, r4, #4
	mov	r0, r4
	bl	jffs2_stop_garbage_collect_thread
	mov	r0, r7
	bl	mutex_lock
	mov	r0, r4
	bl	jffs2_flush_wbuf_pad
	mov	r0, r7
	bl	mutex_unlock
	ldr	r3, [r6]
	b	.L4
.L15:
	.align	2
.L14:
	.word	JFFS2_SB_FLAG_RO
	.word	MS_RDONLY
	.word	MS_NOATIME
	.word	EROFS
	.size	jffs2_remount_fs, .-jffs2_remount_fs
	.comm	MS_RDONLY,4,4
	.comm	MS_NOATIME,4,4
	.comm	JFFS2_SB_FLAG_RO,4,4
	.comm	EROFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
