	.file	"extr_segment.c_nilfs_segctor_sync.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nilfs_segctor_sync, @function
nilfs_segctor_sync:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 8[rdi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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
	mov	rdi, r14
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	lea	r13, 8[rsp]
	call	spin_lock@PLT
	mov	rdi, r12
	call	init_wait@PLT
	xor	esi, esi
	mov	rdi, r13
	mov	DWORD PTR [rsp], 0
	call	atomic_set@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, r14
	add	rax, 1
	mov	QWORD PTR 16[rbp], rax
	mov	QWORD PTR 16[rsp], rax
	call	spin_unlock@PLT
	mov	esi, DWORD PTR current[rip]
	mov	rdi, r12
	call	init_waitqueue_entry@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	add_wait_queue@PLT
	mov	edi, DWORD PTR TASK_INTERRUPTIBLE[rip]
	call	set_current_state@PLT
	lea	rdi, 4[rbp]
	call	wake_up@PLT
.L5:
	mov	rdi, r13
	call	atomic_read@PLT
	test	rax, rax
	jne	.L9
	mov	edi, DWORD PTR current[rip]
	call	signal_pending@PLT
	test	eax, eax
	je	.L10
	mov	r13d, DWORD PTR ERESTARTSYS[rip]
	neg	r13d
.L3:
	mov	rsi, r12
	mov	rdi, rbp
	call	finish_wait@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	call	schedule@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r13d, DWORD PTR [rsp]
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nilfs_segctor_sync, .-nilfs_segctor_sync
	.comm	current,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	ERESTARTSYS,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_segctor_sync.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nilfs_segctor_sync, %function
nilfs_segctor_sync:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	add	r6, r0, #8
	sub	sp, sp, #24
	mov	r4, r0
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	spin_lock
	add	r0, sp, #8
	bl	init_wait
	mov	r1, #0
	add	r0, sp, #12
	str	r1, [sp, #4]
	bl	atomic_set
	ldr	r3, [r4, #12]
	ldr	r5, .L12+4
	add	r3, r3, #1
	str	r3, [r4, #12]
	mov	r0, r6
	str	r3, [sp, #16]
	bl	spin_unlock
	ldr	r1, [r5]
	add	r0, sp, #8
	bl	init_waitqueue_entry
	add	r1, sp, #8
	mov	r0, r4
	bl	add_wait_queue
	ldr	r3, .L12+8
	ldr	r0, [r3]
	bl	set_current_state
	add	r0, r4, #4
	bl	wake_up
.L5:
	add	r0, sp, #12
	bl	atomic_read
	cmp	r0, #0
	bne	.L9
	ldr	r0, [r5]
	bl	signal_pending
	cmp	r0, #0
	beq	.L10
	ldr	r3, .L12+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L3:
	mov	r0, r4
	add	r1, sp, #8
	bl	finish_wait
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	bl	schedule
	b	.L5
.L9:
	ldr	r5, [sp, #4]
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	current
	.word	TASK_INTERRUPTIBLE
	.word	ERESTARTSYS
	.size	nilfs_segctor_sync, .-nilfs_segctor_sync
	.comm	current,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	ERESTARTSYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
