	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_set_freq
_dst_set_freq:                          ## @dst_set_freq
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, (%rdi)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%ebx, %edx
	callq	_dprintk
	movq	8(%r14), %rax
	movq	_DST_TYPE_IS_SAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	leal	-2151000(%rbx), %eax
	cmpl	$-1201001, %eax                 ## imm = 0xFFEDAC97
	jbe	LBB0_14
## %bb.2:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$38, %rdx
	shrq	$46, %rax
	movq	16(%r14), %rcx
	movl	%eax, 8(%rcx)
	movl	%edx, 12(%rcx)
	movl	$1, 16(%rcx)
	movl	32(%rcx), %edx
	movl	%edx, %eax
	andl	$-5, %eax
	movl	%eax, 32(%rcx)
	xorl	%eax, %eax
	cmpl	$1530999, %ebx                  ## imm = 0x175C77
	ja	LBB0_15
## %bb.3:
	movq	_DST_TYPE_HAS_OBS_REGS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	24(%r14), %esi
	je	LBB0_15
## %bb.4:
	orl	$4, %edx
	movl	%edx, 32(%rcx)
	jmp	LBB0_15
LBB0_5:
	movq	_DST_TYPE_IS_TERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	leal	-858001000(%rbx), %eax
	cmpl	$-721001001, %eax               ## imm = 0xD50665D7
	jbe	LBB0_14
## %bb.7:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$38, %rcx
	movq	%rax, %rdx
	shrq	$54, %rdx
	movq	16(%r14), %rsi
	movl	%edx, 8(%rsi)
	shrq	$46, %rax
	movzbl	%al, %eax
	movl	%eax, 12(%rsi)
	movl	%ecx, 16(%rsi)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_8:
	movq	_DST_TYPE_IS_CABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movslq	%ebx, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movq	16(%r14), %rdx
	movl	%ecx, 8(%rdx)
	movzbl	%ah, %ecx
	movl	%ecx, 12(%rdx)
	movl	%eax, 16(%rdx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_10:
	movq	_DST_TYPE_IS_ATSC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:
	leal	-858001000(%rbx), %eax
	cmpl	$-807001001, %eax               ## imm = 0xCFE62457
	ja	LBB0_12
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$38, %rdx
	movq	%rax, %rsi
	shrq	$54, %rsi
	movq	16(%r14), %rcx
	movl	%esi, 8(%rcx)
	shrq	$46, %rax
	movzbl	%al, %eax
	movl	%eax, 12(%rcx)
	movl	%edx, 16(%rcx)
	movq	$0, 20(%rcx)
	movq	_DST_TYPE_HAS_ANALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, 28(%r14)
	je	LBB0_15
## %bb.13:
	movl	$0, 28(%rcx)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set Frequency %u\n"

	.comm	_DST_TYPE_IS_SAT,8,3            ## @DST_TYPE_IS_SAT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DST_TYPE_HAS_OBS_REGS,4,2      ## @DST_TYPE_HAS_OBS_REGS
	.comm	_DST_TYPE_IS_TERR,8,3           ## @DST_TYPE_IS_TERR
	.comm	_DST_TYPE_IS_CABLE,8,3          ## @DST_TYPE_IS_CABLE
	.comm	_DST_TYPE_IS_ATSC,8,3           ## @DST_TYPE_IS_ATSC
	.comm	_DST_TYPE_HAS_ANALOG,4,2        ## @DST_TYPE_HAS_ANALOG
	.no_dead_strip	_dst_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_set_freq
_dst_set_freq:                          ; @dst_set_freq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	str	w1, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_dprintk
	ldr	x8, [x19, #8]
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.1:
	sub	w8, w20, #525, lsl #12          ; =2150400
	sub	w8, w8, #600
	mov	w9, #44183
	movk	w9, #65517, lsl #16
	cmp	w8, w9
	b.ls	LBB0_12
; %bb.2:
	mov	w0, #0
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w20, w8
	lsr	x9, x8, #38
	lsr	x10, x8, #46
	ldr	x8, [x19, #16]
	stp	w10, w9, [x8, #8]
	mov	w9, #1
	str	w9, [x8, #16]
	ldr	w9, [x8, #32]
	and	w10, w9, #0xfffffffb
	str	w10, [x8, #32]
	mov	w10, #23671
	movk	w10, #23, lsl #16
	cmp	w20, w10
	b.hi	LBB0_13
; %bb.3:
	ldr	w10, [x19, #24]
Lloh5:
	adrp	x11, _DST_TYPE_HAS_OBS_REGS@GOTPAGE
Lloh6:
	ldr	x11, [x11, _DST_TYPE_HAS_OBS_REGS@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	and	w10, w11, w10
	cbz	w10, LBB0_13
; %bb.4:
	mov	w0, #0
	orr	w9, w9, #0x4
	str	w9, [x8, #32]
	b	LBB0_13
LBB0_5:
Lloh8:
	adrp	x9, _DST_TYPE_IS_TERR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DST_TYPE_IS_TERR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	w8, #61848
	movk	w8, #52443, lsl #16
	mov	w9, #26071
	movk	w9, #54534, lsl #16
	add	w8, w20, w8
	cmp	w8, w9
	b.ls	LBB0_12
; %bb.7:
	mov	w0, #0
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w20, w8
	lsr	x9, x8, #38
	lsr	x10, x8, #54
	ldr	x11, [x19, #16]
	ubfx	x8, x8, #46, #8
	stp	w10, w8, [x11, #8]
	str	w9, [x11, #16]
	b	LBB0_13
LBB0_8:
Lloh11:
	adrp	x9, _DST_TYPE_IS_CABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DST_TYPE_IS_CABLE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w20, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	ubfx	w9, w8, #16, #8
	ldr	x10, [x19, #16]
	ubfx	w11, w8, #8, #8
	stp	w9, w11, [x10, #8]
	str	w8, [x10, #16]
	b	LBB0_13
LBB0_10:
Lloh14:
	adrp	x9, _DST_TYPE_IS_ATSC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DST_TYPE_IS_ATSC@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	w8, #61848
	movk	w8, #52443, lsl #16
	mov	w9, #9303
	movk	w9, #53222, lsl #16
	add	w8, w20, w8
	cmp	w8, w9
	b.hi	LBB0_14
LBB0_12:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x9, w20, w8
	lsr	x10, x9, #38
	lsr	x11, x9, #54
	ldr	x8, [x19, #16]
	ubfx	x9, x9, #46, #8
	stp	w11, w9, [x8, #8]
	stp	wzr, wzr, [x8, #20]
	str	w10, [x8, #16]
	ldr	w9, [x19, #28]
Lloh20:
	adrp	x10, _DST_TYPE_HAS_ANALOG@GOTPAGE
Lloh21:
	ldr	x10, [x10, _DST_TYPE_HAS_ANALOG@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_16
; %bb.15:
	mov	w0, #0
	str	wzr, [x8, #28]
	b	LBB0_13
LBB0_16:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set Frequency %u\n"

	.comm	_DST_TYPE_IS_SAT,8,3            ; @DST_TYPE_IS_SAT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DST_TYPE_HAS_OBS_REGS,4,2      ; @DST_TYPE_HAS_OBS_REGS
	.comm	_DST_TYPE_IS_TERR,8,3           ; @DST_TYPE_IS_TERR
	.comm	_DST_TYPE_IS_CABLE,8,3          ; @DST_TYPE_IS_CABLE
	.comm	_DST_TYPE_IS_ATSC,8,3           ; @DST_TYPE_IS_ATSC
	.comm	_DST_TYPE_HAS_ANALOG,4,2        ; @DST_TYPE_HAS_ANALOG
	.no_dead_strip	_dst_set_freq
.subsections_via_symbols
