	.file	"extr_segment.c_nilfs_construct_dsync_segment.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nilfs_construct_dsync_segment
	.type	nilfs_construct_dsync_segment, @function
nilfs_construct_dsync_segment:
.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, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	NILFS_SB@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	NILFS_SC@PLT
	test	rax, rax
	je	.L10
	lea	rsi, 4[rsp]
	xor	edx, edx
	mov	rdi, rbp
	mov	r14, rax
	call	nilfs_transaction_lock@PLT
	mov	rdi, r12
	call	NILFS_I@PLT
	mov	edi, DWORD PTR NILFS_I_INODE_DIRTY[rip]
	mov	rsi, rax
	mov	r12, rax
	call	test_bit@PLT
	test	rax, rax
	jne	.L5
	mov	esi, DWORD PTR STRICT_ORDER[rip]
	mov	rdi, rbp
	call	nilfs_test_opt@PLT
	test	rax, rax
	jne	.L5
	mov	edi, DWORD PTR NILFS_SC_UNCLOSED[rip]
	lea	rsi, 24[r14]
	call	test_bit@PLT
	test	rax, rax
	je	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	nilfs_transaction_unlock@PLT
	mov	rdi, r14
	call	nilfs_segctor_sync@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
	mov	r12d, DWORD PTR EROFS[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 4[rbp]
	call	nilfs_discontinued@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	edi, DWORD PTR NILFS_I_QUEUED[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR NILFS_I_BUSY[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, rbp
	xor	r12d, r12d
	call	spin_unlock@PLT
	mov	rdi, rbp
	call	nilfs_transaction_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	QWORD PTR 16[r14], r12
	mov	rdi, r14
	mov	esi, DWORD PTR SC_LSEG_DSYNC[rip]
	mov	QWORD PTR 8[r14], r13
	mov	QWORD PTR [r14], rbx
	call	nilfs_segctor_do_construct@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	nilfs_transaction_unlock@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nilfs_construct_dsync_segment, .-nilfs_construct_dsync_segment
	.comm	STRICT_ORDER,4,4
	.comm	SC_LSEG_DSYNC,4,4
	.comm	NILFS_SC_UNCLOSED,4,4
	.comm	NILFS_I_QUEUED,4,4
	.comm	NILFS_I_INODE_DIRTY,4,4
	.comm	NILFS_I_BUSY,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_segment.c_nilfs_construct_dsync_segment.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nilfs_construct_dsync_segment
	.syntax unified
	.arm
	.fpu softvfp
	.type	nilfs_construct_dsync_segment, %function
nilfs_construct_dsync_segment:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r3
	ldr	r3, .L13
	sub	sp, sp, #12
	mov	r5, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	NILFS_SB
	mov	r4, r0
	bl	NILFS_SC
	subs	r6, r0, #0
	beq	.L10
	mov	r2, #0
	mov	r1, sp
	mov	r0, r4
	bl	nilfs_transaction_lock
	mov	r0, r5
	bl	NILFS_I
	ldr	r3, .L13+4
	mov	r1, r0
	mov	r9, r0
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L13+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	nilfs_test_opt
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L13+12
	add	r1, r6, #12
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L11
.L5:
	mov	r0, r4
	bl	nilfs_transaction_unlock
	mov	r0, r6
	bl	nilfs_segctor_sync
	mov	r5, r0
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	ldr	r3, .L13+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L11:
	ldr	r0, [r4, #4]
	bl	nilfs_discontinued
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	bl	spin_lock
	ldr	r3, .L13+20
	mov	r1, r9
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L13+24
	mov	r1, r9
	ldr	r0, [r3]
	bl	test_bit
	subs	r5, r0, #0
	bne	.L6
	mov	r0, r4
	bl	spin_unlock
	mov	r0, r4
	bl	nilfs_transaction_unlock
	b	.L1
.L6:
	mov	r0, r4
	bl	spin_unlock
	ldr	r3, .L13+28
	mov	r0, r6
	stm	r6, {r7, r8, r9}
	ldr	r1, [r3]
	bl	nilfs_segctor_do_construct
	mov	r5, r0
	mov	r0, r4
	bl	nilfs_transaction_unlock
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	NILFS_I_INODE_DIRTY
	.word	STRICT_ORDER
	.word	NILFS_SC_UNCLOSED
	.word	EROFS
	.word	NILFS_I_QUEUED
	.word	NILFS_I_BUSY
	.word	SC_LSEG_DSYNC
	.size	nilfs_construct_dsync_segment, .-nilfs_construct_dsync_segment
	.comm	STRICT_ORDER,4,4
	.comm	SC_LSEG_DSYNC,4,4
	.comm	NILFS_SC_UNCLOSED,4,4
	.comm	NILFS_I_QUEUED,4,4
	.comm	NILFS_I_INODE_DIRTY,4,4
	.comm	NILFS_I_BUSY,4,4
	.comm	EROFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
