	.file	"extr_jfs_xtree.c_xtUpdate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"xtUpdate: Could not find extent"
	.align 8
.LC1:
	.string	"xtUpdate: nXAD in not completely contained within XAD"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"xtUpdate: xoff >= nxoff"
.LC3:
	.string	"xtUpdate: xtSearch failed"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"xtUpdate: unexpected value of index"
	.text
	.p2align 4
	.globl	xtUpdate
	.type	xtUpdate, @function
xtUpdate:
.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	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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, 232
	.cfi_def_cfa_offset 288
	mov	DWORD PTR 8[rsp], edi
	mov	rdi, rdx
	lea	r14, 152[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 216[rsp], rax
	xor	eax, eax
	call	offsetXAD@PLT
	mov	rdi, r13
	mov	r12, rax
	call	lengthXAD@PLT
	mov	rdi, r13
	lea	r13, 156[rsp]
	mov	DWORD PTR [rsp], eax
	call	addressXAD@PLT
	mov	r8, r13
	mov	rcx, r14
	xor	edx, edx
	mov	r9d, DWORD PTR XT_INSERT[rip]
	mov	rsi, r12
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp], rax
	call	xtSearch@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L68
.L1:
	mov	rax, QWORD PTR 216[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L69
	add	rsp, 232
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	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
.L68:
	.cfi_restore_state
	xor	r11d, r11d
	mov	esi, DWORD PTR 156[rsp]
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rcx, r11
	mov	rdi, rbp
	mov	QWORD PTR 48[rsp], rdx
	call	XT_GETSEARCH@PLT
	mov	ebx, DWORD PTR 152[rsp]
	test	ebx, ebx
	jne	.L70
	xor	r11d, r11d
	mov	rsi, rbp
	mov	rdi, r11
	call	BT_MARK_DIRTY@PLT
	mov	edi, DWORD PTR COMMIT_Nolink[rip]
	mov	rsi, rbp
	call	test_cflag@PLT
	mov	QWORD PTR 40[rsp], 0
	test	eax, eax
	je	.L71
.L4:
	mov	r15, QWORD PTR ds:24
	xor	eax, eax
	mov	QWORD PTR 88[rsp], rax
	sal	rax, 2
	mov	QWORD PTR 56[rsp], rax
	mov	eax, DWORD PTR [r15]
	mov	rdi, r15
	mov	DWORD PTR 36[rsp], eax
	call	offsetXAD@PLT
	mov	rdi, r15
	mov	QWORD PTR 24[rsp], rax
	call	lengthXAD@PLT
	mov	rdi, r15
	mov	DWORD PTR 32[rsp], eax
	call	addressXAD@PLT
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 72[rsp], rax
	cmp	r12, rcx
	jl	.L5
	movsx	rsi, DWORD PTR [rsp]
	movsx	rax, DWORD PTR 32[rsp]
	lea	rdx, [rsi+r12]
	add	rax, rcx
	mov	QWORD PTR 80[rsp], rsi
	mov	QWORD PTR 112[rsp], rdx
	mov	QWORD PTR 104[rsp], rax
	cmp	rdx, rax
	jle	.L6
.L5:
	xor	r11d, r11d
	mov	rdi, r11
	call	XT_PUTPAGE@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	call	jfs_error@PLT
	mov	ebx, DWORD PTR EIO[rip]
	neg	ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	mov	rdi, QWORD PTR ds:0
	mov	DWORD PTR 100[rsp], eax
	add	eax, 1
	mov	DWORD PTR 96[rsp], eax
	call	le16_to_cpu@PLT
	mov	DWORD PTR 64[rsp], eax
	cmp	r12, QWORD PTR 24[rsp]
	jg	.L7
	xor	eax, eax
	cmp	DWORD PTR XTENTRYSTART[rip], eax
	mov	DWORD PTR 100[rsp], eax
	je	.L8
	mov	rcx, QWORD PTR 56[rsp]
	mov	rax, QWORD PTR ds:24
	lea	r8, -4[rax+rcx]
	mov	rdi, r8
	mov	QWORD PTR 120[rsp], r8
	call	lengthXAD@PLT
	mov	r8, QWORD PTR 120[rsp]
	mov	edx, eax
	mov	eax, DWORD PTR XAD_NOTRECORDED[rip]
	mov	ecx, DWORD PTR [r8]
	test	ecx, eax
	je	.L72
.L9:
	not	eax
	mov	edx, DWORD PTR 32[rsp]
	and	eax, DWORD PTR 36[rsp]
	cmp	DWORD PTR [rsp], edx
	je	.L73
.L18:
	xor	r10d, r10d
	mov	rcx, QWORD PTR 56[rsp]
	mov	r12, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR 24[r10]
	mov	r15, QWORD PTR 72[rsp]
	mov	rdi, QWORD PTR 8[r10]
	mov	r14d, DWORD PTR 32[rsp]
	mov	DWORD PTR [rdx+rcx], eax
	mov	rax, QWORD PTR 80[rsp]
	sub	r14d, DWORD PTR [rsp]
	add	r12, rax
	add	r15, rax
	call	le16_to_cpu@PLT
	cmp	eax, DWORD PTR 64[rsp]
	je	.L74
	movsx	r13, DWORD PTR 96[rsp]
	mov	rax, r13
	sal	r13, 2
	cmp	eax, DWORD PTR 64[rsp]
	jl	.L75
.L39:
	mov	esi, DWORD PTR 36[rsp]
	xor	r10d, r10d
	mov	r8, r15
	mov	ecx, r14d
	mov	rdi, QWORD PTR ds:24
	mov	rdx, r12
	mov	QWORD PTR [rsp], r10
	add	rdi, r13
	call	XT_PUTENTRY@PLT
	mov	r10, QWORD PTR [rsp]
	mov	rdi, QWORD PTR [r10]
	call	le16_to_cpu@PLT
	lea	edi, 1[rax]
	call	cpu_to_le16@PLT
	mov	r10, QWORD PTR [rsp]
	mov	QWORD PTR [r10], rax
.L15:
	mov	edi, DWORD PTR COMMIT_Nolink[rip]
	mov	rsi, rbp
	call	test_cflag@PLT
	test	eax, eax
	jne	.L40
	mov	rax, QWORD PTR 40[rsp]
	mov	esi, DWORD PTR [rax]
	test	esi, esi
	jne	.L76
.L41:
	mov	r15, QWORD PTR 40[rsp]
	mov	eax, DWORD PTR 100[rsp]
	mov	rdi, QWORD PTR ds:0
	mov	DWORD PTR [r15], eax
	call	le16_to_cpu@PLT
	sub	eax, DWORD PTR [r15]
	mov	DWORD PTR 4[r15], eax
.L40:
	xor	r11d, r11d
	mov	rdi, r11
	call	XT_PUTPAGE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L70:
	xor	r11d, r11d
	mov	rdi, r11
	call	XT_PUTPAGE@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	jfs_error@PLT
	mov	ebx, DWORD PTR EIO[rip]
	neg	ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L71:
	xor	r11d, r11d
	mov	edi, DWORD PTR 8[rsp]
	mov	ecx, DWORD PTR tlckXTREE[rip]
	mov	rsi, rbp
	or	ecx, DWORD PTR tlckGROW[rip]
	mov	rdx, r11
	call	txLock@PLT
	mov	QWORD PTR 40[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L75:
	mov	rsi, QWORD PTR ds:24
	mov	ecx, DWORD PTR L2XTSLOTSIZE[rip]
	mov	eax, DWORD PTR 64[rsp]
	sub	eax, DWORD PTR 96[rsp]
	sal	eax, cl
	lea	r8, [rsi+r13]
	lea	rdi, 4[rsi+r13]
	mov	edx, eax
	mov	rsi, r8
	call	memmove@PLT
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L72:
	mov	rdi, r8
	mov	DWORD PTR 136[rsp], ecx
	mov	DWORD PTR 128[rsp], edx
	call	offsetXAD@PLT
	movsx	rsi, DWORD PTR 128[rsp]
	mov	r8, QWORD PTR 120[rsp]
	mov	ecx, DWORD PTR 136[rsp]
	add	rax, rsi
	cmp	rax, r12
	je	.L10
.L8:
	mov	eax, DWORD PTR XAD_NOTRECORDED[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L76:
	mov	edi, DWORD PTR 100[rsp]
	call	min@PLT
	mov	DWORD PTR 100[rsp], eax
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR 64[rsp]
	cmp	DWORD PTR 96[rsp], ecx
	jne	.L19
.L20:
	mov	rdi, QWORD PTR 56[rsp]
	mov	rsi, r12
	add	rdi, QWORD PTR ds:24
	sub	rsi, QWORD PTR 24[rsp]
	call	XADlength@PLT
	mov	rdi, QWORD PTR ds:8
	call	le16_to_cpu@PLT
	mov	ecx, DWORD PTR 64[rsp]
	mov	DWORD PTR 96[rsp], eax
	cmp	ecx, eax
	je	.L53
	movsx	r15, ecx
	sal	r15, 2
.L31:
	xor	r10d, r10d
	mov	eax, DWORD PTR XAD_NOTRECORDED[rip]
	mov	rdx, QWORD PTR 24[r10]
	mov	rdi, QWORD PTR [r10]
	mov	QWORD PTR 56[rsp], r10
	not	eax
	and	eax, DWORD PTR 36[rsp]
	mov	DWORD PTR [rdx+r15], eax
	call	le16_to_cpu@PLT
	lea	edi, 1[rax]
	call	cpu_to_le16@PLT
	mov	r10, QWORD PTR 56[rsp]
	mov	rcx, QWORD PTR 112[rsp]
	mov	QWORD PTR [r10], rax
	cmp	QWORD PTR 104[rsp], rcx
	je	.L15
.L28:
	mov	eax, DWORD PTR 100[rsp]
	lea	r15d, 1[rax]
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 72[rsp], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 24[rsp], r12
	mov	QWORD PTR 56[rsp], rax
.L34:
	xor	r10d, r10d
	lea	eax, 1[r15]
	mov	rdi, QWORD PTR [r10]
	mov	QWORD PTR 16[rsp], r10
	mov	DWORD PTR 96[rsp], eax
	call	le16_to_cpu@PLT
	mov	r10, QWORD PTR 16[rsp]
	mov	DWORD PTR 64[rsp], eax
	mov	eax, DWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 8[r10]
	add	eax, DWORD PTR 56[rsp]
	sub	eax, r12d
	mov	DWORD PTR 32[rsp], eax
	call	le16_to_cpu@PLT
	cmp	eax, DWORD PTR 64[rsp]
	je	.L35
	movsx	r15, r15d
	lea	rax, 0[0+r15*4]
	mov	QWORD PTR 56[rsp], rax
	mov	eax, DWORD PTR XAD_NOTRECORDED[rip]
	not	eax
	and	eax, DWORD PTR 36[rsp]
	jmp	.L18
.L10:
	mov	rdi, r8
	mov	DWORD PTR 140[rsp], esi
	mov	QWORD PTR 128[rsp], rsi
	mov	DWORD PTR 136[rsp], ecx
	mov	QWORD PTR 120[rsp], r8
	call	addressXAD@PLT
	mov	rsi, QWORD PTR 128[rsp]
	mov	r8, QWORD PTR 120[rsp]
	mov	ecx, DWORD PTR 136[rsp]
	mov	edx, DWORD PTR 140[rsp]
	add	rsi, rax
	cmp	rsi, QWORD PTR 16[rsp]
	jne	.L8
	add	edx, DWORD PTR [rsp]
	cmp	edx, DWORD PTR MAXXLEN[rip]
	mov	DWORD PTR 120[rsp], edx
	jge	.L8
	mov	rdi, r8
	movsx	rsi, edx
	mov	DWORD PTR 96[rsp], ecx
	mov	QWORD PTR 16[rsp], r8
	mov	DWORD PTR 100[rsp], -1
	call	XADlength@PLT
	mov	ecx, DWORD PTR 96[rsp]
	test	DWORD PTR XAD_NEW[rip], ecx
	mov	r8, QWORD PTR 16[rsp]
	jne	.L13
	mov	eax, DWORD PTR XAD_EXTENDED[rip]
	or	eax, ecx
	mov	DWORD PTR [r8], eax
.L13:
	mov	ecx, DWORD PTR 32[rsp]
	cmp	DWORD PTR [rsp], ecx
	jl	.L77
	mov	eax, DWORD PTR 64[rsp]
	sub	eax, 1
	cmp	eax, DWORD PTR 100[rsp]
	jg	.L78
.L16:
	xor	r10d, r10d
	mov	QWORD PTR 16[rsp], r8
	mov	rdi, QWORD PTR [r10]
	mov	QWORD PTR [rsp], r10
	call	le16_to_cpu@PLT
	lea	edi, -1[rax]
	call	cpu_to_le16@PLT
	mov	r10, QWORD PTR [rsp]
	mov	rdi, rax
	mov	QWORD PTR [r10], rax
	call	le16_to_cpu@PLT
	mov	r8, QWORD PTR 16[rsp]
	mov	DWORD PTR 64[rsp], eax
	mov	rdi, r8
	mov	QWORD PTR [rsp], r8
	call	offsetXAD@PLT
	mov	r8, QWORD PTR [rsp]
	mov	r12, rax
	mov	rdi, r8
	call	addressXAD@PLT
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR 64[rsp]
	cmp	DWORD PTR 100[rsp], eax
	je	.L15
	or	rcx, -1
	mov	QWORD PTR 24[rsp], r12
	mov	rax, rcx
	mov	QWORD PTR 88[rsp], rcx
	mov	ecx, DWORD PTR 120[rsp]
	mov	DWORD PTR 96[rsp], eax
	mov	DWORD PTR 32[rsp], ecx
	mov	DWORD PTR [rsp], ecx
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 88[rsp]
	mov	rcx, QWORD PTR ds:24
	lea	rax, 4[0+rax*4]
	add	rcx, rax
	mov	QWORD PTR 72[rsp], rax
	mov	rdi, rcx
	mov	QWORD PTR 56[rsp], rcx
	call	lengthXAD@PLT
	mov	rcx, QWORD PTR 56[rsp]
	mov	r8d, DWORD PTR [rcx]
	test	DWORD PTR XAD_NOTRECORDED[rip], r8d
	je	.L79
.L21:
	cmp	r12, QWORD PTR 24[rsp]
	je	.L15
	jle	.L80
.L24:
	endbr64
	xor	r10d, r10d
	mov	rcx, QWORD PTR 72[rsp]
	mov	rsi, r12
	sub	rsi, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 24[r10]
	mov	QWORD PTR 56[rsp], r10
	lea	rdi, -4[rax+rcx]
	call	XADlength@PLT
	mov	r10, QWORD PTR 56[rsp]
	mov	rdi, QWORD PTR 8[r10]
	call	le16_to_cpu@PLT
	cmp	eax, DWORD PTR 64[rsp]
	je	.L81
	movsx	rax, DWORD PTR [rsp]
	movsx	r15, DWORD PTR 96[rsp]
	mov	QWORD PTR 80[rsp], rax
	add	rax, r12
	mov	rcx, r15
	sal	r15, 2
	mov	QWORD PTR 112[rsp], rax
	movsx	rax, DWORD PTR 32[rsp]
	add	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 104[rsp], rax
	mov	eax, DWORD PTR 64[rsp]
	cmp	ecx, eax
	jge	.L31
	mov	rsi, QWORD PTR ds:24
	sub	eax, ecx
	mov	ecx, DWORD PTR L2XTSLOTSIZE[rip]
	lea	r8, [rsi+r15]
	sal	eax, cl
	lea	rdi, 4[rsi+r15]
	mov	edx, eax
	mov	rsi, r8
	call	memmove@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L73:
	mov	DWORD PTR [r15], eax
	mov	ecx, DWORD PTR 64[rsp]
	cmp	DWORD PTR 96[rsp], ecx
	jne	.L19
	cmp	r12, QWORD PTR 24[rsp]
	je	.L15
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L74:
	mov	eax, DWORD PTR 96[rsp]
	mov	edi, DWORD PTR 8[rsp]
	mov	rcx, r13
	mov	rsi, rbp
	lea	rdx, 160[rsp]
	mov	QWORD PTR 192[rsp], r12
	mov	DWORD PTR 160[rsp], eax
	mov	eax, DWORD PTR 36[rsp]
	mov	QWORD PTR 200[rsp], 0
	mov	DWORD PTR 164[rsp], eax
	mov	DWORD PTR 168[rsp], r14d
	mov	QWORD PTR 184[rsp], r15
	mov	QWORD PTR 176[rsp], 0
	call	xtSplitUp@PLT
	test	eax, eax
	jne	.L52
	xor	r10d, r10d
	xor	r11d, r11d
	mov	ecx, DWORD PTR PSIZE[rip]
	xor	r9d, r9d
	mov	rsi, QWORD PTR 48[rsp]
	mov	r8, r10
	mov	rdx, r11
	mov	rdi, rbp
	mov	QWORD PTR [rsp], r10
	call	XT_GETPAGE@PLT
	mov	r10, QWORD PTR [rsp]
	mov	eax, DWORD PTR 16[r10]
	test	DWORD PTR BT_INTERNAL[rip], eax
	je	.L15
	mov	eax, DWORD PTR XTENTRYSTART[rip]
	xor	r10d, r10d
	mov	r12, QWORD PTR [r10]
	mov	QWORD PTR [rsp], r10
	lea	edi, 1[rax]
	call	cpu_to_le16@PLT
	xor	edi, edi
	cmp	r12, rax
	sete	dil
	call	ASSERT@PLT
	mov	r10, QWORD PTR [rsp]
	movsx	rdx, DWORD PTR XTENTRYSTART[rip]
	mov	rax, QWORD PTR 24[r10]
	mov	QWORD PTR 16[rsp], r10
	lea	rdi, [rax+rdx*4]
	call	addressXAD@PLT
	xor	r11d, r11d
	mov	rdi, r11
	mov	QWORD PTR [rsp], r11
	mov	r12, rax
	call	XT_PUTPAGE@PLT
	mov	r10, QWORD PTR 16[rsp]
	xor	r9d, r9d
	mov	rsi, r12
	mov	r11, QWORD PTR [rsp]
	mov	ecx, DWORD PTR PSIZE[rip]
	mov	rdi, rbp
	mov	r8, r10
	mov	rdx, r11
	call	XT_GETPAGE@PLT
	mov	r11, QWORD PTR [rsp]
	mov	rsi, rbp
	mov	rdi, r11
	call	BT_MARK_DIRTY@PLT
	mov	edi, DWORD PTR COMMIT_Nolink[rip]
	mov	rsi, rbp
	call	test_cflag@PLT
	test	eax, eax
	jne	.L15
	xor	r11d, r11d
	mov	edi, DWORD PTR 8[rsp]
	mov	ecx, DWORD PTR tlckXTREE[rip]
	mov	rsi, rbp
	or	ecx, DWORD PTR tlckGROW[rip]
	mov	rdx, r11
	call	txLock@PLT
	mov	QWORD PTR 40[rsp], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L52:
	mov	ebx, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L79:
	movsx	rsi, DWORD PTR [rsp]
	mov	DWORD PTR 112[rsp], eax
	mov	rdi, rcx
	mov	DWORD PTR 104[rsp], r8d
	lea	rax, [rsi+r12]
	mov	QWORD PTR 88[rsp], rsi
	mov	QWORD PTR 80[rsp], rcx
	mov	QWORD PTR 56[rsp], rax
	call	offsetXAD@PLT
	cmp	QWORD PTR 56[rsp], rax
	mov	rcx, QWORD PTR 80[rsp]
	mov	rsi, QWORD PTR 88[rsp]
	mov	r8d, DWORD PTR 104[rsp]
	mov	edx, DWORD PTR 112[rsp]
	jne	.L21
	add	rsi, QWORD PTR 16[rsp]
	mov	rdi, rcx
	mov	DWORD PTR 104[rsp], edx
	mov	DWORD PTR 88[rsp], r8d
	mov	QWORD PTR 56[rsp], rsi
	call	addressXAD@PLT
	cmp	QWORD PTR 56[rsp], rax
	mov	rcx, QWORD PTR 80[rsp]
	mov	r8d, DWORD PTR 88[rsp]
	mov	edx, DWORD PTR 104[rsp]
	jne	.L21
	add	edx, DWORD PTR [rsp]
	cmp	edx, DWORD PTR MAXXLEN[rip]
	jge	.L21
	mov	rdi, rcx
	mov	rsi, r12
	mov	DWORD PTR 24[rsp], r8d
	mov	DWORD PTR 36[rsp], edx
	mov	QWORD PTR 8[rsp], rcx
	call	XADoffset@PLT
	mov	rcx, QWORD PTR 8[rsp]
	movsx	rsi, DWORD PTR 36[rsp]
	mov	rdi, rcx
	call	XADlength@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, rcx
	call	XADaddress@PLT
	mov	r8d, DWORD PTR 24[rsp]
	test	DWORD PTR XAD_NEW[rip], r8d
	jne	.L22
	mov	rcx, QWORD PTR 8[rsp]
	or	r8d, DWORD PTR XAD_EXTENDED[rip]
	mov	DWORD PTR [rcx], r8d
.L22:
	mov	eax, DWORD PTR [rsp]
	mov	esi, DWORD PTR 32[rsp]
	cmp	eax, esi
	jge	.L23
	sub	esi, eax
	mov	rdi, r15
	movsx	rsi, esi
	call	XADlength@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	xor	r11d, r11d
	mov	rdi, r11
	call	XT_PUTPAGE@PLT
	xor	edx, edx
	mov	r8, r13
	mov	rcx, r14
	mov	r9d, DWORD PTR XT_INSERT[rip]
	mov	rsi, r12
	mov	rdi, rbp
	call	xtSearch@PLT
	test	eax, eax
	jne	.L52
	xor	r11d, r11d
	mov	r9d, DWORD PTR 100[rsp]
	mov	rdx, QWORD PTR 48[rsp]
	xor	r8d, r8d
	mov	esi, DWORD PTR 156[rsp]
	mov	rcx, r11
	mov	rdi, rbp
	call	XT_GETSEARCH@PLT
	mov	eax, DWORD PTR 152[rsp]
	test	eax, eax
	jne	.L82
	movsx	rax, DWORD PTR 100[rsp]
	cmp	eax, r15d
	jne	.L37
	sal	rax, 2
	mov	QWORD PTR 56[rsp], rax
	mov	eax, DWORD PTR XAD_NOTRECORDED[rip]
	not	eax
	and	eax, DWORD PTR 36[rsp]
	jmp	.L18
.L80:
	xor	r11d, r11d
	mov	rdi, r11
	call	XT_PUTPAGE@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC2[rip]
	call	jfs_error@PLT
	mov	ebx, DWORD PTR EIO[rip]
	neg	ebx
	jmp	.L1
.L53:
	mov	rax, QWORD PTR 16[rsp]
	xor	r15d, r15d
	mov	DWORD PTR 100[rsp], r15d
	mov	QWORD PTR 72[rsp], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 24[rsp], r12
	mov	QWORD PTR 56[rsp], rax
.L42:
	mov	eax, DWORD PTR 96[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, rbp
	lea	rdx, 160[rsp]
	mov	edi, DWORD PTR 8[rsp]
	mov	QWORD PTR 200[rsp], 0
	mov	DWORD PTR 160[rsp], eax
	mov	eax, DWORD PTR XAD_NOTRECORDED[rip]
	mov	QWORD PTR 184[rsp], rcx
	mov	rcx, r13
	not	eax
	and	eax, DWORD PTR 36[rsp]
	mov	QWORD PTR 192[rsp], r12
	mov	DWORD PTR 164[rsp], eax
	mov	eax, DWORD PTR [rsp]
	mov	QWORD PTR 176[rsp], 0
	mov	DWORD PTR 168[rsp], eax
	call	xtSplitUp@PLT
	test	eax, eax
	jne	.L52
	xor	r10d, r10d
	mov	ecx, DWORD PTR PSIZE[rip]
	xor	r11d, r11d
	xor	esi, esi
	mov	r8, r10
	xor	r9d, r9d
	mov	rdx, r11
	mov	rdi, rbp
	mov	QWORD PTR 104[rsp], r10
	mov	QWORD PTR 48[rsp], rsi
	call	XT_GETPAGE@PLT
	movsx	rax, DWORD PTR [rsp]
	mov	r10, QWORD PTR 104[rsp]
	lea	rcx, [rax+r12]
	mov	QWORD PTR 80[rsp], rax
	movsx	rax, DWORD PTR 32[rsp]
	add	rax, QWORD PTR 56[rsp]
	mov	QWORD PTR 64[rsp], rcx
	mov	QWORD PTR 88[rsp], rax
	mov	eax, DWORD PTR 16[r10]
	test	DWORD PTR BT_INTERNAL[rip], eax
	je	.L26
	mov	esi, DWORD PTR XTENTRYSTART[rip]
	xor	r10d, r10d
	mov	r15, QWORD PTR [r10]
	mov	QWORD PTR 24[rsp], r10
	lea	edi, 1[rsi]
	call	cpu_to_le16@PLT
	xor	edi, edi
	cmp	r15, rax
	sete	dil
	call	ASSERT@PLT
	mov	r10, QWORD PTR 24[rsp]
	movsx	rdx, DWORD PTR XTENTRYSTART[rip]
	mov	rax, QWORD PTR 24[r10]
	mov	QWORD PTR 72[rsp], r10
	lea	rdi, [rax+rdx*4]
	call	addressXAD@PLT
	xor	r11d, r11d
	mov	rdi, r11
	mov	QWORD PTR 24[rsp], r11
	mov	r15, rax
	mov	QWORD PTR 48[rsp], rax
	call	XT_PUTPAGE@PLT
	mov	r10, QWORD PTR 72[rsp]
	xor	r9d, r9d
	mov	rsi, r15
	mov	r11, QWORD PTR 24[rsp]
	mov	ecx, DWORD PTR PSIZE[rip]
	mov	rdi, rbp
	mov	r8, r10
	mov	rdx, r11
	call	XT_GETPAGE@PLT
	mov	r11, QWORD PTR 24[rsp]
	mov	rsi, rbp
	mov	rdi, r11
	call	BT_MARK_DIRTY@PLT
	mov	edi, DWORD PTR COMMIT_Nolink[rip]
	mov	rsi, rbp
	call	test_cflag@PLT
	test	eax, eax
	je	.L27
	mov	rax, QWORD PTR 88[rsp]
	cmp	QWORD PTR 64[rsp], rax
	je	.L15
	mov	rdx, QWORD PTR 56[rsp]
	mov	QWORD PTR 24[rsp], rdx
	jmp	.L28
.L81:
	mov	rax, QWORD PTR 16[rsp]
	mov	r15d, DWORD PTR 100[rsp]
	mov	QWORD PTR 72[rsp], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 24[rsp], r12
	mov	QWORD PTR 56[rsp], rax
	jmp	.L42
.L26:
	mov	rdi, QWORD PTR ds:8
	call	le16_to_cpu@PLT
	sar	eax
	cmp	eax, DWORD PTR 96[rsp]
	jl	.L29
	mov	rcx, QWORD PTR 88[rsp]
	cmp	QWORD PTR 64[rsp], rcx
	je	.L15
.L66:
	mov	rax, QWORD PTR 56[rsp]
	mov	QWORD PTR 24[rsp], rax
	jmp	.L28
.L37:
	xor	r11d, r11d
	mov	rdi, r11
	call	XT_PUTPAGE@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC4[rip]
	call	jfs_error@PLT
	mov	ebx, DWORD PTR EIO[rip]
	neg	ebx
	jmp	.L1
.L27:
	xor	r11d, r11d
	mov	edi, DWORD PTR 8[rsp]
	mov	ecx, DWORD PTR tlckXTREE[rip]
	mov	rsi, rbp
	or	ecx, DWORD PTR tlckGROW[rip]
	mov	rdx, r11
	call	txLock@PLT
	mov	rcx, QWORD PTR 88[rsp]
	mov	QWORD PTR 40[rsp], rax
	cmp	QWORD PTR 64[rsp], rcx
	jne	.L66
	jmp	.L15
.L29:
	mov	rdi, QWORD PTR ds:0
	call	le16_to_cpu@PLT
	mov	ecx, DWORD PTR 96[rsp]
	sub	ecx, eax
	mov	eax, DWORD PTR XTENTRYSTART[rip]
	add	eax, ecx
	mov	rcx, QWORD PTR 88[rsp]
	mov	DWORD PTR 100[rsp], eax
	cmp	QWORD PTR 64[rsp], rcx
	je	.L83
	mov	edi, DWORD PTR COMMIT_Nolink[rip]
	mov	rsi, rbp
	call	test_cflag@PLT
	test	eax, eax
	jne	.L32
	mov	rax, QWORD PTR 40[rsp]
	mov	esi, DWORD PTR [rax]
	test	esi, esi
	jne	.L84
.L33:
	mov	rcx, QWORD PTR 40[rsp]
	mov	rdi, QWORD PTR ds:0
	mov	DWORD PTR [rcx], r15d
	call	le16_to_cpu@PLT
	mov	rcx, QWORD PTR 40[rsp]
	sub	eax, DWORD PTR [rcx]
	mov	DWORD PTR 4[rcx], eax
.L32:
	xor	r10d, r10d
	mov	edi, DWORD PTR 20[r10]
	mov	QWORD PTR 64[rsp], r10
	call	le64_to_cpu@PLT
	xor	r11d, r11d
	mov	rdi, r11
	mov	r15, rax
	mov	QWORD PTR 16[rsp], r11
	mov	QWORD PTR 48[rsp], rax
	call	XT_PUTPAGE@PLT
	mov	r10, QWORD PTR 64[rsp]
	xor	r9d, r9d
	mov	rsi, r15
	mov	r11, QWORD PTR 16[rsp]
	mov	ecx, DWORD PTR PSIZE[rip]
	mov	rdi, rbp
	mov	r8, r10
	mov	rdx, r11
	call	XT_GETPAGE@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	rsi, rbp
	mov	rdi, r11
	call	BT_MARK_DIRTY@PLT
	mov	edi, DWORD PTR COMMIT_Nolink[rip]
	mov	rsi, rbp
	call	test_cflag@PLT
	mov	r15d, DWORD PTR 100[rsp]
	test	eax, eax
	jne	.L34
	xor	r11d, r11d
	mov	edi, DWORD PTR 8[rsp]
	mov	ecx, DWORD PTR tlckXTREE[rip]
	mov	rsi, rbp
	or	ecx, DWORD PTR tlckGROW[rip]
	mov	rdx, r11
	call	txLock@PLT
	mov	r15d, DWORD PTR 100[rsp]
	mov	QWORD PTR 40[rsp], rax
	jmp	.L34
.L84:
	mov	edi, r15d
	call	min@PLT
	mov	r15d, eax
	jmp	.L33
.L82:
	xor	r11d, r11d
	mov	rdi, r11
	call	XT_PUTPAGE@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC3[rip]
	call	jfs_error@PLT
	mov	ebx, DWORD PTR EIO[rip]
	neg	ebx
	jmp	.L1
.L69:
	call	__stack_chk_fail@PLT
.L83:
	mov	DWORD PTR 100[rsp], r15d
	jmp	.L15
.L23:
	mov	ecx, DWORD PTR L2XTSLOTSIZE[rip]
	mov	eax, DWORD PTR 64[rsp]
	xor	r10d, r10d
	sub	eax, DWORD PTR 100[rsp]
	mov	rsi, QWORD PTR 24[r10]
	mov	QWORD PTR [rsp], r10
	sub	eax, 1
	sal	eax, cl
	mov	edx, eax
	mov	rax, QWORD PTR 72[rsp]
	lea	r8, [rsi+rax]
	lea	rdi, -4[rsi+rax]
	mov	rsi, r8
	call	memmove@PLT
	mov	r10, QWORD PTR [rsp]
	mov	rdi, QWORD PTR [r10]
	call	le16_to_cpu@PLT
	lea	edi, -1[rax]
	call	cpu_to_le16@PLT
	mov	r10, QWORD PTR [rsp]
	mov	QWORD PTR [r10], rax
	jmp	.L15
.L78:
	mov	eax, DWORD PTR 64[rsp]
	mov	ecx, DWORD PTR L2XTSLOTSIZE[rip]
	mov	QWORD PTR [rsp], r8
	sub	eax, DWORD PTR 100[rsp]
	mov	rsi, QWORD PTR ds:24
	sub	eax, 1
	sal	eax, cl
	mov	edx, eax
	mov	rax, QWORD PTR 56[rsp]
	lea	r9, 4[rsi+rax]
	lea	rdi, [rsi+rax]
	mov	rsi, r9
	call	memmove@PLT
	mov	r8, QWORD PTR [rsp]
	jmp	.L16
.L77:
	mov	r14, QWORD PTR 80[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r15
	add	rsi, r14
	call	XADoffset@PLT
	mov	esi, DWORD PTR 32[rsp]
	sub	esi, DWORD PTR [rsp]
	mov	rdi, r15
	movsx	rsi, esi
	call	XADlength@PLT
	mov	rsi, QWORD PTR 72[rsp]
	mov	rdi, r15
	add	rsi, r14
	call	XADaddress@PLT
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	xtUpdate, .-xtUpdate
	.comm	tlckXTREE,4,4
	.comm	tlckGROW,4,4
	.comm	XT_INSERT,4,4
	.comm	XTENTRYSTART,4,4
	.comm	XAD_NOTRECORDED,4,4
	.comm	XAD_NEW,4,4
	.comm	XAD_EXTENDED,4,4
	.comm	PSIZE,4,4
	.comm	MAXXLEN,4,4
	.comm	L2XTSLOTSIZE,4,4
	.comm	EIO,4,4
	.comm	COMMIT_Nolink,4,4
	.comm	BT_INTERNAL,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_xtree.c_xtUpdate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xtUpdate: Could not find extent\000"
	.align	2
.LC1:
	.ascii	"xtUpdate: nXAD in not completely contained within X"
	.ascii	"AD\000"
	.align	2
.LC2:
	.ascii	"xtUpdate: xoff >= nxoff\000"
	.align	2
.LC3:
	.ascii	"xtUpdate: xtSearch failed\000"
	.align	2
.LC4:
	.ascii	"xtUpdate: unexpected value of index\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xtUpdate
	.syntax unified
	.arm
	.fpu softvfp
	.type	xtUpdate, %function
xtUpdate:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #132
	str	r3, [sp, #12]
	ldr	r3, .L87
	mov	r0, r2
	mov	r4, r2
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #124]
	mov	r3,#0
	bl	offsetXAD
	mov	r6, r0
	mov	r0, r4
	bl	lengthXAD
	mov	fp, r0
	mov	r0, r4
	bl	addressXAD
	mov	ip, r0
	ldr	r10, .L87+4
	add	r2, sp, #92
	ldr	r3, [r10]
	mov	r1, r6
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r0, r5
	mov	r2, #0
	add	r3, sp, #88
	str	ip, [sp, #16]
	bl	xtSearch
	subs	r4, r0, #0
	beq	.L70
.L1:
	ldr	r3, .L87
	ldr	r2, [r3]
	ldr	r3, [sp, #124]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L71
	mov	r0, r4
	add	sp, sp, #132
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L70:
	mov	r8, #0
	mov	r7, r8
	mov	r3, r8
	mov	r2, r8
	mov	r0, r5
	stm	sp, {r7, r8}
	ldr	r1, [sp, #92]
	str	r8, [sp, #32]
	bl	XT_GETSEARCH
	ldr	r4, [sp, #88]
	cmp	r4, r8
	bne	.L72
	mov	r1, r5
	mov	r0, #0
	bl	BT_MARK_DIRTY
	ldr	r3, .L87+8
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_cflag
	cmp	r0, #0
	strne	r4, [sp, #44]
	beq	.L73
.L4:
	mov	r7, #0
	ldr	r9, [r7, #16]
	mov	r8, r7
	ldr	r3, [r9, r7, lsl #2]
	mov	r0, r9
	str	r3, [sp, #28]
	bl	offsetXAD
	mov	r3, r0
	mov	r0, r9
	mov	r7, r3
	str	r3, [sp, #24]
	bl	lengthXAD
	mov	r3, r0
	mov	r0, r9
	str	r3, [sp, #20]
	bl	addressXAD
	lsl	r1, r8, #2
	cmp	r6, r7
	str	r1, [sp, #36]
	str	r0, [sp, #48]
	blt	.L5
	ldr	r3, [sp, #20]
	add	r1, r6, fp
	add	r3, r7, r3
	cmp	r1, r3
	str	r1, [sp, #60]
	ble	.L6
.L5:
	mov	r0, #0
	bl	XT_PUTPAGE
	ldr	r0, [r5]
	ldr	r1, .L87+12
	bl	jfs_error
	ldr	r3, .L87+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L6:
	mov	r7, #0
	ldr	r0, [r7]
	str	r3, [sp, #64]
	bl	le16_to_cpu
	ldr	r3, [sp, #24]
	mov	r8, r7
	cmp	r6, r3
	add	r3, r7, #1
	str	r3, [sp, #52]
	str	r3, [sp, #56]
	str	r0, [sp, #40]
	ldr	r3, [sp, #64]
	bgt	.L7
	ldr	r2, .L87+20
	ldr	r2, [r2]
	cmp	r2, r7
	beq	.L8
	ldr	r2, [sp, #36]
	str	r3, [sp, #72]
	ldr	r3, [r7, #16]
	sub	r7, r2, #4
	add	r2, r3, r7
	mov	r0, r2
	str	r3, [sp, #68]
	str	r2, [sp, #76]
	bl	lengthXAD
	ldr	r1, .L87+24
	ldr	r3, [sp, #68]
	ldr	ip, [r1]
	ldr	r2, [r3, r7]
	str	r1, [sp, #64]
	tst	r2, ip
	ldr	r3, [sp, #72]
	beq	.L74
.L9:
	ldr	r2, [sp, #20]
	cmp	fp, r2
	ldr	r2, [sp, #28]
	bic	ip, r2, ip
	beq	.L75
.L18:
	mov	r7, #0
	ldr	r2, [sp, #36]
	ldr	r3, [r7, #16]
	ldr	r0, [r7, #4]
	str	ip, [r3, r2]
	bl	le16_to_cpu
	ldr	r3, [sp, #40]
	cmp	r0, r3
	ldr	r3, [sp, #24]
	add	r6, r3, fp
	ldr	r3, [sp, #20]
	sub	r9, r3, fp
	ldr	r3, [sp, #48]
	add	r10, fp, r3
	beq	.L76
	ldr	r3, [sp, #56]
	ldr	r2, [sp, #40]
	lsl	fp, r3, #2
	cmp	r3, r2
	blt	.L77
.L39:
	mov	r7, #0
	ldr	r0, [r7, #16]
	mov	r3, r9
	mov	r2, r6
	ldr	r1, [sp, #28]
	add	r0, r0, fp
	str	r10, [sp]
	bl	XT_PUTENTRY
	ldr	r0, [r7]
	bl	le16_to_cpu
	add	r0, r0, #1
	bl	cpu_to_le16
	str	r0, [r7]
.L15:
	ldr	r3, .L87+8
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_cflag
	cmp	r0, #0
	bne	.L40
	ldr	r3, [sp, #44]
	ldr	r1, [r3]
	cmp	r1, #0
	bne	.L78
.L41:
	mov	r7, #0
	ldr	r5, [sp, #44]
	ldr	r0, [r7]
	str	r8, [r5]
	bl	le16_to_cpu
	ldr	r3, [r5]
	sub	r0, r0, r3
	str	r0, [r5, #4]
.L40:
	mov	r0, #0
	bl	XT_PUTPAGE
	b	.L1
.L72:
	mov	r0, r8
	bl	XT_PUTPAGE
	ldr	r0, [r5]
	ldr	r1, .L87+28
	bl	jfs_error
	ldr	r3, .L87+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L73:
	ldr	r2, .L87+32
	ldr	r3, .L87+36
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #0
	orr	r3, r1, r3
	ldr	r0, [sp, #12]
	mov	r1, r5
	bl	txLock
	str	r0, [sp, #44]
	b	.L4
.L77:
	mov	r7, #0
	ldr	r2, .L87+40
	ldr	r0, [sp, #56]
	ldr	r1, [sp, #40]
	ldr	r3, [r7, #16]
	ldr	r2, [r2]
	sub	r1, r1, r0
	add	r0, fp, #4
	lsl	r2, r1, r2
	add	r0, r3, r0
	add	r1, r3, fp
	bl	memcpy
	b	.L39
.L74:
	str	r0, [sp, #80]
	ldr	r0, [sp, #76]
	str	r3, [sp, #84]
	str	r2, [sp, #72]
	bl	offsetXAD
	ldr	r1, [sp, #80]
	ldr	r2, [sp, #72]
	add	r0, r0, r1
	cmp	r0, r6
	ldr	r3, [sp, #84]
	beq	.L10
.L12:
	ldr	r2, [sp, #64]
	ldr	ip, [r2]
	b	.L9
.L78:
	mov	r0, r8
	bl	min
	mov	r8, r0
	b	.L41
.L7:
	ldr	r2, [sp, #52]
	ldr	r1, [sp, #40]
	cmp	r2, r1
	beq	.L57
	ldr	r3, .L87+24
	str	r3, [sp, #64]
.L19:
	mov	r7, #0
	ldr	r2, [sp, #52]
	ldr	r3, [r7, #16]
	lsl	r1, r2, #2
	add	r7, r3, r2, lsl #2
	mov	r0, r7
	str	r1, [sp, #48]
	str	r3, [sp, #36]
	bl	lengthXAD
	ldr	r2, [sp, #52]
	ldr	r3, [sp, #36]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [sp, #64]
	ldr	r1, [r2]
	tst	r3, r1
	beq	.L79
.L21:
	ldr	r3, [sp, #24]
	cmp	r6, r3
	beq	.L15
	ble	.L80
.L24:
	mov	r7, #0
	ldr	r2, [sp, #48]
	ldr	r3, [r7, #16]
	sub	r0, r2, #4
	ldr	r2, [sp, #24]
	add	r0, r3, r0
	sub	r2, r6, r2
	mov	r1, r2
	str	r2, [sp, #68]
	bl	XADlength
	ldr	r0, [r7, #4]
	bl	le16_to_cpu
	ldr	r3, [sp, #40]
	cmp	r0, r3
	beq	.L81
	ldr	r1, [sp, #56]
	ldr	r2, [sp, #20]
	ldr	r0, [sp, #40]
	ldr	r3, [sp, #24]
	cmp	r1, r0
	add	r3, r3, r2
	add	r2, r6, fp
	str	r2, [sp, #60]
	lsl	r9, r1, #2
	bge	.L31
	mov	r7, #0
	ldr	r2, .L87+40
	ldr	ip, [r7, #16]
	ldr	r2, [r2]
	sub	r1, r0, r1
	add	r0, r9, #4
	lsl	r2, r1, r2
	add	r0, ip, r0
	add	r1, ip, r9
	str	r3, [sp, #24]
	bl	memcpy
	ldr	r3, [sp, #24]
.L31:
	mov	r7, #0
	str	r3, [sp, #24]
	ldr	r3, [sp, #64]
	ldr	r1, [r7, #16]
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	ldr	r0, [r7]
	bic	r2, r3, r2
	str	r2, [r1, r9]
	bl	le16_to_cpu
	add	r0, r0, #1
	bl	cpu_to_le16
	ldr	r2, [sp, #60]
	ldr	r3, [sp, #24]
	str	r0, [r7]
	cmp	r2, r3
	beq	.L15
.L28:
	ldr	r3, [sp, #16]
	ldr	r9, [sp, #52]
	str	r3, [sp, #48]
	str	r6, [sp, #24]
.L34:
	mov	r7, #0
	ldr	r0, [r7]
	bl	le16_to_cpu
	ldr	r3, [r7, #4]
	str	r0, [sp, #40]
	mov	r7, r0
	mov	r0, r3
	bl	le16_to_cpu
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #68]
	cmp	r0, r7
	sub	r3, r3, r2
	str	r3, [sp, #20]
	add	r3, r9, #1
	str	r3, [sp, #56]
	beq	.L35
	ldr	r3, [sp, #64]
	ldr	ip, [r3]
	lsl	r3, r9, #2
	str	r3, [sp, #36]
	ldr	r3, [sp, #28]
	bic	ip, r3, ip
	b	.L18
.L8:
	ldr	r2, .L87+24
	ldr	ip, [r2]
	str	r2, [sp, #64]
	b	.L9
.L75:
	ldr	r2, [sp, #52]
	ldr	r1, [sp, #40]
	str	ip, [r9]
	cmp	r2, r1
	bne	.L19
	ldr	r2, [sp, #24]
	cmp	r6, r2
	beq	.L15
.L20:
	mov	r7, #0
	str	r3, [sp, #48]
	ldr	r3, [sp, #24]
	ldr	r0, [r7, #16]
	sub	r1, r6, r3
	ldr	r3, [sp, #36]
	str	r1, [sp, #68]
	add	r0, r0, r3
	bl	XADlength
	ldr	r0, [r7, #4]
	bl	le16_to_cpu
	ldr	r3, [sp, #40]
	str	r0, [sp, #56]
	cmp	r3, r0
	beq	.L53
	lsl	r9, r3, #2
	ldr	r3, [sp, #48]
	b	.L31
.L57:
	ldr	r2, .L87+24
	str	r2, [sp, #64]
	b	.L20
.L76:
	ldr	r2, [sp, #56]
	mov	r1, r5
	str	r2, [sp, #96]
	ldr	r2, [sp, #28]
	ldr	r0, [sp, #12]
	str	r2, [sp, #100]
	add	r3, sp, #92
	add	r2, sp, #96
	str	r6, [sp, #116]
	str	r9, [sp, #104]
	str	r10, [sp, #112]
	str	r7, [sp, #120]
	str	r7, [sp, #108]
	bl	xtSplitUp
	subs	r6, r0, #0
	movne	r4, r6
	bne	.L1
	ldr	r9, .L87+44
	str	r6, [sp, #4]
	str	r7, [sp]
	mov	r2, r7
	ldr	r3, [r9]
	mov	r0, r5
	ldr	r1, [sp, #32]
	bl	XT_GETPAGE
	ldr	r3, .L87+48
	ldr	r2, [r7, #8]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L15
	ldr	r10, .L87+20
	ldr	fp, [r7]
	ldr	r0, [r10]
	str	r7, [sp, #16]
	add	r0, r0, #1
	bl	cpu_to_le16
	sub	r0, fp, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r3, [r7, #16]
	ldr	r0, [r10]
	add	r0, r3, r0, lsl #2
	bl	addressXAD
	mov	r10, r0
	ldr	fp, [sp, #16]
	mov	r0, fp
	bl	XT_PUTPAGE
	str	r7, [sp]
	str	r6, [sp, #4]
	mov	r2, fp
	ldr	r3, [r9]
	mov	r1, r10
	mov	r0, r5
	bl	XT_GETPAGE
	mov	r1, r5
	mov	r0, fp
	bl	BT_MARK_DIRTY
	ldr	r3, .L87+8
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_cflag
	cmp	r0, r7
	bne	.L15
	ldr	r2, .L87+32
	ldr	r3, .L87+36
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r5
	orr	r3, r2, r3
	ldr	r0, [sp, #12]
	mov	r2, r7
	bl	txLock
	str	r0, [sp, #44]
	b	.L15
.L79:
	str	r0, [sp, #68]
	mov	r0, r7
	str	r3, [sp, #60]
	bl	offsetXAD
	add	r1, r6, fp
	cmp	r1, r0
	bne	.L21
	mov	r0, r7
	bl	addressXAD
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #68]
	add	r1, fp, r3
	cmp	r1, r0
	ldr	r3, [sp, #60]
	bne	.L21
	ldr	r1, .L87+52
	add	r2, r2, fp
	ldr	r1, [r1]
	cmp	r2, r1
	bge	.L21
	mov	r1, r6
	mov	r0, r7
	str	r3, [sp, #12]
	str	r2, [sp, #24]
	bl	XADoffset
	ldr	r2, [sp, #24]
	mov	r0, r7
	mov	r1, r2
	bl	XADlength
	mov	r0, r7
	ldr	r1, [sp, #16]
	bl	XADaddress
	ldr	r2, .L87+56
	ldr	r3, [sp, #12]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L22
	ldr	r2, .L87+60
	ldr	r1, [sp, #52]
	ldr	r2, [r2]
	orr	r3, r2, r3
	ldr	r2, [sp, #36]
	str	r3, [r2, r1, lsl #2]
.L22:
	ldr	r3, [sp, #20]
	cmp	fp, r3
	bge	.L23
	mov	r0, r9
	sub	r1, r3, fp
	bl	XADlength
	b	.L15
.L35:
	mov	r0, #0
	bl	XT_PUTPAGE
	ldr	r3, [r10]
	add	r2, sp, #92
	stm	sp, {r2, r3}
	mov	r1, r6
	mov	r2, #0
	mov	r0, r5
	add	r3, sp, #88
	bl	xtSearch
	cmp	r0, #0
	movne	r4, r0
	bne	.L1
	mov	r7, #0
	mov	r0, r5
	mov	r3, r7
	stm	sp, {r7, r8}
	ldr	r2, [sp, #32]
	ldr	r1, [sp, #92]
	bl	XT_GETSEARCH
	ldr	r3, [sp, #88]
	cmp	r3, r7
	bne	.L82
	cmp	r8, r9
	bne	.L37
	ldr	r3, [sp, #64]
	ldr	ip, [r3]
	lsl	r3, r8, #2
	str	r3, [sp, #36]
	ldr	r3, [sp, #28]
	bic	ip, r3, ip
	b	.L18
.L80:
	mov	r0, #0
	bl	XT_PUTPAGE
	ldr	r0, [r5]
	ldr	r1, .L87+64
	bl	jfs_error
	ldr	r3, .L87+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L53:
	mov	r8, #0
	ldr	r3, [sp, #24]
	str	r8, [sp, #40]
	str	r3, [sp, #52]
	ldr	r3, [sp, #16]
	str	r6, [sp, #24]
	str	r3, [sp, #48]
.L42:
	mov	r0, #0
	mov	ip, r0
	ldr	r3, [sp, #64]
	ldr	r2, [sp, #28]
	ldr	r1, [r3]
	ldr	lr, [sp, #56]
	bic	r1, r2, r1
	str	lr, [sp, #96]
	ldr	lr, [sp, #16]
	add	r3, sp, #92
	str	r1, [sp, #100]
	str	r0, [sp, #120]
	mov	r1, r5
	ldr	r0, [sp, #12]
	add	r2, sp, #96
	str	r6, [sp, #116]
	str	fp, [sp, #104]
	str	lr, [sp, #112]
	str	ip, [sp, #108]
	bl	xtSplitUp
	subs	r3, r0, #0
	str	r3, [sp, #36]
	bne	.L45
	mov	r7, #0
	ldr	r9, .L87+44
	str	r3, [sp, #4]
	str	r7, [sp]
	mov	r1, r7
	mov	r2, r7
	ldr	r3, [r9]
	mov	r0, r5
	str	r7, [sp, #32]
	bl	XT_GETPAGE
	ldr	r3, .L87+48
	ldr	r2, [r7, #8]
	ldr	r1, [sp, #52]
	ldr	r3, [r3]
	ldr	r0, [sp, #20]
	tst	r2, r3
	add	r1, r1, r0
	add	r2, r6, fp
	str	r1, [sp, #52]
	str	r2, [sp, #60]
	beq	.L26
	ldr	r3, .L87+20
	ldr	r2, [r7]
	ldr	r0, [r3]
	str	r2, [sp, #24]
	add	r0, r0, #1
	bl	cpu_to_le16
	ldr	r2, [sp, #24]
	sub	r0, r2, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	ldr	r3, .L87+20
	ldr	r0, [r3]
	ldr	r3, [r7, #16]
	add	r0, r3, r0, lsl #2
	bl	addressXAD
	str	r0, [sp, #32]
	mov	r0, r7
	bl	XT_PUTPAGE
	ldr	r3, [sp, #36]
	str	r7, [sp]
	str	r3, [sp, #4]
	mov	r2, r7
	ldr	r3, [r9]
	ldr	r1, [sp, #32]
	mov	r0, r5
	bl	XT_GETPAGE
	mov	r1, r5
	mov	r0, r7
	bl	BT_MARK_DIRTY
	ldr	r0, .L87+8
	mov	r1, r5
	ldr	r0, [r0]
	bl	test_cflag
	cmp	r0, r7
	beq	.L27
	ldr	r1, [sp, #52]
	add	r3, r6, fp
	cmp	r3, r1
	beq	.L15
.L68:
	add	r3, r8, #1
	str	r3, [sp, #52]
	b	.L28
.L45:
	ldr	r4, [sp, #36]
	b	.L1
.L81:
	ldr	r3, [sp, #24]
	str	r8, [sp, #40]
	str	r3, [sp, #52]
	ldr	r3, [sp, #16]
	str	r6, [sp, #24]
	str	r3, [sp, #48]
	b	.L42
.L10:
	ldr	r0, [sp, #76]
	str	r3, [sp, #84]
	str	r1, [sp, #80]
	str	r2, [sp, #72]
	bl	addressXAD
	ldr	r1, [sp, #80]
	ldr	r3, [sp, #16]
	add	r0, r0, r1
	cmp	r0, r3
	ldr	r2, [sp, #72]
	ldr	r3, [sp, #84]
	bne	.L12
	ldr	r0, .L87+52
	add	ip, fp, r1
	ldr	r1, [r0]
	str	ip, [sp, #72]
	cmp	ip, r1
	bge	.L12
	mov	r1, ip
	ldr	r0, [sp, #76]
	str	r2, [sp, #16]
	bl	XADlength
	ldr	r3, .L87+56
	ldr	r2, [sp, #16]
	ldr	r3, [r3]
	mvn	r8, #0
	tst	r2, r3
	ldreq	r3, .L87+60
	ldreq	r3, [r3]
	orreq	r3, r3, r2
	ldreq	r2, [sp, #68]
	streq	r3, [r2, r7]
	ldr	r3, [sp, #20]
	cmp	fp, r3
	blt	.L83
	ldr	r3, [sp, #40]
	sub	r3, r3, #1
	cmp	r3, r8
	bgt	.L84
.L16:
	mov	r7, #0
	ldr	r0, [r7]
	bl	le16_to_cpu
	sub	r0, r0, #1
	bl	cpu_to_le16
	str	r0, [r7]
	bl	le16_to_cpu
	mov	r3, r0
	ldr	fp, [sp, #76]
	mov	r7, r3
	mov	r0, fp
	str	r3, [sp, #40]
	bl	offsetXAD
	mov	r6, r0
	mov	r0, fp
	bl	addressXAD
	cmp	r8, r7
	str	r0, [sp, #16]
	beq	.L15
	ldr	r3, [sp, #72]
	str	r6, [sp, #24]
	mov	fp, r3
	str	r3, [sp, #20]
	add	r3, r8, #1
	str	r8, [sp, #56]
	str	r3, [sp, #52]
	b	.L19
.L26:
	mov	r7, #0
	ldr	r0, [r7, #4]
	bl	le16_to_cpu
	ldr	r3, [sp, #56]
	cmp	r3, r0, asr #1
	bgt	.L29
	ldr	r2, [sp, #52]
	add	r3, r6, fp
	cmp	r3, r2
	bne	.L68
	b	.L15
.L37:
	mov	r0, #0
	bl	XT_PUTPAGE
	ldr	r0, [r5]
	ldr	r1, .L87+68
	bl	jfs_error
	ldr	r3, .L87+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L27:
	ldr	r2, .L87+32
	ldr	r3, .L87+36
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #0
	orr	r3, r1, r3
	ldr	r0, [sp, #12]
	mov	r1, r5
	bl	txLock
	ldr	r2, [sp, #52]
	add	r3, r6, fp
	cmp	r3, r2
	str	r0, [sp, #44]
	bne	.L68
	b	.L15
.L29:
	mov	r7, #0
	ldr	r0, [r7]
	bl	le16_to_cpu
	ldr	r2, [sp, #56]
	ldr	r3, .L87+20
	ldr	r1, [sp, #52]
	sub	r8, r2, r0
	ldr	r3, [r3]
	add	r2, r6, fp
	cmp	r2, r1
	add	r8, r8, r3
	beq	.L85
	ldr	r3, .L87+8
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_cflag
	cmp	r0, #0
	bne	.L32
	ldr	r3, [sp, #44]
	ldr	r1, [r3]
	cmp	r1, #0
	bne	.L86
.L33:
	mov	r7, #0
	ldr	r2, [sp, #44]
	ldr	r3, [sp, #40]
	ldr	r0, [r7]
	str	r3, [r2]
	bl	le16_to_cpu
	ldr	r2, [sp, #44]
	ldr	r3, [r2]
	sub	r3, r0, r3
	str	r3, [r2, #4]
.L32:
	mov	r7, #0
	ldr	r0, [r7, #12]
	str	r7, [sp, #16]
	bl	le64_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #16]
	str	r3, [sp, #32]
	bl	XT_PUTPAGE
	mov	r0, r7
	str	r7, [sp]
	ldr	r7, [sp, #16]
	ldr	r3, [r9]
	mov	r2, r7
	ldr	r1, [sp, #32]
	str	r0, [sp, #4]
	mov	r0, r5
	bl	XT_GETPAGE
	mov	r1, r5
	mov	r0, r7
	bl	BT_MARK_DIRTY
	ldr	r3, .L87+8
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_cflag
	cmp	r0, #0
	movne	r9, r8
	bne	.L34
	ldr	r2, .L87+32
	ldr	r3, .L87+36
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #0
	orr	r3, r1, r3
	ldr	r0, [sp, #12]
	mov	r1, r5
	bl	txLock
	mov	r9, r8
	str	r0, [sp, #44]
	b	.L34
.L86:
	ldr	r0, [sp, #40]
	bl	min
	str	r0, [sp, #40]
	b	.L33
.L82:
	mov	r0, r7
	bl	XT_PUTPAGE
	ldr	r0, [r5]
	ldr	r1, .L87+72
	bl	jfs_error
	ldr	r3, .L87+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L71:
	bl	__stack_chk_fail
.L85:
	ldr	r8, [sp, #40]
	b	.L15
.L23:
	mov	r7, #0
	ldr	r3, [sp, #40]
	ldr	r2, .L87+40
	ldr	r1, [sp, #48]
	ldr	r0, [r7, #16]
	ldr	r2, [r2]
	sub	r3, r3, r8
	sub	ip, r1, #4
	sub	r3, r3, #1
	add	r1, r0, r1
	lsl	r2, r3, r2
	add	r0, r0, ip
	bl	memcpy
	ldr	r0, [r7]
	bl	le16_to_cpu
	sub	r0, r0, #1
	bl	cpu_to_le16
	str	r0, [r7]
	b	.L15
.L84:
	mov	r7, #0
	ldr	r3, [sp, #40]
	ldr	r2, .L87+40
	ldr	ip, [sp, #36]
	ldr	r0, [r7, #16]
	sub	r3, r3, r8
	ldr	r2, [r2]
	sub	r3, r3, #1
	add	r1, ip, #4
	add	r1, r0, r1
	lsl	r2, r3, r2
	add	r0, r0, ip
	bl	memcpy
	b	.L16
.L83:
	ldr	r3, [sp, #24]
	mov	r0, r9
	add	r1, fp, r3
	bl	XADoffset
	ldr	r3, [sp, #20]
	mov	r0, r9
	sub	r1, r3, fp
	bl	XADlength
	ldr	r3, [sp, #48]
	mov	r0, r9
	add	r1, fp, r3
	bl	XADaddress
	b	.L15
.L88:
	.align	2
.L87:
	.word	.LC5
	.word	XT_INSERT
	.word	COMMIT_Nolink
	.word	.LC1
	.word	EIO
	.word	XTENTRYSTART
	.word	XAD_NOTRECORDED
	.word	.LC0
	.word	tlckXTREE
	.word	tlckGROW
	.word	L2XTSLOTSIZE
	.word	PSIZE
	.word	BT_INTERNAL
	.word	MAXXLEN
	.word	XAD_NEW
	.word	XAD_EXTENDED
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.size	xtUpdate, .-xtUpdate
	.comm	tlckXTREE,4,4
	.comm	tlckGROW,4,4
	.comm	XT_INSERT,4,4
	.comm	XTENTRYSTART,4,4
	.comm	XAD_NOTRECORDED,4,4
	.comm	XAD_NEW,4,4
	.comm	XAD_EXTENDED,4,4
	.comm	PSIZE,4,4
	.comm	MAXXLEN,4,4
	.comm	L2XTSLOTSIZE,4,4
	.comm	EIO,4,4
	.comm	COMMIT_Nolink,4,4
	.comm	BT_INTERNAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
