	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setcolors
_setcolors:                             ## @setcolors
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$64, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	(%rdi), %rdx
	movq	8(%rdi), %rax
	movl	(%rax), %r10d
	movq	_SENSOR_MI0360B@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	setne	%cl
	sete	%al
	movq	_COLORS_DEF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	shll	$2, %eax
	orl	$-24, %eax
	imull	%r10d, %eax
	cltd
	idivl	%r9d
	movl	%eax, -64(%rbp)
	shrl	$8, %eax
	andl	$15, %eax
	movl	%eax, -60(%rbp)
	imull	$-38, %r10d, %eax
	cltd
	idivl	%r9d
	movl	%eax, -56(%rbp)
	shrl	$8, %eax
	andl	$15, %eax
	movl	%eax, -52(%rbp)
	addl	%ecx, %ecx
	addl	$60, %ecx
	imull	%r10d, %ecx
	imull	$-51, %r10d, %r8d
	leal	(%r10,%r10,8), %esi
	movl	%r10d, %eax
	shll	$6, %eax
	cltd
	idivl	%r9d
	movl	%eax, -48(%rbp)
	shrl	$8, %eax
	andl	$15, %eax
	movl	%eax, -44(%rbp)
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	movl	%eax, -40(%rbp)
	shrl	$8, %eax
	andl	$15, %eax
	movl	%eax, -36(%rbp)
	movl	%r8d, %eax
	cltd
	idivl	%r9d
	movl	%eax, -32(%rbp)
	shrl	$8, %eax
	andl	$15, %eax
	movl	%eax, -28(%rbp)
	negl	%esi
	movl	%esi, %eax
	cltd
	idivl	%r9d
	movl	%eax, -24(%rbp)
	shrl	$8, %eax
	andl	$15, %eax
	movl	%eax, -20(%rbp)
	leaq	-64(%rbp), %rdx
	movl	$138, %esi
	movl	$48, %ecx
	callq	_reg_w
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$64, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_MI0360B,8,3             ## @SENSOR_MI0360B
	.comm	_COLORS_DEF,4,2                 ## @COLORS_DEF
	.no_dead_strip	_setcolors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setcolors
_setcolors:                             ; @setcolors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldp	x9, x8, [x0]
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _SENSOR_MI0360B@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SENSOR_MI0360B@GOTPAGEOFF]
Lloh5:
	adrp	x11, _COLORS_DEF@GOTPAGE
Lloh6:
	ldr	x11, [x11, _COLORS_DEF@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	ldr	w11, [x11]
	cmp	x9, x10
	mov	w9, #-24
	mov	w10, #-20
	csel	w9, w10, w9, eq
	mul	w9, w9, w8
	sdiv	w9, w9, w11
	ubfx	w10, w9, #8, #4
	stp	w9, w10, [sp, #8]
	mov	w9, #-38
	mul	w9, w8, w9
	sdiv	w9, w9, w11
	ubfx	w10, w9, #8, #4
	stp	w9, w10, [sp, #16]
	lsl	w9, w8, #6
	sdiv	w9, w9, w11
	ubfx	w10, w9, #8, #4
	stp	w9, w10, [sp, #24]
	mov	w9, #62
	mov	w10, #60
	csel	w9, w10, w9, eq
	mul	w9, w9, w8
	sdiv	w9, w9, w11
	ubfx	w10, w9, #8, #4
	stp	w9, w10, [sp, #32]
	mov	w9, #-51
	mul	w9, w8, w9
	sdiv	w9, w9, w11
	ubfx	w10, w9, #8, #4
	stp	w9, w10, [sp, #40]
	add	w8, w8, w8, lsl #3
	neg	w8, w8
	sdiv	w8, w8, w11
	ubfx	w9, w8, #8, #4
	stp	w8, w9, [sp, #48]
	add	x2, sp, #8
	mov	w1, #138
	mov	w3, #48
	bl	_reg_w
	ldur	x8, [x29, #-8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_MI0360B,8,3             ; @SENSOR_MI0360B
	.comm	_COLORS_DEF,4,2                 ; @COLORS_DEF
	.no_dead_strip	_setcolors
.subsections_via_symbols
