	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc2_program_luta
_mpc2_program_luta:                     ## @mpc2_program_luta
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_TO_DCN20_MPC
	movq	%rax, %r12
	leaq	-152(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mpc2_ogam_get_reg_field
	movq	_MPCC_OGAM_RAMA_START_CNTL_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r13d, %rbx
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -48(%rbp)
	movq	_MPCC_OGAM_RAMA_START_CNTL_G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -56(%rbp)
	movq	_MPCC_OGAM_RAMA_START_CNTL_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -64(%rbp)
	movq	_MPCC_OGAM_RAMA_SLOPE_CNTL_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -72(%rbp)
	movq	_MPCC_OGAM_RAMA_SLOPE_CNTL_G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -80(%rbp)
	movq	_MPCC_OGAM_RAMA_SLOPE_CNTL_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -88(%rbp)
	movq	_MPCC_OGAM_RAMA_END_CNTL1_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -96(%rbp)
	movq	_MPCC_OGAM_RAMA_END_CNTL2_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -104(%rbp)
	movq	_MPCC_OGAM_RAMA_END_CNTL1_G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -112(%rbp)
	movq	_MPCC_OGAM_RAMA_END_CNTL2_G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -120(%rbp)
	movq	_MPCC_OGAM_RAMA_END_CNTL1_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -128(%rbp)
	movq	_MPCC_OGAM_RAMA_END_CNTL2_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -136(%rbp)
	movq	_MPCC_OGAM_RAMA_REGION_0_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -144(%rbp)
	movq	_MPCC_OGAM_RAMA_REGION_32_33@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_REG
	movq	%rax, -152(%rbp)
	movl	(%r12), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_cm_helper_program_xfer_func
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPCC_OGAM_RAMA_START_CNTL_B,8,3 ## @MPCC_OGAM_RAMA_START_CNTL_B
	.comm	_MPCC_OGAM_RAMA_START_CNTL_G,8,3 ## @MPCC_OGAM_RAMA_START_CNTL_G
	.comm	_MPCC_OGAM_RAMA_START_CNTL_R,8,3 ## @MPCC_OGAM_RAMA_START_CNTL_R
	.comm	_MPCC_OGAM_RAMA_SLOPE_CNTL_B,8,3 ## @MPCC_OGAM_RAMA_SLOPE_CNTL_B
	.comm	_MPCC_OGAM_RAMA_SLOPE_CNTL_G,8,3 ## @MPCC_OGAM_RAMA_SLOPE_CNTL_G
	.comm	_MPCC_OGAM_RAMA_SLOPE_CNTL_R,8,3 ## @MPCC_OGAM_RAMA_SLOPE_CNTL_R
	.comm	_MPCC_OGAM_RAMA_END_CNTL1_B,8,3 ## @MPCC_OGAM_RAMA_END_CNTL1_B
	.comm	_MPCC_OGAM_RAMA_END_CNTL2_B,8,3 ## @MPCC_OGAM_RAMA_END_CNTL2_B
	.comm	_MPCC_OGAM_RAMA_END_CNTL1_G,8,3 ## @MPCC_OGAM_RAMA_END_CNTL1_G
	.comm	_MPCC_OGAM_RAMA_END_CNTL2_G,8,3 ## @MPCC_OGAM_RAMA_END_CNTL2_G
	.comm	_MPCC_OGAM_RAMA_END_CNTL1_R,8,3 ## @MPCC_OGAM_RAMA_END_CNTL1_R
	.comm	_MPCC_OGAM_RAMA_END_CNTL2_R,8,3 ## @MPCC_OGAM_RAMA_END_CNTL2_R
	.comm	_MPCC_OGAM_RAMA_REGION_0_1,8,3  ## @MPCC_OGAM_RAMA_REGION_0_1
	.comm	_MPCC_OGAM_RAMA_REGION_32_33,8,3 ## @MPCC_OGAM_RAMA_REGION_32_33
	.no_dead_strip	_mpc2_program_luta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc2_program_luta
_mpc2_program_luta:                     ; @mpc2_program_luta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_TO_DCN20_MPC
	mov	x20, x0
	mov	x1, sp
	mov	x0, x22
	bl	_mpc2_ogam_get_reg_field
Lloh0:
	adrp	x8, _MPCC_OGAM_RAMA_START_CNTL_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_START_CNTL_B@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sbfiz	x21, x21, #2, #32
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #104]
Lloh3:
	adrp	x8, _MPCC_OGAM_RAMA_START_CNTL_G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_START_CNTL_G@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #96]
Lloh6:
	adrp	x8, _MPCC_OGAM_RAMA_START_CNTL_R@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_START_CNTL_R@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #88]
Lloh9:
	adrp	x8, _MPCC_OGAM_RAMA_SLOPE_CNTL_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_SLOPE_CNTL_B@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #80]
Lloh12:
	adrp	x8, _MPCC_OGAM_RAMA_SLOPE_CNTL_G@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_SLOPE_CNTL_G@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #72]
Lloh15:
	adrp	x8, _MPCC_OGAM_RAMA_SLOPE_CNTL_R@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_SLOPE_CNTL_R@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #64]
Lloh18:
	adrp	x8, _MPCC_OGAM_RAMA_END_CNTL1_B@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_END_CNTL1_B@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #56]
Lloh21:
	adrp	x8, _MPCC_OGAM_RAMA_END_CNTL2_B@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_END_CNTL2_B@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #48]
Lloh24:
	adrp	x8, _MPCC_OGAM_RAMA_END_CNTL1_G@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_END_CNTL1_G@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #40]
Lloh27:
	adrp	x8, _MPCC_OGAM_RAMA_END_CNTL2_G@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_END_CNTL2_G@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #32]
Lloh30:
	adrp	x8, _MPCC_OGAM_RAMA_END_CNTL1_R@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_END_CNTL1_R@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #24]
Lloh33:
	adrp	x8, _MPCC_OGAM_RAMA_END_CNTL2_R@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_END_CNTL2_R@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #16]
Lloh36:
	adrp	x8, _MPCC_OGAM_RAMA_REGION_0_1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_REGION_0_1@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp, #8]
Lloh39:
	adrp	x8, _MPCC_OGAM_RAMA_REGION_32_33@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MPCC_OGAM_RAMA_REGION_32_33@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_REG
	str	x0, [sp]
	ldr	w0, [x20]
	mov	x2, sp
	mov	x1, x19
	bl	_cm_helper_program_xfer_func
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MPCC_OGAM_RAMA_START_CNTL_B,8,3 ; @MPCC_OGAM_RAMA_START_CNTL_B
	.comm	_MPCC_OGAM_RAMA_START_CNTL_G,8,3 ; @MPCC_OGAM_RAMA_START_CNTL_G
	.comm	_MPCC_OGAM_RAMA_START_CNTL_R,8,3 ; @MPCC_OGAM_RAMA_START_CNTL_R
	.comm	_MPCC_OGAM_RAMA_SLOPE_CNTL_B,8,3 ; @MPCC_OGAM_RAMA_SLOPE_CNTL_B
	.comm	_MPCC_OGAM_RAMA_SLOPE_CNTL_G,8,3 ; @MPCC_OGAM_RAMA_SLOPE_CNTL_G
	.comm	_MPCC_OGAM_RAMA_SLOPE_CNTL_R,8,3 ; @MPCC_OGAM_RAMA_SLOPE_CNTL_R
	.comm	_MPCC_OGAM_RAMA_END_CNTL1_B,8,3 ; @MPCC_OGAM_RAMA_END_CNTL1_B
	.comm	_MPCC_OGAM_RAMA_END_CNTL2_B,8,3 ; @MPCC_OGAM_RAMA_END_CNTL2_B
	.comm	_MPCC_OGAM_RAMA_END_CNTL1_G,8,3 ; @MPCC_OGAM_RAMA_END_CNTL1_G
	.comm	_MPCC_OGAM_RAMA_END_CNTL2_G,8,3 ; @MPCC_OGAM_RAMA_END_CNTL2_G
	.comm	_MPCC_OGAM_RAMA_END_CNTL1_R,8,3 ; @MPCC_OGAM_RAMA_END_CNTL1_R
	.comm	_MPCC_OGAM_RAMA_END_CNTL2_R,8,3 ; @MPCC_OGAM_RAMA_END_CNTL2_R
	.comm	_MPCC_OGAM_RAMA_REGION_0_1,8,3  ; @MPCC_OGAM_RAMA_REGION_0_1
	.comm	_MPCC_OGAM_RAMA_REGION_32_33,8,3 ; @MPCC_OGAM_RAMA_REGION_32_33
	.no_dead_strip	_mpc2_program_luta
.subsections_via_symbols
