	.file	"extr_commit.c_ubifs_bg_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"background thread \"%s\" started, PID %d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"background thread \"%s\" stops"
	.text
	.p2align 4
	.globl	ubifs_bg_thread
	.type	ubifs_bg_thread, @function
ubifs_bg_thread:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR current[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	esi, DWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	dbg_msg@PLT
	xor	eax, eax
	call	set_freezable@PLT
.L4:
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	jne	.L3
	call	try_to_freeze@PLT
	test	rax, rax
	jne	.L4
	mov	edi, DWORD PTR TASK_INTERRUPTIBLE[rip]
	call	set_current_state@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L5
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	je	.L14
.L3:
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	dbg_msg@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR TASK_RUNNING[rip]
	call	__set_current_state@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbx
	call	ubifs_bg_wbufs_sync@PLT
	test	eax, eax
	jne	.L15
.L7:
	mov	rdi, rbx
	call	run_bg_commit@PLT
	xor	eax, eax
	call	cond_resched@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, eax
	mov	rdi, rbx
	call	ubifs_ro_mode@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	call	schedule@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ubifs_bg_thread, .-ubifs_bg_thread
	.comm	current,8,8
	.comm	TASK_RUNNING,4,4
	.comm	TASK_INTERRUPTIBLE,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_commit.c_ubifs_bg_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"background thread \"%s\" started, PID %d\000"
	.align	2
.LC1:
	.ascii	"background thread \"%s\" stops\000"
	.text
	.align	2
	.global	ubifs_bg_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	ubifs_bg_thread, %function
ubifs_bg_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r1, [r0]
	ldr	r2, [r3]
	mov	r5, r0
	ldr	r0, .L16+4
	bl	dbg_msg
	bl	set_freezable
	ldr	r6, .L16+8
	ldr	r7, .L16+12
.L4:
	bl	kthread_should_stop
	cmp	r0, #0
	bne	.L3
	bl	try_to_freeze
	subs	r4, r0, #0
	bne	.L4
	ldr	r0, [r6]
	bl	set_current_state
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L5
	bl	kthread_should_stop
	cmp	r0, #0
	beq	.L14
.L3:
	ldr	r1, [r5]
	ldr	r0, .L16+16
	bl	dbg_msg
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r0, [r7]
	bl	__set_current_state
	mov	r0, r5
	str	r4, [r5, #4]
	bl	ubifs_bg_wbufs_sync
	subs	r1, r0, #0
	bne	.L15
.L7:
	mov	r0, r5
	bl	run_bg_commit
	bl	cond_resched
	b	.L4
.L15:
	mov	r0, r5
	bl	ubifs_ro_mode
	b	.L7
.L14:
	bl	schedule
	b	.L4
.L17:
	.align	2
.L16:
	.word	current
	.word	.LC0
	.word	TASK_INTERRUPTIBLE
	.word	TASK_RUNNING
	.word	.LC1
	.size	ubifs_bg_thread, .-ubifs_bg_thread
	.comm	current,4,4
	.comm	TASK_RUNNING,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
