	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_set_clock
_dcn10_set_clock:                       ## @dcn10_set_clock
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-64(%rbp), %rcx
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	*%rax
	movq	(%rbx), %rdi
LBB0_2:
	movq	(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.4:
	cmpq	%r12, -64(%rbp)
	jge	LBB0_6
## %bb.5:
	movq	_DC_FAIL_CLK_EXCEED_MAX@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_3:
	movq	_DC_FAIL_UNSUPPORTED_1@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_6:
	cmpq	%r12, -56(%rbp)
	jle	LBB0_8
## %bb.7:
	movq	_DC_FAIL_CLK_BELOW_MIN@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_8:
	cmpq	%r12, -48(%rbp)
	jle	LBB0_10
## %bb.9:
	movq	_DC_FAIL_CLK_BELOW_CFG_REQUIRED@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_10:
	movq	_DC_CLOCK_TYPE_DISPCLK@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_12
## %bb.11:
	leaq	8(%r14), %rcx
	jmp	LBB0_15
LBB0_12:
	movq	_DC_CLOCK_TYPE_DPPCLK@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_13
## %bb.14:
	movq	%r14, %rcx
LBB0_15:
	movq	%r12, (%rcx)
	movq	(%rax), %rcx
	movq	_DC_OK@GOTPCREL(%rip), %rbx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:
	movq	%r14, %rsi
	movl	$1, %edx
	callq	*%rcx
	jmp	LBB0_17
LBB0_13:
	movq	_DC_ERROR_UNEXPECTED@GOTPCREL(%rip), %rbx
LBB0_17:
	movl	(%rbx), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_FAIL_UNSUPPORTED_1,4,2      ## @DC_FAIL_UNSUPPORTED_1
	.comm	_DC_FAIL_CLK_EXCEED_MAX,4,2     ## @DC_FAIL_CLK_EXCEED_MAX
	.comm	_DC_FAIL_CLK_BELOW_MIN,4,2      ## @DC_FAIL_CLK_BELOW_MIN
	.comm	_DC_FAIL_CLK_BELOW_CFG_REQUIRED,4,2 ## @DC_FAIL_CLK_BELOW_CFG_REQUIRED
	.comm	_DC_CLOCK_TYPE_DISPCLK,4,2      ## @DC_CLOCK_TYPE_DISPCLK
	.comm	_DC_CLOCK_TYPE_DPPCLK,4,2       ## @DC_CLOCK_TYPE_DPPCLK
	.comm	_DC_ERROR_UNEXPECTED,4,2        ## @DC_ERROR_UNEXPECTED
	.comm	_DC_OK,4,2                      ## @DC_OK
	.no_dead_strip	_dcn10_set_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn10_set_clock
_dcn10_set_clock:                       ; @dcn10_set_clock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	ldp	x0, x19, [x0]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x3, sp
	mov	x1, x19
	mov	x2, x21
	blr	x8
	ldr	x0, [x22]
LBB0_2:
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	x9, [sp]
	cmp	x9, x20
	b.ge	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _DC_FAIL_CLK_EXCEED_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_FAIL_CLK_EXCEED_MAX@GOTPAGEOFF]
	b	LBB0_18
LBB0_5:
Lloh2:
	adrp	x8, _DC_FAIL_UNSUPPORTED_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DC_FAIL_UNSUPPORTED_1@GOTPAGEOFF]
	b	LBB0_18
LBB0_6:
	ldr	x9, [sp, #8]
	cmp	x9, x20
	b.le	LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _DC_FAIL_CLK_BELOW_MIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DC_FAIL_CLK_BELOW_MIN@GOTPAGEOFF]
	b	LBB0_18
LBB0_8:
	ldr	x9, [sp, #16]
	cmp	x9, x20
	b.le	LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _DC_FAIL_CLK_BELOW_CFG_REQUIRED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DC_FAIL_CLK_BELOW_CFG_REQUIRED@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
Lloh8:
	adrp	x9, _DC_CLOCK_TYPE_DISPCLK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DC_CLOCK_TYPE_DISPCLK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_12
; %bb.11:
	add	x9, x19, #8
	b	LBB0_14
LBB0_12:
Lloh11:
	adrp	x9, _DC_CLOCK_TYPE_DPPCLK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DC_CLOCK_TYPE_DPPCLK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_17
; %bb.13:
	mov	x9, x19
LBB0_14:
	str	x20, [x9]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x1, x19
	mov	w2, #1
	blr	x8
LBB0_16:
Lloh14:
	adrp	x8, _DC_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DC_OK@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh16:
	adrp	x8, _DC_ERROR_UNEXPECTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DC_ERROR_UNEXPECTED@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_FAIL_UNSUPPORTED_1,4,2      ; @DC_FAIL_UNSUPPORTED_1
	.comm	_DC_FAIL_CLK_EXCEED_MAX,4,2     ; @DC_FAIL_CLK_EXCEED_MAX
	.comm	_DC_FAIL_CLK_BELOW_MIN,4,2      ; @DC_FAIL_CLK_BELOW_MIN
	.comm	_DC_FAIL_CLK_BELOW_CFG_REQUIRED,4,2 ; @DC_FAIL_CLK_BELOW_CFG_REQUIRED
	.comm	_DC_CLOCK_TYPE_DISPCLK,4,2      ; @DC_CLOCK_TYPE_DISPCLK
	.comm	_DC_CLOCK_TYPE_DPPCLK,4,2       ; @DC_CLOCK_TYPE_DPPCLK
	.comm	_DC_ERROR_UNEXPECTED,4,2        ; @DC_ERROR_UNEXPECTED
	.comm	_DC_OK,4,2                      ; @DC_OK
	.no_dead_strip	_dcn10_set_clock
.subsections_via_symbols
