	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_ddi_clock_get
_skl_ddi_clock_get:                     ## @skl_ddi_clock_get
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	leaq	4(%rsi), %r15
	movl	4(%rsi), %ebx
	xorl	%edi, %edi
	callq	_DPLL_CTRL1_HDMI_MODE
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_skl_calc_wrpll_link
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	movl	(%r15), %r15d
	xorl	%edi, %edi
	callq	_DPLL_CTRL1_LINK_RATE_MASK
	movl	%eax, %ebx
	andl	%r15d, %ebx
	xorl	%edi, %edi
	callq	_DPLL_CTRL1_LINK_RATE_SHIFT
	movl	%eax, %ecx
	sarl	%cl, %ebx
	leal	-128(%rbx), %eax
	cmpl	$6, %eax
	jae	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.skl_ddi_clock_get(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	addl	%ebx, %ebx
LBB0_5:
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ddi_dotclock_get               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported link rate\n"

	.no_dead_strip	_skl_ddi_clock_get
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.skl_ddi_clock_get
l_switch.table.skl_ddi_clock_get:
	.long	162000                          ## 0x278d0
	.long	540000                          ## 0x83d60
	.long	432000                          ## 0x69780
	.long	324000                          ## 0x4f1a0
	.long	270000                          ## 0x41eb0
	.long	216000                          ## 0x34bc0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_ddi_clock_get
_skl_ddi_clock_get:                     ; @skl_ddi_clock_get
	.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	x19, x1
	mov	x20, x1
	ldr	w21, [x20, #4]!
	mov	w0, #0
	bl	_DPLL_CTRL1_HDMI_MODE
	tst	w0, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_skl_calc_wrpll_link
	b	LBB0_5
LBB0_2:
	ldr	w20, [x20]
	mov	w0, #0
	bl	_DPLL_CTRL1_LINK_RATE_MASK
	and	w20, w0, w20
	mov	w0, #0
	bl	_DPLL_CTRL1_LINK_RATE_SHIFT
	asr	w20, w20, w0
	sub	w8, w20, #128
	cmp	w8, #6
	b.hs	LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, l_switch.table.skl_ddi_clock_get@PAGE
Lloh1:
	add	x9, x9, l_switch.table.skl_ddi_clock_get@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	lsl	w0, w20, #1
LBB0_5:
	str	w0, [x19]
	mov	x0, x19
	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
	b	_ddi_dotclock_get
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported link rate\n"

	.no_dead_strip	_skl_ddi_clock_get
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.skl_ddi_clock_get
l_switch.table.skl_ddi_clock_get:
	.long	162000                          ; 0x278d0
	.long	540000                          ; 0x83d60
	.long	432000                          ; 0x69780
	.long	324000                          ; 0x4f1a0
	.long	270000                          ; 0x41eb0
	.long	216000                          ; 0x34bc0

.subsections_via_symbols
