	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_set_input_transfer_func
_dcn10_set_input_transfer_func:         ## @dcn10_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
	movq	(%rdi), %r12
	xorl	%r14d, %r14d
	testq	%r12, %r12
	je	LBB0_18
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	16(%rsi), %r15
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	16(%r12), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_6
## %bb.3:
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.4:
	movl	8(%rbx), %edi
	callq	_dce_use_lut
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%r12), %rax
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	*16(%rax)
LBB0_6:
	testq	%r15, %r15
	je	LBB0_7
## %bb.9:
	movq	(%r15), %rax
	movq	_TF_TYPE_PREDEFINED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.10:
	movl	8(%r15), %eax
	cmpl	$131, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.12:
	cmpl	$128, %eax
	jne	LBB0_18
## %bb.13:
	movq	8(%r12), %rax
	movq	_IPP_DEGAMMA_MODE_HW_sRGB@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_15:
	movq	_TF_TYPE_BYPASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_7:
	movq	8(%r12), %rax
	movq	_IPP_DEGAMMA_MODE_BYPASS@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %esi
	movq	%r12, %rdi
	callq	*8(%rax)
LBB0_17:
	movl	$1, %r14d
LBB0_18:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_cm_helper_translate_curve_to_degamma_hw_format
	movq	8(%r12), %rax
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	*(%rax)
	jmp	LBB0_17
LBB0_14:
	movq	8(%r12), %rax
	movq	_IPP_DEGAMMA_MODE_HW_xvYCC@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IPP_DEGAMMA_MODE_BYPASS,4,2    ## @IPP_DEGAMMA_MODE_BYPASS
	.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
	.no_dead_strip	_dcn10_set_input_transfer_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn10_set_input_transfer_func
_dcn10_set_input_transfer_func:         ; @dcn10_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
	ldr	x19, [x0]
	cbz	x19, LBB0_12
; %bb.1:
	mov	x21, x1
	ldr	x20, [x1, #16]
	ldr	x8, [x1]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	ldr	w9, [x9]
	cbnz	w9, LBB0_6
; %bb.3:
	ldr	w8, [x8]
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	w0, [x21, #8]
	bl	_dce_use_lut
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	ldr	x1, [x21]
	mov	x0, x19
	blr	x8
LBB0_6:
	cbz	x20, LBB0_14
; %bb.7:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _TF_TYPE_PREDEFINED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TF_TYPE_PREDEFINED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
	ldr	w8, [x20, #8]
	cmp	w8, #131
	b.eq	LBB0_19
; %bb.9:
	cmp	w8, #130
	b.eq	LBB0_14
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _IPP_DEGAMMA_MODE_HW_sRGB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPP_DEGAMMA_MODE_HW_sRGB@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	mov	w0, #0
	b	LBB0_17
LBB0_13:
Lloh5:
	adrp	x9, _TF_TYPE_BYPASS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TF_TYPE_BYPASS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
Lloh8:
	adrp	x9, _IPP_DEGAMMA_MODE_BYPASS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IPP_DEGAMMA_MODE_BYPASS@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
LBB0_16:
	mov	w0, #1
LBB0_17:
	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_18:
	mov	x0, x20
	mov	x1, x19
	bl	_cm_helper_translate_curve_to_degamma_hw_format
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x19
	blr	x8
	b	LBB0_16
LBB0_19:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
Lloh10:
	adrp	x9, _IPP_DEGAMMA_MODE_HW_xvYCC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IPP_DEGAMMA_MODE_HW_xvYCC@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPP_DEGAMMA_MODE_BYPASS,4,2    ; @IPP_DEGAMMA_MODE_BYPASS
	.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
	.no_dead_strip	_dcn10_set_input_transfer_func
.subsections_via_symbols
