	.file	"extr_vfs_dir.c_v9fs_dir_readdir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"name %s\n"
.LC1:
	.string	"returned %d\n"
	.text
	.p2align 4
	.type	v9fs_dir_readdir, @function
v9fs_dir_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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 16[rsp], rsi
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 24[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 24[rdi]
	mov	edi, DWORD PTR P9_DEBUG_VFS[rip]
	mov	edx, DWORD PTR [rax]
	call	P9_DPRINTK@PLT
	mov	r13, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR 0[r13]
	mov	r14, QWORD PTR 8[r13]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR P9_IOHDRSZ[rip]
	mov	DWORD PTR 12[rsp], eax
	test	r14, r14
	je	.L21
.L2:
	lea	rax, 8[r14]
	mov	rdi, rax
	mov	QWORD PTR 40[rsp], rax
	call	mutex_lock_interruptible@PLT
	test	eax, eax
	jne	.L14
	lea	rbx, 64[rsp]
	mov	rsi, QWORD PTR 16[r14]
	mov	edx, DWORD PTR 4[r14]
	lea	r15, 60[rsp]
	mov	QWORD PTR 32[rsp], rbx
	mov	eax, DWORD PTR [r14]
	mov	r9, rsi
.L12:
	cmp	edx, eax
	je	.L7
	jg	.L11
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 60[rsp]
	mov	rdi, r15
	lea	r12d, 2[rax]
	call	dt_type@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	DWORD PTR 8[rsp], eax
	call	v9fs_qid2ino@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 68[rsp]
	mov	DWORD PTR 4[rsp], eax
	mov	DWORD PTR [rsp], ecx
	call	strlen@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	r8d, DWORD PTR 4[rsp]
	mov	edx, eax
	mov	ecx, DWORD PTR [rsp]
	mov	esi, DWORD PTR 68[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR 24[rsp]
	call	rax
	mov	rdi, r15
	mov	DWORD PTR [rsp], eax
	call	p9stat_free@PLT
	mov	edx, DWORD PTR [rsp]
	test	edx, edx
	jne	.L18
	mov	eax, DWORD PTR [r14]
	mov	edx, DWORD PTR 4[r14]
	mov	r9, QWORD PTR 16[r14]
	add	eax, r12d
	mov	DWORD PTR [r14], eax
	add	DWORD PTR 0[rbp], r12d
	cmp	eax, edx
	jge	.L12
.L11:
	mov	rdx, QWORD PTR 0[r13]
	mov	esi, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR 4[rdx]
	sub	esi, eax
	cdqe
	mov	rdx, r15
	lea	rdi, [r9+rax*4]
	call	p9stat_read@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L10
	mov	edi, DWORD PTR P9_DEBUG_VFS[rip]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	P9_DPRINTK@PLT
	mov	r12d, DWORD PTR EIO[rip]
	mov	rdi, r15
	neg	r12d
	call	p9stat_free@PLT
.L6:
	mov	rdi, QWORD PTR 40[rsp]
	call	mutex_unlock@PLT
.L4:
	endbr64
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L18:
	.cfi_restore_state
	mov	r12d, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 24[rax]
	call	kmalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L23
	mov	rdi, QWORD PTR 8[rbp]
	call	spin_lock@PLT
	cmp	QWORD PTR 8[r13], 0
	je	.L24
.L5:
	mov	rdi, QWORD PTR 8[rbp]
	call	spin_unlock@PLT
	mov	rdi, r12
	call	kfree@PLT
	mov	r14, QWORD PTR 8[r13]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r8d, DWORD PTR 0[rbp]
	mov	ecx, DWORD PTR 12[rsp]
	xor	edx, edx
	mov	rsi, r9
	mov	rdi, rbp
	call	v9fs_file_readn@PLT
	mov	ebx, eax
	test	eax, eax
	jle	.L18
	mov	DWORD PTR 4[r14], eax
	mov	r9, QWORD PTR 16[r14]
	xor	eax, eax
	mov	DWORD PTR [r14], 0
	jmp	.L11
.L23:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L24:
	lea	rax, 96[r12]
	lea	rdi, 8[r12]
	mov	QWORD PTR 16[r12], rax
	call	mutex_init@PLT
	mov	QWORD PTR [r12], 0
	mov	QWORD PTR 8[r13], r12
	xor	r12d, r12d
	jmp	.L5
.L14:
	mov	r12d, eax
	jmp	.L6
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	v9fs_dir_readdir, .-v9fs_dir_readdir
	.comm	P9_IOHDRSZ,4,4
	.comm	P9_DEBUG_VFS,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_vfs_dir.c_v9fs_dir_readdir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"name %s\012\000"
	.align	2
.LC1:
	.ascii	"returned %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	v9fs_dir_readdir, %function
v9fs_dir_readdir:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r2
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	sub	sp, sp, #52
	ldr	r2, [r0, #12]
	mov	fp, r1
	ldr	r1, .L23
	str	r3, [sp, #24]
	ldr	r3, .L23+4
	ldr	r2, [r2]
	ldr	r0, [r1]
	ldr	r1, .L23+8
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	P9_DPRINTK
	ldr	r10, [r8, #8]
	ldr	r3, .L23+12
	ldm	r10, {r2, r6}
	ldr	r3, [r3]
	ldr	r9, [r2]
	cmp	r6, #0
	sub	r3, r9, r3
	str	r3, [sp, #20]
	beq	.L19
.L2:
	add	r3, r6, #8
	mov	r0, r3
	str	r3, [sp, #28]
	bl	mutex_lock_interruptible
	cmp	r0, #0
	bne	.L14
	ldm	r6, {r1, r2}
	ldr	r0, [r6, #12]
.L12:
	cmp	r2, r1
	beq	.L7
	bgt	.L11
	b	.L12
.L10:
	ldr	r9, [sp, #40]
	ldr	r4, [sp, #32]
	mov	r0, r9
	bl	strlen
	mov	r7, r0
	add	r0, sp, #36
	ldr	r5, [r8]
	bl	v9fs_qid2ino
	mov	r2, r0
	add	r0, sp, #32
	str	r2, [sp, #12]
	bl	dt_type
	ldr	r2, [sp, #12]
	mov	r3, r5
	mov	r1, r9
	ldr	ip, [sp, #24]
	str	r2, [sp]
	str	r0, [sp, #4]
	mov	r2, r7
	mov	r0, fp
	blx	ip
	mov	r7, r0
	add	r0, sp, #32
	bl	p9stat_free
	cmp	r7, #0
	add	r4, r4, #2
	bne	.L6
	ldm	r6, {r1, r2}
	ldr	r3, [r8]
	add	r1, r4, r1
	cmp	r1, r2
	add	r4, r3, r4
	ldr	r0, [r6, #12]
	str	r1, [r6]
	str	r4, [r8]
	bge	.L12
.L11:
	ldr	r2, [sp, #20]
	ldr	r3, [r10]
	add	r0, r0, r1, lsl #2
	ldr	r3, [r3, #4]
	sub	r1, r2, r1
	add	r2, sp, #32
	bl	p9stat_read
	subs	r3, r0, #0
	str	r3, [sp, #16]
	beq	.L10
	mov	r2, r3
	ldr	r3, .L23
	ldr	r1, .L23+16
	ldr	r0, [r3]
	bl	P9_DPRINTK
	ldr	r3, .L23+20
	add	r0, sp, #32
	ldr	r5, [r3]
	rsb	r3, r5, #0
	str	r3, [sp, #16]
	bl	p9stat_free
.L6:
	ldr	r0, [sp, #28]
	bl	mutex_unlock
.L4:
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	ldr	r0, [sp, #16]
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	ldr	r3, .L23+24
	ldr	r2, [sp, #20]
	ldr	r1, [r3]
	add	r0, r2, #16
	bl	kmalloc
	subs	r4, r0, #0
	beq	.L21
	ldr	r0, [r8, #4]
	bl	spin_lock
	ldr	r5, [r10, #4]
	cmp	r5, #0
	beq	.L22
.L5:
	ldr	r0, [r8, #4]
	bl	spin_unlock
	mov	r0, r4
	bl	kfree
	ldr	r6, [r10, #4]
	b	.L2
.L7:
	ldr	r3, [r8]
	mov	r1, r0
	mov	r2, #0
	str	r3, [sp]
	mov	r0, r8
	ldr	r3, [sp, #20]
	bl	v9fs_file_readn
	subs	r2, r0, #0
	str	r2, [sp, #16]
	ble	.L6
	mov	r3, #0
	ldr	r0, [r6, #12]
	mov	r1, r3
	str	r2, [r6, #4]
	str	r3, [r6]
	b	.L11
.L21:
	ldr	r3, .L23+28
	ldr	r5, [r3]
	rsb	r3, r5, #0
	str	r3, [sp, #16]
	b	.L1
.L22:
	add	r3, r4, #64
	str	r3, [r4, #12]
	add	r0, r4, #8
	bl	mutex_init
	str	r5, [r4, #4]
	str	r5, [r4]
	str	r4, [r10, #4]
	mov	r4, r5
	b	.L5
.L14:
	str	r0, [sp, #16]
	b	.L6
.L20:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	P9_DEBUG_VFS
	.word	.LC2
	.word	.LC0
	.word	P9_IOHDRSZ
	.word	.LC1
	.word	EIO
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	v9fs_dir_readdir, .-v9fs_dir_readdir
	.comm	P9_IOHDRSZ,4,4
	.comm	P9_DEBUG_VFS,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
