	.file	"extr_jfs_imap.c_diMount.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"diMount: kmalloc returned NULL!"
	.text
	.p2align 4
	.globl	diMount
	.type	diMount, @function
diMount:
.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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	QWORD PTR [rsp], rdi
	mov	edi, 56
	call	kmalloc@PLT
	test	rax, rax
	je	.L13
	mov	r15, QWORD PTR [rsp]
	mov	r12d, DWORD PTR PSIZE[rip]
	mov	rbp, rax
	mov	ebx, DWORD PTR IMAPBLKNO[rip]
	mov	edi, DWORD PTR [r15]
	call	JFS_SBI@PLT
	mov	esi, ebx
	mov	edx, r12d
	mov	rdi, r15
	mov	ecx, DWORD PTR [rax]
	sal	esi, cl
	xor	ecx, ecx
	call	read_metapage@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR 8[rsp]
	mov	r14, QWORD PTR [rax]
	mov	edi, DWORD PTR 28[r14]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 24[r14]
	mov	QWORD PTR 48[rbp], rax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 20[r14]
	mov	QWORD PTR 40[rbp], rax
	call	le32_to_cpu@PLT
	lea	rdi, 36[rbp]
	mov	rsi, rax
	call	atomic_set@PLT
	mov	edi, DWORD PTR 16[r14]
	call	le32_to_cpu@PLT
	lea	rdi, 32[rbp]
	mov	rsi, rax
	call	atomic_set@PLT
	mov	edi, DWORD PTR 12[r14]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 8[r14]
	mov	QWORD PTR 24[rbp], rax
	call	le32_to_cpu@PLT
	mov	edx, DWORD PTR MAXAG[rip]
	mov	QWORD PTR 16[rbp], rax
	test	edx, edx
	jle	.L5
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR [r14]
	mov	r12, r15
	mov	r13, QWORD PTR 8[rbp]
	mov	rbx, r15
	sal	r12, 4
	sal	rbx, 5
	add	r15, 1
	mov	edi, DWORD PTR 12[rax+r12]
	add	r13, rbx
	call	le32_to_cpu@PLT
	mov	QWORD PTR 24[r13], rax
	mov	rax, QWORD PTR [r14]
	mov	r13, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 8[rax+r12]
	add	r13, rbx
	call	le32_to_cpu@PLT
	mov	QWORD PTR 16[r13], rax
	mov	rax, QWORD PTR [r14]
	mov	r13, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 4[rax+r12]
	add	r13, rbx
	call	le32_to_cpu@PLT
	add	rbx, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[r13], rax
	mov	rax, QWORD PTR [r14]
	mov	edi, DWORD PTR [rax+r12]
	call	le32_to_cpu@PLT
	cmp	DWORD PTR MAXAG[rip], r15d
	mov	QWORD PTR [rbx], rax
	jg	.L6
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	call	release_metapage@PLT
	mov	rdi, rbp
	call	IAGFREE_LOCK_INIT@PLT
	mov	eax, DWORD PTR MAXAG[rip]
	test	eax, eax
	jle	.L7
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	AG_LOCK_INIT@PLT
	cmp	DWORD PTR MAXAG[rip], ebx
	jg	.L8
.L7:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, rax
	call	JFS_IP@PLT
	mov	QWORD PTR [rax], rbp
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L13:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	jfs_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	call	kfree@PLT
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	diMount, .-diMount
	.comm	PSIZE,4,4
	.comm	MAXAG,4,4
	.comm	IMAPBLKNO,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_diMount.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"diMount: kmalloc returned NULL!\000"
	.text
	.align	2
	.global	diMount
	.syntax unified
	.arm
	.fpu softvfp
	.type	diMount, %function
diMount:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L15
	mov	r9, r0
	ldr	r1, [r3]
	mov	r0, #32
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L13
	ldr	r3, .L15+4
	ldr	r0, [r9]
	ldr	r4, [r3]
	bl	JFS_SBI
	ldr	r2, .L15+8
	ldr	r1, [r0]
	mov	r3, #0
	mov	r0, r9
	ldr	r2, [r2]
	lsl	r1, r4, r1
	bl	read_metapage
	subs	r10, r0, #0
	beq	.L14
	ldr	r7, [r10]
	ldr	r8, .L15+12
	ldr	r0, [r7, #24]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [r7, #20]
	str	r3, [r5, #28]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [r7, #16]
	str	r3, [r5, #24]
	bl	le32_to_cpu
	mov	r1, r0
	add	r0, r5, #20
	bl	atomic_set
	ldr	r0, [r7, #12]
	bl	le32_to_cpu
	mov	r1, r0
	add	r0, r5, #16
	bl	atomic_set
	ldr	r0, [r7, #8]
	bl	le32_to_cpu
	str	r0, [r5, #12]
	ldr	r0, [r7, #4]
	bl	le32_to_cpu
	ldr	r3, [r8]
	str	r0, [r5, #8]
	cmp	r3, #0
	ble	.L5
	mov	r4, #0
.L6:
	ldr	r3, [r7]
	ldr	fp, [r5, #4]
	add	r3, r3, r4, lsl #4
	ldr	r0, [r3, #12]
	bl	le32_to_cpu
	ldr	r3, [r7]
	lsl	r6, r4, #4
	ldr	r2, [r5, #4]
	add	r3, r3, r6
	add	fp, fp, r4, lsl #4
	str	r0, [fp, #12]
	ldr	r0, [r3, #8]
	add	fp, r2, r6
	bl	le32_to_cpu
	ldr	r2, [r7]
	ldr	r3, [r5, #4]
	add	r2, r2, r6
	str	r0, [fp, #8]
	ldr	r0, [r2, #4]
	add	r6, r3, r6
	bl	le32_to_cpu
	ldr	r3, [r7]
	str	r0, [r6, #4]
	ldr	r0, [r3, r4, lsl #4]
	ldr	r6, [r5, #4]
	bl	le32_to_cpu
	ldr	r3, [r8]
	str	r0, [r6, r4, lsl #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L5:
	mov	r0, r10
	bl	release_metapage
	mov	r0, r5
	bl	IAGFREE_LOCK_INIT
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L7
	mov	r4, #0
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	AG_LOCK_INIT
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L8
.L7:
	mov	r0, r9
	str	r9, [r5]
	bl	JFS_IP
	mov	r3, r0
	mov	r0, #0
	str	r5, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r0, .L15+16
	bl	jfs_err
	ldr	r3, .L15+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r0, r5
	bl	kfree
	ldr	r3, .L15+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	GFP_KERNEL
	.word	IMAPBLKNO
	.word	PSIZE
	.word	MAXAG
	.word	.LC0
	.word	ENOMEM
	.word	EIO
	.size	diMount, .-diMount
	.comm	PSIZE,4,4
	.comm	MAXAG,4,4
	.comm	IMAPBLKNO,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
