	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dvb_feed_stop_pid
LCPI0_0:
	.long	65535                           ## 0xffff
	.long	65535                           ## 0xffff
	.long	65535                           ## 0xffff
	.long	65535                           ## 0xffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dvb_feed_stop_pid:                     ## @dvb_feed_stop_pid
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rbx
	movq	(%rbx), %r15
	movq	24(%rbx), %r14
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movq	%r14, %rdx
	callq	_dprintk
	movl	(%r13), %eax
	cmpl	$1, %eax
	jg	LBB0_9
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	_RP_AUDIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_RP_VIDEO@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_av7110_av_stop
	testl	%eax, %eax
	jne	LBB0_18
## %bb.5:
	cmpl	$0, 4(%r14)
	je	LBB0_6
## %bb.7:
	cmpl	$0, (%r14)
	je	LBB0_8
LBB0_9:
	movl	$65535, -64(%rbp)               ## imm = 0xFFFF
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [65535,65535,65535,65535]
	movaps	%xmm0, -80(%rbp)
	movl	(%r13), %eax
	cmpq	$2, %rax
	jb	LBB0_16
## %bb.10:
	cmpl	$4, %eax
	je	LBB0_16
## %bb.11:
	movl	$65535, %r15d                   ## imm = 0xFFFF
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.13:
	movq	_TS_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, 4(%r13)
	je	LBB0_14
## %bb.21:
	movl	8(%r13), %edi
	callq	_StopHWFilter
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	$65535, %esi                    ## imm = 0xFFFF
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_22
LBB0_16:
	movq	_pids_off@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_17
## %bb.20:
	movl	(%r15,%rax,4), %ecx
	xorl	%edx, %edx
	testl	$32768, %ecx                    ## imm = 0x8000
	cmovel	%ecx, %edx
	movl	%edx, -80(%rbp,%rax,4)
	movl	-80(%rbp), %edx
	movl	-76(%rbp), %esi
	movl	-72(%rbp), %r12d
	movl	-68(%rbp), %r8d
	movl	-64(%rbp), %r15d
	jmp	LBB0_22
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$65535, %r12d                   ## imm = 0xFFFF
	jmp	LBB0_15
LBB0_6:
	movq	$0, 16(%rbx)
	cmpl	$0, (%r14)
	jne	LBB0_9
LBB0_8:
	movq	$0, 8(%rbx)
	jmp	LBB0_9
LBB0_14:
	movl	$65535, %r8d                    ## imm = 0xFFFF
LBB0_15:
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	$65535, %esi                    ## imm = 0xFFFF
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.23:
	movq	%r14, %rdi
	movl	%r12d, %ecx
	movl	%r15d, %r9d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ChangePIDs                     ## TAILCALL
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p\n"

	.comm	_RP_VIDEO,4,2                   ## @RP_VIDEO
	.comm	_RP_AUDIO,4,2                   ## @RP_AUDIO
	.comm	_TS_PACKET,4,2                  ## @TS_PACKET
	.comm	_pids_off,4,2                   ## @pids_off
	.no_dead_strip	_dvb_feed_stop_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_feed_stop_pid
_dvb_feed_stop_pid:                     ; @dvb_feed_stop_pid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x22, [x0, #16]
	ldr	x19, [x22, #24]
	ldr	x21, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x2, x19
	bl	_dprintk
	ldr	w8, [x20]
	cmp	w8, #1
	b.gt	LBB0_4
; %bb.1:
Lloh5:
	adrp	x9, _RP_VIDEO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RP_VIDEO@GOTPAGEOFF]
Lloh7:
	adrp	x10, _RP_AUDIO@GOTPAGE
Lloh8:
	ldr	x10, [x10, _RP_AUDIO@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av7110_av_stop
	cbnz	w0, LBB0_14
; %bb.2:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_16
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_17
LBB0_4:
	mov	w5, #65535
	str	w5, [sp, #16]
	movi.2d	v0, #0x00ffff0000ffff
	str	q0, [sp]
	ldr	w8, [x20]
	cmp	w8, #2
	ccmp	w8, #4, #4, hs
	b.ne	LBB0_7
; %bb.5:
Lloh9:
	adrp	x9, _pids_off@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pids_off@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cbz	w9, LBB0_13
; %bb.6:
	lsl	x8, x8, #2
	ldr	w9, [x21, x8]
	tst	w9, #0x8000
	csel	w9, w9, wzr, eq
	mov	x10, sp
	str	w9, [x10, x8]
	ldp	w2, w1, [sp]
	ldp	w3, w4, [sp, #8]
	ldr	w5, [sp, #16]
	b	LBB0_11
LBB0_7:
	mov	w4, #65535
	mov	w3, #65535
	mov	w2, #65535
	mov	w1, #65535
	cmp	w8, #2
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x20, #4]
Lloh12:
	adrp	x9, _TS_PACKET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TS_PACKET@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x20, #8]
	bl	_StopHWFilter
	cbnz	w0, LBB0_14
LBB0_10:
	mov	w3, #0
	mov	w5, #65535
	mov	w4, #65535
	mov	w2, #65535
	mov	w1, #65535
LBB0_11:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.12:
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_ChangePIDs
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
	str	xzr, [x22, #16]
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
LBB0_17:
	str	xzr, [x22, #8]
	b	LBB0_4
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p\n"

	.comm	_RP_VIDEO,4,2                   ; @RP_VIDEO
	.comm	_RP_AUDIO,4,2                   ; @RP_AUDIO
	.comm	_TS_PACKET,4,2                  ; @TS_PACKET
	.comm	_pids_off,4,2                   ; @pids_off
	.no_dead_strip	_dvb_feed_stop_pid
.subsections_via_symbols
