	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function __approximate_rgb
LCPI0_0:
	.quad	0x4025296d69296d69              ## double 10.580912863070539
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___approximate_rgb:                     ## @__approximate_rgb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
                                        ## kill: def $edi killed $edi def $rdi
	leal	-1(%rdi), %eax
	cmpl	$253, %eax
	ja	LBB0_4
## %bb.1:
	cmpl	%ebx, %edi
	jne	LBB0_4
## %bb.2:
	cmpl	%r15d, %edi
	jne	LBB0_4
## %bb.3:
	cvtsi2sd	%edi, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	addl	$232, %eax
	jmp	LBB0_5
LBB0_4:
	movslq	%edi, %rax
	imulq	$818089009, %rax, %rdi          ## imm = 0x30C30C31
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$35, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movl	$6, %edx
	callq	_R_DIM
	movq	%rax, %r14
	movslq	%ebx, %rax
	imulq	$818089009, %rax, %rdi          ## imm = 0x30C30C31
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$35, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movl	$6, %edx
	callq	_R_DIM
	movq	%rax, %rbx
	movslq	%r15d, %rax
	imulq	$818089009, %rax, %rdi          ## imm = 0x30C30C31
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$35, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movl	$6, %edx
	callq	_R_DIM
	leal	(%r14,%r14,8), %ecx
	leal	(%rbx,%rbx,2), %edx
	addl	%edx, %edx
	leal	(%rdx,%rcx,4), %ecx
	addl	%ecx, %eax
	addl	$16, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___approximate_rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __approximate_rgb
___approximate_rgb:                     ; @__approximate_rgb
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #1
	cmp	w8, #253
	ccmp	w0, w1, #0, ls
	ccmp	w0, w2, #0, eq
	b.eq	LBB0_2
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	w22, #3121
	movk	w22, #12483, lsl #16
	smull	x8, w0, w22
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w0, w8, w9
	mov	w23, #6
	mov	w1, #0
	mov	w2, #6
	bl	_R_DIM
	mov	x21, x0
	smull	x8, w20, w22
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w0, w8, w9
	mov	w1, #0
	mov	w2, #6
	bl	_R_DIM
	mov	x20, x0
	smull	x8, w19, w22
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w0, w8, w9
	mov	w1, #0
	mov	w2, #6
	bl	_R_DIM
	mov	w8, #36
	mul	w9, w20, w23
	madd	w8, w21, w8, w9
	add	w8, w8, w0
	add	w0, w8, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	scvtf	d0, w0
	mov	x8, #28009
	movk	x8, #26921, lsl #16
	movk	x8, #10605, lsl #32
	movk	x8, #16421, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcvtzs	w8, d0
	add	w0, w8, #232
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___approximate_rgb
.subsections_via_symbols
