	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cmatrix
_set_cmatrix:                           ## @set_cmatrix
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$84, %edx
	callq	_memset
	leal	(%r15,%r15,8), %eax
	leal	(%r15,%rax,4), %ecx
	leal	(%r15,%rax,4), %eax
	addl	$255, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$8, %eax
	leal	38(%rax), %ecx
	movl	%ecx, -136(%rbp)
	leal	(%rax,%rax,8), %ecx
	leal	(%rax,%rcx,2), %ecx
	movslq	%ecx, %rcx
	imulq	$-580400985, %rcx, %rdx         ## imm = 0xDD67C8A7
	shrq	$32, %rdx
	addl	%edx, %ecx
	movl	%ecx, %edx
	sarl	$5, %edx
	shrl	$31, %ecx
	addl	%edx, %ecx
	addl	$19, %ecx
	movl	%ecx, -144(%rbp)
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$-580400985, %rax, %rcx         ## imm = 0xDD67C8A7
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	sarl	$5, %ecx
	shrl	$31, %eax
	addl	%ecx, %eax
	addl	$7, %eax
	movl	%eax, -128(%rbp)
	addl	$-128, %r13d
	movl	%r13d, -72(%rbp)
	movq	_hsv_red_x@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%r12d, %rax
	movl	720(%rcx,%rax,4), %ecx
	imull	%ebx, %ecx
	movl	%ecx, %edx
	sarl	$8, %edx
	movl	%edx, -120(%rbp)
	shrl	$16, %ecx
	andl	$15, %ecx
	movl	%ecx, -116(%rbp)
	movq	_hsv_red_y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	720(%rcx,%rax,4), %ecx
	imull	%ebx, %ecx
	movl	%ecx, %edx
	sarl	$8, %edx
	movl	%edx, -112(%rbp)
	shrl	$16, %ecx
	andl	$15, %ecx
	movl	%ecx, -108(%rbp)
	movq	_hsv_green_x@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	720(%rcx,%rax,4), %ecx
	imull	%ebx, %ecx
	movl	%ecx, %edx
	sarl	$8, %edx
	movl	%edx, -104(%rbp)
	shrl	$16, %ecx
	andl	$15, %ecx
	movl	%ecx, -100(%rbp)
	movq	_hsv_green_y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	720(%rcx,%rax,4), %ecx
	imull	%ebx, %ecx
	movl	%ecx, %edx
	sarl	$8, %edx
	movl	%edx, -96(%rbp)
	shrl	$16, %ecx
	andl	$15, %ecx
	movl	%ecx, -92(%rbp)
	movq	_hsv_blue_x@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	720(%rcx,%rax,4), %ecx
	imull	%ebx, %ecx
	movl	%ecx, %edx
	sarl	$8, %edx
	movl	%edx, -88(%rbp)
	shrl	$16, %ecx
	andl	$15, %ecx
	movl	%ecx, -84(%rbp)
	movq	_hsv_blue_y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imull	720(%rcx,%rax,4), %ebx
	movl	%ebx, %eax
	sarl	$8, %eax
	movl	%eax, -80(%rbp)
	shrl	$16, %ebx
	andl	$15, %ebx
	movl	%ebx, -76(%rbp)
	movq	%r14, %rdi
	movl	$4321, %esi                     ## imm = 0x10E1
	leaq	-144(%rbp), %rdx
	movl	$21, %ecx
	callq	_reg_w
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hsv_red_x,8,3                  ## @hsv_red_x
	.comm	_hsv_red_y,8,3                  ## @hsv_red_y
	.comm	_hsv_green_x,8,3                ## @hsv_green_x
	.comm	_hsv_green_y,8,3                ## @hsv_green_y
	.comm	_hsv_blue_x,8,3                 ## @hsv_blue_x
	.comm	_hsv_blue_y,8,3                 ## @hsv_blue_y
	.no_dead_strip	_set_cmatrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cmatrix
_set_cmatrix:                           ; @set_cmatrix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	w23, w4, #180
	add	x0, sp, #4
	mov	w1, #0
	mov	w2, #84
	bl	_memset
	mov	w8, #37
	mul	w8, w21, w8
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #8
	mov	w9, #19
	mul	w9, w8, w9
	mov	w10, #51367
	movk	w10, #56679, lsl #16
	smull	x11, w9, w10
	lsr	x11, x11, #32
	add	w9, w11, w9
	asr	w11, w9, #5
	add	w9, w11, w9, lsr #31
	add	w11, w8, #38
	add	w9, w9, #19
	str	w11, [sp, #12]
	str	w9, [sp, #4]
	lsl	w9, w8, #3
	sub	w8, w9, w8
	smull	x9, w8, w10
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #5
	add	w8, w9, w8, lsr #31
	add	w8, w8, #7
	sub	w9, w22, #128
	str	w8, [sp, #20]
	str	w9, [sp, #76]
Lloh3:
	adrp	x8, _hsv_red_x@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hsv_red_x@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sbfiz	x9, x23, #2, #32
	ldr	w8, [x8, x9]
	mul	w8, w8, w20
	asr	w10, w8, #8
	ubfx	w8, w8, #16, #4
	stp	w10, w8, [sp, #28]
Lloh6:
	adrp	x8, _hsv_red_y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hsv_red_y@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	mul	w8, w8, w20
	asr	w10, w8, #8
	ubfx	w8, w8, #16, #4
	stp	w10, w8, [sp, #36]
Lloh9:
	adrp	x8, _hsv_green_x@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hsv_green_x@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	mul	w8, w8, w20
	asr	w10, w8, #8
	ubfx	w8, w8, #16, #4
Lloh12:
	adrp	x11, _hsv_green_y@GOTPAGE
Lloh13:
	ldr	x11, [x11, _hsv_green_y@GOTPAGEOFF]
	stp	w10, w8, [sp, #44]
Lloh14:
	ldr	x8, [x11]
	ldr	w8, [x8, x9]
	mul	w8, w8, w20
	asr	w10, w8, #8
	ubfx	w8, w8, #16, #4
	stp	w10, w8, [sp, #52]
Lloh15:
	adrp	x8, _hsv_blue_x@GOTPAGE
Lloh16:
	ldr	x8, [x8, _hsv_blue_x@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	mul	w8, w8, w20
	asr	w10, w8, #8
	ubfx	w8, w8, #16, #4
	stp	w10, w8, [sp, #60]
Lloh18:
	adrp	x8, _hsv_blue_y@GOTPAGE
Lloh19:
	ldr	x8, [x8, _hsv_blue_y@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	mul	w8, w8, w20
	asr	w9, w8, #8
	ubfx	w8, w8, #16, #4
	stp	w9, w8, [sp, #68]
	add	x2, sp, #4
	mov	x0, x19
	mov	w1, #4321
	mov	w3, #21
	bl	_reg_w
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hsv_red_x,8,3                  ; @hsv_red_x
	.comm	_hsv_red_y,8,3                  ; @hsv_red_y
	.comm	_hsv_green_x,8,3                ; @hsv_green_x
	.comm	_hsv_green_y,8,3                ; @hsv_green_y
	.comm	_hsv_blue_x,8,3                 ; @hsv_blue_x
	.comm	_hsv_blue_y,8,3                 ; @hsv_blue_y
	.no_dead_strip	_set_cmatrix
.subsections_via_symbols
