	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get3dlut_config
_get3dlut_config:                       ## @get3dlut_config
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_TO_DCN20_DPP
	movq	_CM_3DLUT_READ_WRITE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_3DLUT_CONFIG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_3DLUT_30BIT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %rdx
	leaq	-32(%rbp), %r8
	callq	_REG_GET_2
	movl	-36(%rbp), %ecx
	cmpl	$1, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_LUT_RAM_A@GOTPCREL(%rip), %rax
	cmpl	$2, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_LUT_BYPASS@GOTPCREL(%rip), %rax
	cmpl	$2, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_LUT_RAM_B@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	xorl	%eax, %eax
	cmpl	$0, -32(%rbp)
	setle	%al
	movl	%eax, (%r15)
	movq	_CM_3DLUT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_3DLUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_REG_GET
	xorl	%eax, %eax
	cmpl	$0, -28(%rbp)
	sete	%al
	movl	%eax, (%r14)
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_3DLUT_READ_WRITE_CONTROL,4,2 ## @CM_3DLUT_READ_WRITE_CONTROL
	.comm	_CM_3DLUT_CONFIG_STATUS,4,2     ## @CM_3DLUT_CONFIG_STATUS
	.comm	_CM_3DLUT_30BIT_EN,4,2          ## @CM_3DLUT_30BIT_EN
	.comm	_LUT_BYPASS,4,2                 ## @LUT_BYPASS
	.comm	_LUT_RAM_A,4,2                  ## @LUT_RAM_A
	.comm	_LUT_RAM_B,4,2                  ## @LUT_RAM_B
	.comm	_CM_3DLUT_MODE,4,2              ## @CM_3DLUT_MODE
	.comm	_CM_3DLUT_SIZE,4,2              ## @CM_3DLUT_SIZE
	.no_dead_strip	_get3dlut_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get3dlut_config
_get3dlut_config:                       ; @get3dlut_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	bl	_TO_DCN20_DPP
Lloh0:
	adrp	x8, _CM_3DLUT_READ_WRITE_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_3DLUT_READ_WRITE_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CM_3DLUT_CONFIG_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CM_3DLUT_CONFIG_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CM_3DLUT_30BIT_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CM_3DLUT_30BIT_EN@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x2, sp, #12
	add	x4, sp, #8
	bl	_REG_GET_2
Lloh9:
	adrp	x8, _LUT_RAM_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LUT_RAM_B@GOTPAGEOFF]
Lloh11:
	adrp	x9, _LUT_RAM_A@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LUT_RAM_A@GOTPAGEOFF]
	ldr	w10, [sp, #12]
Lloh13:
	adrp	x11, _LUT_BYPASS@GOTPAGE
Lloh14:
	ldr	x11, [x11, _LUT_BYPASS@GOTPAGEOFF]
	cmp	w10, #1
	csel	x9, x9, x11, eq
	cmp	w10, #2
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
	ldr	w8, [sp, #8]
	cmp	w8, #1
	cset	w8, lt
	str	w8, [x19]
Lloh15:
	adrp	x8, _CM_3DLUT_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CM_3DLUT_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _CM_3DLUT_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CM_3DLUT_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_REG_GET
	ldr	w8, [sp, #4]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x20]
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_3DLUT_READ_WRITE_CONTROL,4,2 ; @CM_3DLUT_READ_WRITE_CONTROL
	.comm	_CM_3DLUT_CONFIG_STATUS,4,2     ; @CM_3DLUT_CONFIG_STATUS
	.comm	_CM_3DLUT_30BIT_EN,4,2          ; @CM_3DLUT_30BIT_EN
	.comm	_LUT_BYPASS,4,2                 ; @LUT_BYPASS
	.comm	_LUT_RAM_A,4,2                  ; @LUT_RAM_A
	.comm	_LUT_RAM_B,4,2                  ; @LUT_RAM_B
	.comm	_CM_3DLUT_MODE,4,2              ; @CM_3DLUT_MODE
	.comm	_CM_3DLUT_SIZE,4,2              ; @CM_3DLUT_SIZE
	.no_dead_strip	_get3dlut_config
.subsections_via_symbols
