	.file	"extr_nutdec.c_get_str.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_str, @function
get_str:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ffio_read_varlen@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L2
	test	r12d, r12d
	jne	.L30
.L2:
	cmp	ebx, r12d
	jbe	.L31
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbp
	sub	ebx, 1
	call	avio_r8@PLT
	cmp	QWORD PTR 0[rbp], 0
	je	.L32
	mov	ebx, r12d
	test	r12d, r12d
	je	.L13
.L3:
	lea	esi, -1[r12]
	mov	edi, ebx
	call	FFMIN@PLT
	mov	BYTE PTR 0[r13+rax], 0
.L10:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L13
.L11:
	xor	eax, eax
	cmp	r12d, ebx
	sete	al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	neg	eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	cmp	r12d, ebx
	jb	.L8
	test	r12d, r12d
	je	.L11
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, r12d
	mov	edi, eax
	call	FFMIN@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	rdx, rax
	call	avio_read@PLT
	cmp	ebx, r12d
	ja	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR AVERROR_EOF[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L31:
	.cfi_restore_state
	test	r12d, r12d
	je	.L10
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	get_str, .-get_str
	.comm	AVERROR_EOF,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_nutdec.c_get_str.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_str, %function
get_str:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r7, r1
	mov	r5, r0
	bl	ffio_read_varlen
	cmp	r0, #0
	cmpne	r6, #0
	mov	r4, r0
	bne	.L27
	cmp	r0, r6
	bls	.L28
.L8:
	mov	r0, r5
	bl	avio_r8
	ldr	r3, [r5]
	sub	r4, r4, #1
	cmp	r3, #0
	beq	.L29
	cmp	r6, #0
	movne	r4, r6
	beq	.L13
.L3:
	mov	r0, r4
	sub	r1, r6, #1
	bl	FFMIN
	mov	r3, #0
	strb	r3, [r7, r0]
.L10:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L13
.L11:
	cmp	r6, r4
	movne	r0, #0
	mvneq	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L29:
	cmp	r6, r4
	bcc	.L8
	cmp	r6, #0
	beq	.L11
	b	.L3
.L13:
	ldr	r3, .L30
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	mov	r1, r6
	bl	FFMIN
	mov	r1, r7
	mov	r2, r0
	mov	r0, r5
	bl	avio_read
	cmp	r4, r6
	bhi	.L8
	b	.L3
.L28:
	cmp	r6, #0
	beq	.L10
	b	.L3
.L31:
	.align	2
.L30:
	.word	AVERROR_EOF
	.size	get_str, .-get_str
	.comm	AVERROR_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
