	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivb_load_lut_10
_ivb_load_lut_10:                       ## @ivb_load_lut_10
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_to_i915
	movl	%r13d, %edi
	callq	_ivb_lut_10_size
	movl	%eax, %ebx
	movq	(%r14), %r15
	movq	%r14, %rdi
	callq	_drm_color_lut_size
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %r12d
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movl	%ebx, %eax
	movl	%ebx, %r14d
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	decl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	cltd
	idivl	-48(%rbp)                       ## 4-byte Folded Reload
	cltq
	leaq	(%r15,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_PREC_PAL_INDEX
	leal	1(%r13), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	%r12d, %edi
	callq	_PREC_PAL_DATA
	movl	%eax, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ilk_lut_10
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	decl	%r14d
	jne	LBB0_2
LBB0_3:
	movl	%r12d, %edi
	callq	_PREC_PAL_INDEX
	movl	%eax, %edi
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ivb_load_lut_10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivb_load_lut_10
_ivb_load_lut_10:                       ; @ivb_load_lut_10
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x0, x21
	bl	_ivb_lut_10_size
	mov	x19, x0
	ldr	x23, [x20]
	mov	x0, x20
	bl	_drm_color_lut_size
	ldr	w20, [x22]
	subs	w24, w19, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w25, #0
	sub	w26, w0, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w8, w25, w24
	add	x22, x23, w8, sxtw #2
	mov	x0, x20
	bl	_PREC_PAL_INDEX
	add	w27, w21, #1
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x20
	bl	_PREC_PAL_DATA
	mov	x21, x0
	mov	x0, x22
	bl	_ilk_lut_10
	mov	x1, x0
	mov	x0, x21
	bl	_I915_WRITE
	add	w25, w25, w26
	mov	x21, x27
	subs	w19, w19, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_PREC_PAL_INDEX
	mov	w1, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_I915_WRITE
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ivb_load_lut_10
.subsections_via_symbols
