	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt352_pinnacle_tuner_set_params
_mt352_pinnacle_tuner_set_params:       ## @mt352_pinnacle_tuner_set_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movabsq	$1035087118336, %rax            ## imm = 0xF100000000
	movq	%rax, -72(%rbp)
	movabsq	$485331304448, %rax             ## imm = 0x7100000000
	movq	%rax, -64(%rbp)
	movl	$67, -56(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	$8, -40(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	$0, -24(%rbp)
	movq	_V4L2_TUNER_DIGITAL_TV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movslq	16(%rdi), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	shll	$4, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_2:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	callq	_saa_call_all
	leaq	-64(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_4:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	movq	_antenna_pwr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pinnacle_antenna_pwr
	movq	%rbx, %rdi
	callq	_mt352_pinnacle_init
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_DIGITAL_TV,4,2      ## @V4L2_TUNER_DIGITAL_TV
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_frequency,4,2                ## @s_frequency
	.comm	_antenna_pwr,4,2                ## @antenna_pwr
	.no_dead_strip	_mt352_pinnacle_tuner_set_params
.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 mt352_pinnacle_tuner_set_params
lCPI0_0:
	.long	8                               ; 0x8
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mt352_pinnacle_tuner_set_params:       ; @mt352_pinnacle_tuner_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	mov	x9, #1035087118336
	mov	x8, #485331304448
	stp	x8, x9, [x29, #-32]
	mov	w8, #67
	str	w8, [sp, #24]
	sub	x8, x29, #24
	str	x8, [sp, #32]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #40]
	ldrsw	x8, [x0, #16]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x10, x8, #63
	asr	x8, x8, #38
	add	w10, w8, w10
	ldp	x8, x11, [x0]
	ldr	x20, [x11]
	str	xzr, [sp, #16]
	lsl	w10, w10, #4
	smull	x9, w10, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
Lloh2:
	adrp	x10, _V4L2_TUNER_DIGITAL_TV@GOTPAGE
Lloh3:
	ldr	x10, [x10, _V4L2_TUNER_DIGITAL_TV@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	stp	w9, w10, [sp, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_2:
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #1
	bl	_i2c_transfer
Lloh5:
	adrp	x8, _tuner@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _s_frequency@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s_frequency@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_saa_call_all
	sub	x8, x29, #32
	str	x8, [sp, #32]
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_4:
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #1
	bl	_i2c_transfer
Lloh11:
	adrp	x8, _antenna_pwr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _antenna_pwr@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pinnacle_antenna_pwr
	mov	x0, x19
	bl	_mt352_pinnacle_init
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_DIGITAL_TV,4,2      ; @V4L2_TUNER_DIGITAL_TV
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_frequency,4,2                ; @s_frequency
	.comm	_antenna_pwr,4,2                ; @antenna_pwr
	.no_dead_strip	_mt352_pinnacle_tuner_set_params
.subsections_via_symbols
