	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function colorstobpp
_colorstobpp:                           ## @colorstobpp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$1, %eax
	cmpl	$3, %edi
	jl	LBB0_8
## %bb.1:
	movl	$2, %eax
	cmpl	$5, %edi
	jb	LBB0_8
## %bb.2:
	movl	$3, %eax
	cmpl	$9, %edi
	jb	LBB0_8
## %bb.3:
	movl	$4, %eax
	cmpl	$17, %edi
	jb	LBB0_8
## %bb.4:
	movl	$5, %eax
	cmpl	$33, %edi
	jb	LBB0_8
## %bb.5:
	movl	$6, %eax
	cmpl	$65, %edi
	jb	LBB0_8
## %bb.6:
	movl	$7, %eax
	cmpl	$129, %edi
	jb	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	cmpl	$257, %edi                      ## imm = 0x101
	setb	%al
	shll	$3, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_colorstobpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function colorstobpp
_colorstobpp:                           ; @colorstobpp
	.cfi_startproc
; %bb.0:
	cmp	w0, #3
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
	mov	w8, #2
	mov	w9, #3
	mov	w10, #4
	mov	w11, #5
	mov	w12, #6
	mov	w13, #7
	cmp	w0, #257
	cset	w14, lo
	lsl	w14, w14, #3
	cmp	w0, #129
	csel	w13, w13, w14, lo
	cmp	w0, #65
	csel	w12, w12, w13, lo
	cmp	w0, #33
	csel	w11, w11, w12, lo
	cmp	w0, #17
	csel	w10, w10, w11, lo
	cmp	w0, #9
	csel	w9, w9, w10, lo
	cmp	w0, #5
	csel	w0, w8, w9, lo
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_colorstobpp
.subsections_via_symbols
