	.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	%r8, %r14
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_10
## %bb.1:
	movq	24(%rbx), %r13
	movl	20(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_set_freq
	movl	20(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_dprintk
	movq	(%r13), %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(%r13)
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_set_inversion
LBB0_4:
	movl	8(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_set_fec
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_set_symbolrate
	movq	%r13, %rdi
	callq	_dst_set_polarization
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	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	%r13, %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	%r13, %rdi
	callq	_dst_set_fec
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_set_symbolrate
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_set_modulation
LBB0_9:
	movq	%rbx, %rdi
	callq	_dst_write_tuna
LBB0_10:
	movq	_FE_TUNE_MODE_ONESHOT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movq	%r14, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set Frequency=[%d]\n"

	.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]\n"

	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x0
	cbz	w1, LBB0_10
; %bb.1:
	ldr	x23, [x21, #24]
	ldr	w1, [x21, #20]
	mov	x0, x23
	bl	_dst_set_freq
	ldr	w2, [x21, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_dprintk
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _DST_TYPE_IS_SAT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DST_TYPE_IS_SAT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x23, #8]
Lloh5:
	adrp	x9, _DST_TYPE_HAS_OBS_REGS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DST_TYPE_HAS_OBS_REGS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x21, #16]
	mov	x0, x23
	bl	_dst_set_inversion
LBB0_4:
	ldr	w1, [x21, #8]
	mov	x0, x23
	bl	_dst_set_fec
	ldr	w1, [x21, #4]
	mov	x0, x23
	bl	_dst_set_symbolrate
	mov	x0, x23
	bl	_dst_set_polarization
	ldr	w2, [x21, #4]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	bl	_dprintk
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x9, _DST_TYPE_IS_TERR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DST_TYPE_IS_TERR@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x21, #12]
	mov	x0, x23
	bl	_dst_set_bandwidth
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x9, _DST_TYPE_IS_CABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DST_TYPE_IS_CABLE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w1, [x21, #8]
	mov	x0, x23
	bl	_dst_set_fec
	ldr	w1, [x21, #4]
	mov	x0, x23
	bl	_dst_set_symbolrate
	ldr	w1, [x21]
	mov	x0, x23
	bl	_dst_set_modulation
LBB0_9:
	mov	x0, x21
	bl	_dst_write_tuna
LBB0_10:
Lloh16:
	adrp	x8, _FE_TUNE_MODE_ONESHOT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FE_TUNE_MODE_ONESHOT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, x20
	bl	_dst_read_status
LBB0_12:
Lloh19:
	adrp	x8, _HZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh21:
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set Frequency=[%d]\n"

	.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]\n"

	.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
