	.file	"extr_jfs_imap.c_diExtendFS.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"diExtendFS: nextiag:%d numinos:%d numfree:%d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"unexpected value of iagnum\n"
.LC2:
	.string	"numinos or numfree incorrect\n"
	.text
	.p2align 4
	.globl	diExtendFS
	.type	diExtendFS, @function
diExtendFS:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 40[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	JFS_IP@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r12, QWORD PTR [rax]
	call	JFS_SBI@PLT
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 4[r12]
	mov	rdi, rax
	mov	QWORD PTR 56[rsp], rax
	call	atomic_read@PLT
	mov	r13d, eax
	lea	rax, 8[r12]
	mov	rdi, rax
	mov	QWORD PTR 48[rsp], rax
	call	atomic_read@PLT
	mov	esi, DWORD PTR [r12]
	mov	ecx, r13d
	lea	rdi, .LC0[rip]
	mov	edx, eax
	call	jfs_info@PLT
	mov	edx, DWORD PTR MAXAG[rip]
	test	edx, edx
	jle	.L2
	mov	rax, QWORD PTR 16[r12]
	sub	edx, 1
	lea	rdx, 3[rdx+rdx*2]
	lea	rdx, [rax+rdx*8]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR [rax], -1
	add	rax, 24
	mov	DWORD PTR -20[rax], -1
	mov	QWORD PTR -8[rax], 0
	mov	QWORD PTR -16[rax], 0
	cmp	rax, rdx
	jne	.L3
.L2:
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 36[rsp], 0
	mov	DWORD PTR 32[rsp], 0
	test	eax, eax
	jle	.L20
	lea	rax, 80[rsp]
	mov	DWORD PTR 4[rsp], 0
	xor	ebp, ebp
	lea	r15, 72[rsp]
	mov	QWORD PTR 16[rsp], rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rax, QWORD PTR 72[rsp]
	mov	rbx, QWORD PTR [rax]
	mov	rdi, QWORD PTR [rbx]
	call	le32_to_cpu@PLT
	cmp	eax, ebp
	jne	.L29
	mov	edi, DWORD PTR EXTSPERIAG[rip]
	mov	r13, QWORD PTR 8[rbx]
	call	cpu_to_le32@PLT
	cmp	r13, rax
	je	.L30
	mov	edi, DWORD PTR 56[rbx]
	call	le64_to_cpu@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR [rsi]
	sar	eax, cl
	movsx	r14, eax
	mov	edi, r14d
	sal	edi, cl
	call	cpu_to_le64@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	r13d, DWORD PTR EXTSPERIAG[rip]
	mov	DWORD PTR 56[rbx], eax
	call	le32_to_cpu@PLT
	mov	ecx, DWORD PTR L2INOSPEREXT[rip]
	sub	r13d, eax
	sal	r13d, cl
	test	r13d, r13d
	jle	.L9
	movsx	rax, r14d
	movsx	rcx, r13d
	add	DWORD PTR 32[rsp], r13d
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 16[r12]
	add	QWORD PTR 16[rax+rdx*8], rcx
.L9:
	mov	rdi, QWORD PTR 16[rbx]
	call	le32_to_cpu@PLT
	test	eax, eax
	jle	.L10
	mov	rdx, QWORD PTR 16[r12]
	movsx	rax, r14d
	lea	rax, [rax+rax*2]
	mov	r8d, DWORD PTR [rdx+rax*8]
	lea	r13, 0[0+rax*8]
	cmp	r8d, -1
	je	.L31
	mov	rdx, QWORD PTR 16[rsp]
	mov	esi, r8d
	mov	rdi, r12
	mov	DWORD PTR 24[rsp], r8d
	call	diIAGRead@PLT
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR 80[rsp]
	mov	rdx, QWORD PTR [rbx]
	mov	r8d, DWORD PTR 24[rsp]
	mov	rax, QWORD PTR [rax]
	mov	edi, r8d
	mov	QWORD PTR 24[rax], rdx
	call	cpu_to_le32@PLT
	mov	edi, -1
	mov	QWORD PTR 48[rbx], rax
	call	cpu_to_le32@PLT
	mov	rdi, QWORD PTR 80[rsp]
	mov	QWORD PTR 24[rbx], rax
	call	write_metapage@PLT
.L12:
	mov	rdx, QWORD PTR 16[r12]
	mov	rdi, QWORD PTR [rbx]
	add	rdx, r13
	mov	QWORD PTR 24[rsp], rdx
	call	le32_to_cpu@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rbx]
	mov	DWORD PTR [rdx], eax
	call	le32_to_cpu@PLT
	add	r13, QWORD PTR 16[r12]
	mov	rdi, QWORD PTR 16[rbx]
	cdqe
	add	QWORD PTR 8[r13], rax
	call	le32_to_cpu@PLT
	add	DWORD PTR 36[rsp], eax
.L10:
	mov	rdi, QWORD PTR 8[rbx]
	call	le32_to_cpu@PLT
	test	eax, eax
	jle	.L13
	lea	r13, [r14+r14*2]
	mov	rax, QWORD PTR 16[r12]
	sal	r13, 3
	mov	r14d, DWORD PTR 4[rax+r13]
	cmp	r14d, -1
	je	.L32
	mov	rdx, QWORD PTR 16[rsp]
	mov	esi, r14d
	mov	rdi, r12
	call	diIAGRead@PLT
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR 80[rsp]
	mov	rdx, QWORD PTR [rbx]
	mov	edi, r14d
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 32[rax], rdx
	call	cpu_to_le32@PLT
	mov	edi, -1
	mov	QWORD PTR 40[rbx], rax
	call	cpu_to_le32@PLT
	mov	rdi, QWORD PTR 80[rsp]
	mov	QWORD PTR 32[rbx], rax
	call	write_metapage@PLT
.L15:
	mov	rdi, QWORD PTR [rbx]
	add	r13, QWORD PTR 16[r12]
	call	le32_to_cpu@PLT
	mov	DWORD PTR 4[r13], eax
.L13:
	mov	rdi, QWORD PTR 72[rsp]
	call	write_metapage@PLT
.L5:
	add	ebp, 1
	cmp	DWORD PTR [r12], ebp
	jle	.L4
.L16:
	mov	rdx, r15
	mov	esi, ebp
	mov	rdi, r12
	call	diIAGRead@PLT
	test	eax, eax
	je	.L33
	mov	DWORD PTR 4[rsp], eax
	add	ebp, 1
	cmp	DWORD PTR [r12], ebp
	jg	.L16
.L4:
	mov	rdi, QWORD PTR 48[rsp]
	call	atomic_read@PLT
	cmp	eax, DWORD PTR 32[rsp]
	je	.L17
.L18:
	lea	rsi, .LC2[rip]
.L27:
	mov	rax, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR [rax]
	call	jfs_error@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	mov	DWORD PTR 4[rsp], eax
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	mov	eax, DWORD PTR 4[rsp]
	add	rsp, 104
	.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
.L23:
	.cfi_restore_state
	mov	DWORD PTR 4[rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, QWORD PTR 72[rsp]
	call	release_metapage@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, -1
	call	cpu_to_le32@PLT
	mov	edi, -1
	mov	QWORD PTR 48[rbx], rax
	call	cpu_to_le32@PLT
	mov	QWORD PTR 24[rbx], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edi, -1
	call	cpu_to_le32@PLT
	mov	edi, -1
	mov	QWORD PTR 40[rbx], rax
	call	cpu_to_le32@PLT
	mov	QWORD PTR 32[rbx], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, QWORD PTR 56[rsp]
	call	atomic_read@PLT
	cmp	eax, DWORD PTR 36[rsp]
	jne	.L18
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, QWORD PTR 72[rsp]
	call	release_metapage@PLT
	lea	rsi, .LC1[rip]
	jmp	.L27
.L20:
	mov	DWORD PTR 4[rsp], 0
	jmp	.L4
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	diExtendFS, .-diExtendFS
	.comm	MAXAG,4,4
	.comm	L2INOSPEREXT,4,4
	.comm	EXTSPERIAG,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_diExtendFS.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"diExtendFS: nextiag:%d numinos:%d numfree:%d\000"
	.align	2
.LC1:
	.ascii	"unexpected value of iagnum\012\000"
	.align	2
.LC2:
	.ascii	"numinos or numfree incorrect\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	diExtendFS
	.syntax unified
	.arm
	.fpu softvfp
	.type	diExtendFS, %function
diExtendFS:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L34
	sub	sp, sp, #44
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	str	r0, [sp, #12]
	bl	JFS_IP
	ldr	r6, [r0]
	ldr	r0, [r4]
	bl	JFS_SBI
	mov	r3, r6
	ldr	r5, [r3], #8
	ldr	fp, [r0]
	mov	r0, r3
	str	r3, [sp, #16]
	bl	atomic_read
	add	r3, r6, #4
	mov	r4, r0
	mov	r0, r3
	str	r3, [sp, #20]
	bl	atomic_read
	mov	r2, r4
	mov	r3, r0
	mov	r1, r5
	ldr	r0, .L34+4
	bl	jfs_info
	ldr	r3, .L34+8
	ldr	r0, [r3]
	cmp	r0, #0
	ble	.L2
	mvn	r1, #0
	mov	r2, #0
	ldr	r3, [r6, #12]
	add	r0, r3, r0, lsl #4
.L3:
	str	r1, [r3]
	str	r1, [r3, #4]
	str	r2, [r3, #12]
	str	r2, [r3, #8]
	add	r3, r3, #16
	cmp	r0, r3
	bne	.L3
.L2:
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L20
	mov	r3, #0
	mov	r8, r3
	mov	r5, r3
	stm	sp, {r3, r8}
	ldr	r9, .L34+12
	b	.L16
.L32:
	ldr	r3, [sp, #28]
	ldr	r4, [r3]
	ldr	r0, [r4]
	bl	le32_to_cpu
	cmp	r0, r5
	bne	.L28
	ldr	r0, [r9]
	ldr	r7, [r4, #4]
	bl	cpu_to_le32
	cmp	r7, r0
	beq	.L29
	ldr	r0, [r4, #28]
	bl	le64_to_cpu
	ldr	r3, [fp]
	asr	r7, r0, r3
	lsl	r0, r7, r3
	bl	cpu_to_le64
	mov	r3, r0
	ldr	r0, [r4, #4]
	str	r3, [r4, #28]
	ldr	r10, [r9]
	bl	le32_to_cpu
	ldr	r3, .L34+16
	sub	r0, r10, r0
	ldr	r3, [r3]
	lsl	r0, r0, r3
	cmp	r0, #0
	ble	.L9
	ldr	r3, [r6, #12]
	ldr	r2, [sp]
	add	r3, r3, r7, lsl #4
	add	r2, r2, r0
	str	r2, [sp]
	ldr	r2, [r3, #12]
	add	r0, r2, r0
	str	r0, [r3, #12]
.L9:
	ldr	r0, [r4, #8]
	bl	le32_to_cpu
	cmp	r0, #0
	ble	.L10
	ldr	r3, [r6, #12]
	lsl	r2, r7, #4
	ldr	r10, [r3, r7, lsl #4]
	str	r2, [sp, #8]
	cmn	r10, #1
	beq	.L30
	mov	r1, r10
	mov	r0, r6
	add	r2, sp, #32
	bl	diIAGRead
	cmp	r0, #0
	bne	.L23
	ldr	r3, [sp, #32]
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, r10
	str	r2, [r3, #12]
	bl	cpu_to_le32
	mov	r3, r0
	mvn	r0, #0
	str	r3, [r4, #24]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [sp, #32]
	str	r3, [r4, #12]
	bl	write_metapage
.L12:
	ldr	r3, [r6, #12]
	ldr	r0, [r4]
	str	r3, [sp, #8]
	bl	le32_to_cpu
	ldr	r3, [sp, #8]
	str	r0, [r3, r7, lsl #4]
	ldr	r0, [r4, #8]
	bl	le32_to_cpu
	mov	r2, r0
	ldr	r3, [r6, #12]
	lsl	r1, r7, #4
	add	r10, r3, r1
	ldr	r3, [r10, #8]
	ldr	r0, [r4, #8]
	add	r3, r3, r2
	str	r3, [r10, #8]
	bl	le32_to_cpu
	ldr	r3, [sp, #4]
	add	r3, r3, r0
	str	r3, [sp, #4]
.L10:
	ldr	r0, [r4, #4]
	bl	le32_to_cpu
	cmp	r0, #0
	ble	.L13
	ldr	r0, [r6, #12]
	lsl	r10, r7, #4
	add	r7, r0, r7, lsl #4
	ldr	r7, [r7, #4]
	cmn	r7, #1
	beq	.L31
	mov	r1, r7
	mov	r0, r6
	add	r2, sp, #32
	bl	diIAGRead
	cmp	r0, #0
	bne	.L23
	ldr	r3, [sp, #32]
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, r7
	str	r2, [r3, #16]
	bl	cpu_to_le32
	mov	r3, r0
	mvn	r0, #0
	str	r3, [r4, #20]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [sp, #32]
	str	r3, [r4, #16]
	bl	write_metapage
.L15:
	ldr	r3, [r6, #12]
	ldr	r0, [r4]
	add	r10, r3, r10
	bl	le32_to_cpu
	str	r0, [r10, #4]
.L13:
	ldr	r0, [sp, #28]
	bl	write_metapage
.L5:
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	ble	.L4
.L16:
	mov	r1, r5
	mov	r0, r6
	add	r2, sp, #28
	bl	diIAGRead
	cmp	r0, #0
	beq	.L32
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	mov	r8, r0
	bgt	.L16
.L4:
	ldr	r0, [sp, #16]
	bl	atomic_read
	ldr	r3, [sp]
	cmp	r0, r3
	beq	.L17
.L18:
	ldr	r3, [sp, #12]
	ldr	r1, .L34+20
	ldr	r0, [r3]
	bl	jfs_error
	ldr	r3, .L34+24
	ldr	r8, [r3]
	rsb	r8, r8, #0
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r8
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	mov	r8, r0
	b	.L13
.L29:
	ldr	r0, [sp, #28]
	bl	release_metapage
	b	.L5
.L30:
	mov	r0, r10
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r10
	str	r3, [r4, #24]
	bl	cpu_to_le32
	str	r0, [r4, #12]
	b	.L12
.L31:
	mov	r0, r7
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r7
	str	r3, [r4, #20]
	bl	cpu_to_le32
	str	r0, [r4, #16]
	b	.L15
.L17:
	ldr	r0, [sp, #20]
	bl	atomic_read
	ldr	r3, [sp, #4]
	cmp	r0, r3
	bne	.L18
	b	.L1
.L28:
	ldr	r0, [sp, #28]
	bl	release_metapage
	ldr	r3, [sp, #12]
	ldr	r1, .L34+28
	ldr	r0, [r3]
	bl	jfs_error
	ldr	r3, .L34+24
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L1
.L20:
	mov	r8, #0
	str	r8, [sp, #4]
	str	r8, [sp]
	b	.L4
.L33:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC3
	.word	.LC0
	.word	MAXAG
	.word	EXTSPERIAG
	.word	L2INOSPEREXT
	.word	.LC2
	.word	EIO
	.word	.LC1
	.size	diExtendFS, .-diExtendFS
	.comm	MAXAG,4,4
	.comm	L2INOSPEREXT,4,4
	.comm	EXTSPERIAG,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
