	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pick_color8
_pick_color8:                           ## @pick_color8
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r11d
	movq	(%rsi), %rax
	movl	$255, 12(%rax)
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movq	(%rdx), %r15
	xorl	%r10d, %r10d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %rcx
	movzbl	(%rcx,%r10,4), %ecx
	movl	%r8d, %ebx
	sarl	%cl, %ebx
	movq	24(%rdi), %r14
	movq	8(%rdx), %rcx
	imull	(%rcx,%r10,4), %ebx
	movzbl	(%r14,%r10,4), %ecx
	movl	%r11d, %eax
	sarl	%cl, %eax
	movq	(%r15,%r10,8), %rcx
	addl	%ebx, %eax
	cltq
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r9,%r10,4)
	movq	8(%rsi), %rcx
	movq	(%rcx,%r10,8), %rcx
	movl	%eax, (%rcx)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	movslq	(%rdi), %rcx
	cmpq	%rcx, %r10
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %ecx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %r14
	movq	8(%rdx), %r13
	movq	8(%rdi), %r12
	movq	8(%rsi), %rcx
	movq	%r15, %rax
	movq	(%rcx), %r15
	movl	(%r13), %ecx
	imull	%r8d, %ecx
	movl	(%r12), %ebx
	imull	%r11d, %ebx
	addl	%ecx, %ebx
	movslq	%ebx, %rcx
	movl	(%r14,%rcx,4), %ecx
	movl	%ecx, (%r9)
	movl	%ecx, (%r15)
	movl	(%r13), %ecx
	imull	%r8d, %ecx
	movl	(%r12), %ebx
	imull	%r11d, %ebx
	addl	%ebx, %ecx
	incl	%ecx
	movslq	%ecx, %rcx
	movl	(%r14,%rcx,4), %ecx
	movl	%ecx, 4(%r9)
	movl	%ecx, 4(%r15)
	movl	(%r13), %ecx
	imull	%r8d, %ecx
	movl	(%r12), %ebx
	imull	%r11d, %ebx
	addl	%ebx, %ecx
	addl	$2, %ecx
	movslq	%ecx, %rcx
	movl	(%r14,%rcx,4), %ecx
	movl	%ecx, 8(%r9)
	movl	%ecx, 8(%r15)
	movl	(%r13), %ecx
	imull	%r8d, %ecx
	movl	(%r12), %ebx
	imull	%r11d, %ebx
	addl	%ebx, %ecx
	addl	$3, %ecx
	movslq	%ecx, %rcx
	movl	(%r14,%rcx,4), %ecx
	movl	%ecx, 12(%r9)
	movl	%ecx, 12(%r15)
	movq	%rax, %r15
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pick_color8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pick_color8
_pick_color8:                           ; @pick_color8
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	mov	w9, #255
	str	w9, [x8, #12]
	ldr	w10, [x0]
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, #0
	ldr	x9, [x2]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	x10, x8, #3
	ldr	x11, [x9, x10]
	lsl	x12, x8, #2
	ldp	x13, x14, [x0, #16]
	ldr	w13, [x13, x12]
	asr	w13, w4, w13
	ldr	x15, [x2, #8]
	ldr	w15, [x15, x12]
	ldr	w14, [x14, x12]
	asr	w14, w3, w14
	madd	w13, w15, w13, w14
	ldr	w11, [x11, w13, sxtw #2]
	str	w11, [x5, x12]
	ldr	x12, [x1, #8]
	ldr	x10, [x12, x10]
	str	w11, [x10]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	ldrsw	x10, [x0]
	cmp	x8, x10
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, #1
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x9]
	ldr	x11, [x2, #8]
	ldr	x12, [x0, #8]
	ldr	x13, [x1, #8]
	ldr	x13, [x13]
	ldr	w14, [x11]
	ldr	w15, [x12]
	mul	w15, w15, w3
	madd	w14, w14, w4, w15
	ldr	w14, [x10, w14, sxtw #2]
	str	w14, [x5]
	str	w14, [x13]
	ldr	w14, [x11]
	ldr	w15, [x12]
	mul	w15, w15, w3
	madd	w14, w14, w4, w15
	add	w14, w14, #1
	ldr	w14, [x10, w14, sxtw #2]
	str	w14, [x5, #4]
	str	w14, [x13, #4]
	ldr	w14, [x11]
	ldr	w15, [x12]
	mul	w15, w15, w3
	madd	w14, w14, w4, w15
	add	w14, w14, #2
	ldr	w14, [x10, w14, sxtw #2]
	str	w14, [x5, #8]
	str	w14, [x13, #8]
	ldr	w11, [x11]
	ldr	w12, [x12]
	mul	w12, w12, w3
	madd	w11, w11, w4, w12
	add	w11, w11, #3
	ldr	w10, [x10, w11, sxtw #2]
	str	w10, [x5, #12]
	str	w10, [x13, #12]
	b	LBB0_3
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pick_color8
.subsections_via_symbols
