	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_set_input_transfer_func  ## -- Begin function dcn20_set_input_transfer_func
	.p2align	4, 0x90
_dcn20_set_input_transfer_func:         ## @dcn20_set_input_transfer_func
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_20
## %bb.2:
	movq	%rsi, %rbx
	movq	%r12, %rdi
	callq	_dcn20_set_shaper_3dlut
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dcn20_set_blend_lut
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.3:
	movq	(%rsi), %rax
	movq	_TF_TYPE_HWPWL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_TF_TYPE_DISTRIBUTED_POINTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdx, %rax
	je	LBB0_5
## %bb.4:
	cmpq	%rcx, %rax
	je	LBB0_5
## %bb.9:
	movq	_TF_TYPE_PREDEFINED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.10:
	movl	8(%rsi), %eax
	cmpl	$131, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$130, %eax
	je	LBB0_17
## %bb.12:
	cmpl	$128, %eax
	jne	LBB0_20
## %bb.13:
	movq	(%r14), %rax
	movq	_IPP_DEGAMMA_MODE_HW_sRGB@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_5:
	cmpq	%rdx, %rax
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	addq	$12, %rsi
	movq	%r14, %rdi
	callq	*8(%rax)
	jmp	LBB0_19
LBB0_15:
	movq	_TF_TYPE_BYPASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
LBB0_17:
	movq	(%r14), %rax
	movq	_IPP_DEGAMMA_MODE_BYPASS@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_19:
	movl	$1, %r15d
LBB0_20:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, %r15d
	cmpq	%rcx, %rax
	jne	LBB0_20
## %bb.8:
	leaq	8(%r14), %rbx
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	callq	_cm_helper_translate_curve_to_degamma_hw_format
	movq	(%r14), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax)
	jmp	LBB0_20
LBB0_14:
	movq	(%r14), %rax
	movq	_IPP_DEGAMMA_MODE_HW_xvYCC@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IPP_DEGAMMA_MODE_BYPASS,4,2    ## @IPP_DEGAMMA_MODE_BYPASS
	.comm	_TF_TYPE_HWPWL,8,3              ## @TF_TYPE_HWPWL
	.comm	_TF_TYPE_DISTRIBUTED_POINTS,8,3 ## @TF_TYPE_DISTRIBUTED_POINTS
	.comm	_TF_TYPE_PREDEFINED,8,3         ## @TF_TYPE_PREDEFINED
	.comm	_IPP_DEGAMMA_MODE_HW_sRGB,4,2   ## @IPP_DEGAMMA_MODE_HW_sRGB
	.comm	_IPP_DEGAMMA_MODE_HW_xvYCC,4,2  ## @IPP_DEGAMMA_MODE_HW_xvYCC
	.comm	_TF_TYPE_BYPASS,8,3             ## @TF_TYPE_BYPASS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_set_input_transfer_func  ; -- Begin function dcn20_set_input_transfer_func
	.p2align	2
_dcn20_set_input_transfer_func:         ; @dcn20_set_input_transfer_func
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	mov	w0, #0
	cbz	x1, LBB0_18
; %bb.1:
	ldr	x19, [x21]
	cbz	x19, LBB0_18
; %bb.2:
	mov	x20, x1
	mov	x0, x21
	bl	_dcn20_set_shaper_3dlut
	mov	x0, x21
	mov	x1, x20
	bl	_dcn20_set_blend_lut
	ldr	x0, [x20]
	cbz	x0, LBB0_15
; %bb.3:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TF_TYPE_HWPWL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TF_TYPE_HWPWL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _TF_TYPE_DISTRIBUTED_POINTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TF_TYPE_DISTRIBUTED_POINTS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_6
; %bb.4:
	cmp	x8, x10
	b.ne	LBB0_11
; %bb.5:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x1, x0, #12
	mov	x0, x19
	blr	x8
	b	LBB0_17
LBB0_6:
Lloh6:
	adrp	x9, _TF_TYPE_PREDEFINED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TF_TYPE_PREDEFINED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.7:
	ldr	w8, [x0, #8]
	cmp	w8, #131
	b.eq	LBB0_19
; %bb.8:
	cmp	w8, #130
	b.eq	LBB0_15
; %bb.9:
	cmp	w8, #128
	b.ne	LBB0_20
; %bb.10:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _IPP_DEGAMMA_MODE_HW_sRGB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPP_DEGAMMA_MODE_HW_sRGB@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.12:
	add	x20, x19, #8
	mov	x1, x20
	bl	_cm_helper_translate_curve_to_degamma_hw_format
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	b	LBB0_17
LBB0_13:
Lloh11:
	adrp	x9, _TF_TYPE_BYPASS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TF_TYPE_BYPASS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.14:
	bl	_BREAK_TO_DEBUGGER
LBB0_15:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _IPP_DEGAMMA_MODE_BYPASS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IPP_DEGAMMA_MODE_BYPASS@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
LBB0_17:
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _IPP_DEGAMMA_MODE_HW_xvYCC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IPP_DEGAMMA_MODE_HW_xvYCC@GOTPAGEOFF]
	b	LBB0_16
LBB0_20:
	mov	w0, #0
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IPP_DEGAMMA_MODE_BYPASS,4,2    ; @IPP_DEGAMMA_MODE_BYPASS
	.comm	_TF_TYPE_HWPWL,8,3              ; @TF_TYPE_HWPWL
	.comm	_TF_TYPE_DISTRIBUTED_POINTS,8,3 ; @TF_TYPE_DISTRIBUTED_POINTS
	.comm	_TF_TYPE_PREDEFINED,8,3         ; @TF_TYPE_PREDEFINED
	.comm	_IPP_DEGAMMA_MODE_HW_sRGB,4,2   ; @IPP_DEGAMMA_MODE_HW_sRGB
	.comm	_IPP_DEGAMMA_MODE_HW_xvYCC,4,2  ; @IPP_DEGAMMA_MODE_HW_xvYCC
	.comm	_TF_TYPE_BYPASS,8,3             ; @TF_TYPE_BYPASS
.subsections_via_symbols
