	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_pll_calc_b                 ## -- Begin function dss_pll_calc_b
	.p2align	4, 0x90
_dss_pll_calc_b:                        ## @dss_pll_calc_b
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DSSDBG
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_DIV_ROUND_UP
	movl	%eax, %esi
	movq	%rbx, %rcx
	shrq	$32, %rcx
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %r13
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r13d
LBB0_3:
	movl	4(%r14), %edi
	movq	%r13, %rsi
	callq	_roundup
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_DIV_ROUND_UP
	testl	%eax, %eax
	movl	$1, %r15d
	cmovnel	%eax, %r15d
	imulq	%r15, %r12
	movq	%r12, %rax
	orq	%r13, %rax
	shrq	$32, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%r13
	movq	%rax, %r14
	jmp	LBB0_6
LBB0_4:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %r15d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	imulq	%r13, %r15
	subq	%r15, %r12
	xorl	%edi, %edi
	cmpq	%r13, %r12
	seta	%dil
	callq	_WARN_ON
	movq	%r13, %rsi
	xorl	%r13d, %r13d
	testq	%rax, %rax
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.7:
	movq	%r15, %r14
	jmp	LBB0_10
LBB0_8:
	shlq	$18, %r12
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_div_u64
	movq	%rax, %r12
	movq	%r15, %r14
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movl	%r12d, %edi
	imulq	-80(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	$262144, %esi                   ## imm = 0x40000
	callq	_div_u64
	movl	%eax, %r14d
	addq	%r15, %r14
	movl	%r12d, %r13d
LBB0_10:
	movq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rax
	xorl	%edx, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	divq	%rbx
	jmp	LBB0_13
LBB0_11:
	movl	%r14d, %eax
	xorl	%edx, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_13:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$250000000, %esi                ## imm = 0xEE6B280
	callq	_DIV_ROUND_UP
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_DSSDBG
	leaq	L_.str.2(%rip), %rdi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_DSSDBG
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rcx)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	%r13d, 8(%rcx)
	movq	16(%rcx), %rax
	movl	%ebx, (%rax)
	movl	%r15d, 24(%rcx)
	movq	%r12, 32(%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%rcx)
	movq	48(%rcx), %rax
	movq	%r14, (%rax)
	movl	$1, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clkin %lu, target clkout %lu\n"

L_.str.1:                               ## @.str.1
	.asciz	"N = %u, M = %u, M.f = %u, M2 = %u, SD = %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"Fint %lu, clkdco %lu, clkout %lu\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dss_pll_calc_b                 ; -- Begin function dss_pll_calc_b
	.p2align	2
_dss_pll_calc_b:                        ; @dss_pll_calc_b
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	ldr	x24, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSDBG
	ldr	w1, [x24]
	mov	x0, x20
	bl	_DIV_ROUND_UP
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	w22, w0
	ldr	w0, [x24, #4]
	udiv	x20, x20, x22
	mov	x1, x20
	bl	_roundup
	mov	x1, x23
	bl	_DIV_ROUND_UP
	cmp	w0, #0
	csinc	w27, w0, wzr, ne
	mul	x8, x27, x23
	udiv	x28, x8, x20
	and	x23, x28, #0xffffffff
	mul	x25, x23, x20
	sub	x24, x8, x25
	cmp	x24, x20
	cset	w0, hi
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
	mov	w24, #0
LBB0_2:
	mov	x26, x25
	b	LBB0_5
LBB0_3:
	lsl	x0, x24, #18
	mov	x1, x20
	bl	_div_u64
	mov	x24, x0
	cbz	w24, LBB0_2
; %bb.4:
	and	x8, x24, #0xffffffff
	mul	x0, x8, x20
	mov	w1, #262144
	bl	_div_u64
	add	x26, x25, w0, uxtw
LBB0_5:
	udiv	x21, x26, x27
	mov	x0, x25
	mov	w1, #45696
	movk	w1, #3814, lsl #16
	bl	_DIV_ROUND_UP
	mov	x25, x0
	mov	x8, x27
	mov	x9, x24
	stp	x8, x25, [sp, #8]
	str	x9, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_DSSDBG
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x26
	bl	_DSSDBG
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	stp	w8, w28, [x19]
	str	w24, [x19, #8]
	ldr	x8, [x19, #16]
	str	w27, [x8]
	str	w25, [x19, #24]
	stp	x20, x26, [x19, #32]
	ldr	x8, [x19, #48]
	str	x21, [x8]
	mov	w0, #1
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clkin %lu, target clkout %lu\n"

l_.str.1:                               ; @.str.1
	.asciz	"N = %u, M = %u, M.f = %u, M2 = %u, SD = %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"Fint %lu, clkdco %lu, clkout %lu\n"

.subsections_via_symbols
