	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88rs6000t_set_pll_freq
_m88rs6000t_set_pll_freq:               ## @m88rs6000t_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	movl	$54, %esi
	movl	$19, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.1:
	leaq	16(%r12), %r13
	movl	(%r13), %edi
	movl	$49, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.2:
	movl	(%r13), %edi
	movl	$2, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$44, %esi
	movl	$2, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.3:
	cmpl	$1549, %r14d                    ## imm = 0x60D
	jle	LBB0_5
## %bb.4:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%esi, %esi
	movl	$2, %ecx
	jmp	LBB0_16
LBB0_5:
	cmpl	$1379, %r14d                    ## imm = 0x563
	jle	LBB0_7
## %bb.6:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$3, %ecx
	movl	$16, %esi
	jmp	LBB0_16
LBB0_7:
	movl	$3, %ecx
	movl	$16, %esi
	cmpl	$1069, %r14d                    ## imm = 0x42D
	jle	LBB0_9
## %bb.8:
	movl	$3, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$16, -48(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_9:
	cmpl	$999, %r14d                     ## imm = 0x3E7
	jle	LBB0_11
## %bb.10:
	movl	$64, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$4, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_11:
	movl	$4, -52(%rbp)                   ## 4-byte Folded Spill
	cmpl	$774, %r14d                     ## imm = 0x306
	jle	LBB0_13
## %bb.12:
	movl	$64, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$64, %esi
	movl	$4, %ecx
	jmp	LBB0_16
LBB0_13:
	cmpl	$699, %r14d                     ## imm = 0x2BB
	jle	LBB0_15
## %bb.14:
	movl	$64, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$6, %ecx
	movl	$48, %esi
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	cmpl	$520, %r14d                     ## imm = 0x208
	setl	%al
	movl	$48, %ecx
	movl	$96, %esi
	cmovgel	%ecx, %esi
	addl	%eax, %eax
	addl	$6, %eax
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
LBB0_16:
	imull	$27000, %r14d, %r15d            ## imm = 0x6978
	movl	%r15d, %eax
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	imull	%ecx, %eax
	cltq
	imulq	$-1688717511, %rax, %rcx        ## imm = 0x9B583739
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$14, %eax
	leal	(%rax,%rcx), %edx
	addl	%ecx, %eax
	addl	$-1024, %eax                    ## imm = 0xFC00
	shrl	$31, %eax
	addl	%eax, %edx
	addl	$-1024, %edx                    ## imm = 0xFC00
	sarl	%edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	shrl	$8, %edx
	andl	$15, %edx
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	orl	%esi, %edx
	movl	(%r13), %edi
	movl	$39, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.17:
	movl	(%r13), %edi
	movzbl	-60(%rbp), %edx                 ## 1-byte Folded Reload
	movl	$40, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.18:
	imull	-52(%rbp), %r15d                ## 4-byte Folded Reload
	movslq	%r15d, %rax
	imulq	$-1688717511, %rax, %rcx        ## imm = 0x9B583739
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$14, %eax
	leal	(%rax,%rcx), %edx
	addl	%ecx, %eax
	addl	$-1024, %eax                    ## imm = 0xFC00
	shrl	$31, %eax
	leal	(%rax,%rdx), %r15d
	addl	$-1024, %r15d                   ## imm = 0xFC00
	sarl	%r15d
	movl	%r15d, %edx
	shrl	$8, %edx
	andl	$15, %edx
	orl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	movl	(%r13), %edi
	movl	$41, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.19:
	movl	(%r13), %edi
	movzbl	%r15b, %edx
	movl	$42, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.20:
	movl	(%r13), %edi
	movl	$47, %esi
	movl	$245, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.21:
	movl	(%r13), %edi
	movl	$48, %esi
	movl	$5, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.22:
	movl	(%r13), %edi
	movl	$8, %esi
	movl	$31, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.23:
	movl	(%r13), %edi
	movl	$8, %esi
	movl	$63, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.24:
	movl	(%r13), %edi
	movl	$9, %esi
	movl	$32, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.25:
	movl	(%r13), %edi
	movl	$9, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.26:
	movl	(%r13), %edi
	movl	$62, %esi
	movl	$17, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.27:
	movl	(%r13), %edi
	movl	$8, %esi
	movl	$47, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.28:
	movl	(%r13), %edi
	movl	$8, %esi
	movl	$63, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.29:
	movl	(%r13), %edi
	movl	$9, %esi
	movl	$16, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.30:
	movl	(%r13), %edi
	movl	$9, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.31:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$50000, %esi                    ## imm = 0xC350
	callq	_usleep_range
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movl	$66, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.32:
	movl	-44(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	movl	$62, %esi
	movl	$16, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.33:
	movl	(%r13), %edi
	movl	$8, %esi
	movl	$47, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.34:
	movl	(%r13), %edi
	movl	$8, %esi
	movl	$63, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.35:
	movl	(%r13), %edi
	movl	$9, %esi
	movl	$16, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.36:
	movl	(%r13), %edi
	movl	$9, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.37:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$50000, %esi                    ## imm = 0xC350
	callq	_usleep_range
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movl	$66, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.38:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -44(%rbp)
	jge	LBB0_40
## %bb.39:
	movl	(%r13), %edi
	movl	$62, %esi
	movl	$17, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
LBB0_40:
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$50000, %esi                    ## imm = 0xC350
	callq	_usleep_range
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movl	$45, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.41:
	movl	(%r13), %edi
	movl	-44(%rbp), %edx
	movl	$45, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.42:
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movl	$46, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.43:
	movl	(%r13), %edi
	movl	-44(%rbp), %edx
	movl	$46, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.44:
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movl	$39, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.45:
	movl	-44(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movl	$131, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_46
LBB0_56:
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_57:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	xorl	-44(%rbp), %eax
	testb	$112, %al
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmovel	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmovel	-68(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmovel	-60(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%r15d, %ecx
	movl	%eax, %r15d
	cmpl	$6, %eax
	je	LBB0_48
## %bb.47:
	movl	$27, -52(%rbp)                  ## 4-byte Folded Spill
	cmpl	$3, %r15d
	jne	LBB0_50
LBB0_48:
	movl	(%r13), %edi
	movl	$54, %esi
	movl	$10, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.49:
	imull	%r15d, %r14d
	imull	$18000, %r14d, %eax             ## imm = 0x4650
	cltq
	imulq	$-1688717511, %rax, %rcx        ## imm = 0x9B583739
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$14, %eax
	leal	(%rax,%rcx), %edx
	addl	%ecx, %eax
	addl	$-1024, %eax                    ## imm = 0xFC00
	shrl	$31, %eax
	leal	(%rax,%rdx), %ecx
	addl	$-1024, %ecx                    ## imm = 0xFC00
	sarl	%ecx
	movl	$18, -52(%rbp)                  ## 4-byte Folded Spill
LBB0_50:
	movl	%ecx, %r14d
	movl	%ecx, %eax
	shrl	$8, %eax
	andl	$15, %eax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	orl	%eax, %edx
	orl	$128, %edx
	movl	(%r13), %edi
	movl	$39, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.51:
	movl	(%r13), %edi
	movzbl	%r14b, %edx
	movl	$40, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.52:
	movl	(%r13), %edi
	movl	$41, %esi
	movl	$128, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.53:
	movl	(%r13), %edi
	movl	$49, %esi
	movl	$3, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.54:
	cmpl	$3, %r15d
	movl	$206, %eax
	movl	$138, %edx
	cmovel	%eax, %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %edi
	movl	$59, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_56
## %bb.55:
	imull	$54000, %r14d, %eax             ## imm = 0xD2F0
	addl	$27648000, %eax                 ## imm = 0x1A5E000
	cltd
	idivl	-52(%rbp)                       ## 4-byte Folded Reload
	cltd
	idivl	%r15d
	movl	%eax, (%r12)
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"actual tune frequency=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_m88rs6000t_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 m88rs6000t_set_pll_freq
_m88rs6000t_set_pll_freq:               ; @m88rs6000t_set_pll_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	mov	x22, x0
	ldr	w0, [x22, #16]!
	mov	w1, #54
	mov	w2, #19
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.1:
	ldr	w0, [x22]
	mov	w1, #49
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.2:
	ldr	w0, [x22]
	mov	w1, #44
	mov	w2, #2
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.3:
	cmp	w20, #1549
	b.le	LBB0_5
; %bb.4:
	mov	w25, #0
	mov	w23, #0
	mov	w24, #2
	mov	w26, #2
	b	LBB0_12
LBB0_5:
	cmp	w20, #1379
	b.le	LBB0_7
; %bb.6:
	mov	w23, #0
	mov	w26, #3
	mov	w24, #2
	mov	w25, #16
	b	LBB0_12
LBB0_7:
	cmp	w20, #1069
	b.le	LBB0_9
; %bb.8:
	mov	w24, #3
	mov	w25, #16
	mov	w23, #16
	mov	w26, #3
	b	LBB0_12
LBB0_9:
	cmp	w20, #999
	b.le	LBB0_11
; %bb.10:
	mov	w26, #3
	mov	w23, #64
	mov	w24, #4
	mov	w25, #16
	b	LBB0_12
LBB0_11:
	mov	w8, #4
	mov	w9, #64
	mov	w10, #6
	mov	w11, #64
	mov	w12, #4
	mov	w13, #48
	mov	w14, #96
	cmp	w20, #519
	csel	w14, w13, w14, gt
	mov	w15, #8
	csel	w15, w10, w15, gt
	cmp	w20, #699
	csel	w13, w13, w14, gt
	csel	w12, w12, w15, gt
	csel	w11, w11, w14, gt
	csel	w10, w10, w15, gt
	cmp	w20, #774
	csel	w25, w9, w13, gt
	csel	w24, w8, w12, gt
	csel	w23, w9, w11, gt
	csel	w26, w8, w10, gt
LBB0_12:
	mov	w8, #27000
	mul	w8, w20, w8
	mul	w9, w8, w26
	mov	w10, #14137
	movk	w10, #39768, lsl #16
	smull	x11, w9, w10
	lsr	x11, x11, #32
	add	w9, w11, w9
	asr	w11, w9, #14
	add	w9, w11, w9, lsr #31
	sub	w11, w9, #1024
	sub	w9, w9, #1023
	cmp	w11, #0
	csel	w9, w9, w11, lt
	asr	w27, w9, #1
	mul	w8, w8, w24
	smull	x9, w8, w10
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #14
	add	w8, w9, w8, lsr #31
	sub	w9, w8, #1024
	sub	w8, w8, #1023
	cmp	w9, #0
	csel	w28, w8, w9, lt
	ubfx	w8, w27, #8, #4
	orr	w2, w8, w25
	ldr	w0, [x22]
	mov	w1, #39
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.13:
	ldr	w0, [x22]
	and	w2, w27, #0xff
	mov	w1, #40
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.14:
	asr	w28, w28, #1
	ubfx	w8, w28, #8, #4
	orr	w2, w8, w23
	ldr	w0, [x22]
	mov	w1, #41
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.15:
	ldr	w0, [x22]
	and	w2, w28, #0xff
	mov	w1, #42
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.16:
	ldr	w0, [x22]
	mov	w1, #47
	mov	w2, #245
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.17:
	ldr	w0, [x22]
	mov	w1, #48
	mov	w2, #5
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.18:
	ldr	w0, [x22]
	mov	w1, #8
	mov	w2, #31
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.19:
	ldr	w0, [x22]
	mov	w1, #8
	mov	w2, #63
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.20:
	ldr	w0, [x22]
	mov	w1, #9
	mov	w2, #32
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.21:
	ldr	w0, [x22]
	mov	w1, #9
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.22:
	ldr	w0, [x22]
	mov	w1, #62
	mov	w2, #17
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.23:
	ldr	w0, [x22]
	mov	w1, #8
	mov	w2, #47
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.24:
	ldr	w0, [x22]
	mov	w1, #8
	mov	w2, #63
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.25:
	ldr	w0, [x22]
	mov	w1, #9
	mov	w2, #16
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.26:
	ldr	w0, [x22]
	mov	w1, #9
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.27:
	mov	w0, #2000
	mov	w1, #50000
	bl	_usleep_range
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	w1, #66
	bl	_regmap_read
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.28:
	ldr	w8, [sp, #12]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w0, [x22]
	mov	w1, #62
	mov	w2, #16
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.29:
	ldr	w0, [x22]
	mov	w1, #8
	mov	w2, #47
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.30:
	ldr	w0, [x22]
	mov	w1, #8
	mov	w2, #63
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.31:
	ldr	w0, [x22]
	mov	w1, #9
	mov	w2, #16
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.32:
	ldr	w0, [x22]
	mov	w1, #9
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.33:
	mov	w0, #2000
	mov	w1, #50000
	bl	_usleep_range
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	w1, #66
	bl	_regmap_read
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.34:
	ldp	w9, w8, [sp, #8]                ; 4-byte Folded Reload
	cmp	w8, w9
	b.ge	LBB0_36
; %bb.35:
	ldr	w0, [x22]
	mov	w1, #62
	mov	w2, #17
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
LBB0_36:
	mov	w0, #5000
	mov	w1, #50000
	bl	_usleep_range
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	w1, #45
	bl	_regmap_read
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.37:
	ldr	w0, [x22]
	ldr	w2, [sp, #12]
	mov	w1, #45
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.38:
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	w1, #46
	bl	_regmap_read
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.39:
	ldr	w0, [x22]
	ldr	w2, [sp, #12]
	mov	w1, #46
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.40:
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	w1, #39
	bl	_regmap_read
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.41:
	ldr	w8, [sp, #12]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	w1, #131
	bl	_regmap_read
	mov	x21, x0
	cbz	w0, LBB0_44
LBB0_42:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
LBB0_43:
	bl	_dev_dbg
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_44:
	ldp	w9, w8, [sp, #8]                ; 4-byte Folded Reload
	eor	w8, w8, w9
	tst	w8, #0x70
	csel	w24, w26, w24, eq
	csel	w25, w25, w23, eq
	csel	w23, w27, w28, eq
	cmp	w24, #6
	b.eq	LBB0_46
; %bb.45:
	cmp	w24, #3
	b.ne	LBB0_48
LBB0_46:
	ldr	w0, [x22]
	mov	w1, #54
	mov	w2, #10
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.47:
	mul	w8, w20, w24
	mov	w9, #18000
	mul	w8, w8, w9
	mov	w9, #14137
	movk	w9, #39768, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #14
	add	w8, w9, w8, lsr #31
	sub	w9, w8, #1024
	sub	w8, w8, #1023
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w23, w8, #1
	mov	w20, #18
	b	LBB0_49
LBB0_48:
	mov	w20, #27
LBB0_49:
	ubfx	w8, w23, #8, #4
	orr	w8, w25, w8
	orr	w2, w8, #0x80
	ldr	w0, [x22]
	mov	w1, #39
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.50:
	ldr	w0, [x22]
	and	w2, w23, #0xff
	mov	w1, #40
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.51:
	ldr	w0, [x22]
	mov	w1, #41
	mov	w2, #128
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.52:
	ldr	w0, [x22]
	mov	w1, #49
	mov	w2, #3
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.53:
	mov	w8, #138
	mov	w9, #206
	cmp	w24, #3
	csel	w2, w9, w8, eq
	str	w2, [sp, #12]
	ldr	w0, [x22]
	mov	w1, #59
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_42
; %bb.54:
	mov	w8, #54000
	mov	w9, #57344
	movk	w9, #421, lsl #16
	madd	w8, w23, w8, w9
	sdiv	w8, w8, w20
	sdiv	w2, w8, w24
	str	w2, [x19]
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_43
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"actual tune frequency=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_m88rs6000t_set_pll_freq
.subsections_via_symbols
