	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function av7110_stop_feed
_av7110_stop_feed:                      ## @av7110_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	%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	%rdi, %r13
	movq	40(%rdi), %r12
	movq	40(%r12), %r15
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movq	%r15, %rdx
	callq	_dprintk
	movq	(%r13), %rax
	movq	_DMX_TYPE_TS@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.1:
	movl	8(%r13), %ecx
	movq	_TS_DECODER@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.2:
	movq	16(%r13), %rcx
	movq	_DMX_PES_OTHER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jae	LBB0_4
## %bb.3:
	movq	32(%r12), %rsi
	cmpq	$0, (%rsi,%rcx,8)
	je	LBB0_4
## %bb.5:
	movq	(%r12), %rdi
	orl	$32768, (%rdi,%rcx,4)           ## imm = 0x8000
	movq	$0, (%rsi,%rcx,8)
	movl	8(%r13), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.6:
	movq	16(%r13), %rax
	cmpq	(%rdx), %rax
	jae	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_dvb_feed_stop_pid
	jmp	LBB0_11
LBB0_8:
	movq	_TS_PACKET@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.9:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	_DMX_MEMORY_FE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	32(%r13), %rdi
	callq	_StopHWFilter
LBB0_11:
	movl	%eax, %r14d
LBB0_12:
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_budget_stop_feed
	jmp	LBB0_22
LBB0_14:
	movq	(%r13), %rax
	movq	_DMX_TYPE_SEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.15:
	movl	8(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.16:
	addq	$24, %r13
	xorl	%ebx, %ebx
	movq	_DMX_STATE_GO@GOTPCREL(%rip), %rdx
	movq	_DMX_STATE_READY@GOTPCREL(%rip), %r8
	movq	_DMX_MEMORY_FE@GOTPCREL(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_22
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	movq	(%rdi,%rbx), %rcx
	cmpq	(%rdx), %rcx
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%r13, 8(%rdi,%rbx)
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r8), %rcx
	movq	%rcx, (%rdi,%rbx)
	movq	24(%r12), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rsi), %rcx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	addq	%rbx, %rdi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r8, %r14
	callq	_StopHWFilter
	movq	_DMX_MEMORY_FE@GOTPCREL(%rip), %rsi
	movq	%r14, %r8
	movq	_DMX_STATE_GO@GOTPCREL(%rip), %rdx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	cmovel	%eax, %r14d
	movl	8(%r12), %eax
	jmp	LBB0_21
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_22:
	movl	%r14d, %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	"%p\n"

	.comm	_DMX_TYPE_TS,8,3                ## @DMX_TYPE_TS
	.comm	_TS_DECODER,4,2                 ## @TS_DECODER
	.comm	_DMX_PES_OTHER,8,3              ## @DMX_PES_OTHER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TS_PACKET,4,2                  ## @TS_PACKET
	.comm	_DMX_MEMORY_FE,8,3              ## @DMX_MEMORY_FE
	.comm	_DMX_TYPE_SEC,8,3               ## @DMX_TYPE_SEC
	.comm	_DMX_STATE_GO,8,3               ## @DMX_STATE_GO
	.comm	_DMX_STATE_READY,8,3            ## @DMX_STATE_READY
	.no_dead_strip	_av7110_stop_feed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function av7110_stop_feed
_av7110_stop_feed:                      ; @av7110_stop_feed
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x22, [x0, #40]
	ldr	x21, [x22, #40]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x2, x21
	bl	_dprintk
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _DMX_TYPE_TS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMX_TYPE_TS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	ldr	w9, [x19, #8]
Lloh5:
	adrp	x8, _TS_DECODER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TS_DECODER@GOTPAGEOFF]
	ldr	w10, [x8]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.2:
	ldr	x9, [x19, #16]
Lloh7:
	adrp	x10, _DMX_PES_OTHER@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DMX_PES_OTHER@GOTPAGEOFF]
	ldr	x11, [x10]
	cmp	x9, x11
	b.hs	LBB0_11
; %bb.3:
	ldr	x11, [x22, #32]
	ldr	x12, [x11, x9, lsl #3]
	cbz	x12, LBB0_11
; %bb.4:
	ldr	x12, [x22]
	lsl	x13, x9, #2
	ldr	w14, [x12, x13]
	orr	w14, w14, #0x8000
	str	w14, [x12, x13]
	str	xzr, [x11, x9, lsl #3]
	ldr	w9, [x19, #8]
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x10, [x10]
	cmp	x8, x10
	b.hs	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_dvb_feed_stop_pid
	b	LBB0_13
LBB0_7:
Lloh9:
	adrp	x8, _TS_PACKET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TS_PACKET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _DMX_MEMORY_FE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DMX_MEMORY_FE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_9:
	mov	w20, #0
	ldr	x8, [x21]
	cbz	x8, LBB0_14
LBB0_10:
	mov	x0, x19
	bl	_budget_stop_feed
	b	LBB0_22
LBB0_11:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_22
LBB0_12:
	ldr	x0, [x19, #32]
	bl	_StopHWFilter
LBB0_13:
	mov	x20, x0
	ldr	x8, [x21]
	cbnz	x8, LBB0_10
LBB0_14:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _DMX_TYPE_SEC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DMX_TYPE_SEC@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.15:
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.16:
	mov	x21, #0
	mov	x23, #0
	add	x19, x19, #24
Lloh21:
	adrp	x24, _DMX_STATE_GO@GOTPAGE
Lloh22:
	ldr	x24, [x24, _DMX_STATE_GO@GOTPAGEOFF]
Lloh23:
	adrp	x25, _DMX_STATE_READY@GOTPAGE
Lloh24:
	ldr	x25, [x25, _DMX_STATE_READY@GOTPAGEOFF]
Lloh25:
	adrp	x26, _DMX_MEMORY_FE@GOTPAGE
Lloh26:
	ldr	x26, [x26, _DMX_MEMORY_FE@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x23, x23, #1
	add	x21, x21, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #16]
	ldr	x10, [x9, x21]
	ldr	x11, [x24]
	cmp	x10, x11
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x10, x9, x21
	ldr	x10, [x10, #8]
	cmp	x10, x19
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x10, [x25]
	str	x10, [x9, x21]
	ldr	x10, [x22, #24]
	ldr	x10, [x10]
	ldr	x11, [x26]
	cmp	x10, x11
	b.eq	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x0, x9, x21
	bl	_StopHWFilter
	cmp	w20, #0
	csel	w20, w0, w20, eq
	ldr	w8, [x22, #8]
	b	LBB0_17
LBB0_22:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p\n"

	.comm	_DMX_TYPE_TS,8,3                ; @DMX_TYPE_TS
	.comm	_TS_DECODER,4,2                 ; @TS_DECODER
	.comm	_DMX_PES_OTHER,8,3              ; @DMX_PES_OTHER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TS_PACKET,4,2                  ; @TS_PACKET
	.comm	_DMX_MEMORY_FE,8,3              ; @DMX_MEMORY_FE
	.comm	_DMX_TYPE_SEC,8,3               ; @DMX_TYPE_SEC
	.comm	_DMX_STATE_GO,8,3               ; @DMX_STATE_GO
	.comm	_DMX_STATE_READY,8,3            ; @DMX_STATE_READY
	.no_dead_strip	_av7110_stop_feed
.subsections_via_symbols
