	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdtv_stop_feed                 ## -- Begin function fdtv_stop_feed
	.p2align	4, 0x90
_fdtv_stop_feed:                        ## @fdtv_stop_feed
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	32(%rdi), %rax
	movq	24(%rax), %r14
	movq	(%rdi), %rcx
	movq	_DMX_TYPE_TS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.1:
	movl	8(%rbx), %edx
	movq	_TS_PACKET@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	16(%rax), %rcx
	movq	(%rcx), %rcx
	movq	_DMX_MEMORY_FE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_10
LBB0_3:
	movq	_TS_DECODER@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%edx, (%rcx)
	je	LBB0_13
## %bb.4:
	movq	16(%rbx), %rsi
	movq	_DMX_PES_OTHER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	jae	LBB0_6
## %bb.5:
	movq	8(%rax), %rdi
	cmpq	$0, (%rdi,%rsi,8)
	je	LBB0_6
## %bb.8:
	movq	(%rax), %rax
	orl	$32768, (%rax,%rsi,4)           ## imm = 0x8000
	movq	$0, (%rdi,%rsi,8)
	movl	(%rcx), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_13
## %bb.9:
	movq	16(%rbx), %rax
	cmpq	(%rdx), %rax
	jae	LBB0_13
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_12:
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_dealloc_channel
	leaq	-100(%rbp), %rsi
	leaq	-96(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_collect_channels
	movl	-100(%rbp), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_avc_tuner_set_pids
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_13
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DMX_TYPE_TS,8,3                ## @DMX_TYPE_TS
	.comm	_TS_PACKET,4,2                  ## @TS_PACKET
	.comm	_DMX_MEMORY_FE,8,3              ## @DMX_MEMORY_FE
	.comm	_TS_DECODER,4,2                 ## @TS_DECODER
	.comm	_DMX_PES_OTHER,8,3              ## @DMX_PES_OTHER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EINTR,4,2                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdtv_stop_feed                 ; -- Begin function fdtv_stop_feed
	.p2align	2
_fdtv_stop_feed:                        ; @fdtv_stop_feed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x0, #32]
	ldr	x19, [x8, #24]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _DMX_TYPE_TS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DMX_TYPE_TS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.1:
	ldr	w10, [x20, #8]
Lloh6:
	adrp	x9, _TS_PACKET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TS_PACKET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x8, #16]
	ldr	x9, [x9]
Lloh9:
	adrp	x11, _DMX_MEMORY_FE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DMX_MEMORY_FE@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_8
LBB0_3:
Lloh12:
	adrp	x9, _TS_DECODER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TS_DECODER@GOTPAGEOFF]
	ldr	w11, [x9]
	tst	w11, w10
	b.eq	LBB0_11
; %bb.4:
	ldr	x11, [x20, #16]
Lloh14:
	adrp	x10, _DMX_PES_OTHER@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DMX_PES_OTHER@GOTPAGEOFF]
	ldr	x12, [x10]
	cmp	x11, x12
	b.hs	LBB0_12
; %bb.5:
	ldr	x12, [x8, #8]
	ldr	x13, [x12, x11, lsl #3]
	cbz	x13, LBB0_12
; %bb.6:
	ldr	x8, [x8]
	lsl	x13, x11, #2
	ldr	w14, [x8, x13]
	orr	w14, w14, #0x8000
	str	w14, [x8, x13]
	str	xzr, [x12, x11, lsl #3]
	ldr	w8, [x20, #8]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.7:
	ldr	x8, [x20, #16]
	ldr	x9, [x10]
	cmp	x8, x9
	b.hs	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _EINTR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_dealloc_channel
	add	x1, sp, #4
	add	x2, sp, #8
	mov	x0, x19
	bl	_collect_channels
	ldr	w1, [sp, #4]
	add	x2, sp, #8
	mov	x0, x19
	bl	_avc_tuner_set_pids
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_14
LBB0_11:
	mov	w20, #0
	b	LBB0_14
LBB0_12:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DMX_TYPE_TS,8,3                ; @DMX_TYPE_TS
	.comm	_TS_PACKET,4,2                  ; @TS_PACKET
	.comm	_DMX_MEMORY_FE,8,3              ; @DMX_MEMORY_FE
	.comm	_TS_DECODER,4,2                 ; @TS_DECODER
	.comm	_DMX_PES_OTHER,8,3              ; @DMX_PES_OTHER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EINTR,4,2                      ; @EINTR
.subsections_via_symbols
