	.file	"extr_inode.c_cramfs_readdir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cramfs_readdir, @function
cramfs_readdir:
.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	rax, QWORD PTR 8[rdi]
	mov	r15d, DWORD PTR [rdi]
	mov	QWORD PTR [rsp], rsi
	mov	r14, QWORD PTR [rax]
	mov	QWORD PTR 8[rsp], rdx
	xor	eax, eax
	cmp	DWORD PTR [r14], r15d
	jbe	.L1
	test	r15b, 3
	je	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	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
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r14]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r12, rdi
	mov	rdi, QWORD PTR CRAMFS_MAXPATHLEN[rip]
	mov	QWORD PTR 32[rsp], rax
	call	kmalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L4
	lea	r13, read_mutex[rip]
	cmp	r15d, DWORD PTR [r14]
	jnb	.L6
.L5:
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rax, QWORD PTR CRAMFS_MAXPATHLEN[rip]
	mov	rdi, r14
	lea	rbx, 8[rax]
	call	OFFSET@PLT
	mov	ecx, r15d
	mov	rdi, QWORD PTR 32[rsp]
	mov	rdx, rbx
	lea	rsi, [rcx+rax]
	mov	QWORD PTR 40[rsp], rcx
	call	cramfs_read@PLT
	mov	rdi, rbp
	mov	rbx, rax
	mov	eax, DWORD PTR [rax]
	lea	rsi, 8[rbx]
	lea	r10d, 0[0+rax*4]
	mov	edx, r10d
	mov	DWORD PTR 28[rsp], r10d
	call	memcpy@PLT
	mov	rdi, rbx
	call	CRAMINO@PLT
	mov	rdi, r13
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	ebx, eax
	call	mutex_unlock@PLT
	movsx	r10, DWORD PTR 28[rsp]
	mov	r8d, DWORD PTR 16[rsp]
	test	r10d, r10d
	je	.L9
	mov	rdx, r10
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L16:
	sub	rdx, 1
	test	edx, edx
	je	.L9
.L10:
	cmp	BYTE PTR -1[rbp+rdx], 0
	je	.L16
	mov	r9d, ebx
	mov	QWORD PTR 16[rsp], r10
	mov	rdi, QWORD PTR [rsp]
	mov	ecx, r15d
	sar	r9d, 12
	mov	rax, QWORD PTR 8[rsp]
	mov	rsi, rbp
	call	rax
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR 40[rsp]
	mov	r10, QWORD PTR 16[rsp]
	lea	rax, 8[r10+rax]
	mov	DWORD PTR [r12], eax
	mov	r15d, eax
	cmp	DWORD PTR [r14], eax
	ja	.L5
.L6:
	mov	rdi, rbp
	call	kfree@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	kfree@PLT
	mov	eax, DWORD PTR EIO[rip]
	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
	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
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cramfs_readdir, .-cramfs_readdir
	.comm	read_mutex,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	CRAMFS_MAXPATHLEN,8,8
	.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_inode.c_cramfs_readdir.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cramfs_readdir, %function
cramfs_readdir:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	sub	sp, sp, #36
	ldr	r5, [r0]
	ldr	fp, [r4]
	str	r1, [sp, #12]
	ldr	r1, [r5]
	str	r2, [sp, #16]
	cmp	r1, fp
	movls	r0, #0
	bls	.L1
	tst	fp, #3
	beq	.L3
	ldr	r3, .L22
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r2, .L22+4
	ldr	r10, .L22+8
	ldr	r3, [r5, #4]
	ldr	r1, [r2]
	ldr	r0, [r10]
	str	r3, [sp, #20]
	bl	kmalloc
	subs	r6, r0, #0
	beq	.L4
	ldr	r2, [r5]
	cmp	fp, r2
	bcs	.L6
	ldr	r8, .L22+12
	str	r4, [sp, #28]
.L5:
	mov	r0, r8
	bl	mutex_lock
	mov	r0, r5
	bl	OFFSET
	ldr	r2, [r10]
	add	r1, r0, fp
	add	r2, r2, #8
	ldr	r0, [sp, #20]
	bl	cramfs_read
	mov	r1, r0
	mov	r7, r0
	ldr	r2, [r1], #8
	mov	r0, r6
	lsl	r9, r2, #2
	mov	r2, r9
	bl	memcpy
	mov	r0, r7
	bl	CRAMINO
	mov	r4, r0
	mov	r0, r8
	ldr	r7, [r7, #4]
	bl	mutex_unlock
	cmp	r9, #0
	beq	.L9
	str	r9, [sp, #24]
	add	r3, r6, r9
	b	.L10
.L21:
	subs	r9, r9, #1
	beq	.L9
.L10:
	ldrb	r2, [r3, #-1]!	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L21
	asr	r7, r7, #12
	mov	r2, r9
	mov	r3, fp
	mov	r1, r6
	stm	sp, {r4, r7}
	ldr	r0, [sp, #12]
	ldr	ip, [sp, #16]
	blx	ip
	cmp	r0, #0
	bne	.L6
	ldr	r3, [sp, #24]
	add	r9, r3, #8
	ldr	r3, [r5]
	add	fp, fp, r9
	cmp	r3, fp
	ldr	r3, [sp, #28]
	str	fp, [r3]
	bhi	.L5
.L6:
	mov	r0, r6
	bl	kfree
	mov	r0, #0
	b	.L1
.L9:
	mov	r0, r6
	bl	kfree
	ldr	r3, .L22+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, .L22+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L23:
	.align	2
.L22:
	.word	EINVAL
	.word	GFP_KERNEL
	.word	CRAMFS_MAXPATHLEN
	.word	read_mutex
	.word	EIO
	.word	ENOMEM
	.size	cramfs_readdir, .-cramfs_readdir
	.comm	read_mutex,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	CRAMFS_MAXPATHLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
