	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i965_load_lut_10p6
_i965_load_lut_10p6:                    ## @i965_load_lut_10p6
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	(%rbx), %r12
	movq	%rbx, %rdi
	callq	_drm_color_lut_size
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r15), %r15d
	cmpl	$2, %eax
	jl	LBB0_1
## %bb.2:
	decl	%eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax), %r14
	xorl	%ebx, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_PALETTE
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_i965_lut_10p6_ldw
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	leal	1(%rbx), %esi
	movl	%r15d, %edi
	callq	_PALETTE
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_i965_lut_10p6_udw
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	addq	$2, %rbx
	addq	$12, %r12
	cmpq	%rbx, %r14
	jne	LBB0_3
## %bb.4:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_PIPEGCMAX
	leaq	(%rbx,%rbx,2), %rbx
	movl	8(%r12,%rbx,4), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_PIPEGCMAX
	movl	4(%r12,%rbx,4), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	movl	$2, %esi
	callq	_PIPEGCMAX
	movl	(%r12,%rbx,4), %esi
	movl	%eax, %edi
	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	_i965_load_lut_10p6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i965_load_lut_10p6
_i965_load_lut_10p6:                    ; @i965_load_lut_10p6
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	x23, [x19]
	mov	x0, x19
	bl	_drm_color_lut_size
	ldr	w19, [x20]
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
	sub	w24, w0, #1
	lsl	x25, x24, #1
	mov	x21, x23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_PALETTE
	mov	x22, x0
	mov	x0, x21
	bl	_i965_lut_10p6_ldw
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
	add	w1, w20, #1
	mov	x0, x19
	bl	_PALETTE
	mov	x22, x0
	mov	x0, x21
	bl	_i965_lut_10p6_udw
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
	add	x20, x20, #2
	add	x21, x21, #12
	cmp	x25, x20
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x24, #0
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_PIPEGCMAX
	mov	w8, #12
	madd	x20, x24, x8, x23
	ldr	w1, [x20, #8]
	bl	_I915_WRITE
	mov	x0, x19
	mov	w1, #1
	bl	_PIPEGCMAX
	ldr	w1, [x20, #4]
	bl	_I915_WRITE
	mov	x0, x19
	mov	w1, #2
	bl	_PIPEGCMAX
	ldr	w1, [x20]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_i965_load_lut_10p6
.subsections_via_symbols
