	.file	"extr_exr.c_rle_uncompress.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rle_uncompress, @function
rle_uncompress:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	r8, QWORD PTR [r8]
	test	edx, edx
	jle	.L11
	mov	rax, r8
	.p2align 4,,10
	.p2align 3
.L9:
	movsx	rdi, DWORD PTR [rsi]
	test	edi, edi
	js	.L21
	lea	r9d, 1[rdi]
	sub	ecx, r9d
	js	.L19
	sub	edx, 2
	cmp	edx, -1
	je	.L19
	lea	r9, 4[rax+rdi*4]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 4[rsi]
	add	rax, 4
	mov	DWORD PTR -4[rax], edi
	cmp	r9, rax
	jne	.L8
	add	rsi, 8
.L7:
	test	edx, edx
	jne	.L9
.L2:
	movsx	rdx, r12d
	lea	rdx, [r8+rdx*4]
	cmp	rax, rdx
	je	.L10
.L19:
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	add	ecx, edi
	js	.L19
	lea	edx, -1[rdi+rdx]
	test	edx, edx
	js	.L19
	not	edi
	movsx	rdi, edi
	lea	r10, 4[0+rdi*4]
	xor	edi, edi
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r9d, DWORD PTR 4[rsi+rdi]
	mov	DWORD PTR [rax+rdi], r9d
	add	rdi, 4
	cmp	r10, rdi
	jne	.L5
	lea	rsi, 4[rsi+r10]
	add	rax, r10
	jmp	.L7
.L10:
	mov	edi, r12d
	not	edi
	and	edi, 1
	call	av_assert1@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, r12d
	call	[QWORD PTR 8[rbx]]
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	mov	edx, r12d
	call	[QWORD PTR [rbx]]
	xor	eax, eax
	jmp	.L1
.L11:
	mov	rax, r8
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rle_uncompress, .-rle_uncompress
	.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_exr.c_rle_uncompress.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rle_uncompress, %function
rle_uncompress:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [sp, #32]
	subs	r6, r2, #0
	mov	r7, r0
	mov	r8, r3
	ldr	r0, [r5]
	ble	.L11
	mov	r2, r0
.L9:
	ldr	ip, [r1]
	cmp	ip, #0
	blt	.L21
	add	r9, ip, #1
	subs	r3, r3, r9
	bmi	.L19
	sub	r6, r6, #2
	cmn	r6, #1
	beq	.L19
	mov	lr, r2
.L8:
	ldr	r4, [r1, #4]
	sub	ip, ip, #1
	cmn	ip, #1
	str	r4, [lr], #4
	bne	.L8
	add	r2, r2, r9, lsl #2
	add	r1, r1, #8
.L7:
	cmp	r6, #0
	bne	.L9
.L2:
	add	r0, r0, r8, lsl #2
	cmp	r2, r0
	beq	.L10
.L19:
	ldr	r3, .L22
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	adds	r3, r3, ip
	bmi	.L19
	rsb	lr, ip, #1
	subs	r6, r6, lr
	bmi	.L19
	add	r1, r1, #4
	mov	r9, r1
	mvn	lr, ip
	sub	r4, r2, #4
.L5:
	ldr	r10, [r9], #4
	sub	lr, lr, #1
	cmn	lr, #1
	str	r10, [r4, #4]!
	bne	.L5
	rsb	ip, ip, ip, lsl #30
	add	r1, r1, ip, lsl #2
	add	r2, r2, ip, lsl #2
	b	.L7
.L10:
	mvn	r0, r8
	and	r0, r0, #1
	bl	av_assert1
	mov	r1, r8
	ldr	r3, [r7, #4]
	ldr	r0, [r5]
	blx	r3
	mov	r2, r8
	ldr	r3, [r7]
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	blx	r3
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r2, r0
	b	.L2
.L23:
	.align	2
.L22:
	.word	AVERROR_INVALIDDATA
	.size	rle_uncompress, .-rle_uncompress
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
