	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function itd1000_set_lo
_itd1000_set_lo:                        ## @itd1000_set_lo
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	imull	$500, %esi, %eax                ## imm = 0x1F4
	movq	_FREF@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movslq	%eax, %r13
	imulq	$1125899907, %r13, %rbx         ## imm = 0x431BDE83
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$50, %rbx
	addl	%eax, %ebx
	imull	$1000000, %ebx, %eax            ## imm = 0xF4240
	subl	%eax, %r13d
	movl	%r13d, %r12d
	shll	$20, %r12d
	movl	%r12d, %edi
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_do_div
	addl	%ebx, %r13d
	movq	_FREF@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	imull	$2000, %r13d, %edx              ## imm = 0x7D0
	movl	%edx, (%r14)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_itd_dbg
	movq	_PLLNH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_itd1000_write_reg
	movq	_PLLNL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	%bl, %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	_PLLFH@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_itd1000_read_reg
	andl	$240, %eax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_itd1000_write_reg
	movq	_PLLFM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_itd1000_write_reg
	movq	_PLLFL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_itd1000_write_reg
	movq	_itd1000_fre_values@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpl	%r15d, (%rdi,%r13)
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_itd_dbg
	movq	_RFTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	_RFST1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	(%rbx), %rsi
	incq	%rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	12(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	(%rbx), %rsi
	addq	$3, %rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	16(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	20(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	(%rbx), %rsi
	addq	$5, %rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	24(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	(%rbx), %rsi
	addq	$6, %rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	28(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	(%rbx), %rsi
	addq	$7, %rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	32(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	(%r12), %rax
	movq	8(%rax,%r13), %rax
	movl	36(%rax), %edx
	movq	%r14, %rdi
	callq	_itd1000_write_reg
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_itd1000_set_vco                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FREF,4,2                       ## @FREF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frequency: %dkHz (wanted) %dkHz (set), PLLF = %d, PLLN = %d\n"

	.comm	_PLLNH,8,3                      ## @PLLNH
	.comm	_PLLNL,8,3                      ## @PLLNL
	.comm	_PLLFH,8,3                      ## @PLLFH
	.comm	_PLLFM,8,3                      ## @PLLFM
	.comm	_PLLFL,8,3                      ## @PLLFL
	.comm	_itd1000_fre_values,8,3         ## @itd1000_fre_values
L_.str.1:                               ## @.str.1
	.asciz	"fre_values: %d\n"

	.comm	_RFTR,8,3                       ## @RFTR
	.comm	_RFST1,8,3                      ## @RFST1
	.no_dead_strip	_itd1000_set_lo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function itd1000_set_lo
_itd1000_set_lo:                        ; @itd1000_set_lo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #500
	mul	w8, w1, w8
Lloh0:
	adrp	x22, _FREF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FREF@GOTPAGEOFF]
	ldr	w9, [x22]
	sdiv	w8, w8, w9
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #50
	add	w23, w9, w10
	mov	w9, #16960
	movk	w9, #15, lsl #16
	msub	w24, w23, w9, w8
	lsl	w21, w24, #20
	mov	x0, x21
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_do_div
	add	w8, w23, w24
	ldr	w9, [x22]
	mul	w8, w8, w9
	mov	w9, #2000
	mul	w8, w8, w9
	str	w8, [x20]
	stp	x21, x23, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_itd_dbg
Lloh4:
	adrp	x8, _PLLNH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PLLNH@GOTPAGEOFF]
Lloh6:
	ldr	x1, [x8]
	mov	x0, x20
	mov	w2, #128
	bl	_itd1000_write_reg
Lloh7:
	adrp	x8, _PLLNL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PLLNL@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	and	w2, w23, #0xff
	mov	x0, x20
	bl	_itd1000_write_reg
Lloh10:
	adrp	x8, _PLLFH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PLLFH@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_itd1000_read_reg
	and	w2, w0, #0xf0
	mov	x0, x20
	mov	x1, x21
	bl	_itd1000_write_reg
Lloh13:
	adrp	x8, _PLLFM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PLLFM@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_itd1000_write_reg
Lloh16:
	adrp	x8, _PLLFL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PLLFL@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_itd1000_write_reg
Lloh19:
	adrp	x22, _itd1000_fre_values@GOTPAGE
Lloh20:
	ldr	x22, [x22, _itd1000_fre_values@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	w23, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	add	x8, x0, x23
	ldur	w8, [x8, #-8]
	cmp	w8, w19
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_itd_dbg
Lloh23:
	adrp	x8, _RFTR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RFTR@GOTPAGEOFF]
Lloh25:
	ldr	x1, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_itd1000_write_reg
Lloh26:
	adrp	x21, _RFST1@GOTPAGE
Lloh27:
	ldr	x21, [x21, _RFST1@GOTPAGEOFF]
	ldr	x1, [x21]
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_itd1000_write_reg
	ldr	x8, [x21]
	add	x1, x8, #1
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, #8]
	mov	x0, x20
	bl	_itd1000_write_reg
	ldr	x8, [x21]
	add	x1, x8, #2
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, #12]
	mov	x0, x20
	bl	_itd1000_write_reg
	ldr	x8, [x21]
	add	x1, x8, #3
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, #16]
	mov	x0, x20
	bl	_itd1000_write_reg
	ldr	x8, [x21]
	add	x1, x8, #4
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, #20]
	mov	x0, x20
	bl	_itd1000_write_reg
	ldr	x8, [x21]
	add	x1, x8, #5
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, #24]
	mov	x0, x20
	bl	_itd1000_write_reg
	ldr	x8, [x21]
	add	x1, x8, #6
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, #28]
	mov	x0, x20
	bl	_itd1000_write_reg
	ldr	x8, [x21]
	add	x1, x8, #7
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, #32]
	mov	x0, x20
	bl	_itd1000_write_reg
	ldr	x8, [x21]
	add	x1, x8, #8
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w2, [x8, #36]
	mov	x0, x20
	bl	_itd1000_write_reg
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_itd1000_set_vco
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FREF,4,2                       ; @FREF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frequency: %dkHz (wanted) %dkHz (set), PLLF = %d, PLLN = %d\n"

	.comm	_PLLNH,8,3                      ; @PLLNH
	.comm	_PLLNL,8,3                      ; @PLLNL
	.comm	_PLLFH,8,3                      ; @PLLFH
	.comm	_PLLFM,8,3                      ; @PLLFM
	.comm	_PLLFL,8,3                      ; @PLLFL
	.comm	_itd1000_fre_values,8,3         ; @itd1000_fre_values
l_.str.1:                               ; @.str.1
	.asciz	"fre_values: %d\n"

	.comm	_RFTR,8,3                       ; @RFTR
	.comm	_RFST1,8,3                      ; @RFST1
	.no_dead_strip	_itd1000_set_lo
.subsections_via_symbols
