	.file	"extr_iccvid.c_cvid_v1_16.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cvid_v1_16, @function
cvid_v1_16:
.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, r8
	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
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rsi
	test	ecx, ecx
	jne	.L2
	mov	eax, edx
	shr	eax, 31
	lea	r13d, [rax+rdx]
	sar	r13d
	neg	r13d
.L3:
	movsx	r13, r13d
	xor	r12d, r12d
	add	r13, r13
.L6:
	cmp	QWORD PTR 8[rsp], rbx
	ja	.L1
	mov	ebp, r12d
	xor	r15d, r15d
	and	ebp, -2
.L5:
	mov	eax, r15d
	mov	rcx, QWORD PTR 8[r14]
	mov	rdx, QWORD PTR [r14]
	sar	eax
	add	eax, ebp
	cdqe
	mov	esi, DWORD PTR [rcx+rax*4]
	mov	rcx, QWORD PTR 16[r14]
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	edi, DWORD PTR [rcx+rax*4]
	call	MAKECOLOUR16@PLT
	mov	WORD PTR [rbx+r15*2], ax
	add	r15, 1
	cmp	r15, 4
	jne	.L5
	add	r12d, 1
	add	rbx, r13
	cmp	r12d, 4
	jne	.L6
.L1:
	add	rsp, 24
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r13d, edx
	shr	r13d, 31
	add	r13d, edx
	sar	r13d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cvid_v1_16, .-cvid_v1_16
	.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_iccvid.c_cvid_v1_16.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cvid_v1_16, %function
cvid_v1_16:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, #0
	mov	r10, r0
	mov	fp, r1
	mov	r7, r9
	cmp	r3, #0
	addeq	r8, r2, r2, lsr #31
	sub	sp, sp, #12
	asreq	r8, r8, #1
	addne	r2, r2, r2, lsr #31
	rsbeq	r3, r8, #0
	asrne	r3, r2, #1
	ldr	r5, [sp, #48]
	str	r3, [sp, #4]
.L6:
	add	r8, r10, r9, lsl #1
	cmp	fp, r8
	bhi	.L1
	mov	r4, #0
	bic	r6, r7, #1
.L5:
	ldr	r2, [r5]
	add	r0, r6, r4, asr #1
	ldmib	r5, {r1, ip}
	ldr	r2, [r2, r0, lsl #2]
	ldr	r1, [r1, r0, lsl #2]
	ldr	r0, [ip, r0, lsl #2]
	bl	MAKECOLOUR16
	add	r4, r4, #1
	cmp	r4, #4
	strh	r0, [r8], #2	@ movhi
	bne	.L5
	ldr	r3, [sp, #4]
	add	r7, r7, #1
	cmp	r7, #4
	add	r9, r9, r3
	bne	.L6
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	cvid_v1_16, .-cvid_v1_16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
