	.file	"extr_cvdsub.c_RenderImage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	RenderImage, @function
RenderImage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdx]
	mov	rdx, QWORD PTR [rsi]
	lea	r12, 20[rsp]
	mov	rdi, r12
	mov	r15, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rbp]
	sub	rdx, rax
	add	rax, QWORD PTR 8[rsi]
	mov	rsi, rax
	call	bs_init@PLT
	mov	DWORD PTR 12[rsp], 0
.L2:
	mov	eax, DWORD PTR 12[rsp]
	mov	r13d, eax
	cmp	DWORD PTR 0[rbp], eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 4[rbp]
	xor	ebx, ebx
	test	eax, eax
	jg	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, 4
	mov	rdi, r12
	call	bs_read@PLT
	mov	r8d, DWORD PTR 4[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR [r14]
	sub	r8d, ebx
	mov	edx, DWORD PTR 8[rax]
	imul	edx, r13d
	add	ebx, edx
	mov	edx, r8d
	movsx	rbx, ebx
	lea	rdi, [r15+rbx*4]
	call	memset@PLT
	mov	ebx, DWORD PTR 4[rbp]
	mov	eax, ebx
	add	ebx, 1
	cmp	eax, ebx
	jle	.L7
.L5:
	mov	esi, 4
	mov	rdi, r12
	call	bs_read@PLT
	test	eax, eax
	je	.L18
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, eax
	mov	DWORD PTR 8[rsp], eax
	sar	edi, 2
	sub	esi, ebx
	call	__MIN@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	ecx, eax
	mov	rax, QWORD PTR [r14]
	and	edx, 3
	mov	DWORD PTR 8[rsp], ecx
	mov	edi, DWORD PTR 8[rax]
	mov	esi, edx
	mov	edx, ecx
	imul	edi, r13d
	mov	eax, edi
	add	eax, ebx
	cdqe
	lea	rdi, [r15+rax*4]
	call	memset@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	eax, DWORD PTR 4[rbp]
	lea	ebx, -1[rcx+rbx]
	add	ebx, 1
	cmp	eax, ebx
	jg	.L5
.L7:
	mov	rdi, r12
	add	r13d, 2
	call	bs_align@PLT
	cmp	DWORD PTR 0[rbp], r13d
	jg	.L9
.L6:
	cmp	DWORD PTR 12[rsp], 1
	je	.L1
	mov	DWORD PTR 12[rsp], 1
	jmp	.L2
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	RenderImage, .-RenderImage
	.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_cvdsub.c_RenderImage.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	RenderImage, %function
RenderImage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r2
	mov	r9, #0
	ldr	r5, [r0]
	ldr	r2, [r1]
	ldr	r3, [r5, #8]
	ldr	r1, [r1, #4]
	sub	sp, sp, #12
	ldr	ip, [r7]
	sub	r2, r2, r3
	add	r1, r3, r1
	ldr	r3, .L18
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r8, [ip]
	bl	bs_init
	ldr	r3, [r5]
.L2:
	cmp	r3, r9
	movgt	r6, r9
	ble	.L6
.L9:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	movgt	r10, #0
	bgt	.L5
	b	.L7
.L16:
	mov	r1, #4
	mov	r0, sp
	bl	bs_read
	ldr	r3, [r7]
	mov	r1, r0
	ldr	r3, [r3, #4]
	ldr	r2, [r5, #4]
	mla	r0, r3, r6, r10
	sub	r2, r2, r10
	add	r0, r8, r0, lsl #2
	bl	memset
	ldr	r2, [r5, #4]
	mov	r3, r2
	add	r10, r2, #1
	cmp	r3, r10
	ble	.L7
.L5:
	mov	r1, #4
	mov	r0, sp
	bl	bs_read
	subs	fp, r0, #0
	beq	.L16
	ldr	r1, [r5, #4]
	asr	r0, fp, #2
	sub	r1, r1, r10
	bl	__MIN
	mov	r4, r0
	ldr	r3, [r7]
	mov	r2, r4
	ldr	r0, [r3, #4]
	and	r1, fp, #3
	mla	r0, r6, r0, r10
	add	r0, r8, r0, lsl #2
	bl	memset
	sub	r2, r4, #1
	ldr	r3, [r5, #4]
	add	r2, r2, r10
	add	r10, r2, #1
	cmp	r3, r10
	bgt	.L5
.L7:
	mov	r0, sp
	bl	bs_align
	ldr	r3, [r5]
	add	r6, r6, #2
	cmp	r3, r6
	bgt	.L9
.L6:
	cmp	r9, #1
	movne	r9, #1
	bne	.L2
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	RenderImage, .-RenderImage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
