	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt2050_set_if_freq
_mt2050_set_if_freq:                    ## @mt2050_set_if_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	$1218000000, %edx               ## imm = 0x48993480
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_tuner_dbg
	leal	1218000000(%rbx), %eax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	shrq	$50, %rax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addl	%ebx, %r14d
	imulq	$1125899907, %rax, %rsi         ## imm = 0x431BDE83
	shrq	$52, %rsi
	imull	$1069741824, %esi, %r8d         ## imm = 0x3FC2F700
	addl	%eax, %r8d
	imulq	$375299969, %rax, %rdi          ## imm = 0x165E9F81
                                        ## kill: def $eax killed $eax killed $rax def $rax
	subl	%r14d, %eax
	shrl	$4, %eax
	imulq	$175921861, %rax, %rax          ## imm = 0xA7C5AC5
	shrq	$39, %rax
	imull	$50000, %eax, %eax              ## imm = 0xC350
	imulq	$1125899907, %rax, %rbx         ## imm = 0x431BDE83
	movq	%rbx, %rdx
	shrq	$52, %rdx
	imull	$-4000000, %edx, %ecx           ## imm = 0xFFC2F700
	addl	%eax, %ecx
	shll	$2, %r8d
	imulq	$1125899907, %r8, %r14          ## imm = 0x431BDE83
	shrq	$52, %r14
	imulq	$274877907, %rcx, %r15          ## imm = 0x10624DD3
	shrq	$32, %r15
	andl	$-64, %r15d
	shll	$6, %r15d
	imulq	$274877907, %r15, %rax          ## imm = 0x10624DD3
	shrq	$40, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shrq	$54, %rdi
	leal	-1(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	shll	$2, %edi
	leal	(%rdi,%rdi,2), %eax
	movl	%esi, %r12d
	subl	%eax, %r12d
	shrq	$55, %rbx
	leal	-1(%rbx), %r8d
	shll	$3, %ebx
	movl	%edx, %r13d
	subl	%ebx, %r13d
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	movl	%r8d, %ebx
	callq	_tuner_dbg
	movl	%r13d, (%rsp)
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_tuner_dbg
	movl	%ebx, %r8d
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movb	$1, -46(%rbp)
	leal	(%r14,%r12,4), %ecx
	movl	%ecx, %edx
	orb	$-128, %dl
	cmpl	$275000000, -72(%rbp)           ## 4-byte Folded Reload
                                        ## imm = 0x10642AC0
	movzbl	%dl, %r12d
	cmovael	%ecx, %r12d
	movb	%r12b, -45(%rbp)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movb	%cl, -44(%rbp)
	shll	$5, %r13d
	movl	%r15d, %ecx
	imulq	$274877907, %rcx, %rbx          ## imm = 0x10624DD3
	shrq	$48, %rbx
	addl	%r13d, %ebx
	movb	%bl, -43(%rbp)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	%cl, -42(%rbp)
	movl	%r8d, %ecx
	orb	$64, %cl
	testl	%r15d, %r15d
	movzbl	%cl, %r15d
	cmovel	%r8d, %r15d
	movb	%r15b, -41(%rbp)
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	leaq	L_.str.4(%rip), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_printk
	movzbl	%r12b, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-52(%rbp), %esi                 ## 1-byte Folded Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	%bl, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	-64(%rbp), %esi                 ## 1-byte Folded Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printk
	movzbl	%r15b, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printk
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_4:
	leaq	-46(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$6, %edx
	callq	_tuner_i2c_xfer_send
	cmpl	$6, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_tuner_warn
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mt2050_set_if_freq freq=%d if1=%d if2=%d\n"

	.comm	_debug,4,2                      ## @debug
L_.str.1:                               ## @.str.1
	.asciz	"lo1 lo2 = %d %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"num1 num2 div1a div1b div2a div2b= %x %x %x %x %x %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"bufs is: "

L_.str.4:                               ## @.str.4
	.asciz	"%x "

L_.str.5:                               ## @.str.5
	.asciz	"\n"

L_.str.6:                               ## @.str.6
	.asciz	"i2c i/o error: rc == %d (should be 6)\n"

	.no_dead_strip	_mt2050_set_if_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt2050_set_if_freq
_mt2050_set_if_freq:                    ; @mt2050_set_if_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x2
	mov	x20, x1
	ldr	x8, [x0]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	mov	w19, #13440
	movk	w19, #18585, lsl #16
	stp	x19, x21, [sp, #8]
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tuner_dbg
	add	w8, w20, w19
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	umull	x8, w8, w10
	lsr	x8, x8, #50
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w11, w8, w9
	add	w8, w21, w20
	sub	w8, w11, w8
	lsr	w8, w8, #4
	mov	w9, #23237
	movk	w9, #2684, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #39
	mov	w9, #50000
	mul	w12, w8, w9
	umull	x8, w11, w10
	lsr	x8, x8, #52
	umull	x13, w12, w10
	lsr	x9, x13, #52
	mov	w14, #63232
	movk	w14, #16322, lsl #16
	madd	w14, w8, w14, w11
	mov	w15, #63232
	movk	w15, #65474, lsl #16
	madd	w12, w9, w15, w12
	lsl	w14, w14, #2
	umull	x10, w14, w10
	lsr	x24, x10, #52
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	umull	x12, w12, w10
	lsr	x12, x12, #32
	lsl	w12, w12, #6
	and	w23, w12, #0xfffff000
	umull	x25, w23, w10
	lsr	x21, x25, #40
	mov	w10, #40833
	movk	w10, #5726, lsl #16
	umull	x10, w11, w10
	lsr	x10, x10, #54
	sub	w22, w10, #1
	mov	w11, #-12
	madd	w28, w10, w11, w8
	lsr	x10, x13, #55
	sub	w26, w10, #1
	sub	w27, w9, w10, lsl #3
Lloh2:
	adrp	x19, _debug@GOTPAGE
Lloh3:
	ldr	x19, [x19, _debug@GOTPAGEOFF]
	ldr	w10, [x19]
	cmp	w10, #2
	b.lt	LBB0_2
; %bb.1:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tuner_dbg
	stp	x26, x27, [sp, #32]
	stp	x22, x28, [sp, #16]
	mov	x8, x21
	mov	x9, x24
	stp	x9, x8, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tuner_dbg
	ldr	w10, [x19]
LBB0_2:
	mov	w8, #1
	strb	w8, [sp, #58]
	add	w8, w24, w28, lsl #2
	orr	w9, w8, #0xffffff80
	mov	w11, #10944
	movk	w11, #4196, lsl #16
	cmp	w20, w11
	csel	w19, w9, w8, lo
	strb	w19, [sp, #59]
	strb	w22, [sp, #60]
	lsr	x8, x25, #48
	add	w24, w8, w27, lsl #5
	strb	w24, [sp, #61]
	strb	w21, [sp, #62]
	orr	w8, w26, #0x40
	cmp	w23, #0
	csel	w23, w26, w8, eq
	strb	w23, [sp, #63]
	cmp	w10, #2
	b.lt	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_tuner_dbg
	mov	w8, #1
	str	x8, [sp]
Lloh10:
	adrp	x20, l_.str.4@PAGE
Lloh11:
	add	x20, x20, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_printk
	and	x8, x19, #0xff
	str	x8, [sp]
	mov	x0, x20
	bl	_printk
	and	w8, w22, #0xff
	str	x8, [sp]
	mov	x0, x20
	bl	_printk
	and	w8, w24, #0xff
	str	x8, [sp]
	mov	x0, x20
	bl	_printk
	and	w8, w21, #0xff
	str	x8, [sp]
	mov	x0, x20
	bl	_printk
	and	x8, x23, #0xff
	str	x8, [sp]
	mov	x0, x20
	bl	_printk
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printk
LBB0_4:
	add	x1, sp, #58
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	mov	w2, #6
	bl	_tuner_i2c_xfer_send
	cmp	w0, #6
	b.eq	LBB0_6
; %bb.5:
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_tuner_warn
LBB0_6:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mt2050_set_if_freq freq=%d if1=%d if2=%d\n"

	.comm	_debug,4,2                      ; @debug
l_.str.1:                               ; @.str.1
	.asciz	"lo1 lo2 = %d %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"num1 num2 div1a div1b div2a div2b= %x %x %x %x %x %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"bufs is: "

l_.str.4:                               ; @.str.4
	.asciz	"%x "

l_.str.5:                               ; @.str.5
	.asciz	"\n"

l_.str.6:                               ; @.str.6
	.asciz	"i2c i/o error: rc == %d (should be 6)\n"

	.no_dead_strip	_mt2050_set_if_freq
.subsections_via_symbols
