	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdw_load_lut_10
_bdw_load_lut_10:                       ## @bdw_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, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_to_i915
	movl	%ebx, %edi
	callq	_ivb_lut_10_size
	movl	%eax, %r14d
	movq	(%r15), %r13
	movq	%r15, %rdi
	callq	_drm_color_lut_size
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	callq	_PREC_PAL_INDEX
	movq	_PAL_PREC_AUTO_INCREMENT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	movl	%r14d, %eax
	movl	%r14d, %r15d
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	decl	%eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	cltd
	idivl	-52(%rbp)                       ## 4-byte Folded Reload
	cltq
	leaq	(,%rax,4), %r12
	addq	%r13, %r12
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_PREC_PAL_DATA
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_ilk_lut_10
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	decl	%r15d
	jne	LBB0_2
LBB0_3:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	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
	.comm	_PAL_PREC_AUTO_INCREMENT,4,2    ## @PAL_PREC_AUTO_INCREMENT
	.no_dead_strip	_bdw_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 bdw_load_lut_10
_bdw_load_lut_10:                       ; @bdw_load_lut_10
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x0, x22
	bl	_ivb_lut_10_size
	mov	x19, x0
	ldr	x24, [x20]
	mov	x0, x20
	bl	_drm_color_lut_size
	mov	x21, x0
	ldr	w20, [x23]
	mov	x0, x20
	bl	_PREC_PAL_INDEX
Lloh0:
	adrp	x8, _PAL_PREC_AUTO_INCREMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAL_PREC_AUTO_INCREMENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, w22
	bl	_I915_WRITE
	subs	w23, w19, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w25, #0
	sub	w26, w21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w8, w25, w23
	add	x21, x24, w8, sxtw #2
	mov	x0, x20
	bl	_PREC_PAL_DATA
	mov	x22, x0
	mov	x0, x21
	bl	_ilk_lut_10
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
	add	w25, w25, w26
	subs	w19, w19, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_PREC_PAL_INDEX
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAL_PREC_AUTO_INCREMENT,4,2    ; @PAL_PREC_AUTO_INCREMENT
	.no_dead_strip	_bdw_load_lut_10
.subsections_via_symbols
