	.file	"extr_cdf.c_cdf_read_short_stream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Cannot find root storage dir\n"
.LC1:
	.string	"No first secror in dir\n"
	.text
	.p2align 4
	.globl	cdf_read_short_stream
	.type	cdf_read_short_stream, @function
cdf_read_short_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r10, QWORD PTR [rcx]
	mov	rbp, r8
	mov	QWORD PTR [r9], 0
	test	r10, r10
	je	.L2
	mov	rax, QWORD PTR 8[rcx]
	mov	r11, QWORD PTR CDF_DIR_TYPE_ROOT_STORAGE[rip]
	xor	ecx, ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	add	rcx, 1
	add	rax, 24
	cmp	r10, rcx
	je	.L2
.L4:
	cmp	QWORD PTR [rax], r11
	jne	.L13
	mov	rcx, QWORD PTR 8[rax]
	mov	QWORD PTR [r9], rax
	test	rcx, rcx
	js	.L14
	mov	r8d, DWORD PTR 16[rax]
	mov	r9, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	cdf_read_long_sector_chain@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	DPRINTF@PLT
.L5:
	mov	QWORD PTR 0[rbp], 0
	mov	rdi, rbp
	call	cdf_zero_stream@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	DPRINTF@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	cdf_read_short_stream, .-cdf_read_short_stream
	.comm	CDF_DIR_TYPE_ROOT_STORAGE,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_cdf.c_cdf_read_short_stream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot find root storage dir\012\000"
	.align	2
.LC1:
	.ascii	"No first secror in dir\012\000"
	.text
	.align	2
	.global	cdf_read_short_stream
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdf_read_short_stream, %function
cdf_read_short_stream:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r3]
	ldr	r7, [sp, #28]
	cmp	r4, ip
	ldr	r6, [sp, #24]
	str	ip, [r7]
	beq	.L2
	ldr	r5, .L15
	ldr	lr, [r3, #4]
	ldr	r5, [r5]
	b	.L4
.L13:
	cmp	r4, ip
	add	lr, lr, #12
	beq	.L2
.L4:
	ldr	r3, [lr]
	add	ip, ip, #1
	cmp	r3, r5
	bne	.L13
	ldr	r3, [lr, #4]
	str	lr, [r7]
	cmp	r3, #0
	blt	.L14
	str	r6, [sp, #28]
	ldr	ip, [lr, #8]
	str	ip, [sp, #24]
	pop	{r4, r5, r6, r7, r8, lr}
	b	cdf_read_long_sector_chain
.L14:
	ldr	r0, .L15+4
	bl	DPRINTF
.L5:
	mov	r4, #0
	mov	r0, r6
	str	r4, [r6]
	bl	cdf_zero_stream
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, .L15+8
	bl	DPRINTF
	b	.L5
.L16:
	.align	2
.L15:
	.word	CDF_DIR_TYPE_ROOT_STORAGE
	.word	.LC1
	.word	.LC0
	.size	cdf_read_short_stream, .-cdf_read_short_stream
	.comm	CDF_DIR_TYPE_ROOT_STORAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
