	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function avc_tuner_dsd_dvb_t
LCPI0_0:
	.long	0                               ## 0x0
	.long	210                             ## 0xd2
	.long	32                              ## 0x20
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_avc_tuner_dsd_dvb_t:                   ## @avc_tuner_dsd_dvb_t
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %r9
	movq	(%rdi), %rcx
	movq	_AVC_OPCODE_DSD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 8(%rcx)
	movq	(%rcx), %rsi
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,210,32,0]
	movups	%xmm0, (%rsi)
	movl	$12, 16(%rsi)
	xorl	%ecx, %ecx
	cmpl	$0, (%r9)
	setne	%cl
	shll	$5, %ecx
	movq	_QAM_AUTO@GOTPCREL(%rip), %r8
	movl	4(%r9), %edx
	xorl	%eax, %eax
	cmpl	(%r8), %edx
	setne	%al
	shll	$4, %eax
	orl	%ecx, %eax
	xorl	%ecx, %ecx
	cmpl	$135, 8(%r9)
	setne	%cl
	leal	(%rax,%rcx,8), %r8d
	movq	_FEC_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	cmpl	%ecx, 12(%r9)
	setne	%dl
	xorl	%eax, %eax
	cmpl	%ecx, 16(%r9)
	leal	(%r8,%rdx,4), %ecx
	setne	%al
	leal	(%rcx,%rax,2), %eax
	xorl	%ecx, %ecx
	cmpl	$139, 20(%r9)
	setne	%cl
	addl	%ecx, %eax
	addl	$64, %eax
	movl	%eax, 20(%rsi)
	xorl	%eax, %eax
	cmpl	$128, 24(%r9)
	setne	%al
	shll	$6, %eax
	movl	%eax, 24(%rsi)
	movl	$0, 28(%rsi)
	movslq	28(%r9), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	sarl	$24, %eax
	movl	%eax, 32(%rsi)
	movslq	28(%r9), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$34, %rax
	addl	%ecx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 36(%rsi)
	movslq	28(%r9), %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	shrq	$34, %rcx
	addl	%eax, %ecx
	movzbl	%ch, %eax
	movl	%eax, 40(%rsi)
	movslq	28(%r9), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$34, %rax
	addl	%ecx, %eax
	movzbl	%al, %eax
	movl	%eax, 44(%rsi)
	xorl	%eax, %eax
	cmpl	$7000000, (%r9)                 ## imm = 0x6ACFC0
	sete	%al
	shll	$5, %eax
	movl	%eax, 48(%rsi)
	movl	4(%r9), %eax
	xorl	%edx, %edx
	cmpl	$132, %eax
	sete	%dl
	shll	$7, %edx
	cmpl	$133, %eax
	movl	$64, %ecx
	cmovnel	%edx, %ecx
	movl	%ecx, 52(%rsi)
	movl	8(%r9), %edx
	cmpl	$136, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$137, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$138, %edx
	jne	LBB0_7
## %bb.3:
	orl	$8, %ecx
	jmp	LBB0_6
LBB0_5:
	orl	$24, %ecx
	jmp	LBB0_6
LBB0_4:
	orl	$16, %ecx
LBB0_6:
	movl	%ecx, 52(%rsi)
LBB0_7:
	movl	12(%r9), %edx
	movl	%edx, %eax
	andl	$-4, %eax
	cmpl	$144, %eax
	jne	LBB0_9
## %bb.8:
	movl	$148, %eax
	subl	%edx, %eax
	orl	%eax, %ecx
	movl	%ecx, 52(%rsi)
LBB0_9:
	movl	$-144, %eax
	addl	16(%r9), %eax
	movl	%eax, %ecx
	shll	$5, %ecx
	movl	$128, %edx
	subl	%ecx, %edx
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	cmovbl	%edx, %ecx
	movl	%ecx, 56(%rsi)
	movl	20(%r9), %edx
	cmpl	$140, %edx
	je	LBB0_13
## %bb.10:
	cmpl	$141, %edx
	je	LBB0_14
## %bb.11:
	cmpl	$143, %edx
	jne	LBB0_16
## %bb.12:
	orl	$8, %ecx
	jmp	LBB0_15
LBB0_13:
	orl	$16, %ecx
	jmp	LBB0_15
LBB0_14:
	orl	$24, %ecx
LBB0_15:
	movl	%ecx, 56(%rsi)
LBB0_16:
	cmpl	$129, 24(%r9)
	jne	LBB0_18
## %bb.17:
	orl	$2, %ecx
	movl	%ecx, 56(%rsi)
LBB0_18:
	movq	$0, 60(%rsi)
	addq	$68, %rsi
	callq	_add_pid_filter
	addl	$17, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVC_OPCODE_DSD,4,2             ## @AVC_OPCODE_DSD
	.comm	_QAM_AUTO,4,2                   ## @QAM_AUTO
	.comm	_FEC_AUTO,4,2                   ## @FEC_AUTO
	.no_dead_strip	_avc_tuner_dsd_dvb_t
.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 avc_tuner_dsd_dvb_t
lCPI0_0:
	.long	0                               ; 0x0
	.long	210                             ; 0xd2
	.long	32                              ; 0x20
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_avc_tuner_dsd_dvb_t:                   ; @avc_tuner_dsd_dvb_t
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AVC_OPCODE_DSD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVC_OPCODE_DSD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [x8]
	mov	w9, #12
	str	w9, [x8, #16]
	mov	w10, #96
	mov	w9, #64
	ldp	w11, w12, [x1]
	cmp	w11, #0
	csel	w10, w9, w10, eq
Lloh5:
	adrp	x11, _QAM_AUTO@GOTPAGE
Lloh6:
	ldr	x11, [x11, _QAM_AUTO@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	cmp	w12, w11
	cset	w11, ne
	ldp	w12, w13, [x1, #8]
	cmp	w12, #135
	cset	w12, ne
Lloh8:
	adrp	x14, _FEC_AUTO@GOTPAGE
Lloh9:
	ldr	x14, [x14, _FEC_AUTO@GOTPAGEOFF]
Lloh10:
	ldr	w14, [x14]
	cmp	w13, w14
	cset	w13, ne
	ldp	w15, w16, [x1, #16]
	cmp	w15, w14
	bfi	w10, w11, #4, #1
	bfi	w10, w12, #3, #1
	bfi	w10, w13, #2, #1
	cset	w11, ne
	bfi	w10, w11, #1, #1
	cmp	w16, #139
	cset	w11, ne
	orr	w10, w10, w11
	str	w10, [x8, #20]
	ldr	w10, [x1, #24]
	cmp	w10, #128
	cset	w10, ne
	lsl	w10, w10, #6
	stp	w10, wzr, [x8, #24]
	ldrsw	x10, [x1, #28]
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	mul	x10, x10, x11
	lsr	x12, x10, #32
	lsr	x10, x10, #63
	add	w10, w10, w12, asr #2
	asr	w10, w10, #24
	str	w10, [x8, #32]
	ldrsw	x10, [x1, #28]
	mul	x10, x10, x11
	lsr	x12, x10, #63
	lsr	x10, x10, #34
	add	w10, w10, w12
	ubfx	w10, w10, #16, #8
	str	w10, [x8, #36]
	ldrsw	x10, [x1, #28]
	mul	x10, x10, x11
	lsr	x12, x10, #63
	lsr	x10, x10, #34
	add	w10, w10, w12
	ubfx	w10, w10, #8, #8
	str	w10, [x8, #40]
	ldrsw	x10, [x1, #28]
	mul	x10, x10, x11
	lsr	x11, x10, #63
	lsr	x10, x10, #34
	add	w10, w10, w11
	and	w10, w10, #0xff
	str	w10, [x8, #44]
	ldr	w10, [x1]
	sub	w10, w10, #1708, lsl #12        ; =6995968
	cmp	w10, #4032
	cset	w10, eq
	lsl	w10, w10, #5
	str	w10, [x8, #48]
	ldr	w10, [x1, #4]
	cmp	w10, #132
	cset	w11, eq
	lsl	w11, w11, #7
	cmp	w10, #133
	csel	w9, w9, w11, eq
	str	w9, [x8, #52]
	ldr	w10, [x1, #8]
	sub	w10, w10, #136
	cmp	w10, #2
	b.hi	LBB0_2
; %bb.1:
	mov	w11, #24
	sub	w10, w11, w10, lsl #3
	orr	w9, w9, w10
	str	w9, [x8, #52]
LBB0_2:
	ldr	w10, [x1, #12]
	and	w11, w10, #0xfffffffc
	cmp	w11, #144
	b.ne	LBB0_4
; %bb.3:
	mov	w11, #148
	sub	w10, w11, w10
	orr	w9, w9, w10
	str	w9, [x8, #52]
LBB0_4:
	ldr	w9, [x1, #16]
	sub	w9, w9, #144
	mov	w10, #128
	sub	w10, w10, w9, lsl #5
	cmp	w9, #4
	csel	w9, w10, wzr, lo
	str	w9, [x8, #56]
	ldr	w10, [x1, #20]
	cmp	w10, #143
	b.eq	LBB0_8
; %bb.5:
	cmp	w10, #141
	b.eq	LBB0_9
; %bb.6:
	cmp	w10, #140
	b.ne	LBB0_11
; %bb.7:
	mov	w10, #16
	b	LBB0_10
LBB0_8:
	mov	w10, #8
	b	LBB0_10
LBB0_9:
	mov	w10, #24
LBB0_10:
	orr	w9, w9, w10
	str	w9, [x8, #56]
LBB0_11:
	ldr	w10, [x1, #24]
	cmp	w10, #129
	b.ne	LBB0_13
; %bb.12:
	orr	w9, w9, #0x2
	str	w9, [x8, #56]
LBB0_13:
	stp	wzr, wzr, [x8, #60]
	add	x1, x8, #68
	bl	_add_pid_filter
	add	w0, w0, #17
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVC_OPCODE_DSD,4,2             ; @AVC_OPCODE_DSD
	.comm	_QAM_AUTO,4,2                   ; @QAM_AUTO
	.comm	_FEC_AUTO,4,2                   ; @FEC_AUTO
	.no_dead_strip	_avc_tuner_dsd_dvb_t
.subsections_via_symbols
