	.file	"extr_jfs_dtree.c_dtInitRoot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dtInitRoot
	.type	dtInitRoot, @function
dtInitRoot:
.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
	mov	r13d, edi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	JFS_IP@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	DO_INDEX@PLT
	test	rax, rax
	jne	.L11
	mov	eax, DWORD PTR IDATASIZE[rip]
	mov	DWORD PTR 0[rbp], eax
.L5:
	lea	rdx, 40[rbx]
	mov	rsi, rbp
	mov	ecx, DWORD PTR tlckDTREE[rip]
	mov	edi, r13d
	or	ecx, DWORD PTR tlckENTRY[rip]
	or	ecx, DWORD PTR tlckBTROOT[rip]
	call	txLock@PLT
	xor	edi, edi
	cmp	QWORD PTR [rax], 0
	mov	rbp, rax
	sete	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR DTROOTMAXSLOT[rip]
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR DXD_INDEX[rip]
	or	eax, DWORD PTR BT_ROOT[rip]
	or	eax, DWORD PTR BT_LEAF[rip]
	add	QWORD PTR 0[rbp], 1
	mov	DWORD PTR 8[rbx], eax
	mov	rax, QWORD PTR 32[rbx]
	mov	QWORD PTR 24[rbx], 0
	lea	rdx, 4[rax]
	cmp	ecx, 2
	jle	.L6
	mov	eax, 2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	add	eax, 1
	cmp	DWORD PTR DTROOTMAXSLOT[rip], eax
	jg	.L7
.L6:
	movabs	rax, 34359738369
	mov	DWORD PTR [rdx], -1
	mov	edi, r12d
	mov	QWORD PTR 12[rbx], rax
	call	cpu_to_le32@PLT
	mov	DWORD PTR 20[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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	rdi, rbp
	call	jfs_dirtable_inline@PLT
	test	eax, eax
	je	.L12
	mov	DWORD PTR 0[rbp], 1
.L4:
	mov	DWORD PTR [rbx], 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, r13d
	call	tid_to_tblock@PLT
	mov	ecx, DWORD PTR COMMIT_PWMAP[rip]
	xor	edx, edx
	mov	rsi, rbp
	mov	r15, QWORD PTR [rax]
	mov	QWORD PTR [rax], 0
	mov	edi, r13d
	mov	r14, rax
	call	xtTruncate@PLT
	mov	edi, DWORD PTR COMMIT_Stale[rip]
	mov	rsi, rbp
	call	set_cflag@PLT
	mov	QWORD PTR [r14], r15
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	dtInitRoot, .-dtInitRoot
	.comm	tlckENTRY,4,4
	.comm	tlckDTREE,4,4
	.comm	tlckBTROOT,4,4
	.comm	IDATASIZE,4,4
	.comm	DXD_INDEX,4,4
	.comm	DTROOTMAXSLOT,4,4
	.comm	COMMIT_Stale,4,4
	.comm	COMMIT_PWMAP,4,4
	.comm	BT_ROOT,4,4
	.comm	BT_LEAF,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_jfs_dtree.c_dtInitRoot.c"
	.text
	.align	2
	.global	dtInitRoot
	.syntax unified
	.arm
	.fpu softvfp
	.type	dtInitRoot, %function
dtInitRoot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r5, r1
	mov	r6, r2
	bl	JFS_IP
	mov	r4, r0
	mov	r0, r5
	bl	DO_INDEX
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [r5]
.L5:
	ldr	r2, .L13+4
	ldr	r3, .L13+8
	ldr	r1, .L13+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	ip, [r1]
	orr	r3, r2, r3
	mov	r1, r5
	orr	r3, r3, ip
	add	r2, r4, #28
	mov	r0, r7
	bl	txLock
	mov	r5, r0
	ldr	r0, [r0]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	mov	r0, #0
	ldr	r2, .L13+16
	ldr	r3, .L13+20
	ldr	r7, [r2]
	ldr	r3, [r3]
	ldr	lr, .L13+24
	orr	r3, r3, r7
	ldr	r7, .L13+28
	ldr	r1, [r5, #4]
	ldr	ip, [lr]
	ldr	r2, [r5]
	ldr	r7, [r7]
	str	r0, [r1, #4]
	str	ip, [r1]
	ldr	r1, [r4, #24]
	add	r2, r2, #1
	orr	r3, r3, r7
	cmp	ip, #2
	str	r2, [r5]
	add	r1, r1, #4
	str	r0, [r4, #20]
	str	r3, [r4, #4]
	ble	.L6
	mov	r3, #2
.L7:
	str	r3, [r1], #4
	ldr	ip, [lr]
	add	r3, r3, #1
	cmp	ip, r3
	bgt	.L7
.L6:
	mvn	ip, #0
	mov	r2, #1
	mov	r3, #8
	str	ip, [r1]
	mov	r0, r6
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	bl	cpu_to_le32
	str	r0, [r4, #16]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r0, r5
	bl	jfs_dirtable_inline
	subs	r8, r0, #0
	movne	r3, #1
	strne	r3, [r5]
	beq	.L12
.L4:
	mov	r3, #2
	str	r3, [r4]
	b	.L5
.L12:
	mov	r0, r7
	bl	tid_to_tblock
	mov	r9, r0
	ldr	r3, .L13+32
	ldr	r10, [r0]
	mov	r2, r8
	mov	r1, r5
	ldr	r3, [r3]
	str	r8, [r0]
	mov	r0, r7
	bl	xtTruncate
	ldr	r3, .L13+36
	mov	r1, r5
	ldr	r0, [r3]
	bl	set_cflag
	str	r10, [r9]
	b	.L4
.L14:
	.align	2
.L13:
	.word	IDATASIZE
	.word	tlckDTREE
	.word	tlckENTRY
	.word	tlckBTROOT
	.word	BT_ROOT
	.word	DXD_INDEX
	.word	DTROOTMAXSLOT
	.word	BT_LEAF
	.word	COMMIT_PWMAP
	.word	COMMIT_Stale
	.size	dtInitRoot, .-dtInitRoot
	.comm	tlckENTRY,4,4
	.comm	tlckDTREE,4,4
	.comm	tlckBTROOT,4,4
	.comm	IDATASIZE,4,4
	.comm	DXD_INDEX,4,4
	.comm	DTROOTMAXSLOT,4,4
	.comm	COMMIT_Stale,4,4
	.comm	COMMIT_PWMAP,4,4
	.comm	BT_ROOT,4,4
	.comm	BT_LEAF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
