	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transform_color
_transform_color:                       ## @transform_color
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %eax
	movl	%edi, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %r9d
	movzbl	%ah, %edi
	movzbl	%al, %ecx
	shrl	$24, %eax
	movl	(%rsi), %ebx
	imull	%r9d, %ebx
	movl	20(%rsi), %edx
	imull	%edi, %edx
	addl	%ebx, %edx
	movl	40(%rsi), %ebx
	imull	%ecx, %ebx
	addl	%edx, %ebx
	movl	60(%rsi), %edx
	imull	%eax, %edx
	addl	%ebx, %edx
	movq	%rdx, %r10
	movl	80(%rsi), %edx
	movl	84(%rsi), %r8d
	movl	%edx, %r13d
	shll	$8, %r13d
	subl	%edx, %r13d
	movl	4(%rsi), %edx
	imull	%r9d, %edx
	movl	24(%rsi), %ebx
	imull	%edi, %ebx
	addl	%edx, %ebx
	movl	44(%rsi), %edx
	imull	%ecx, %edx
	addl	%ebx, %edx
	movl	64(%rsi), %ebx
	imull	%eax, %ebx
	addl	%edx, %ebx
	movq	%rbx, %r11
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r12d
	shll	$8, %r12d
	subl	%r8d, %r12d
	movl	8(%rsi), %edx
	imull	%r9d, %edx
	movl	28(%rsi), %ebx
	imull	%edi, %ebx
	addl	%edx, %ebx
	movl	48(%rsi), %edx
	imull	%ecx, %edx
	addl	%ebx, %edx
	movl	68(%rsi), %r14d
	imull	%eax, %r14d
	addl	%edx, %r14d
	movl	88(%rsi), %edx
	movl	%edx, %r15d
	shll	$8, %r15d
	subl	%edx, %r15d
	imull	12(%rsi), %r9d
	imull	32(%rsi), %edi
	imull	52(%rsi), %ecx
	addl	%r9d, %edi
	addl	%edi, %ecx
	imull	72(%rsi), %eax
	movq	%r10, %rbx
	leal	(%r10,%r13), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	addl	%ecx, %eax
	movl	92(%rsi), %ecx
	movl	%ecx, %edx
	shll	$8, %edx
	subl	%ecx, %edx
	leal	(%rdx,%rax), %ecx
	addl	$255, %ecx
	movl	%eax, %edi
	addl	%edx, %edi
	leal	(%r11,%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmovsl	%ecx, %edi
	leal	(%r14,%r15), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	sarl	$8, %edi
	xorl	%esi, %esi
	callq	_max
	movl	%eax, %edi
	movl	$255, %esi
	callq	_min
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	leal	(%rbx,%r13), %edi
	addl	$255, %edi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$8, %edi
	xorl	%esi, %esi
	callq	_max
	movl	%eax, %edi
	movl	$255, %esi
	callq	_min
	movl	%eax, %r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%r12,%rax), %edi
	addl	$255, %edi
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$8, %edi
	xorl	%esi, %esi
	callq	_max
	movl	%eax, %edi
	movl	$255, %esi
	callq	_min
	movl	%eax, %ebx
	leal	(%r15,%r14), %edi
	addl	$255, %edi
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$8, %edi
	xorl	%esi, %esi
	callq	_max
	movl	%eax, %edi
	movl	$255, %esi
	callq	_min
	movzbl	-41(%rbp), %ecx                 ## 1-byte Folded Reload
	shll	$24, %ecx
	movzbl	%r13b, %edx
	shll	$16, %edx
	orl	%ecx, %edx
	movzbl	%bl, %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	movzbl	%al, %eax
	orl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_transform_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transform_color
_transform_color:                       ; @transform_color
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ubfx	w8, w0, #16, #8
	ubfx	w9, w0, #8, #8
	and	w10, w0, #0xff
	lsr	w11, w0, #24
	ldp	w12, w13, [x1, #20]
	mul	w12, w9, w12
	ldp	w14, w15, [x1]
	madd	w12, w8, w14, w12
	ldp	w14, w16, [x1, #40]
	madd	w12, w10, w14, w12
	ldp	w14, w17, [x1, #60]
	madd	w12, w11, w14, w12
	ldp	w14, w0, [x1, #80]
	lsl	w2, w14, #8
	sub	w14, w2, w14
	add	w20, w12, w14
	mul	w12, w9, w13
	madd	w12, w8, w15, w12
	madd	w12, w10, w16, w12
	madd	w12, w11, w17, w12
	lsl	w13, w0, #8
	sub	w13, w13, w0
	add	w21, w12, w13
	ldp	w12, w13, [x1, #28]
	mul	w12, w9, w12
	ldp	w14, w15, [x1, #8]
	madd	w12, w8, w14, w12
	ldp	w14, w16, [x1, #48]
	madd	w12, w10, w14, w12
	ldp	w14, w17, [x1, #68]
	madd	w12, w11, w14, w12
	mul	w9, w9, w13
	madd	w8, w8, w15, w9
	ldp	w9, w13, [x1, #88]
	lsl	w14, w9, #8
	sub	w9, w14, w9
	add	w22, w12, w9
	madd	w8, w10, w16, w8
	madd	w8, w11, w17, w8
	lsl	w9, w13, #8
	sub	w9, w9, w13
	add	w8, w8, w9
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #8
	mov	w1, #0
	bl	_max
	mov	w1, #255
	bl	_min
	mov	x19, x0
	add	w8, w20, #255
	cmp	w20, #0
	csel	w8, w8, w20, lt
	asr	w0, w8, #8
	mov	w1, #0
	bl	_max
	mov	w1, #255
	bl	_min
	mov	x20, x0
	add	w8, w21, #255
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w0, w8, #8
	mov	w1, #0
	bl	_max
	mov	w1, #255
	bl	_min
	mov	x21, x0
	add	w8, w22, #255
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w0, w8, #8
	mov	w1, #0
	bl	_max
	mov	w1, #255
	bl	_min
	lsl	w8, w19, #24
	bfi	w8, w20, #16, #8
	bfi	w8, w21, #8, #8
	orr	w0, w8, w0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_transform_color
.subsections_via_symbols
