	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_ipp_program_input_lut
_dce_ipp_program_input_lut:             ## @dce_ipp_program_input_lut
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_TO_DCE_IPP
	movq	_DCFE_MEM_PWR_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movq	_DCP_LUT_MEM_PWR_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_REG_SET
LBB0_2:
	movq	_DC_LUT_WRITE_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	%edi, %edx
	movl	$7, %ecx
	callq	_REG_SET
	movq	_DC_LUT_RW_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movq	_DC_LUT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DC_LUT_DATA_R_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DC_LUT_DATA_G_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DC_LUT_DATA_B_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	movl	$3, %ecx
	movl	$3, %r9d
	pushq	$3
	pushq	%rax
	callq	_REG_SET_3
	addq	$16, %rsp
	movq	_DC_LUT_RW_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	%edi, %edx
	xorl	%ecx, %ecx
	callq	_REG_SET
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_DC_LUT_SEQ_COLOR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r12d
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_dc_fixpt_round
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_REG_SET
	movl	(%r13), %r12d
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_dc_fixpt_round
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_REG_SET
	movl	(%r13), %r12d
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_dc_fixpt_round
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_REG_SET
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movl	(%r15), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movq	_DCP_LUT_MEM_PWR_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_REG_SET
LBB0_7:
	movq	_PRESCALE_GRPH_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRPH_PRESCALE_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	movq	_INPUT_GAMMA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRPH_INPUT_GAMMA_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCFE_MEM_PWR_CTRL,4,2          ## @DCFE_MEM_PWR_CTRL
	.comm	_DCP_LUT_MEM_PWR_DIS,4,2        ## @DCP_LUT_MEM_PWR_DIS
	.comm	_DC_LUT_WRITE_EN_MASK,4,2       ## @DC_LUT_WRITE_EN_MASK
	.comm	_DC_LUT_RW_MODE,4,2             ## @DC_LUT_RW_MODE
	.comm	_DC_LUT_CONTROL,4,2             ## @DC_LUT_CONTROL
	.comm	_DC_LUT_DATA_R_FORMAT,4,2       ## @DC_LUT_DATA_R_FORMAT
	.comm	_DC_LUT_DATA_G_FORMAT,4,2       ## @DC_LUT_DATA_G_FORMAT
	.comm	_DC_LUT_DATA_B_FORMAT,4,2       ## @DC_LUT_DATA_B_FORMAT
	.comm	_DC_LUT_RW_INDEX,4,2            ## @DC_LUT_RW_INDEX
	.comm	_DC_LUT_SEQ_COLOR,4,2           ## @DC_LUT_SEQ_COLOR
	.comm	_PRESCALE_GRPH_CONTROL,4,2      ## @PRESCALE_GRPH_CONTROL
	.comm	_GRPH_PRESCALE_BYPASS,4,2       ## @GRPH_PRESCALE_BYPASS
	.comm	_INPUT_GAMMA_CONTROL,4,2        ## @INPUT_GAMMA_CONTROL
	.comm	_GRPH_INPUT_GAMMA_MODE,4,2      ## @GRPH_INPUT_GAMMA_MODE
	.no_dead_strip	_dce_ipp_program_input_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_ipp_program_input_lut
_dce_ipp_program_input_lut:             ; @dce_ipp_program_input_lut
	.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
	bl	_TO_DCE_IPP
Lloh0:
	adrp	x21, _DCFE_MEM_PWR_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DCFE_MEM_PWR_CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_REG
Lloh2:
	adrp	x22, _DCP_LUT_MEM_PWR_DIS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DCP_LUT_MEM_PWR_DIS@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	w1, #0
	mov	w3, #1
	bl	_REG_SET
LBB0_2:
Lloh4:
	adrp	x8, _DC_LUT_WRITE_EN_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DC_LUT_WRITE_EN_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x0
	mov	w3, #7
	bl	_REG_SET
Lloh7:
	adrp	x8, _DC_LUT_RW_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DC_LUT_RW_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x0
	mov	w2, #0
	bl	_REG_UPDATE
Lloh10:
	adrp	x8, _DC_LUT_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DC_LUT_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _DC_LUT_DATA_R_FORMAT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DC_LUT_DATA_R_FORMAT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _DC_LUT_DATA_G_FORMAT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DC_LUT_DATA_G_FORMAT@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
Lloh19:
	adrp	x8, _DC_LUT_DATA_B_FORMAT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DC_LUT_DATA_B_FORMAT@GOTPAGEOFF]
Lloh21:
	ldr	w6, [x8]
	mov	w1, #0
	mov	w3, #3
	mov	w5, #3
	mov	w7, #3
	bl	_REG_SET_3
Lloh22:
	adrp	x8, _DC_LUT_RW_INDEX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DC_LUT_RW_INDEX@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x0
	mov	w3, #0
	bl	_REG_SET
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
Lloh25:
	adrp	x24, _DC_LUT_SEQ_COLOR@GOTPAGE
Lloh26:
	ldr	x24, [x24, _DC_LUT_SEQ_COLOR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x24]
	ldr	x8, [x19, #24]
	lsl	x25, x23, #2
	ldr	w0, [x8, x25]
	bl	_dc_fixpt_round
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x20
	bl	_REG_SET
	ldr	w20, [x24]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x25]
	bl	_dc_fixpt_round
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x20
	bl	_REG_SET
	ldr	w20, [x24]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x25]
	bl	_dc_fixpt_round
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x20
	bl	_REG_SET
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	w0, [x21]
	bl	_REG
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	w1, #0
	mov	w3, #0
	bl	_REG_SET
LBB0_7:
Lloh27:
	adrp	x8, _PRESCALE_GRPH_CONTROL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PRESCALE_GRPH_CONTROL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _GRPH_PRESCALE_BYPASS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GRPH_PRESCALE_BYPASS@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_REG_UPDATE
Lloh33:
	adrp	x8, _INPUT_GAMMA_CONTROL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INPUT_GAMMA_CONTROL@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _GRPH_INPUT_GAMMA_MODE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GRPH_INPUT_GAMMA_MODE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	w2, #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	_REG_UPDATE
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DCFE_MEM_PWR_CTRL,4,2          ; @DCFE_MEM_PWR_CTRL
	.comm	_DCP_LUT_MEM_PWR_DIS,4,2        ; @DCP_LUT_MEM_PWR_DIS
	.comm	_DC_LUT_WRITE_EN_MASK,4,2       ; @DC_LUT_WRITE_EN_MASK
	.comm	_DC_LUT_RW_MODE,4,2             ; @DC_LUT_RW_MODE
	.comm	_DC_LUT_CONTROL,4,2             ; @DC_LUT_CONTROL
	.comm	_DC_LUT_DATA_R_FORMAT,4,2       ; @DC_LUT_DATA_R_FORMAT
	.comm	_DC_LUT_DATA_G_FORMAT,4,2       ; @DC_LUT_DATA_G_FORMAT
	.comm	_DC_LUT_DATA_B_FORMAT,4,2       ; @DC_LUT_DATA_B_FORMAT
	.comm	_DC_LUT_RW_INDEX,4,2            ; @DC_LUT_RW_INDEX
	.comm	_DC_LUT_SEQ_COLOR,4,2           ; @DC_LUT_SEQ_COLOR
	.comm	_PRESCALE_GRPH_CONTROL,4,2      ; @PRESCALE_GRPH_CONTROL
	.comm	_GRPH_PRESCALE_BYPASS,4,2       ; @GRPH_PRESCALE_BYPASS
	.comm	_INPUT_GAMMA_CONTROL,4,2        ; @INPUT_GAMMA_CONTROL
	.comm	_GRPH_INPUT_GAMMA_MODE,4,2      ; @GRPH_INPUT_GAMMA_MODE
	.no_dead_strip	_dce_ipp_program_input_lut
.subsections_via_symbols
