	.file	"extr_segment.c_update_device_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	update_device_state, @function
update_device_state:
.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
	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
	mov	rbp, QWORD PTR 8[rdi]
	mov	rdi, rbp
	call	f2fs_is_multi_device@PLT
	test	eax, eax
	jne	.L7
.L1:
	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
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, rbp
	lea	r13, 4[rbp]
	call	f2fs_target_device_index@PLT
	mov	esi, DWORD PTR [rbx]
	mov	ecx, DWORD PTR FLUSH_INO[rip]
	mov	rdi, rbp
	mov	r12d, eax
	mov	edx, eax
	call	f2fs_set_dirty_device@PLT
	mov	rsi, r13
	mov	edi, r12d
	call	f2fs_test_bit@PLT
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	edi, r12d
	mov	rsi, r13
	call	f2fs_set_bit@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	spin_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	update_device_state, .-update_device_state
	.comm	FLUSH_INO,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_segment.c_update_device_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_device_state, %function
update_device_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #8]
	mov	r4, r0
	mov	r0, r5
	bl	f2fs_is_multi_device
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r1, [r4, #4]
	mov	r0, r5
	bl	f2fs_target_device_index
	mov	r6, r0
	ldr	r3, .L7
	mov	r2, r0
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r5
	add	r4, r5, #4
	bl	f2fs_set_dirty_device
	mov	r0, r6
	mov	r1, r4
	bl	f2fs_test_bit
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r5
	bl	spin_lock
	mov	r1, r4
	mov	r0, r6
	bl	f2fs_set_bit
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	spin_unlock
.L8:
	.align	2
.L7:
	.word	FLUSH_INO
	.size	update_device_state, .-update_device_state
	.comm	FLUSH_INO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
