	.file	"extr_rmdec.c_readfull.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to fully read block\n"
	.text
	.p2align 4
	.type	readfull, @function
readfull:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	mov	edx, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rsi
	mov	rsi, r14
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	avio_read@PLT
	mov	r12d, eax
	cmp	r13d, eax
	je	.L1
	mov	edx, r13d
	test	eax, eax
	js	.L3
	sub	edx, eax
	cdqe
	xor	esi, esi
	lea	rdi, [r14+rax*4]
	call	memset@PLT
.L4:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	av_log@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r14
	call	memset@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	readfull, .-readfull
	.comm	AV_LOG_ERROR,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_rmdec.c_readfull.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to fully read block\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readfull, %function
readfull:
	@ 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, r0
	mov	r2, r3
	mov	r0, r1
	mov	r1, r6
	mov	r5, r3
	bl	avio_read
	cmp	r5, r0
	mov	r4, r0
	beq	.L1
	cmp	r0, #0
	subge	r2, r5, r0
	movlt	r2, r5
	mov	r1, #0
	movlt	r0, r6
	addge	r0, r6, r0, lsl #2
	bl	memset
	ldr	r3, .L7
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L7+4
	bl	av_log
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	AV_LOG_ERROR
	.word	.LC0
	.size	readfull, .-readfull
	.comm	AV_LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
