	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_program_gamma_multi_segment
_icl_program_gamma_multi_segment:       ## @icl_program_gamma_multi_segment
	.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	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_i915
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	(%rax), %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r13d
	movl	%r13d, %edi
	callq	_PREC_PAL_INDEX
	movq	_PAL_PREC_AUTO_INCREMENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	32(%r14), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r12), %rbx
	movl	%r13d, %edi
	callq	_PREC_PAL_DATA
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ilk_lut_12p4_ldw
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_PREC_PAL_DATA
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ilk_lut_12p4_udw
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	addq	$32, %r12
	cmpq	$8192, %r12                     ## imm = 0x2000
	jne	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rbx), %r15
	movl	%r13d, %edi
	callq	_PREC_PAL_DATA
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_ilk_lut_12p4_ldw
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_PREC_PAL_DATA
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_ilk_lut_12p4_udw
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	addq	$4096, %rbx                     ## imm = 0x1000
	cmpq	$1048576, %rbx                  ## imm = 0x100000
	jne	LBB0_3
## %bb.4:
	addq	$1048576, %r12                  ## imm = 0x100000
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_icl_load_gcmax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ivb_load_lut_ext_max           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAL_PREC_AUTO_INCREMENT,4,2    ## @PAL_PREC_AUTO_INCREMENT
	.no_dead_strip	_icl_program_gamma_multi_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_program_gamma_multi_segment
_icl_program_gamma_multi_segment:       ; @icl_program_gamma_multi_segment
	.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, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_crtc
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	x8, [x19]
	ldr	x24, [x8]
	ldr	w21, [x20]
	mov	x0, x21
	bl	_PREC_PAL_INDEX
Lloh0:
	adrp	x8, _PAL_PREC_AUTO_INCREMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAL_PREC_AUTO_INCREMENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_I915_WRITE
	mov	x25, #0
	add	x26, x24, #32
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x26, x25
	mov	x0, x21
	bl	_PREC_PAL_DATA
	mov	x23, x0
	mov	x0, x22
	bl	_ilk_lut_12p4_ldw
	mov	x1, x0
	mov	x0, x23
	bl	_I915_WRITE
	mov	x0, x21
	bl	_PREC_PAL_DATA
	mov	x23, x0
	mov	x0, x22
	bl	_ilk_lut_12p4_udw
	mov	x1, x0
	mov	x0, x23
	bl	_I915_WRITE
	add	x25, x25, #32
	cmp	x25, #2, lsl #12                ; =8192
	b.ne	LBB0_1
; %bb.2:
	mov	x25, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x24, x25
	mov	x0, x21
	bl	_PREC_PAL_DATA
	mov	x23, x0
	mov	x0, x22
	bl	_ilk_lut_12p4_ldw
	mov	x1, x0
	mov	x0, x23
	bl	_I915_WRITE
	mov	x0, x21
	bl	_PREC_PAL_DATA
	mov	x23, x0
	mov	x0, x22
	bl	_ilk_lut_12p4_udw
	mov	x1, x0
	mov	x0, x23
	bl	_I915_WRITE
	add	x25, x25, #1, lsl #12           ; =4096
	cmp	x25, #256, lsl #12              ; =1048576
	b.ne	LBB0_3
; %bb.4:
	add	x1, x24, #256, lsl #12          ; =1048576
	mov	x0, x19
	bl	_icl_load_gcmax
	mov	x0, 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	_ivb_load_lut_ext_max
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAL_PREC_AUTO_INCREMENT,4,2    ; @PAL_PREC_AUTO_INCREMENT
	.no_dead_strip	_icl_program_gamma_multi_segment
.subsections_via_symbols
