	.file	"extr_dvdsubdec.c_append_to_cached_buf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Attempt to reconstruct too large SPU packets aborted.\n"
	.text
	.p2align 4
	.type	append_to_cached_buf, @function
append_to_cached_buf:
.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	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	xor	edi, edi
	test	edx, edx
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR 0[rbp], 8
	setbe	dil
.L2:
	call	av_assert0@PLT
	movsx	rdi, DWORD PTR 0[rbp]
	mov	eax, 8
	movsx	rdx, ebx
	sub	rax, rdi
	cmp	rdx, rax
	jnb	.L9
	add	rdi, QWORD PTR 8[rbp]
	mov	edx, ebx
	mov	rsi, r13
	call	memcpy@PLT
	add	DWORD PTR 0[rbp], ebx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	mov	rdi, r12
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	mov	DWORD PTR 0[rbp], 0
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	append_to_cached_buf, .-append_to_cached_buf
	.comm	AV_LOG_WARNING,4,4
	.comm	AVERROR_INVALIDDATA,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_dvdsubdec.c_append_to_cached_buf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Attempt to reconstruct too large SPU packets aborte"
	.ascii	"d.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	append_to_cached_buf, %function
append_to_cached_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r2, #0
	mov	r5, r0
	ldr	r7, [r0]
	mov	r6, r1
	movlt	r0, #0
	blt	.L2
	ldr	r0, [r7]
	cmp	r0, #4
	movhi	r0, #0
	movls	r0, #1
.L2:
	bl	av_assert0
	ldr	r3, [r7]
	rsb	r2, r3, #4
	cmp	r2, r4
	bls	.L8
	ldr	r0, [r7, #4]
	mov	r2, r4
	mov	r1, r6
	add	r0, r3, r0
	bl	memcpy
	ldr	r2, [r7]
	mov	r0, #0
	add	r2, r2, r4
	str	r2, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L9+4
	bl	av_log
	mov	r2, #0
	ldr	r3, .L9+8
	str	r2, [r7]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	AV_LOG_WARNING
	.word	.LC0
	.word	AVERROR_INVALIDDATA
	.size	append_to_cached_buf, .-append_to_cached_buf
	.comm	AV_LOG_WARNING,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
