	.file	"extr_jfs_dmap.c_dbFindCtl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Corrupt dmapctl page\n"
.LC1:
	.string	"dmap inconsistent\n"
	.text
	.p2align 4
	.type	dbFindCtl, @function
dbFindCtl:
.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, 56
	.cfi_def_cfa_offset 112
	mov	ebp, DWORD PTR [rcx]
	mov	DWORD PTR 28[rsp], edx
	mov	QWORD PTR 16[rsp], rcx
	mov	rbx, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rbx
	xor	ebx, ebx
	test	edx, edx
	js	.L2
	lea	rax, 36[rsp]
	mov	r13, rdi
	mov	r14d, esi
	mov	ebx, edx
	mov	QWORD PTR 8[rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r15, QWORD PTR [rax]
	mov	edi, DWORD PTR CTLLEAFIND[rip]
	mov	eax, DWORD PTR [r15]
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR 8[r15]
	mov	QWORD PTR [rsp], rax
	call	cpu_to_le32@PLT
	cmp	QWORD PTR [rsp], rax
	jne	.L14
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, r15
	mov	esi, r14d
	call	dbFindLeaf@PLT
	mov	rdi, r12
	mov	r15d, eax
	call	release_metapage@PLT
	test	r15d, r15d
	jne	.L15
	mov	edx, DWORD PTR 24[rsp]
	mov	eax, DWORD PTR 36[rsp]
	mov	ecx, edx
	sal	eax, cl
	add	ebp, eax
	cmp	edx, r14d
	jle	.L2
	sub	ebx, 1
	cmp	ebx, -1
	je	.L2
.L8:
	mov	esi, DWORD PTR 8[r13]
	mov	edx, ebx
	mov	edi, ebp
	call	BLKTOCTL@PLT
	mov	edx, DWORD PTR PSIZE[rip]
	mov	rdi, QWORD PTR 0[r13]
	xor	ecx, ecx
	mov	esi, eax
	call	read_metapage@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L3
.L12:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 56
	.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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR [rax], ebp
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	jfs_error@PLT
	mov	rdi, r12
	call	release_metapage@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	DWORD PTR 28[rsp], ebx
	je	.L7
	mov	rax, QWORD PTR 0[r13]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR [rax]
	call	jfs_error@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR ENOSPC[rip]
	neg	eax
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dbFindCtl, .-dbFindCtl
	.comm	PSIZE,4,4
	.comm	ENOSPC,4,4
	.comm	EIO,4,4
	.comm	CTLLEAFIND,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_dmap.c_dbFindCtl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Corrupt dmapctl page\012\000"
	.align	2
.LC1:
	.ascii	"dmap inconsistent\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dbFindCtl, %function
dbFindCtl:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r5, r2, #0
	sub	sp, sp, #20
	ldr	r2, .L18
	str	r3, [sp]
	str	r5, [sp, #4]
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldr	r6, [r3]
	blt	.L2
	mov	r8, r0
	mov	r9, r1
	b	.L8
.L3:
	ldr	r3, .L18+4
	ldr	r7, [r4]
	ldr	r0, [r3]
	ldm	r7, {r10, fp}
	bl	cpu_to_le32
	cmp	fp, r0
	bne	.L15
	mov	r0, r7
	mov	r1, r9
	add	r2, sp, #8
	bl	dbFindLeaf
	mov	r7, r0
	mov	r0, r4
	bl	release_metapage
	cmp	r7, #0
	bne	.L16
	ldr	r3, [sp, #8]
	cmp	r10, r9
	add	r6, r6, r3, lsl r10
	ble	.L2
	subs	r5, r5, #1
	bcc	.L2
.L8:
	mov	r2, r5
	ldr	r1, [r8, #4]
	mov	r0, r6
	bl	BLKTOCTL
	ldr	r2, .L18+8
	mov	r1, r0
	mov	r3, #0
	ldr	r2, [r2]
	ldr	r0, [r8]
	bl	read_metapage
	subs	r4, r0, #0
	bne	.L3
.L13:
	ldr	r3, .L18+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [sp]
	mov	r0, #0
	str	r6, [r3]
	b	.L1
.L15:
	ldr	r3, [r8]
	ldr	r1, .L18+16
	ldr	r0, [r3]
	bl	jfs_error
	mov	r0, r4
	bl	release_metapage
	ldr	r3, .L18+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L16:
	ldr	r3, [sp, #4]
	cmp	r3, r5
	beq	.L7
	ldr	r3, [r8]
	ldr	r1, .L18+20
	ldr	r0, [r3]
	bl	jfs_error
	b	.L13
.L7:
	ldr	r3, .L18+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	CTLLEAFIND
	.word	PSIZE
	.word	EIO
	.word	.LC0
	.word	.LC1
	.word	ENOSPC
	.size	dbFindCtl, .-dbFindCtl
	.comm	PSIZE,4,4
	.comm	ENOSPC,4,4
	.comm	EIO,4,4
	.comm	CTLLEAFIND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
