	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vp702x_fe_set_frontend
LCPI0_0:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vp702x_fe_set_frontend:                ## @vp702x_fe_set_frontend
	.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	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %r12
	movslq	(%rsi), %rax
	imulq	$274877907, %rax, %r15          ## imm = 0x10624DD3
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$38, %r15
	addl	%eax, %r15d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	%r15d, %eax
	shrl	$8, %eax
	andl	$127, %eax
	movl	%eax, -80(%rbp)
	movzbl	%r15b, %eax
	movl	%eax, -76(%rbp)
	movslq	4(%rsi), %rax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	shrq	$38, %rbx
	addl	%eax, %ebx
	shll	$20, %ebx
	movl	%ebx, %edi
	movl	$88000, %esi                    ## imm = 0x157C0
	callq	_do_div
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,0,0]
	movups	%xmm0, -72(%rbp)
	movl	(%r14), %esi
	movl	4(%r14), %r8d
	movslq	%ebx, %r9
	movq	%r9, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_deb_fe
	movq	(%r12), %rax
	movq	_SEC_VOLTAGE_18@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$64, -56(%rbp)
LBB0_2:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_vp702x_chksum
	movl	%eax, -52(%rbp)
	movl	$250, 8(%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	12(%r12), %edi
	leaq	-128(%rbp), %rcx
	movq	%rbx, %rsi
	movl	$8, %edx
	movl	$10, %r8d
	movl	$100, %r9d
	callq	_vp702x_usb_inout_op
	movl	-120(%rbp), %eax
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rdi
	orl	-116(%rbp), %eax
	cmoveq	%rcx, %rdi
	xorl	%eax, %eax
	callq	_deb_fe
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting frontend to: %u -> %u (%x) LNB-based GHz, symbolrate: %d -> %lu (%lx)\n"

	.comm	_SEC_VOLTAGE_18,8,3             ## @SEC_VOLTAGE_18
	.comm	_jiffies,4,2                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"tuning failed.\n"

L_.str.2:                               ## @.str.2
	.asciz	"tuning succeeded.\n"

	.no_dead_strip	_vp702x_fe_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function vp702x_fe_set_frontend
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vp702x_fe_set_frontend:                ; @vp702x_fe_set_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	ldpsw	x9, x10, [x1]
	mul	x9, x9, x8
	lsr	x11, x9, #32
	lsr	x9, x9, #63
	add	w22, w9, w11, asr #6
	ubfx	w9, w22, #8, #7
	and	w11, w22, #0xff
	stp	w9, w11, [x29, #-72]
	ldr	x21, [x0]
	stur	xzr, [x29, #-48]
	mul	x8, x10, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #38
	add	w8, w8, w9
	lsl	w20, w8, #20
	mov	x0, x20
	mov	w1, #22464
	movk	w1, #1, lsl #16
	bl	_do_div
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x29, #-64]
	sxtw	x8, w20
	ldp	w9, w10, [x19]
	stp	x8, x8, [sp, #32]
	stp	x22, x10, [sp, #16]
	stp	x9, x22, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_fe
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _SEC_VOLTAGE_18@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SEC_VOLTAGE_18@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #64
	stur	w8, [x29, #-48]
LBB0_2:
	sub	x0, x29, #72
	mov	w1, #0
	mov	w2, #7
	bl	_vp702x_chksum
	stur	w0, [x29, #-44]
	mov	w8, #250
	str	w8, [x21, #8]
Lloh10:
	adrp	x8, _jiffies@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	w0, [x21, #12]
	sub	x1, x29, #72
	add	x3, sp, #48
	mov	w2, #8
	mov	w4, #10
	mov	w5, #100
	bl	_vp702x_usb_inout_op
	ldp	w8, w9, [sp, #56]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh15:
	adrp	x10, l_.str.1@PAGE
Lloh16:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x0, x10, x9, eq
	bl	_deb_fe
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting frontend to: %u -> %u (%x) LNB-based GHz, symbolrate: %d -> %lu (%lx)\n"

	.comm	_SEC_VOLTAGE_18,8,3             ; @SEC_VOLTAGE_18
	.comm	_jiffies,4,2                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"tuning failed.\n"

l_.str.2:                               ; @.str.2
	.asciz	"tuning succeeded.\n"

	.no_dead_strip	_vp702x_fe_set_frontend
.subsections_via_symbols
