	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pick_color16
_pick_color16:                          ## @pick_color16
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movl	$255, 12(%rax)
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	-52(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rcx
	movzbl	(%rcx,%r15,4), %ecx
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	sarl	%cl, %edx
	movq	24(%rbx), %rcx
	movq	(%r12), %rsi
	movslq	(%rsi,%r15,4), %rsi
	movslq	%edx, %rdx
	imulq	%rsi, %rdx
	addq	(%rax,%r15,8), %rdx
	movzbl	(%rcx,%r15,4), %ecx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	sarl	%cl, %eax
	addl	%eax, %eax
	movslq	%eax, %rdi
	addq	%rdx, %rdi
	callq	_AV_RL16
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	%eax, (%rcx)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%rbx), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	cmpl	$1, %ecx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movslq	(%rcx), %rdi
	imulq	%r14, %rdi
	movq	8(%rbx), %rcx
	movslq	(%rcx), %rcx
	imulq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	(%rax), %rdi
	addq	%rcx, %rdi
	callq	_AV_RL16
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movslq	(%rax), %rax
	imulq	%r14, %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rdx
	movslq	(%rdx), %rdx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	imulq	%rbx, %rdx
	addq	(%rcx), %rax
	leaq	(%rdx,%rax), %rdi
	addq	$2, %rdi
	callq	_AV_RL16
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movslq	(%rax), %rax
	imulq	%r14, %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rdx
	movslq	(%rdx), %rdx
	imulq	%rbx, %rdx
	addq	(%rcx), %rax
	leaq	(%rdx,%rax), %rdi
	addq	$4, %rdi
	callq	_AV_RL16
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 8(%rcx)
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movslq	(%rax), %rax
	imulq	%r14, %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rdx
	movslq	(%rdx), %rdx
	imulq	%rbx, %rdx
	addq	(%rcx), %rax
	leaq	(%rdx,%rax), %rdi
	addq	$6, %rdi
	callq	_AV_RL16
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 12(%rcx)
	movq	8(%r13), %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%eax, 12(%rcx)
	jmp	LBB0_5
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pick_color16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pick_color16
_pick_color16:                          ; @pick_color16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x1]
	mov	w9, #255
	str	w9, [x8, #12]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x5
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x25, #0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	sxtw	x26, w9
	sxtw	x27, w21
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	x28, x25, #3
	ldr	x8, [x9, x28]
	lsl	x20, x25, #2
	ldp	x9, x10, [x24, #16]
	ldr	w9, [x9, x20]
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	asr	w9, w11, w9
	ldr	x11, [x22]
	ldrsw	x11, [x11, x20]
	sxtw	x9, w9
	madd	x8, x11, x9, x8
	ldr	w9, [x10, x20]
	asr	w9, w21, w9
	lsl	w9, w9, #1
	add	x0, x8, w9, sxtw
	bl	_AV_RL16
	str	w0, [x19, x20]
	ldr	x8, [x23, #8]
	ldr	x8, [x8, x28]
	str	w0, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x9]
	ldr	x9, [x22]
	ldrsw	x9, [x9]
	ldr	x10, [x24, #8]
	ldrsw	x10, [x10]
	madd	x8, x9, x26, x8
	madd	x0, x10, x27, x8
	bl	_AV_RL16
	str	w0, [x19]
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	str	w0, [x8]
	ldp	x9, x8, [x22]
	ldr	x8, [x8]
	ldrsw	x9, [x9]
	ldr	x10, [x24, #8]
	ldrsw	x10, [x10]
	madd	x8, x9, x26, x8
	madd	x8, x10, x27, x8
	add	x0, x8, #2
	bl	_AV_RL16
	str	w0, [x19, #4]
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	str	w0, [x8, #4]
	ldp	x9, x8, [x22]
	ldr	x8, [x8]
	ldrsw	x9, [x9]
	ldr	x10, [x24, #8]
	ldrsw	x10, [x10]
	madd	x8, x9, x26, x8
	madd	x8, x10, x27, x8
	add	x0, x8, #4
	bl	_AV_RL16
	str	w0, [x19, #8]
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	str	w0, [x8, #8]
	ldp	x9, x8, [x22]
	ldr	x8, [x8]
	ldrsw	x9, [x9]
	ldr	x10, [x24, #8]
	ldrsw	x10, [x10]
	madd	x8, x9, x26, x8
	madd	x8, x10, x27, x8
	add	x0, x8, #6
	bl	_AV_RL16
	str	w0, [x19, #12]
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	str	w0, [x8, #12]
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pick_color16
.subsections_via_symbols
