	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dpi_pll_clk_calc
LCPI0_0:
	.quad	-1000                           ## 0xfffffffffffffc18
	.quad	1000                            ## 0x3e8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dpi_pll_clk_calc:                      ## @dpi_pll_clk_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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%rbx, 40(%r15)
	movl	8(%rbx), %edi
	callq	_dss_pll_get_clkout_idx_for_src
	movl	%eax, 48(%r15)
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_clk_get_rate
	movq	(%rbx), %rdi
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	_DSS_PLL_TYPE_A@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	%r14, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%r15)
	movq	40(%r15), %rcx
	movq	(%rcx), %rdi
	movq	_dpi_calc_pll_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dss_pll_calc_a                 ## TAILCALL
LBB0_1:
	leaq	32(%r15), %rcx
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_dss_pll_calc_b
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%r15)
	movq	32(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	%eax, 28(%r15)
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_PLL_TYPE_A,8,3             ## @DSS_PLL_TYPE_A
	.comm	_dpi_calc_pll_cb,4,2            ## @dpi_calc_pll_cb
	.no_dead_strip	_dpi_pll_clk_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function dpi_pll_clk_calc
lCPI0_0:
	.quad	-1000                           ; 0xfffffffffffffc18
	.quad	1000                            ; 0x3e8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dpi_pll_clk_calc:                      ; @dpi_pll_clk_calc
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	str	x21, [x19, #40]
	ldr	w0, [x21, #8]
	bl	_dss_pll_get_clkout_idx_for_src
	str	w0, [x19, #48]
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	bl	_clk_get_rate
	mov	x1, x0
	ldr	x0, [x21]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DSS_PLL_TYPE_A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DSS_PLL_TYPE_A@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	dup.2d	v0, x20
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	add.2d	v0, v0, v1
	str	q0, [x19]
	ldr	x8, [x19, #40]
	ldr	x0, [x8]
Lloh5:
	adrp	x8, _dpi_calc_pll_cb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dpi_calc_pll_cb@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x2, #0
	mov	x3, #0
	mov	x5, 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	_dss_pll_calc_a
LBB0_2:
	add	x3, x19, #32
	mov	x2, x20
	bl	_dss_pll_calc_b
	movi.2s	v0, #1
	str	d0, [x19, #16]
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	stp	w8, w8, [x19, #24]
	mov	w0, #1
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_PLL_TYPE_A,8,3             ; @DSS_PLL_TYPE_A
	.comm	_dpi_calc_pll_cb,4,2            ; @dpi_calc_pll_cb
	.no_dead_strip	_dpi_pll_clk_calc
.subsections_via_symbols
