	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp702x_fe_set_frontend
_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r14
	movq	16(%r14), %rax
	movq	(%rax), %rbx
	movslq	8(%rdi), %rax
	imulq	$274877907, %rax, %r13          ## imm = 0x10624DD3
	movq	%r13, %rax
	shrq	$63, %rax
	sarq	$38, %r13
	addl	%eax, %r13d
	leaq	8(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	(%rbx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_memset
	movl	%r13d, %eax
	shrl	$8, %eax
	andl	$127, %eax
	movl	%eax, (%r15)
	movzbl	%r13b, %eax
	movl	%eax, 4(%r15)
	movl	$1, 8(%r15)
	movslq	12(%r12), %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
	movq	$0, 12(%r15)
	movl	$0, 20(%r15)
	movl	8(%r12), %esi
	movl	12(%r12), %r8d
	movslq	%ebx, %r9
	movq	%r9, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_deb_fe
	movq	(%r14), %rax
	movq	_SEC_VOLTAGE_18@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	orb	$64, 24(%r15)
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_vp702x_chksum
	movl	%eax, 28(%r15)
	movl	$250, 8(%r14)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	16(%r14), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	movq	%r15, %rcx
	movl	$10, %r8d
	movl	$100, %r9d
	callq	_vp702x_usb_inout_op
	cmpl	$0, 8(%r15)
	jne	LBB0_5
## %bb.3:
	cmpl	$0, 12(%r15)
	je	LBB0_4
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_deb_fe
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
	.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
	.p2align	2                               ; -- Begin function vp702x_fe_set_frontend
_vp702x_fe_set_frontend:                ; @vp702x_fe_set_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x0
	ldr	x23, [x0]
	ldr	x8, [x23, #16]
	ldr	x20, [x8]
	ldrsw	x8, [x0, #8]
	mov	w22, #19923
	movk	w22, #4194, lsl #16
	mul	x8, x8, x22
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w24, w8, w9, asr #6
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x20, [x20]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #10
	bl	_memset
	ubfx	w8, w24, #8, #7
	and	w9, w24, #0xff
	stp	w8, w9, [x20]
	mov	w8, #1
	str	w8, [x20, #8]
	ldrsw	x8, [x21, #12]
	mul	x8, x8, x22
	lsr	x9, x8, #63
	lsr	x8, x8, #38
	add	w8, w8, w9
	lsl	w22, w8, #20
	mov	x0, x22
	mov	w1, #22464
	movk	w1, #1, lsl #16
	bl	_do_div
	str	xzr, [x20, #16]
	str	wzr, [x20, #12]
	sxtw	x8, w22
	ldp	w9, w10, [x21, #8]
	stp	x8, x8, [sp, #32]
	stp	x24, x10, [sp, #16]
	stp	x9, x24, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_fe
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _SEC_VOLTAGE_18@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SEC_VOLTAGE_18@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20, #24]
	orr	w8, w8, #0x40
	str	w8, [x20, #24]
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #7
	bl	_vp702x_chksum
	str	w0, [x20, #28]
	mov	w8, #250
	str	w8, [x23, #8]
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x23, #24]
	ldr	x0, [x23, #16]
	mov	x1, x20
	mov	w2, #8
	mov	x3, x20
	mov	w4, #10
	mov	w5, #100
	bl	_vp702x_usb_inout_op
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_6
LBB0_4:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_5:
	bl	_deb_fe
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.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
