	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cvid_v1_16
_cvid_v1_16:                            ## @cvid_v1_16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%edx, %eax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	xorl	%edx, %edx
	testl	%ecx, %ecx
	setne	%dl
	leal	-2(,%rdx,4), %ecx
	cltd
	idivl	%ecx
	movslq	%eax, %r12
	addq	%r12, %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	jb	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %r13d
	andl	$2147483646, %r13d              ## imm = 0x7FFFFFFE
	movq	16(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx,%r13,4), %esi
	movl	(%rax,%r13,4), %edx
	callq	_MAKECOLOUR16
	movw	%ax, (%r15)
	movq	16(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx,%r13,4), %esi
	movl	(%rax,%r13,4), %edx
	callq	_MAKECOLOUR16
	movw	%ax, 2(%r15)
	movq	16(%rbx), %rax
	orl	$1, %r13d
	movl	(%rax,%r13,4), %edi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx,%r13,4), %esi
	movl	(%rax,%r13,4), %edx
	callq	_MAKECOLOUR16
	movw	%ax, 4(%r15)
	movq	16(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx,%r13,4), %esi
	movl	(%rax,%r13,4), %edx
	callq	_MAKECOLOUR16
	movw	%ax, 6(%r15)
	incq	%r14
	addq	%r12, %r15
	cmpq	$4, %r14
	jne	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cvid_v1_16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cvid_v1_16
_cvid_v1_16:                            ; @cvid_v1_16
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	cmp	w3, #0
	mov	w8, #-2
	cneg	w8, w8, ne
	sdiv	w8, w2, w8
	sbfiz	x23, x8, #1, #32
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, x20
	b.lo	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	and	w24, w22, #0x7ffffffe
	ldr	x8, [x19, #16]
	lsl	x25, x24, #2
	ldr	w0, [x8, x25]
	ldp	x9, x8, [x19]
	ldr	w1, [x8, x25]
	ldr	w2, [x9, x25]
	bl	_MAKECOLOUR16
	strh	w0, [x21]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x25]
	ldp	x9, x8, [x19]
	ldr	w1, [x8, x25]
	ldr	w2, [x9, x25]
	bl	_MAKECOLOUR16
	strh	w0, [x21, #2]
	ldr	x8, [x19, #16]
	orr	w9, w24, #0x1
	lsl	x24, x9, #2
	ldr	w0, [x8, x24]
	ldp	x9, x8, [x19]
	ldr	w1, [x8, x24]
	ldr	w2, [x9, x24]
	bl	_MAKECOLOUR16
	strh	w0, [x21, #4]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x24]
	ldp	x9, x8, [x19]
	ldr	w1, [x8, x24]
	ldr	w2, [x9, x24]
	bl	_MAKECOLOUR16
	strh	w0, [x21, #6]
	add	x22, x22, #1
	add	x21, x21, x23
	cmp	x22, #4
	b.ne	LBB0_1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cvid_v1_16
.subsections_via_symbols
