	.file	"extr_jfs_imap.c_diAlloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"diAlloc: can't find free bit in wmap"
	.text
	.p2align 4
	.globl	diAlloc
	.type	diAlloc, @function
diAlloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR 4[rdi]
	mov	DWORD PTR 40[rsp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	JFS_SBI@PLT
	mov	rbx, QWORD PTR 16[rax]
	mov	rdi, rbx
	call	JFS_IP@PLT
	mov	rdi, r12
	mov	r14, QWORD PTR 16[rax]
	call	JFS_IP@PLT
	mov	rdi, r12
	mov	QWORD PTR 8[rax], rbx
	call	JFS_IP@PLT
	mov	edx, DWORD PTR FILESYSTEM_I[rip]
	mov	DWORD PTR 4[rax], edx
	test	ebp, ebp
	jne	.L48
	mov	rdi, r15
	call	JFS_IP@PLT
	mov	edi, DWORD PTR 4[r15]
	movsx	rbp, DWORD PTR [rax]
	call	JFS_SBI@PLT
	mov	rax, QWORD PTR 8[rax]
	mov	r13, rbp
	mov	rax, QWORD PTR [rax]
	lea	rdi, [rax+rbp*4]
	call	atomic_read@PLT
	test	rax, rax
	jne	.L48
	mov	edx, DWORD PTR INOSPERIAG[rip]
	mov	eax, DWORD PTR [r15]
	mov	rdi, r14
	lea	esi, -1[rdx]
	lea	r15d, 1[rax]
	and	esi, r15d
	mov	DWORD PTR 12[rsp], esi
	mov	esi, ebp
	cmove	r15d, eax
	call	AG_LOCK@PLT
	mov	esi, DWORD PTR RDWRLOCK_IMAP[rip]
	mov	rdi, rbx
	call	IREAD_LOCK@PLT
	mov	edi, r15d
	call	INOTOIAG@PLT
	lea	rdx, 48[rsp]
	mov	rdi, r14
	mov	esi, eax
	mov	DWORD PTR 44[rsp], eax
	call	diIAGRead@PLT
	test	eax, eax
	jne	.L53
	mov	rax, QWORD PTR 48[rsp]
	mov	r15, QWORD PTR [rax]
	mov	rax, QWORD PTR [r14]
	cmp	DWORD PTR [rax+rbp*4], 31
	jg	.L8
	cmp	QWORD PTR 40[r15], 0
	je	.L8
	mov	DWORD PTR 24[rsp], 1
.L9:
	mov	ecx, DWORD PTR L2INOSPEREXT[rip]
	mov	ebp, DWORD PTR 12[rsp]
	mov	rax, QWORD PTR 24[r15]
	sar	ebp, cl
	movsx	rdx, ebp
	lea	rdi, [rax+rdx*4]
	mov	QWORD PTR 16[rsp], rdx
	call	addressPXD@PLT
	mov	rdx, QWORD PTR 16[rsp]
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR SMAPSZ[rip]
	mov	esi, DWORD PTR EXTSPERSUM[rip]
	mov	DWORD PTR 28[rsp], eax
.L11:
	lea	eax, -1[rsi]
	and	eax, ebp
	je	.L16
	add	DWORD PTR 28[rsp], 1
	sub	esi, eax
.L16:
	mov	ecx, DWORD PTR L2EXTSPERSUM[rip]
	mov	eax, DWORD PTR ONES[rip]
	sar	ebp, cl
	mov	ecx, esi
	sal	eax, cl
	movsx	rcx, ebp
	mov	DWORD PTR 16[rsp], eax
	mov	rax, QWORD PTR 8[r15]
	mov	QWORD PTR 32[rsp], rcx
	mov	edi, DWORD PTR [rax+rcx*4]
	call	le32_to_cpu@PLT
	mov	ecx, DWORD PTR 16[rsp]
	or	ecx, eax
	mov	rax, QWORD PTR [r15]
	mov	DWORD PTR 12[rsp], ecx
	mov	rcx, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR [rax+rcx*4]
	call	le32_to_cpu@PLT
	mov	edx, DWORD PTR 28[rsp]
	or	eax, DWORD PTR 16[rsp]
	test	edx, edx
	jle	.L17
	cmp	DWORD PTR 12[rsp], -1
	jne	.L18
	movzx	edx, BYTE PTR 24[rsp]
	and	edx, 1
	mov	BYTE PTR 32[rsp], dl
	cmp	eax, -1
	je	.L35
	test	dl, dl
	jne	.L19
.L35:
	xor	esi, esi
	.p2align 4,,10
	.p2align 3
.L42:
	mov	eax, DWORD PTR SMAPSZ[rip]
	sub	eax, 1
	cmp	eax, ebp
	je	.L34
	add	ebp, 1
	movsx	rcx, ebp
	sal	rcx, 2
.L28:
	mov	rax, QWORD PTR 8[r15]
	mov	DWORD PTR 24[rsp], esi
	mov	QWORD PTR 16[rsp], rcx
	mov	edi, DWORD PTR [rax+rcx]
	call	le32_to_cpu@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR [rax+rcx]
	call	le32_to_cpu@PLT
	mov	esi, DWORD PTR 24[rsp]
	add	esi, 1
	cmp	DWORD PTR 28[rsp], esi
	je	.L17
	cmp	DWORD PTR 12[rsp], -1
	jne	.L18
	cmp	eax, -1
	je	.L42
	cmp	BYTE PTR 32[rsp], 0
	je	.L42
.L19:
	xor	esi, esi
	mov	edi, eax
	call	diFindFree@PLT
	mov	ecx, DWORD PTR L2EXTSPERSUM[rip]
	mov	edx, ebp
	mov	rsi, r15
	mov	rdi, r14
	sal	edx, cl
	lea	ebp, [rdx+rax]
	mov	edx, ebp
	call	diNewExt@PLT
	mov	r9d, eax
	test	eax, eax
	je	.L26
	add	eax, DWORD PTR ENOSPC[rip]
	je	.L17
	mov	eax, r9d
	xor	edi, edi
	add	eax, DWORD PTR EIO[rip]
	mov	DWORD PTR 12[rsp], r9d
	sete	dil
	call	assert@PLT
	mov	r9d, DWORD PTR 12[rsp]
.L27:
	mov	rdi, QWORD PTR 48[rsp]
	mov	DWORD PTR 12[rsp], r9d
	call	release_metapage@PLT
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	QWORD PTR 32[r15], 0
	jne	.L32
.L17:
	mov	rdi, rbx
	call	IREAD_UNLOCK@PLT
	mov	rdi, QWORD PTR 48[rsp]
	call	release_metapage@PLT
.L3:
	mov	edx, DWORD PTR 40[rsp]
	mov	rcx, r12
	mov	esi, r13d
	mov	rdi, r14
	call	diAllocAG@PLT
	mov	esi, r13d
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], eax
	call	AG_UNLOCK@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	eax, r9d
	add	eax, DWORD PTR ENOSPC[rip]
	je	.L54
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L55
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r9d
	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
.L48:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r15]
	call	JFS_SBI@PLT
	mov	edi, DWORD PTR [rax]
	call	dbNextAG@PLT
	mov	rdi, r14
	mov	esi, eax
	mov	r13d, eax
	call	AG_LOCK@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L54:
	mov	edx, DWORD PTR 40[rsp]
	mov	rcx, r12
	mov	esi, r13d
	mov	rdi, r14
	call	diAllocAny@PLT
	mov	r9d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L53:
	mov	DWORD PTR 12[rsp], eax
.L49:
	mov	rdi, rbx
	call	IREAD_UNLOCK@PLT
	mov	esi, r13d
	mov	rdi, r14
	call	AG_UNLOCK@PLT
	mov	r9d, DWORD PTR 12[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	xor	ebp, ebp
	xor	ecx, ecx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L32:
	mov	DWORD PTR 24[rsp], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR INOSPEREXT[rip]
	lea	esi, -1[rax]
	mov	rax, QWORD PTR 16[r15]
	and	esi, DWORD PTR 12[rsp]
	mov	DWORD PTR 12[rsp], esi
	mov	edi, DWORD PTR [rax+rdx*4]
	call	le32_to_cpu@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	edi, eax
	call	diFindFree@PLT
	cmp	DWORD PTR INOSPEREXT[rip], eax
	jg	.L23
	mov	eax, DWORD PTR SMAPSZ[rip]
	mov	ecx, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR EXTSPERSUM[rip]
	mov	DWORD PTR 28[rsp], eax
	test	ecx, ecx
	jne	.L11
	mov	eax, DWORD PTR EXTSPERIAG[rip]
	sub	eax, 1
	cmp	eax, ebp
	je	.L33
	add	ebp, 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR 12[rsp]
	xor	esi, esi
	call	diFindFree@PLT
	mov	ecx, DWORD PTR L2EXTSPERSUM[rip]
	mov	edx, ebp
	sal	edx, cl
	lea	ebp, [rdx+rax]
	mov	rax, QWORD PTR 16[r15]
	movsx	rdx, ebp
	mov	edi, DWORD PTR [rax+rdx*4]
	call	le32_to_cpu@PLT
	xor	esi, esi
	mov	edi, eax
	call	diFindFree@PLT
	cmp	DWORD PTR INOSPEREXT[rip], eax
	jg	.L23
	mov	rdi, rbx
	call	IREAD_UNLOCK@PLT
	mov	rdi, QWORD PTR 48[rsp]
	call	release_metapage@PLT
	mov	esi, r13d
	mov	rdi, r14
	call	AG_UNLOCK@PLT
	mov	edi, DWORD PTR 4[r12]
	lea	rsi, .LC0[rip]
	call	jfs_error@PLT
	mov	r9d, DWORD PTR EIO[rip]
	neg	r9d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	ecx, DWORD PTR L2INOSPEREXT[rip]
	mov	edx, ebp
	mov	rsi, r15
	mov	rdi, r14
	sal	edx, cl
	add	edx, eax
	mov	DWORD PTR 16[rsp], edx
	call	diAllocBit@PLT
	mov	rdi, rbx
	mov	DWORD PTR 12[rsp], eax
	call	IREAD_UNLOCK@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR 16[rsp]
	test	r9d, r9d
	jne	.L56
	mov	esi, DWORD PTR 44[rsp]
	mov	r8, r15
	mov	ecx, ebp
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], r9d
	call	diInitInode@PLT
	mov	rdi, QWORD PTR 48[rsp]
	call	mark_metapage_dirty@PLT
	mov	r9d, DWORD PTR 12[rsp]
.L25:
	mov	rdi, QWORD PTR 48[rsp]
	mov	DWORD PTR 12[rsp], r9d
	call	release_metapage@PLT
	mov	esi, r13d
	mov	rdi, r14
	call	AG_UNLOCK@PLT
	mov	r9d, DWORD PTR 12[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L56:
	mov	eax, r9d
	xor	edi, edi
	add	eax, DWORD PTR EIO[rip]
	sete	dil
	call	assert@PLT
	mov	r9d, DWORD PTR 12[rsp]
	jmp	.L25
.L26:
	mov	ecx, DWORD PTR L2INOSPEREXT[rip]
	mov	esi, DWORD PTR 44[rsp]
	mov	edx, ebp
	mov	r8, r15
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], eax
	sal	edx, cl
	mov	ecx, ebp
	call	diInitInode@PLT
	mov	rdi, QWORD PTR 48[rsp]
	call	mark_metapage_dirty@PLT
	mov	r9d, DWORD PTR 12[rsp]
	jmp	.L27
.L33:
	xor	ebp, ebp
	jmp	.L16
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	diAlloc, .-diAlloc
	.comm	SMAPSZ,4,4
	.comm	RDWRLOCK_IMAP,4,4
	.comm	ONES,4,4
	.comm	L2INOSPEREXT,4,4
	.comm	L2EXTSPERSUM,4,4
	.comm	INOSPERIAG,4,4
	.comm	INOSPEREXT,4,4
	.comm	FILESYSTEM_I,4,4
	.comm	EXTSPERSUM,4,4
	.comm	EXTSPERIAG,4,4
	.comm	ENOSPC,4,4
	.comm	EIO,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_imap.c_diAlloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"diAlloc: can't find free bit in wmap\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	diAlloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	diAlloc, %function
diAlloc:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L53
	sub	sp, sp, #44
	str	r1, [sp, #8]
	mov	r5, r0
	ldr	r0, [r0, #4]
	mov	r8, r2
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	JFS_SBI
	ldr	r10, [r0, #8]
	mov	r0, r10
	bl	JFS_IP
	mov	r3, r0
	mov	r0, r8
	ldr	r9, [r3, #12]
	bl	JFS_IP
	mov	r3, r0
	mov	r0, r8
	str	r10, [r3, #8]
	bl	JFS_IP
	ldr	r3, .L53+4
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [r0, #4]
	bne	.L43
	mov	r0, r5
	bl	JFS_IP
	mov	r3, r0
	ldr	r0, [r5, #4]
	ldr	r7, [r3]
	bl	JFS_SBI
	ldr	r3, [r0, #4]
	lsl	r4, r7, #2
	ldr	r0, [r3]
	add	r0, r0, r7, lsl #2
	bl	atomic_read
	cmp	r0, #0
	bne	.L43
	ldr	r2, .L53+8
	ldr	r3, [r5]
	ldr	r6, [r2]
	add	r5, r3, #1
	sub	r6, r6, #1
	ands	r6, r6, r5
	moveq	r5, r3
	mov	r1, r7
	mov	r0, r9
	bl	AG_LOCK
	ldr	r3, .L53+12
	mov	r0, r10
	ldr	r1, [r3]
	bl	IREAD_LOCK
	mov	r0, r5
	bl	INOTOIAG
	add	r2, sp, #32
	mov	r1, r0
	str	r0, [sp, #16]
	mov	r0, r9
	bl	diIAGRead
	subs	r5, r0, #0
	bne	.L44
	ldr	r2, [r9]
	ldr	r3, [sp, #32]
	ldr	r2, [r2, r4]
	ldr	fp, [r3]
	cmp	r2, #31
	bgt	.L8
	ldr	r2, [fp, #20]
	cmp	r2, #0
	beq	.L8
	mov	r3, #1
	str	r3, [sp, #20]
.L9:
	ldr	r3, .L53+16
	ldr	r0, [fp, #12]
	ldr	r4, [r3]
	asr	r4, r6, r4
	add	r0, r0, r4, lsl #2
	bl	addressPXD
	cmp	r0, #0
	bne	.L10
	ldr	r1, .L53+20
	ldr	r2, .L53+24
	ldr	r3, [r1]
	ldr	r6, [r2]
	str	r3, [sp, #12]
.L11:
	sub	r2, r6, #1
	ands	r2, r2, r4
	ldrne	r3, [sp, #12]
	subne	r6, r6, r2
	addne	r3, r3, #1
	strne	r3, [sp, #12]
.L16:
	ldr	r3, .L53+28
	ldr	r2, .L53+32
	ldr	ip, [r3]
	ldr	r0, [fp, #4]
	asr	r4, r4, ip
	ldr	r2, [r2]
	ldr	r0, [r0, r4, lsl #2]
	lsl	r6, r2, r6
	str	r1, [sp, #24]
	bl	le32_to_cpu
	ldr	r2, [fp]
	orr	r5, r0, r6
	ldr	r0, [r2, r4, lsl #2]
	bl	le32_to_cpu
	ldr	r3, [sp, #12]
	ldr	r1, [sp, #24]
	cmp	r3, #0
	orr	r0, r0, r6
	ble	.L42
	cmn	r5, #1
	bne	.L18
	adds	r6, r0, #1
	movne	r6, #1
	ldr	r3, [sp, #20]
	ands	r6, r3, r6
	and	r3, r3, #1
	bne	.L19
	str	r7, [sp, #20]
	str	r9, [sp, #28]
	ldr	r7, [sp, #12]
	mov	r9, r1
	str	r8, [sp, #12]
	str	r10, [sp, #24]
	mov	r8, fp
	mov	fp, r3
	b	.L20
.L28:
	cmn	r5, #1
	bne	.L48
	adds	r3, r0, #1
	movne	r3, #1
	tst	fp, r3
	bne	.L49
.L20:
	ldr	r3, [r9]
	ldr	r0, [r8, #4]
	sub	r3, r3, #1
	cmp	r3, r4
	moveq	r4, #0
	moveq	r10, r4
	addne	r4, r4, #1
	lslne	r10, r4, #2
	ldr	r0, [r0, r10]
	bl	le32_to_cpu
	ldr	ip, [r8]
	mov	r5, r0
	add	r6, r6, #1
	ldr	r0, [ip, r10]
	bl	le32_to_cpu
	cmp	r7, r6
	bne	.L28
	ldr	r7, [sp, #20]
	ldr	r10, [sp, #24]
	ldr	r9, [sp, #28]
	ldr	r8, [sp, #12]
	ldr	r4, .L53+36
	b	.L17
.L8:
	ldr	r2, [fp, #16]
	cmp	r2, #0
	bne	.L31
.L42:
	ldr	r4, .L53+36
.L17:
	mov	r0, r10
	bl	IREAD_UNLOCK
	ldr	r0, [sp, #32]
	bl	release_metapage
.L3:
	mov	r3, r8
	mov	r1, r7
	ldr	r2, [sp, #8]
	mov	r0, r9
	bl	diAllocAG
	mov	r5, r0
	mov	r1, r7
	mov	r0, r9
	bl	AG_UNLOCK
	ldr	r3, [r4]
	cmn	r5, r3
	beq	.L50
.L1:
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L51
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L43:
	ldr	r0, [r5, #4]
	bl	JFS_SBI
	ldr	r0, [r0]
	bl	dbNextAG
	mov	r7, r0
	mov	r0, r9
	mov	r1, r7
	bl	AG_LOCK
	ldr	r4, .L53+36
	b	.L3
.L50:
	mov	r3, r8
	mov	r1, r7
	mov	r0, r9
	ldr	r2, [sp, #8]
	bl	diAllocAny
	mov	r5, r0
	b	.L1
.L49:
	mov	fp, r8
	ldr	r7, [sp, #20]
	ldr	r10, [sp, #24]
	ldr	r9, [sp, #28]
	ldr	r8, [sp, #12]
.L19:
	mov	r1, #0
	bl	diFindFree
	ldr	r3, .L53+28
	mov	r1, fp
	ldr	r2, [r3]
	add	r4, r0, r4, lsl r2
	mov	r2, r4
	mov	r0, r9
	bl	diNewExt
	subs	r5, r0, #0
	beq	.L25
	ldr	r4, .L53+36
	ldr	r3, [r4]
	cmn	r5, r3
	beq	.L17
	ldr	r3, .L53+40
	ldr	r3, [r3]
	cmn	r5, r3
	moveq	r0, #1
	movne	r0, #0
	bl	assert
.L26:
	ldr	r0, [sp, #32]
	bl	release_metapage
.L44:
	mov	r0, r10
	bl	IREAD_UNLOCK
	mov	r1, r7
	mov	r0, r9
	bl	AG_UNLOCK
	b	.L1
.L31:
	mov	r3, #0
	str	r3, [sp, #20]
	b	.L9
.L10:
	ldr	r5, .L53+44
	ldr	r2, [fp, #8]
	ldr	r1, [r5]
	ldr	r0, [r2, r4, lsl #2]
	sub	r1, r1, #1
	and	r6, r6, r1
	bl	le32_to_cpu
	mov	r1, r6
	bl	diFindFree
	ldr	r2, [r5]
	cmp	r2, r0
	bgt	.L22
	ldr	r3, [sp, #20]
	ldr	r1, .L53+20
	ldr	r2, .L53+24
	cmp	r3, #0
	ldr	r3, [r1]
	ldr	r6, [r2]
	str	r3, [sp, #12]
	bne	.L11
	ldr	r2, .L53+48
	ldr	r2, [r2]
	sub	r2, r2, #1
	cmp	r2, r4
	beq	.L32
	add	r4, r4, #1
	b	.L11
.L48:
	mov	fp, r8
	ldr	r7, [sp, #20]
	ldr	r10, [sp, #24]
	ldr	r9, [sp, #28]
	ldr	r8, [sp, #12]
.L18:
	mov	r1, #0
	mov	r0, r5
	bl	diFindFree
	ldr	r3, .L53+28
	ldr	r2, [fp, #8]
	ldr	r1, [r3]
	add	r4, r0, r4, lsl r1
	ldr	r0, [r2, r4, lsl #2]
	bl	le32_to_cpu
	mov	r1, #0
	bl	diFindFree
	ldr	r2, .L53+44
	ldr	r2, [r2]
	cmp	r2, r0
	bgt	.L22
	mov	r0, r10
	bl	IREAD_UNLOCK
	ldr	r0, [sp, #32]
	bl	release_metapage
	mov	r1, r7
	mov	r0, r9
	bl	AG_UNLOCK
	ldr	r0, [r8, #4]
	ldr	r1, .L53+52
	bl	jfs_error
	ldr	r3, .L53+40
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L22:
	ldr	r3, .L53+16
	mov	r1, fp
	ldr	r6, [r3]
	add	r6, r0, r4, lsl r6
	mov	r2, r6
	mov	r0, r9
	bl	diAllocBit
	mov	r5, r0
	mov	r0, r10
	bl	IREAD_UNLOCK
	cmp	r5, #0
	bne	.L52
	mov	r3, r4
	mov	r2, r6
	mov	r0, r8
	ldr	r1, [sp, #16]
	str	fp, [sp]
	bl	diInitInode
	ldr	r0, [sp, #32]
	bl	mark_metapage_dirty
.L24:
	ldr	r0, [sp, #32]
	bl	release_metapage
	mov	r1, r7
	mov	r0, r9
	bl	AG_UNLOCK
	b	.L1
.L52:
	ldr	r3, .L53+40
	ldr	r3, [r3]
	cmn	r5, r3
	moveq	r0, #1
	movne	r0, #0
	bl	assert
	b	.L24
.L25:
	ldr	r3, .L53+16
	mov	r0, r8
	ldr	r2, [r3]
	ldr	r1, [sp, #16]
	mov	r3, r4
	str	fp, [sp]
	lsl	r2, r4, r2
	bl	diInitInode
	ldr	r0, [sp, #32]
	bl	mark_metapage_dirty
	b	.L26
.L32:
	ldr	r4, [sp, #20]
	b	.L16
.L51:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	.LC1
	.word	FILESYSTEM_I
	.word	INOSPERIAG
	.word	RDWRLOCK_IMAP
	.word	L2INOSPEREXT
	.word	SMAPSZ
	.word	EXTSPERSUM
	.word	L2EXTSPERSUM
	.word	ONES
	.word	ENOSPC
	.word	EIO
	.word	INOSPEREXT
	.word	EXTSPERIAG
	.word	.LC0
	.size	diAlloc, .-diAlloc
	.comm	SMAPSZ,4,4
	.comm	RDWRLOCK_IMAP,4,4
	.comm	ONES,4,4
	.comm	L2INOSPEREXT,4,4
	.comm	L2EXTSPERSUM,4,4
	.comm	INOSPERIAG,4,4
	.comm	INOSPEREXT,4,4
	.comm	FILESYSTEM_I,4,4
	.comm	EXTSPERSUM,4,4
	.comm	EXTSPERIAG,4,4
	.comm	ENOSPC,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
