	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si2165_init_pll
_si2165_init_pll:                       ## @si2165_init_pll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	12(%rdi), %ecx
	cmpl	$16000000, %ecx                 ## imm = 0xF42400
	je	LBB0_1
## %bb.2:
	cmpl	$24000000, %ecx                 ## imm = 0x16E3600
	jne	LBB0_4
## %bb.3:
	movl	$2, %r8d
	movl	$4, %r9d
	movl	$19, %esi
	jmp	LBB0_5
LBB0_1:
	movl	$1, %r9d
	movl	$56, %esi
	movl	$1, %r8d
	jmp	LBB0_5
LBB0_4:
	cmpl	$16000001, %ecx                 ## imm = 0xF42401
	movl	$1, %r8d
	sbbl	$-1, %r8d
	imull	$1624000000, %r8d, %eax         ## imm = 0x60CC4600
	movl	%ecx, %edx
	shll	$7, %edx
	subl	%ecx, %edx
	subl	%ecx, %edx
	xorl	%esi, %esi
	cmpl	%edx, %eax
	seta	%sil
	leal	(%rsi,%rsi,2), %r9d
	incl	%r9d
	movl	%ecx, %esi
	imull	%r9d, %esi
	addl	%esi, %esi
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %esi
LBB0_5:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r8d
	movl	%esi, %ecx
	imull	%r9d, %ecx
	imull	%eax, %ecx
	addl	%ecx, %ecx
	movl	%ecx, (%rdi)
	movl	$2863311531, %eax               ## imm = 0xAAAAAAAB
	imulq	%rcx, %rax
                                        ## kill: def $ecx killed $ecx killed $rcx
	shrl	$5, %ecx
	movl	%ecx, 4(%rdi)
	shrq	$36, %rax
	movl	%eax, 8(%rdi)
	movabsq	$34359738380, %rax              ## imm = 0x80000000C
	movq	%rax, -32(%rbp)
	andl	$63, %esi
	xorl	%eax, %eax
	cmpl	$1, %r9d
	sete	%al
	shll	$6, %eax
	addl	%esi, %eax
	addl	$128, %eax
	movl	%eax, -24(%rbp)
	movl	%r8d, -20(%rbp)
	movq	_REG_PLL_DIVL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	$4, %ecx
	callq	_si2165_write
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PLL_DIVL,4,2               ## @REG_PLL_DIVL
	.no_dead_strip	_si2165_init_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function si2165_init_pll
lCPI0_0:
	.long	12                              ; 0xc
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_si2165_init_pll:                       ; @si2165_init_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldr	w9, [x0, #12]
	sub	w8, w9, #3906, lsl #12          ; =15998976
	cmp	w8, #1024
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #13824
	movk	w8, #366, lsl #16
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w8, #2
	mov	w11, #4
	mov	w10, #19
	b	LBB0_5
LBB0_3:
	mov	w11, #1
	mov	w10, #56
	mov	w8, #1
	b	LBB0_5
LBB0_4:
	mov	w8, #9216
	movk	w8, #244, lsl #16
	cmp	w9, w8
	mov	w8, #1
	cinc	w8, w8, hi
	mov	w10, #17920
	movk	w10, #24780, lsl #16
	mul	w10, w8, w10
	mov	w11, #126
	mul	w11, w9, w11
	cmp	w10, w11
	mov	w11, #4
	csinc	w11, w11, wzr, hi
	mul	w12, w9, w11
	lsl	w12, w12, #1
	udiv	w10, w10, w12
LBB0_5:
	udiv	w9, w9, w8
	mul	w12, w10, w11
	cmp	w11, #1
	cset	w11, eq
	mul	w9, w12, w9
	lsl	w12, w9, #1
	ubfx	w9, w9, #4, #27
	stp	w12, w9, [x0]
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	umull	x9, w12, w9
	lsr	x9, x9, #36
	str	w9, [x0, #8]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	and	w9, w10, #0x3f
	bfi	w9, w11, #6, #1
	orr	w9, w9, #0x80
	stp	w9, w8, [sp, #16]
Lloh5:
	adrp	x8, _REG_PLL_DIVL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_PLL_DIVL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #4
	bl	_si2165_write
	ldur	x8, [x29, #-8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PLL_DIVL,4,2               ; @REG_PLL_DIVL
	.no_dead_strip	_si2165_init_pll
.subsections_via_symbols
