	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_wrpll_params_populate
_skl_wrpll_params_populate:             ## @skl_wrpll_params_populate
	.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
	movl	%r9d, %r15d
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r14
	cmpl	$-189934592, %edx               ## imm = 0xF4ADD400
	je	LBB0_5
## %bb.1:
	cmpl	$1010065408, %edx               ## imm = 0x3C346000
	je	LBB0_2
## %bb.3:
	cmpl	$410065408, %edx                ## imm = 0x18711A00
	jne	LBB0_7
## %bb.4:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_5:
	movl	$3, %eax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, (%r14)
LBB0_7:
	leal	-1(%rbx), %eax
	cmpl	$6, %eax
	ja	LBB0_13
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movl	$0, 4(%r14)
	jmp	LBB0_14
LBB0_10:
	movl	$1, 4(%r14)
	jmp	LBB0_14
LBB0_11:
	movl	$2, 4(%r14)
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	jmp	LBB0_14
LBB0_12:
	movl	$4, 4(%r14)
LBB0_14:
	leal	-1(%r15), %eax
	cmpl	$4, %eax
	ja	LBB0_20
## %bb.15:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movl	$3, 8(%r14)
	jmp	LBB0_21
LBB0_17:
	movl	$1, 8(%r14)
	jmp	LBB0_21
LBB0_18:
	movl	$2, 8(%r14)
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	jmp	LBB0_21
LBB0_16:
	movl	$0, 8(%r14)
LBB0_21:
	movl	%r12d, 12(%r14)
	xorl	%eax, %eax
	cmpl	$1, %r12d
	setne	%al
	movl	%eax, 16(%r14)
	imull	%r13d, %ebx
	imull	%r12d, %ebx
	imull	%r15d, %ebx
	movl	$1, %edi
	callq	_MHz
                                        ## kill: def $eax killed $eax def $rax
	shll	$3, %eax
	leal	(%rax,%rax,2), %esi
	movl	%ebx, %edi
	callq	_div_u64
	movl	%eax, 20(%r14)
	movl	%ebx, %edi
	movl	$24, %esi
	callq	_div_u64
	movl	%eax, %ebx
	movl	20(%r14), %r15d
	movl	$1, %edi
	callq	_MHz
	imull	%r15d, %eax
	subl	%eax, %ebx
	shll	$15, %ebx
	movl	$1, %edi
	callq	_MHz
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_div_u64
	movl	%eax, 24(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_12
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
LJTI0_1:
	.long	L0_1_set_19
	.long	L0_1_set_17
	.long	L0_1_set_18
	.long	L0_1_set_20
	.long	L0_1_set_16
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incorrect PDiv\n"

L_.str.1:                               ## @.str.1
	.asciz	"Incorrect KDiv\n"

	.no_dead_strip	_skl_wrpll_params_populate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_wrpll_params_populate
_skl_wrpll_params_populate:             ; @skl_wrpll_params_populate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x1
	mov	x19, x0
	mov	w8, #54272
	movk	w8, #62637, lsl #16
	cmp	w2, w8
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #24576
	movk	w8, #15412, lsl #16
	cmp	w2, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #6656
	movk	w8, #6257, lsl #16
	cmp	w2, w8
	b.ne	LBB0_7
; %bb.3:
	mov	w8, #1
	b	LBB0_6
LBB0_4:
	mov	w8, #3
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	str	w8, [x19]
LBB0_7:
	sub	w8, w22, #1
	cmp	w8, #6
	b.hi	LBB0_12
; %bb.8:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	str	wzr, [x19, #4]
	b	LBB0_15
LBB0_10:
	mov	w8, #1
	b	LBB0_14
LBB0_11:
	mov	w8, #2
	b	LBB0_14
LBB0_12:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	b	LBB0_15
LBB0_13:
	mov	w8, #4
LBB0_14:
	str	w8, [x19, #4]
LBB0_15:
	sub	w8, w20, #1
	cmp	w8, #4
	b.hi	LBB0_20
; %bb.16:
Lloh4:
	adrp	x9, lJTI0_1@PAGE
Lloh5:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_17
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_17:
	mov	w8, #3
	str	w8, [x19, #8]
	b	LBB0_22
LBB0_18:
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_22
LBB0_19:
	mov	w8, #2
	str	w8, [x19, #8]
	b	LBB0_22
LBB0_20:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_WARN
	b	LBB0_22
LBB0_21:
	str	wzr, [x19, #8]
LBB0_22:
	cmp	w21, #1
	cset	w8, ne
	stp	w21, w8, [x19, #12]
	mul	w8, w22, w23
	mul	w8, w8, w21
	mul	w20, w8, w20
	mov	w0, #1
	bl	_MHz
	add	w8, w0, w0, lsl #1
	lsl	w1, w8, #3
	mov	x0, x20
	bl	_div_u64
	str	w0, [x19, #20]
	mov	x0, x20
	mov	w1, #24
	bl	_div_u64
	mov	x20, x0
	ldr	w21, [x19, #20]
	mov	w0, #1
	bl	_MHz
	msub	w8, w0, w21, w20
	lsl	w20, w8, #15
	mov	w0, #1
	bl	_MHz
	mov	x1, x0
	mov	x0, x20
	bl	_div_u64
	str	w0, [x19, #24]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
lJTI0_1:
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_18-LBB0_17)>>2
	.byte	(LBB0_19-LBB0_17)>>2
	.byte	(LBB0_20-LBB0_17)>>2
	.byte	(LBB0_21-LBB0_17)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incorrect PDiv\n"

l_.str.1:                               ; @.str.1
	.asciz	"Incorrect KDiv\n"

	.no_dead_strip	_skl_wrpll_params_populate
.subsections_via_symbols
