	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pll_14nm_ssc_calc
_pll_14nm_ssc_calc:                     ## @pll_14nm_ssc_calc
	.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	%rdi, %r15
	movl	(%rdi), %edx
	movl	24(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movslq	12(%r15), %rax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$37, %rsi
	addl	%eax, %esi
	movslq	(%r15), %rax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$38, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_CEIL
	movl	%eax, %r14d
	leal	-1(%r14), %ecx
	movl	%ecx, 4(%r15)
	movl	12(%r15), %esi
	movl	16(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movl	24(%r15), %edi
	movslq	(%r15), %rax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_div_u64
	shll	$20, %eax
	movl	%eax, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_div_u64
	imull	16(%r15), %eax
	movl	%eax, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_div_u64
	movl	20(%r15), %edi
	incl	%edi
	imull	%eax, %edi
	movl	$0, -28(%rbp)
	leaq	-28(%rbp), %rdx
	movl	%r14d, %esi
	callq	_div_u64_rem
	movl	%eax, %ebx
	cmpl	$1, -28(%rbp)
	sbbl	$-1, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DBG
	movzwl	%bx, %eax
	movl	%eax, 8(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vco=%lld ref=%lld"

L_.str.1:                               ## @.str.1
	.asciz	"ssc freq=%d spread=%d period=%d"

L_.str.2:                               ## @.str.2
	.asciz	"step_size=%lld"

	.no_dead_strip	_pll_14nm_ssc_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pll_14nm_ssc_calc
_pll_14nm_ssc_calc:                     ; @pll_14nm_ssc_calc
	.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	x19, x0
	ldr	w1, [x0, #24]
	ldr	w8, [x0]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldrsw	x8, [x19, #12]
	mov	w21, #19923
	movk	w21, #4194, lsl #16
	mul	x8, x8, x21
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w1, w8, w9
	ldrsw	x8, [x19]
	mul	x8, x8, x21
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	bl	_CEIL
	mov	x20, x0
	sub	w8, w0, #1
	str	w8, [x19, #4]
	ldp	w1, w9, [x19, #12]
	stp	x9, x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
	ldr	w0, [x19, #24]
	ldrsw	x8, [x19]
	mul	x8, x8, x21
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w1, w8, w9
	bl	_div_u64
	lsl	w0, w0, #20
	mov	w1, #1000
	bl	_div_u64
	ldr	w8, [x19, #16]
	mul	w0, w8, w0
	mov	w1, #1000
	bl	_div_u64
	ldr	w8, [x19, #20]
	madd	w0, w0, w8, w0
	str	wzr, [sp, #28]
	add	x2, sp, #28
	mov	x1, x20
	bl	_div_u64_rem
	ldr	w8, [sp, #28]
	cmp	w8, #0
	cinc	w20, w0, ne
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_DBG
	and	w8, w20, #0xffff
	str	w8, [x19, #8]
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vco=%lld ref=%lld"

l_.str.1:                               ; @.str.1
	.asciz	"ssc freq=%d spread=%d period=%d"

l_.str.2:                               ; @.str.2
	.asciz	"step_size=%lld"

	.no_dead_strip	_pll_14nm_ssc_calc
.subsections_via_symbols
