	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce110_set_output_transfer_func
_dce110_set_output_transfer_func:       ## @dce110_set_output_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*(%rax)
	movq	_GAMMA_HW_POINTS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	(%rdi), %rax
	movq	_TF_TYPE_PREDEFINED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	8(%rdi), %rax
	movq	_TRANSFER_FUNCTION_SRGB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_OPP_REGAMMA_SRGB@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	leaq	8(%rbx), %r14
	movq	%r14, %rsi
	callq	_dce110_translate_regamma_to_hw_format
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*16(%rcx)
	movq	_OPP_REGAMMA_USER@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rbx), %rcx
	jmp	LBB0_8
LBB0_5:
	movq	_OPP_REGAMMA_BYPASS@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*8(%rcx)
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GAMMA_HW_POINTS_NUM,4,2        ## @GAMMA_HW_POINTS_NUM
	.comm	_TF_TYPE_PREDEFINED,8,3         ## @TF_TYPE_PREDEFINED
	.comm	_TRANSFER_FUNCTION_SRGB,8,3     ## @TRANSFER_FUNCTION_SRGB
	.comm	_OPP_REGAMMA_SRGB,4,2           ## @OPP_REGAMMA_SRGB
	.comm	_OPP_REGAMMA_USER,4,2           ## @OPP_REGAMMA_USER
	.comm	_OPP_REGAMMA_BYPASS,4,2         ## @OPP_REGAMMA_BYPASS
	.no_dead_strip	_dce110_set_output_transfer_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce110_set_output_transfer_func
_dce110_set_output_transfer_func:       ; @dce110_set_output_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, x1
	ldr	x19, [x0]
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
Lloh0:
	adrp	x8, _GAMMA_HW_POINTS_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GAMMA_HW_POINTS_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x20, x19
	str	w8, [x20, #8]!
	ldr	x0, [x21]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _TF_TYPE_PREDEFINED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TF_TYPE_PREDEFINED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _TRANSFER_FUNCTION_SRGB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRANSFER_FUNCTION_SRGB@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _OPP_REGAMMA_SRGB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPP_REGAMMA_SRGB@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	x1, x20
	bl	_dce110_translate_regamma_to_hw_format
	ldr	x9, [x19]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x9, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x8
Lloh11:
	adrp	x8, _OPP_REGAMMA_USER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPP_REGAMMA_USER@GOTPAGEOFF]
LBB0_6:
	ldr	x9, [x19]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _OPP_REGAMMA_BYPASS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OPP_REGAMMA_BYPASS@GOTPAGEOFF]
LBB0_8:
	ldr	x9, [x9, #8]
	ldr	w1, [x8]
	mov	x0, x19
	blr	x9
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	w0, #1
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GAMMA_HW_POINTS_NUM,4,2        ; @GAMMA_HW_POINTS_NUM
	.comm	_TF_TYPE_PREDEFINED,8,3         ; @TF_TYPE_PREDEFINED
	.comm	_TRANSFER_FUNCTION_SRGB,8,3     ; @TRANSFER_FUNCTION_SRGB
	.comm	_OPP_REGAMMA_SRGB,4,2           ; @OPP_REGAMMA_SRGB
	.comm	_OPP_REGAMMA_USER,4,2           ; @OPP_REGAMMA_USER
	.comm	_OPP_REGAMMA_BYPASS,4,2         ; @OPP_REGAMMA_BYPASS
	.no_dead_strip	_dce110_set_output_transfer_func
.subsections_via_symbols
