	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_tune_frontend
_dst_tune_frontend:                     ## @dst_tune_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rdi, %r13
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	(%r13), %r14
	movl	28(%rsi), %esi
	movq	%r14, %rdi
	callq	_dst_set_freq
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	(%r14), %rax
	movq	_DST_TYPE_IS_SAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	_DST_TYPE_HAS_OBS_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_4
## %bb.3:
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_dst_set_inversion
LBB0_4:
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_dst_set_fec
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_dst_set_symbolrate
	movq	%r14, %rdi
	callq	_dst_set_polarization
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %r8d
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	jmp	LBB0_9
LBB0_5:
	movq	_DST_TYPE_IS_TERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_dst_set_bandwidth
	jmp	LBB0_9
LBB0_7:
	movq	_DST_TYPE_IS_CABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_dst_set_fec
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_dst_set_symbolrate
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_dst_set_modulation
LBB0_9:
	movq	%r13, %rdi
	callq	_dst_write_tuna
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_10:
	movq	_FE_TUNE_MODE_ONESHOT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movq	%r8, %rsi
	callq	_dst_read_status
LBB0_12:
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_DEBUG,4,2                  ## @DST_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set Frequency=[%d]"

	.comm	_DST_TYPE_IS_SAT,8,3            ## @DST_TYPE_IS_SAT
	.comm	_DST_TYPE_HAS_OBS_REGS,4,2      ## @DST_TYPE_HAS_OBS_REGS
L_.str.1:                               ## @.str.1
	.asciz	"Set Symbolrate=[%d]"

	.comm	_DST_TYPE_IS_TERR,8,3           ## @DST_TYPE_IS_TERR
	.comm	_DST_TYPE_IS_CABLE,8,3          ## @DST_TYPE_IS_CABLE
	.comm	_FE_TUNE_MODE_ONESHOT,4,2       ## @FE_TUNE_MODE_ONESHOT
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_dst_tune_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_tune_frontend
_dst_tune_frontend:                     ; @dst_tune_frontend
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x0
	cbz	x1, LBB0_10
; %bb.1:
	mov	x23, x1
	ldr	x24, [x21]
	ldr	w1, [x1, #28]
	mov	x0, x24
	bl	_dst_set_freq
Lloh0:
	adrp	x25, _verbose@GOTPAGE
Lloh1:
	ldr	x25, [x25, _verbose@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x26, _DST_DEBUG@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DST_DEBUG@GOTPAGEOFF]
	ldr	w1, [x26]
	ldr	w4, [x23, #28]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	ldr	x8, [x24]
Lloh6:
	adrp	x9, _DST_TYPE_IS_SAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DST_TYPE_IS_SAT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x24, #8]
Lloh9:
	adrp	x9, _DST_TYPE_HAS_OBS_REGS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DST_TYPE_HAS_OBS_REGS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x23, #24]
	mov	x0, x24
	bl	_dst_set_inversion
LBB0_4:
	ldr	w1, [x23, #20]
	mov	x0, x24
	bl	_dst_set_fec
	ldr	w1, [x23, #16]
	mov	x0, x24
	bl	_dst_set_symbolrate
	mov	x0, x24
	bl	_dst_set_polarization
	ldr	w0, [x25]
	ldr	w1, [x26]
	ldr	w4, [x23, #16]
Lloh12:
	adrp	x3, l_.str.1@PAGE
Lloh13:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	b	LBB0_9
LBB0_5:
Lloh14:
	adrp	x9, _DST_TYPE_IS_TERR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DST_TYPE_IS_TERR@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x23, #12]
	mov	x0, x24
	bl	_dst_set_bandwidth
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x9, _DST_TYPE_IS_CABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DST_TYPE_IS_CABLE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w1, [x23, #8]
	mov	x0, x24
	bl	_dst_set_fec
	ldr	w1, [x23, #4]
	mov	x0, x24
	bl	_dst_set_symbolrate
	ldr	w1, [x23]
	mov	x0, x24
	bl	_dst_set_modulation
LBB0_9:
	mov	x0, x21
	bl	_dst_write_tuna
LBB0_10:
Lloh20:
	adrp	x8, _FE_TUNE_MODE_ONESHOT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FE_TUNE_MODE_ONESHOT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, x20
	bl	_dst_read_status
LBB0_12:
Lloh23:
	adrp	x8, _HZ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_DEBUG,4,2                  ; @DST_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set Frequency=[%d]"

	.comm	_DST_TYPE_IS_SAT,8,3            ; @DST_TYPE_IS_SAT
	.comm	_DST_TYPE_HAS_OBS_REGS,4,2      ; @DST_TYPE_HAS_OBS_REGS
l_.str.1:                               ; @.str.1
	.asciz	"Set Symbolrate=[%d]"

	.comm	_DST_TYPE_IS_TERR,8,3           ; @DST_TYPE_IS_TERR
	.comm	_DST_TYPE_IS_CABLE,8,3          ; @DST_TYPE_IS_CABLE
	.comm	_FE_TUNE_MODE_ONESHOT,4,2       ; @FE_TUNE_MODE_ONESHOT
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_dst_tune_frontend
.subsections_via_symbols
