	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt2032_compute_freq
_mt2032_compute_freq:                   ## @mt2032_compute_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	24(%rbp), %r10
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	addl	%esi, %ebx
	imulq	$274877907, %rbx, %rcx          ## imm = 0x10624DD3
	shrq	$37, %rcx
	andl	$-2, %ecx
	addl	$5250, %ecx                     ## imm = 0x1482
	imulq	$837723145, %rcx, %rcx          ## imm = 0x31EEA409
	movq	%rcx, %rdx
	shrq	$43, %rdx
	shrq	$46, %rcx
	leal	(,%rcx,8), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movq	_optimize_vco@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	xorl	%r9d, %r9d
	cmpl	$800999999, -44(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0x2FBE4A3F
	ja	LBB0_10
## %bb.2:
	movl	$1, %r9d
	cmpl	$630999999, -44(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0x259C4BBF
	ja	LBB0_10
## %bb.3:
	movl	$2, %r9d
	cmpl	$440999999, -44(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0x1A49203F
	ja	LBB0_10
## %bb.4:
	xorl	%r9d, %r9d
	cmpl	$281000000, -44(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0x10BFB840
	jmp	LBB0_9
LBB0_5:
	xorl	%r9d, %r9d
	cmpl	$700999999, -44(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0x29C8693F
	ja	LBB0_10
## %bb.6:
	movl	$1, %r9d
	cmpl	$527999999, -44(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0x1F78A3FF
	ja	LBB0_10
## %bb.7:
	movl	$2, %r9d
	cmpl	$359999999, -44(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0x157529FF
	ja	LBB0_10
## %bb.8:
	xorl	%r9d, %r9d
	cmpl	$202000000, -44(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0xC0A4680
LBB0_9:
	adcl	$3, %r9d
LBB0_10:
	movl	%r9d, (%r10)
	imull	$5250000, %edx, %esi            ## imm = 0x501BD0
	movl	%esi, (%rsp)
	movq	%rsi, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%eax, %r8d
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	callq	_tuner_dbg
	addl	%ebx, %r14d
	movl	%ebx, %esi
	movl	%r15d, %ebx
	subl	%r14d, %ebx
	imulq	$1715657001, %rbx, %r12         ## imm = 0x6642D929
	movq	%r12, %rdx
	shrq	$53, %rdx
	shrq	$56, %r12
	leal	(,%r12,8), %eax
	movl	%edx, %r15d
	subl	%eax, %r15d
	imulq	$274877907, %rbx, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	imulq	$837723145, %rax, %rcx          ## imm = 0x31EEA409
	shrq	$42, %rcx
	imull	$5250, %ecx, %ecx               ## imm = 0x1482
	subl	%ecx, %eax
	imull	$3780, %eax, %eax               ## imm = 0xEC4
	imulq	$837723145, %rax, %r13          ## imm = 0x31EEA409
	shrq	$42, %r13
	imull	$5250000, %edx, %eax            ## imm = 0x501BD0
	imull	$5250, %r13d, %ecx              ## imm = 0x1482
	shrl	$2, %ecx
	imulq	$1163504369, %rcx, %rcx         ## imm = 0x4559AAF1
	shrq	$40, %rcx
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	addl	%eax, %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	callq	_tuner_dbg
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	negl	%r14d
	leal	(%rsi,%r14), %eax
	addl	$-1302000000, %eax              ## imm = 0xB2650E80
	cmpl	$-588000000, %eax               ## imm = 0xDCF3D500
	jb	LBB0_13
## %bb.11:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	$-2055375000, %eax              ## imm = 0x857D7768
	cmpl	$-1344000000, %eax              ## imm = 0xAFE43000
	jb	LBB0_13
## %bb.12:
	movl	%r15d, %eax
	orl	%r9d, %eax
	cmpl	$8, %eax
	jae	LBB0_13
## %bb.14:
	movq	16(%rbp), %r14
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%r9d, %ebx
	callq	_mt2032_spurcheck
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	decb	%al
	movb	%al, (%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	shll	$4, %eax
	orl	%ebx, %eax
	movb	%al, 1(%r14)
	movw	$3974, 2(%r14)                  ## imm = 0xF86
	movb	$31, 4(%r14)
	decl	%r12d
	shll	$5, %r15d
	orl	%r12d, %r15d
	movb	%r15b, 5(%r14)
	cmpl	$400000001, -44(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0x17D78401
	setb	%al
	shlb	$4, %al
	orb	$-28, %al
	movb	%al, 6(%r14)
	movl	32(%rbp), %eax
	addb	$8, %al
	movb	%al, 7(%r14)
	movw	$20163, 8(%r14)                 ## imm = 0x4EC3
	movb	$-20, 10(%r14)
	movb	%r13b, 11(%r14)
	shrl	$8, %r13d
	orb	$-128, %r13b
	movb	%r13b, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	movl	%r9d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_tuner_info
	movl	$-1, %eax
LBB0_15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_optimize_vco,8,3               ## @optimize_vco
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mt2032: rfin=%d lo1=%d lo1n=%d lo1a=%d sel=%d, lo1freq=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"mt2032: rfin=%d lo2=%d lo2n=%d lo2a=%d num=%d lo2freq=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"mt2032: frequency parameters out of range: %d %d %d %d\n"

	.no_dead_strip	_mt2032_compute_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt2032_compute_freq
_mt2032_compute_freq:                   ; @mt2032_compute_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x6
	mov	x27, x3
	mov	x20, x1
	add	w10, w2, w1
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w10, w8
	lsr	x8, x8, #37
	and	w8, w8, #0xfffffe
	mov	w9, #5250
	add	w8, w8, w9
	mov	w9, #41993
	movk	w9, #12782, lsl #16
	umull	x8, w8, w9
	lsr	x2, x8, #43
	lsr	x25, x8, #46
	sub	w23, w2, w25, lsl #3
Lloh0:
	adrp	x8, _optimize_vco@GOTPAGE
Lloh1:
	ldr	x8, [x8, _optimize_vco@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	w4, w5, [sp, #20]               ; 8-byte Folded Spill
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	cbz	x8, LBB0_5
; %bb.1:
	mov	w8, #19007
	movk	w8, #12222, lsl #16
	cmp	w20, w8
	b.hi	LBB0_6
; %bb.2:
	mov	w8, #19391
	movk	w8, #9628, lsl #16
	cmp	w20, w8
	b.hi	LBB0_8
; %bb.3:
	mov	w8, #8255
	movk	w8, #6729, lsl #16
	cmp	w20, w8
	b.hi	LBB0_10
; %bb.4:
	mov	w8, #47167
	movk	w8, #4287, lsl #16
	b	LBB0_12
LBB0_5:
	mov	w8, #26943
	movk	w8, #10696, lsl #16
	cmp	w20, w8
	b.ls	LBB0_7
LBB0_6:
	mov	w26, #0
	b	LBB0_13
LBB0_7:
	mov	w8, #41983
	movk	w8, #8056, lsl #16
	cmp	w20, w8
	b.ls	LBB0_9
LBB0_8:
	mov	w26, #1
	b	LBB0_13
LBB0_9:
	mov	w8, #10751
	movk	w8, #5493, lsl #16
	cmp	w20, w8
	b.ls	LBB0_11
LBB0_10:
	mov	w26, #2
	b	LBB0_13
LBB0_11:
	mov	w8, #18047
	movk	w8, #3082, lsl #16
LBB0_12:
	cmp	w20, w8
	mov	w8, #3
	cinc	w26, w8, ls
LBB0_13:
	str	w26, [x7]
	mov	w8, #7120
	movk	w8, #80, lsl #16
	mul	w21, w2, w8
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x25
	mov	x4, x23
	mov	x5, x26
	mov	x6, x21
	bl	_tuner_dbg
	add	w8, w27, w20
	sub	w24, w21, w8
	mov	w8, #55593
	movk	w8, #26178, lsl #16
	umull	x8, w24, w8
	lsr	x2, x8, #53
	lsr	x27, x8, #56
	sub	w28, w2, w27, lsl #3
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w24, w8
	lsr	x8, x8, #38
	mov	w9, #41993
	movk	w9, #12782, lsl #16
	mul	x10, x8, x9
	lsr	x10, x10, #42
	mov	w11, #5250
	msub	w8, w10, w11, w8
	mov	w10, #3780
	mul	w8, w8, w10
	umull	x8, w8, w9
	lsr	x22, x8, #42
	mov	w8, #7120
	movk	w8, #80, lsl #16
	mul	w8, w2, w8
	mul	w9, w22, w11
	lsr	w9, w9, #2
	mov	w10, #43761
	movk	w10, #17753, lsl #16
	umull	x9, w9, w10
	lsr	x9, x9, #40
	mov	w10, #1000
	madd	w6, w9, w10, w8
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x27
	mov	x4, x28
	mov	x5, x22
	bl	_tuner_dbg
	mov	w8, #30568
	movk	w8, #34173, lsl #16
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w9, w8
	orr	w9, w28, w23
	mov	w10, #3712
	movk	w10, #45669, lsl #16
	mov	w11, #54528
	movk	w11, #56563, lsl #16
	add	w10, w24, w10
	cmp	w10, w11
	mov	w10, #12288
	movk	w10, #45028, lsl #16
	ccmp	w8, w10, #0, hs
	ccmp	w9, #8, #2, hs
	b.lo	LBB0_15
; %bb.14:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	mov	x2, x25
	mov	x3, x28
	mov	x4, x27
	bl	_tuner_info
	mov	w0, #-1
	b	LBB0_16
LBB0_15:
	ldr	w8, [x29, #16]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x24
	ldp	w3, w4, [sp, #20]               ; 8-byte Folded Reload
	bl	_mt2032_spurcheck
	mov	w0, #0
	sub	w8, w25, #1
	strb	w8, [x19]
	orr	w8, w23, w26, lsl #4
	strb	w8, [x19, #1]
	mov	w8, #3974
	strh	w8, [x19, #2]
	mov	w8, #31
	strb	w8, [x19, #4]
	sub	w8, w27, #1
	orr	w8, w8, w28, lsl #5
	strb	w8, [x19, #5]
	mov	w8, #33792
	movk	w8, #6103, lsl #16
	mov	w9, #-12
	mov	w10, #-28
	cmp	w20, w8
	csel	w8, w10, w9, hi
	strb	w8, [x19, #6]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, #8
	strb	w8, [x19, #7]
	mov	w8, #20163
	strh	w8, [x19, #8]
	mov	w8, #236
	strb	w8, [x19, #10]
	strb	w22, [x19, #11]
	lsr	w8, w22, #8
	orr	w8, w8, #0x80
	strb	w8, [x19, #12]
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_optimize_vco,8,3               ; @optimize_vco
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mt2032: rfin=%d lo1=%d lo1n=%d lo1a=%d sel=%d, lo1freq=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"mt2032: rfin=%d lo2=%d lo2n=%d lo2a=%d num=%d lo2freq=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"mt2032: frequency parameters out of range: %d %d %d %d\n"

	.no_dead_strip	_mt2032_compute_freq
.subsections_via_symbols
