	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_get_cdclk
_skl_get_cdclk:                         ## @skl_get_cdclk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_skl_dpll0_update
	movl	8(%rbx), %eax
	movl	%eax, 4(%rbx)
	movl	%eax, (%rbx)
	cmpl	$0, 12(%rbx)
	je	LBB0_15
## %bb.1:
	movq	_CDCLK_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
                                        ## kill: def $eax killed $eax def $rax
	movq	_CDCLK_FREQ_SEL_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$8640000, 12(%rbx)              ## imm = 0x83D600
	jne	LBB0_5
## %bb.2:
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_8
## %bb.3:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	$617143, (%rbx)                 ## imm = 0x96AB7
	jmp	LBB0_15
LBB0_5:
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_8
## %bb.6:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movl	$675000, (%rbx)                 ## imm = 0xA4CB8
	jmp	LBB0_15
LBB0_9:
	movl	$540000, (%rbx)                 ## imm = 0x83D60
	jmp	LBB0_15
LBB0_8:
	movl	%eax, %edi
	callq	_MISSING_CASE
	jmp	LBB0_15
LBB0_10:
	movl	$432000, (%rbx)                 ## imm = 0x69780
	jmp	LBB0_15
LBB0_11:
	movl	$308571, (%rbx)                 ## imm = 0x4B55B
	jmp	LBB0_15
LBB0_13:
	movl	$450000, (%rbx)                 ## imm = 0x6DDD0
	jmp	LBB0_15
LBB0_14:
	movl	$337500, (%rbx)                 ## imm = 0x5265C
LBB0_15:
	movl	(%rbx), %edi
	callq	_skl_calc_voltage_level
	movl	%eax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_14
.set L0_1_set_4, LBB0_4-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
LJTI0_1:
	.long	L0_1_set_4
	.long	L0_1_set_9
	.long	L0_1_set_10
	.long	L0_1_set_11
	.end_data_region
                                        ## -- End function
	.comm	_CDCLK_CTL,4,2                  ## @CDCLK_CTL
	.comm	_CDCLK_FREQ_SEL_MASK,4,2        ## @CDCLK_FREQ_SEL_MASK
	.no_dead_strip	_skl_get_cdclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_get_cdclk
_skl_get_cdclk:                         ; @skl_get_cdclk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_skl_dpll0_update
	ldp	w8, w9, [x19, #8]
	stp	w8, w8, [x19]
	cbz	w9, LBB0_16
; %bb.1:
Lloh0:
	adrp	x8, _CDCLK_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CDCLK_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	ldr	w8, [x19, #12]
Lloh3:
	adrp	x9, _CDCLK_FREQ_SEL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CDCLK_FREQ_SEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w0, w9, w0
	sub	w8, w8, #2109, lsl #12          ; =8638464
	cmp	w8, #1536
	b.ne	LBB0_5
; %bb.2:
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.3:
Lloh6:
	adrp	x9, lJTI0_1@PAGE
Lloh7:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w8, #27319
	movk	w8, #9, lsl #16
	b	LBB0_15
LBB0_5:
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.6:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	w8, #19640
	movk	w8, #10, lsl #16
	b	LBB0_15
LBB0_8:
	bl	_MISSING_CASE
	b	LBB0_16
LBB0_9:
	mov	w8, #15712
	movk	w8, #8, lsl #16
	b	LBB0_15
LBB0_10:
	mov	w8, #38784
	b	LBB0_13
LBB0_11:
	mov	w8, #46427
	movk	w8, #4, lsl #16
	b	LBB0_15
LBB0_12:
	mov	w8, #56784
LBB0_13:
	movk	w8, #6, lsl #16
	b	LBB0_15
LBB0_14:
	mov	w8, #9820
	movk	w8, #5, lsl #16
LBB0_15:
	str	w8, [x19]
LBB0_16:
	ldr	w0, [x19]
	bl	_skl_calc_voltage_level
	str	w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
lJTI0_1:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
                                        ; -- End function
	.comm	_CDCLK_CTL,4,2                  ; @CDCLK_CTL
	.comm	_CDCLK_FREQ_SEL_MASK,4,2        ; @CDCLK_FREQ_SEL_MASK
	.no_dead_strip	_skl_get_cdclk
.subsections_via_symbols
