	.file	"extr_xfs_dir2_data.c_xfs_dir3_data_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfs_dir3_data_init
	.type	xfs_dir3_data_init, @function
xfs_dir3_data_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbx, QWORD PTR 16[rdi]
	mov	r14, QWORD PTR 8[rdi]
	mov	rdi, QWORD PTR [rdi]
	mov	r12d, DWORD PTR XFS_DATA_FORK[rip]
	mov	QWORD PTR 8[rsp], rdx
	mov	r15, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	xfs_dir2_db_to_da@PLT
	mov	r9d, r12d
	lea	r8, 16[rsp]
	mov	rsi, rbx
	mov	edx, eax
	mov	ecx, -1
	mov	rdi, r14
	call	xfs_da_get_buf@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rsi, QWORD PTR 16[rsp]
	lea	rax, xfs_dir3_data_buf_ops[rip]
	mov	edx, DWORD PTR XFS_BLFT_DIR_DATA_BUF[rip]
	mov	rdi, r14
	mov	QWORD PTR 16[rsi], rax
	call	xfs_trans_buf_set_type@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, r15
	mov	r14, QWORD PTR 8[rax]
	call	xfs_sb_version_hascrc@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR 16[rsp]
	xor	esi, esi
	mov	edx, 32
	mov	r13, QWORD PTR 8[rax]
	mov	rdi, r13
	call	memset@PLT
	mov	edi, DWORD PTR XFS_DIR3_DATA_MAGIC[rip]
	call	cpu_to_be32@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rax]
	call	cpu_to_be64@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	QWORD PTR 24[r13], rax
	call	cpu_to_be64@PLT
	lea	rdi, 8[r13]
	mov	rsi, r15
	mov	QWORD PTR 16[r13], rax
	call	uuid_copy@PLT
.L4:
	mov	rax, QWORD PTR [rbx]
	mov	rdi, r14
	call	[QWORD PTR 16[rax]]
	mov	r13, rax
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	cpu_to_be16@PLT
	mov	edx, DWORD PTR XFS_DIR2_DATA_FD_COUNT[rip]
	mov	QWORD PTR 8[r13], rax
	cmp	edx, 1
	jle	.L5
	sub	edx, 2
	lea	rax, 16[r13]
	sal	rdx, 4
	lea	rdx, 32[r13+rdx]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	QWORD PTR [rax], 0
	add	rax, 16
	mov	QWORD PTR -8[rax], 0
	cmp	rax, rdx
	jne	.L6
.L5:
	mov	rax, QWORD PTR [rbx]
	mov	rdi, r14
	call	[QWORD PTR 8[rax]]
	mov	edi, DWORD PTR XFS_DIR2_DATA_FREE_TAG[rip]
	mov	r15, rax
	call	cpu_to_be16@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	QWORD PTR 8[r15], rax
	mov	rax, QWORD PTR [rbx]
	mov	ebx, DWORD PTR [rdx]
	sub	ebx, DWORD PTR [rax]
	mov	edi, ebx
	call	cpu_to_be16@PLT
	mov	edi, ebx
	mov	QWORD PTR 0[r13], rax
	call	cpu_to_be16@PLT
	mov	rdi, r15
	mov	QWORD PTR [r15], rax
	call	xfs_dir2_data_unused_tag_p@PLT
	mov	rdi, r15
	sub	rdi, r14
	mov	rbx, rax
	call	cpu_to_be16@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rbx], rax
	mov	rsi, QWORD PTR 16[rsp]
	call	xfs_dir2_data_log_header@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdx, r15
	mov	rdi, rbp
	call	xfs_dir2_data_log_unused@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rcx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rcx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR XFS_DIR2_DATA_MAGIC[rip]
	call	cpu_to_be32@PLT
	mov	QWORD PTR [r14], rax
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfs_dir3_data_init, .-xfs_dir3_data_init
	.comm	xfs_dir3_data_buf_ops,4,4
	.comm	XFS_DIR3_DATA_MAGIC,4,4
	.comm	XFS_DIR2_DATA_MAGIC,4,4
	.comm	XFS_DIR2_DATA_FREE_TAG,4,4
	.comm	XFS_DIR2_DATA_FD_COUNT,4,4
	.comm	XFS_DATA_FORK,4,4
	.comm	XFS_BLFT_DIR_DATA_BUF,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_xfs_dir2_data.c_xfs_dir3_data_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xfs_dir3_data_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_dir3_data_init, %function
xfs_dir3_data_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r6, [r0, #8]
	ldr	r3, .L13
	sub	sp, sp, #16
	ldr	r0, [r0]
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r8, [r4, #4]
	ldr	r9, [r6, #8]
	bl	xfs_dir2_db_to_da
	ldr	r3, .L13+4
	mov	r2, r0
	ldr	ip, [r3]
	add	r3, sp, #8
	stm	sp, {r3, ip}
	mov	r1, r6
	mov	r0, r8
	mvn	r3, #0
	bl	xfs_da_get_buf
	subs	r5, r0, #0
	beq	.L11
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r1, [sp, #8]
	ldr	r3, .L13+8
	ldr	r2, .L13+12
	mov	r0, r8
	str	r2, [r1, #8]
	ldr	r2, [r3]
	bl	xfs_trans_buf_set_type
	ldr	r3, [sp, #8]
	mov	r0, r9
	ldr	r8, [r3, #4]
	bl	xfs_sb_version_hascrc
	cmp	r0, #0
	beq	.L3
	ldr	r3, [sp, #8]
	mov	r1, r5
	ldr	r10, [r3, #4]
	mov	r2, #16
	mov	r0, r10
	bl	memset
	ldr	r3, .L13+16
	ldr	r0, [r3]
	bl	cpu_to_be32
	ldr	r3, [sp, #8]
	str	r0, [r10]
	ldr	r0, [r3]
	bl	cpu_to_be64
	mov	r3, r0
	ldr	r0, [r6, #4]
	str	r3, [r10, #12]
	bl	cpu_to_be64
	mov	r1, r9
	str	r0, [r10, #8]
	add	r0, r10, #4
	bl	uuid_copy
.L4:
	ldr	r3, [r6]
	mov	r0, r8
	ldr	r3, [r3, #8]
	blx	r3
	ldr	r3, [r6]
	mov	r9, r0
	ldr	r0, [r3]
	bl	cpu_to_be16
	ldr	r3, .L13+20
	str	r0, [r9, #4]
	ldr	ip, [r3]
	cmp	ip, #1
	ble	.L5
	mov	r3, r9
	mov	r1, #0
	add	ip, r9, ip, lsl #3
	sub	ip, ip, #8
.L6:
	str	r1, [r3, #8]
	str	r1, [r3, #12]
	add	r3, r3, #8
	cmp	r3, ip
	bne	.L6
.L5:
	ldr	r3, [r6]
	mov	r0, r8
	ldr	r3, [r3, #4]
	blx	r3
	ldr	r3, .L13+24
	mov	r10, r0
	ldr	r0, [r3]
	bl	cpu_to_be16
	ldr	r2, [r4]
	ldr	r3, [r6]
	ldr	r6, [r2]
	ldr	r3, [r3]
	str	r0, [r10, #4]
	sub	r6, r6, r3
	mov	r0, r6
	bl	cpu_to_be16
	mov	r3, r0
	mov	r0, r6
	str	r3, [r9]
	bl	cpu_to_be16
	mov	r3, r0
	mov	r0, r10
	str	r3, [r10]
	bl	xfs_dir2_data_unused_tag_p
	mov	r6, r0
	sub	r0, r10, r8
	bl	cpu_to_be16
	str	r0, [r6]
	ldr	r1, [sp, #8]
	mov	r0, r4
	bl	xfs_dir2_data_log_header
	mov	r2, r10
	mov	r0, r4
	ldr	r1, [sp, #8]
	bl	xfs_dir2_data_log_unused
	ldr	r3, [sp, #8]
	str	r3, [r7]
	b	.L1
.L3:
	ldr	r3, .L13+28
	ldr	r0, [r3]
	bl	cpu_to_be32
	str	r0, [r8]
	b	.L4
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	XFS_DATA_FORK
	.word	XFS_BLFT_DIR_DATA_BUF
	.word	xfs_dir3_data_buf_ops
	.word	XFS_DIR3_DATA_MAGIC
	.word	XFS_DIR2_DATA_FD_COUNT
	.word	XFS_DIR2_DATA_FREE_TAG
	.word	XFS_DIR2_DATA_MAGIC
	.size	xfs_dir3_data_init, .-xfs_dir3_data_init
	.comm	xfs_dir3_data_buf_ops,4,4
	.comm	XFS_DIR3_DATA_MAGIC,4,4
	.comm	XFS_DIR2_DATA_MAGIC,4,4
	.comm	XFS_DIR2_DATA_FREE_TAG,4,4
	.comm	XFS_DIR2_DATA_FD_COUNT,4,4
	.comm	XFS_DATA_FORK,4,4
	.comm	XFS_BLFT_DIR_DATA_BUF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
