	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_color_lut_extract          ## -- Begin function drm_color_lut_extract
	.p2align	4, 0x90
_drm_color_lut_extract:                 ## @drm_color_lut_extract
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	$15, %cl
	subb	%sil, %cl
	movl	$1, %eax
	shlq	%cl, %rax
	addl	%edi, %eax
	movb	$16, %cl
	subb	%sil, %cl
	sarl	%cl, %eax
	cmpl	$16, %esi
	cmovll	%eax, %edi
	movl	$65535, %edx                    ## imm = 0xFFFF
	shrl	%cl, %edx
	xorl	%esi, %esi
	popq	%rbp
	jmp	_clamp_val                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_color_lut_extract          ; -- Begin function drm_color_lut_extract
	.p2align	2
_drm_color_lut_extract:                 ; @drm_color_lut_extract
	.cfi_startproc
; %bb.0:
	mov	w8, #16
	sub	w8, w8, w1
	mov	w9, #15
	sub	w9, w9, w1
	mov	w10, #1
	lsl	x9, x10, x9
	add	w9, w9, w0
	asr	w9, w9, w8
	cmp	w1, #16
	csel	w0, w9, w0, lt
	mov	w9, #65535
	lsr	w2, w9, w8
	mov	w1, #0
	b	_clamp_val
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
