	.file	"extr_segment.c_nilfs_segctor_fill_in_super_root.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nilfs_segctor_fill_in_super_root, @function
nilfs_segctor_fill_in_super_root:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	add	rdi, 4
	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, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	NILFS_LAST_SEGBUF@PLT
	mov	r13d, DWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edi, r13d
	mov	rbx, QWORD PTR [rax]
	call	NILFS_SR_BYTES@PLT
	mov	edi, eax
	mov	r12d, eax
	call	cpu_to_le16@PLT
	mov	DWORD PTR 12[rbx], eax
	xor	eax, eax
	call	nilfs_doing_gc@PLT
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR 28[rbp]
.L3:
	call	cpu_to_le64@PLT
	mov	QWORD PTR [rbx], 0
	mov	edi, r13d
	mov	DWORD PTR 8[rbx], eax
	call	NILFS_SR_DAT_OFFSET@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	edx, 1
	movsx	rsi, eax
	add	rsi, rbx
	call	nilfs_write_inode_common@PLT
	mov	edi, r13d
	call	NILFS_SR_CPFILE_OFFSET@PLT
	mov	edi, DWORD PTR 20[rbp]
	mov	edx, 1
	movsx	rsi, eax
	add	rsi, rbx
	call	nilfs_write_inode_common@PLT
	mov	edi, r13d
	call	NILFS_SR_SUFILE_OFFSET@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	edx, 1
	movsx	rsi, eax
	add	rsi, rbx
	call	nilfs_write_inode_common@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, r12d
	xor	esi, esi
	sub	rdx, rdi
	add	rdi, rbx
	pop	rbx
	.cfi_remember_state
	.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
	jmp	memset@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR [r14]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	nilfs_segctor_fill_in_super_root, .-nilfs_segctor_fill_in_super_root
	.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_fill_in_super_root.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nilfs_segctor_fill_in_super_root, %function
nilfs_segctor_fill_in_super_root:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r8, r0
	add	r0, r0, #4
	bl	NILFS_LAST_SEGBUF
	ldr	r7, [r4]
	ldr	r3, [r0]
	mov	r0, r7
	ldr	r5, [r3]
	bl	NILFS_SR_BYTES
	mov	r6, r0
	bl	cpu_to_le16
	str	r0, [r5, #8]
	bl	nilfs_doing_gc
	cmp	r0, #0
	ldrne	r0, [r4, #20]
	ldreq	r0, [r8]
	bl	cpu_to_le64
	mov	r8, #0
	str	r0, [r5, #4]
	str	r8, [r5]
	mov	r0, r7
	ldr	r9, [r4, #16]
	bl	NILFS_SR_DAT_OFFSET
	mov	r2, #1
	add	r1, r5, r0
	mov	r0, r9
	bl	nilfs_write_inode_common
	mov	r0, r7
	ldr	r9, [r4, #12]
	bl	NILFS_SR_CPFILE_OFFSET
	mov	r2, #1
	add	r1, r5, r0
	mov	r0, r9
	bl	nilfs_write_inode_common
	mov	r0, r7
	ldr	r7, [r4, #8]
	bl	NILFS_SR_SUFILE_OFFSET
	mov	r2, #1
	add	r1, r5, r0
	mov	r0, r7
	bl	nilfs_write_inode_common
	ldr	r2, [r4, #4]
	mov	r1, r8
	sub	r2, r2, r6
	add	r0, r5, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	memset
	.size	nilfs_segctor_fill_in_super_root, .-nilfs_segctor_fill_in_super_root
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
