	.file	"extr_client.c_p9_client_readdir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	">>> TREADDIR fid %d offset %llu count %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"dqd"
.LC2:
	.string	"D"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"bogus RREADDIR count (%d > %d)\n"
	.section	.rodata.str1.1
.LC4:
	.string	"<<< RREADDIR count %d\n"
	.text
	.p2align 4
	.globl	p9_client_readdir
	.type	p9_client_readdir, @function
p9_client_readdir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r8d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	mov	ecx, 1
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	DWORD PTR 12[rsp], edx
	lea	r15, 20[rsp]
	mov	rdi, r15
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 32[rsp], rsi
	mov	esi, DWORD PTR READ[rip]
	mov	DWORD PTR 40[rsp], edx
	lea	rdx, 32[rsp]
	call	iov_iter_kvec@PLT
	mov	edx, DWORD PTR 4[rbx]
	mov	r8d, DWORD PTR 12[rsp]
	mov	rcx, r14
	mov	edi, DWORD PTR P9_DEBUG_9P[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	p9_debug@PLT
	mov	r12, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rbx]
	mov	r9d, DWORD PTR [r12]
	sub	r9d, DWORD PTR P9_READDIRHDRSZ[rip]
	test	eax, eax
	je	.L4
	cmp	r9d, eax
	cmovge	r9d, eax
.L4:
	mov	rax, QWORD PTR 8[r12]
	cmp	DWORD PTR 12[rsp], r9d
	cmovle	r9d, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR 4[rbx]
	cmp	QWORD PTR [rax], 0
	mov	esi, DWORD PTR P9_TREADDIR[rip]
	mov	ebp, r9d
	je	.L5
	cmp	r9d, 1024
	jg	.L25
.L5:
	mov	r8, r14
	mov	rdi, r12
	mov	r9d, ebp
	mov	ebx, 1
	lea	rdx, .LC1[rip]
	call	p9_client_rpc@PLT
	mov	r14, rax
	mov	rdi, r14
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L26
.L7:
	mov	esi, DWORD PTR 4[r12]
	lea	rcx, 12[rsp]
	lea	r8, 24[rsp]
	mov	rdi, r14
	lea	rdx, .LC2[rip]
	call	p9pdu_readf@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L27
	mov	r8d, DWORD PTR 12[rsp]
	cmp	r8d, ebp
	jg	.L28
.L10:
	mov	edi, DWORD PTR P9_DEBUG_9P[rip]
	xor	eax, eax
	mov	edx, r8d
	lea	rsi, .LC4[rip]
	call	p9_debug@PLT
	test	ebx, ebx
	jne	.L29
.L11:
	mov	rsi, r14
	mov	rdi, r12
	call	p9_tag_remove@PLT
	mov	r15d, DWORD PTR 12[rsp]
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L25:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	lea	rax, .LC1[rip]
	mov	rdi, r12
	xor	ebx, ebx
	push	r9
	.cfi_def_cfa_offset 144
	mov	r8d, ebp
	xor	r9d, r9d
	mov	rdx, r15
	push	r14
	.cfi_def_cfa_offset 152
	push	rcx
	.cfi_def_cfa_offset 160
	xor	ecx, ecx
	push	rax
	.cfi_def_cfa_offset 168
	push	11
	.cfi_def_cfa_offset 176
	call	p9_client_zc_rpc@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 128
	mov	r14, rax
	mov	rdi, r14
	call	IS_ERR@PLT
	test	rax, rax
	je	.L7
.L26:
	mov	rdi, r14
	call	PTR_ERR@PLT
	mov	r15d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r13
	call	memmove@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, r8d
	mov	edx, ebp
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	mov	DWORD PTR 12[rsp], ebp
	mov	r8d, ebp
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rsi, r14
	mov	rdi, r12
	call	trace_9p_protocol_dump@PLT
	mov	rsi, r14
	mov	rdi, r12
	call	p9_tag_remove@PLT
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	p9_client_readdir, .-p9_client_readdir
	.comm	READ,4,4
	.comm	P9_TREADDIR,4,4
	.comm	P9_READDIRHDRSZ,4,4
	.comm	P9_DEBUG_9P,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_client.c_p9_client_readdir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	">>> TREADDIR fid %d offset %llu count %d\012\000"
	.align	2
.LC1:
	.ascii	"dqd\000"
	.align	2
.LC2:
	.ascii	"D\000"
	.align	2
.LC3:
	.ascii	"bogus RREADDIR count (%d > %d)\012\000"
	.align	2
.LC4:
	.ascii	"<<< RREADDIR count %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	p9_client_readdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	p9_client_readdir, %function
p9_client_readdir:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r2
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	mov	r6, r3
	sub	sp, sp, #64
	ldr	r3, .L25
	str	r2, [sp]
	str	ip, [sp, #56]
	ldr	ip, .L25+4
	mov	r9, r0
	ldr	r1, [r3]
	str	r2, [sp, #36]
	mov	r3, #1
	add	r2, sp, #52
	str	r7, [sp, #52]
	add	r0, sp, #48
	ldr	ip, [ip]
	str	ip, [sp, #60]
	mov	ip,#0
	bl	iov_iter_kvec
	mov	r0, r6
	asr	r1, r6, #31
	stm	sp, {r0-r1}
	ldr	r3, [sp, #36]
	ldr	r8, .L25+8
	ldr	r2, [r9, #4]
	ldr	r0, [r8]
	str	r3, [sp, #8]
	ldr	r1, .L25+12
	bl	p9_debug
	ldr	r3, [r9]
	ldr	r5, [r9, #8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L25+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	sub	r2, r2, r3
.L4:
	ldr	r4, [sp, #36]
	ldr	r1, .L25+20
	cmp	r2, r4
	movlt	r4, r2
	ldr	r2, [r5, #8]
	ldr	r3, [r9, #4]
	ldr	r2, [r2]
	ldr	r1, [r1]
	cmp	r2, #0
	cmpne	r4, #1024
	bgt	.L19
	str	r6, [sp]
	mov	r0, r5
	ldr	r2, .L25+24
	str	r4, [sp, #4]
	bl	p9_client_rpc
	mov	r10, #1
	mov	r6, r0
.L6:
	mov	r0, r6
	bl	IS_ERR
	cmp	r0, #0
	bne	.L20
	add	r3, sp, #44
	ldr	r1, [r5, #4]
	mov	r0, r6
	str	r3, [sp]
	ldr	r2, .L25+28
	add	r3, sp, #36
	bl	p9pdu_readf
	subs	r9, r0, #0
	bne	.L21
	ldr	r2, [sp, #36]
	cmp	r2, r4
	bgt	.L22
.L10:
	ldr	r0, [r8]
	ldr	r1, .L25+32
	bl	p9_debug
	cmp	r10, #0
	bne	.L23
.L11:
	mov	r1, r6
	mov	r0, r5
	bl	p9_tag_remove
	ldr	r9, [sp, #36]
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r9
	add	sp, sp, #64
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r1, .L25+16
	ldr	r2, [r5]
	ldr	r1, [r1]
	sub	r2, r2, r1
	cmp	r2, r3
	movge	r2, r3
	b	.L4
.L20:
	mov	r0, r6
	bl	PTR_ERR
	mov	r9, r0
	b	.L1
.L19:
	mov	ip, #11
	mov	r10, #0
	ldr	r0, .L25+24
	str	r6, [sp, #20]
	str	r3, [sp, #16]
	str	r0, [sp, #12]
	mov	r3, r10
	mov	r0, r5
	stmib	sp, {r10, ip}
	str	r4, [sp, #24]
	str	r4, [sp]
	add	r2, sp, #48
	bl	p9_client_zc_rpc
	mov	r6, r0
	b	.L6
.L23:
	mov	r0, r7
	ldr	r2, [sp, #36]
	ldr	r1, [sp, #44]
	bl	memmove
	b	.L11
.L22:
	mov	r1, r2
	ldr	r0, .L25+36
	mov	r2, r4
	bl	pr_err
	mov	r2, r4
	str	r4, [sp, #36]
	b	.L10
.L21:
	mov	r1, r6
	mov	r0, r5
	bl	trace_9p_protocol_dump
	mov	r1, r6
	mov	r0, r5
	bl	p9_tag_remove
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	READ
	.word	.LC5
	.word	P9_DEBUG_9P
	.word	.LC0
	.word	P9_READDIRHDRSZ
	.word	P9_TREADDIR
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.size	p9_client_readdir, .-p9_client_readdir
	.comm	READ,4,4
	.comm	P9_TREADDIR,4,4
	.comm	P9_READDIRHDRSZ,4,4
	.comm	P9_DEBUG_9P,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
