	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __is_lut_linear
___is_lut_linear:                       ## @__is_lut_linear
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	$1, %r8d
	testl	%esi, %esi
	jle	LBB0_7
## %bb.1:
	movq	_MAX_DRM_LUT_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%esi, %eax
	decl	%esi
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r10
	xorl	%ecx, %ecx
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx), %rbx
	cmpq	8(%rdi,%rcx), %rbx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	16(%rdi,%rcx), %rbx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r11d, %eax
	cltd
	idivl	%esi
	subl	%eax, %ebx
	addl	$-2, %ebx
	cmpl	$-4, %ebx
	jbe	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r9d, %r11d
	addq	$24, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_3
	jmp	LBB0_7
LBB0_6:
	xorl	%r8d, %r8d
LBB0_7:
	movl	%r8d, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DRM_LUT_VALUE,4,2          ## @MAX_DRM_LUT_VALUE
	.no_dead_strip	___is_lut_linear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __is_lut_linear
___is_lut_linear:                       ; @__is_lut_linear
	.cfi_startproc
; %bb.0:
	subs	w8, w1, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w9, #0
Lloh0:
	adrp	x10, _MAX_DRM_LUT_VALUE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAX_DRM_LUT_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mov	w11, w1
	add	x12, x0, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x13, x14, [x12, #-8]
	cmp	x13, x14
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x14, [x12, #8]
	cmp	x13, x14
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sdiv	w14, w9, w8
	sub	w13, w13, w14
	sub	w13, w13, #2
	cmn	w13, #4
	b.ls	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w9, w10
	add	x12, x12, #24
	subs	x11, x11, #1
	b.ne	LBB0_2
LBB0_6:
	mov	w0, #1
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DRM_LUT_VALUE,4,2          ; @MAX_DRM_LUT_VALUE
	.no_dead_strip	___is_lut_linear
.subsections_via_symbols
