	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pll_freq
_set_pll_freq:                          ## @set_pll_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	shrl	$2, %esi
	andl	$-4, %edx
	leal	(%rdx,%rdx,2), %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
	movl	%edx, %eax
	shll	$8, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r14d
	movl	%edx, %eax
	shll	$8, %eax
	xorl	%edx, %edx
	divl	%esi
	movq	_BT848_PLL_F_LO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edi
	callq	_btwrite
	movq	_BT848_PLL_F_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r14b, %edi
	callq	_btwrite
	movq	_BT848_PLL_X@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	movq	_BT848_PLL_XCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_btwrite                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BT848_PLL_F_LO,4,2             ## @BT848_PLL_F_LO
	.comm	_BT848_PLL_F_HI,4,2             ## @BT848_PLL_F_HI
	.comm	_BT848_PLL_X,1,0                ## @BT848_PLL_X
	.comm	_BT848_PLL_XCI,4,2              ## @BT848_PLL_XCI
	.no_dead_strip	_set_pll_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pll_freq
_set_pll_freq:                          ; @set_pll_freq
	.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
	lsr	w8, w1, #2
	lsr	w9, w2, #2
	add	w9, w9, w9, lsl #1
	lsl	w9, w9, #2
	udiv	w19, w9, w8
	msub	w9, w19, w8, w9
	lsl	w9, w9, #8
	udiv	w20, w9, w8
	msub	w9, w20, w8, w9
	lsl	w9, w9, #8
	udiv	w8, w9, w8
Lloh0:
	adrp	x9, _BT848_PLL_F_LO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BT848_PLL_F_LO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	and	w0, w8, #0xff
	bl	_btwrite
Lloh3:
	adrp	x8, _BT848_PLL_F_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT848_PLL_F_HI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	and	w0, w20, #0xff
	bl	_btwrite
Lloh6:
	adrp	x8, _BT848_PLL_X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT848_PLL_X@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w19
Lloh8:
	adrp	x9, _BT848_PLL_XCI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BT848_PLL_XCI@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	and	w0, w8, #0xff
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_btwrite
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BT848_PLL_F_LO,4,2             ; @BT848_PLL_F_LO
	.comm	_BT848_PLL_F_HI,4,2             ; @BT848_PLL_F_HI
	.comm	_BT848_PLL_X,1,0                ; @BT848_PLL_X
	.comm	_BT848_PLL_XCI,4,2              ; @BT848_PLL_XCI
	.no_dead_strip	_set_pll_freq
.subsections_via_symbols
