	.file	"extr_sanm.c_decode_8.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"RLE buffer allocation failed.\n"
	.text
	.p2align 4
	.type	decode_8, @function
decode_8:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, 28[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	add	rdi, 16
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR -16[rdi]
	mov	r13, QWORD PTR 16[rdi]
	mov	rdx, rbp
	call	av_fast_malloc@PLT
	mov	r12, QWORD PTR 16[rbx]
	test	r12, r12
	je	.L11
	mov	rdx, rbp
	mov	rsi, r12
	mov	rdi, rbx
	call	rle_decode@PLT
	mov	r8, rax
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	test	r8, r8
	jne	.L1
	test	rbp, rbp
	je	.L5
	mov	rcx, QWORD PTR 8[rbx]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L7:
	movsx	rdx, DWORD PTR [r12+rax*4]
	mov	edx, DWORD PTR [rcx+rdx*4]
	mov	DWORD PTR 0[r13+rax*4], edx
	add	rax, 1
	cmp	rbp, rax
	jne	.L7
.L5:
	xor	eax, eax
.L1:
	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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	mov	edi, DWORD PTR ENOMEM[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
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	decode_8, .-decode_8
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,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_sanm.c_decode_8.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RLE buffer allocation failed.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_8, %function
decode_8:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, r0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r4, [r1], #16
	add	r0, r0, #8
	mov	r2, r4
	ldr	r6, [r7, #20]
	bl	av_fast_malloc
	ldr	r5, [r7, #8]
	cmp	r5, #0
	beq	.L12
	mov	r2, r4
	mov	r1, r5
	mov	r0, r7
	bl	rle_decode
	cmp	r0, #0
	bne	.L3
	cmp	r4, #0
	sub	r2, r4, #1
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r1, [r7, #4]
.L7:
	ldr	r3, [r5], #4
	sub	r2, r2, #1
	ldr	r3, [r1, r3, lsl #2]
	cmn	r2, #1
	str	r3, [r6], #4
	bne	.L7
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L13
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L13+4
	ldr	r0, [r7, #12]
	ldr	r1, [r3]
	ldr	r2, .L13+8
	bl	av_log
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L13+12
	ldr	r0, [r3]
	b	AVERROR
.L14:
	.align	2
.L13:
	.word	AVERROR_INVALIDDATA
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	ENOMEM
	.size	decode_8, .-decode_8
	.comm	ENOMEM,4,4
	.comm	AV_LOG_ERROR,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
