	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_set_output_transfer_func ## -- Begin function dcn20_set_output_transfer_func
	.p2align	4, 0x90
_dcn20_set_output_transfer_func:        ## @dcn20_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	movl	(%rcx), %r14d
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	(%r13), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	*%rax
LBB0_2:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_4:
	movq	(%r13), %rax
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	*(%rax)
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.6:
	movq	(%r12), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.7:
	movq	(%r15), %rax
	movq	_TF_TYPE_HWPWL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	addq	$8, %r15
	jmp	LBB0_14
LBB0_11:
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_TF_TYPE_DISTRIBUTED_POINTS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	8(%r13), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_cm_helper_translate_curve_to_hw_format
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%rbx, %r15
	jmp	LBB0_14
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	_TF_TYPE_PREDEFINED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.15:
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_set_output_transfer_func ; -- Begin function dcn20_set_output_transfer_func
	.p2align	2
_dcn20_set_output_transfer_func:        ; @dcn20_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
	mov	x22, x0
	ldp	x9, x8, [x0, #16]
	ldr	w19, [x8]
	ldr	x8, [x9]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	blr	x8
LBB0_2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
LBB0_3:
	mov	x22, #0
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	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
LBB0_5:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.6:
	ldr	x0, [x21]
	cbz	x0, LBB0_3
; %bb.7:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TF_TYPE_HWPWL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TF_TYPE_HWPWL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	add	x22, x0, #8
	b	LBB0_12
LBB0_9:
	ldr	x9, [x22]
	ldr	x9, [x9]
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _TF_TYPE_DISTRIBUTED_POINTS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TF_TYPE_DISTRIBUTED_POINTS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.10:
	add	x22, x20, #8
	mov	x1, x22
	mov	w2, #0
	bl	_cm_helper_translate_curve_to_hw_format
	cmp	x0, #0
	csel	x22, xzr, x22, eq
	ldr	x8, [x21]
	ldr	x8, [x8]
	b	LBB0_12
LBB0_11:
	mov	x22, #0
LBB0_12:
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_4
; %bb.13:
	bl	_BREAK_TO_DEBUGGER
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.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
.subsections_via_symbols
