	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function av7110_start_feed
_av7110_start_feed:                     ## @av7110_start_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, %r14
	movq	48(%rdi), %r13
	movq	32(%r13), %r12
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movq	%r12, %rdx
	callq	_dprintk
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%r12)
	jne	LBB0_4
## %bb.3:
	cmpl	$8192, (%r14)                   ## imm = 0x2000
	jl	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_31
LBB0_4:
	movq	8(%r14), %rcx
	movq	_DMX_TYPE_TS@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	cmpq	(%rdx), %rcx
	jne	LBB0_18
## %bb.5:
	movl	16(%r14), %ecx
	movq	_TS_DECODER@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_14
## %bb.6:
	movq	24(%r14), %rdx
	movq	_DMX_PES_PCR@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jle	LBB0_7
LBB0_14:
	movq	_TS_PACKET@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_18
## %bb.15:
	cmpl	$128, (%rax)
	movl	$0, %r15d
	je	LBB0_18
## %bb.16:
	movq	40(%r14), %rdi
	callq	_StartHWFilter
	jmp	LBB0_17
LBB0_7:
	cmpl	$128, (%rax)
	jne	LBB0_13
## %bb.8:
	cmpq	$1, %rdx
	jg	LBB0_18
## %bb.9:
	movq	(%r13), %rax
	testb	$-128, 1(%rax)
	jne	LBB0_18
## %bb.10:
	testb	$-128, 5(%rax)
	jne	LBB0_18
## %bb.11:
	leaq	12(%r12), %rdi
	callq	_dvb_ringbuffer_flush_spinlock_wakeup
	leaq	8(%r12), %rdi
	callq	_dvb_ringbuffer_flush_spinlock_wakeup
	movq	_RP_AV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_av7110_av_start_play
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	movl	$1, 8(%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_13:
	movq	%r14, %rdi
	callq	_dvb_feed_start_pid
LBB0_17:
	movl	%eax, %r15d
LBB0_18:
	cmpq	$0, (%r12)
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_budget_start_feed
	jmp	LBB0_31
LBB0_20:
	movq	8(%r14), %rax
	movq	_DMX_TYPE_SEC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_31
## %bb.21:
	movl	12(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_31
## %bb.22:
	addq	$32, %r14
	xorl	%ebx, %ebx
	movq	_DMX_STATE_READY@GOTPCREL(%rip), %rsi
	movq	_DMX_STATE_GO@GOTPCREL(%rip), %r8
	xorl	%r12d, %r12d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_31
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdi
	movq	(%rdi,%rbx), %rcx
	cmpq	(%rsi), %rcx
	jne	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	8(%rdi,%rbx), %rcx
	cmpq	(%rdx), %rcx
	jne	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpq	%r14, 16(%rdi,%rbx)
	jne	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	(%r8), %rcx
	movq	%rcx, (%rdi,%rbx)
	movq	24(%r13), %rcx
	cmpl	$128, (%rcx)
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	addq	%rbx, %rdi
	callq	_StartHWFilter
	testl	%eax, %eax
	jne	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	12(%r13), %eax
	xorl	%r15d, %r15d
	movq	_DMX_TYPE_SEC@GOTPCREL(%rip), %rdx
	movq	_DMX_STATE_READY@GOTPCREL(%rip), %rsi
	movq	_DMX_STATE_GO@GOTPCREL(%rip), %r8
	jmp	LBB0_30
LBB0_28:
	movl	%eax, %r15d
LBB0_31:
	movl	%r15d, %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	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMX_TYPE_TS,8,3                ## @DMX_TYPE_TS
	.comm	_TS_DECODER,4,2                 ## @TS_DECODER
	.comm	_DMX_PES_PCR,8,3                ## @DMX_PES_PCR
	.comm	_RP_AV,4,2                      ## @RP_AV
	.comm	_TS_PACKET,4,2                  ## @TS_PACKET
	.comm	_DMX_TYPE_SEC,8,3               ## @DMX_TYPE_SEC
	.comm	_DMX_STATE_READY,8,3            ## @DMX_STATE_READY
	.comm	_DMX_STATE_GO,8,3               ## @DMX_STATE_GO
	.no_dead_strip	_av7110_start_feed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function av7110_start_feed
_av7110_start_feed:                     ; @av7110_start_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, #48]
	ldr	x20, [x22, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x2, x20
	bl	_dprintk
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x20]
	cbnz	x9, LBB0_4
; %bb.2:
	ldr	w9, [x19]
	cmp	w9, #2, lsl #12                 ; =8192
	b.lt	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_31
LBB0_4:
	ldr	x9, [x19, #8]
Lloh5:
	adrp	x10, _DMX_TYPE_TS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DMX_TYPE_TS@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_16
; %bb.5:
	ldr	w9, [x19, #16]
Lloh8:
	adrp	x10, _TS_DECODER@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TS_DECODER@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	x10, [x19, #24]
Lloh11:
	adrp	x11, _DMX_PES_PCR@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DMX_PES_PCR@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x10, x11
	b.le	LBB0_10
LBB0_7:
Lloh14:
	adrp	x10, _TS_PACKET@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TS_PACKET@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_16
; %bb.8:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_16
; %bb.9:
	ldr	x0, [x19, #40]
	bl	_StartHWFilter
	b	LBB0_20
LBB0_10:
	ldr	w8, [x8]
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.11:
	cmp	x10, #1
	b.gt	LBB0_16
; %bb.12:
	ldr	x8, [x22]
	ldrb	w9, [x8, #1]
	tbnz	w9, #7, LBB0_16
; %bb.13:
	ldrb	w8, [x8, #5]
	tbnz	w8, #7, LBB0_16
; %bb.14:
	add	x0, x20, #12
	bl	_dvb_ringbuffer_flush_spinlock_wakeup
	add	x0, x20, #8
	bl	_dvb_ringbuffer_flush_spinlock_wakeup
Lloh17:
	adrp	x8, _RP_AV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RP_AV@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_av7110_av_start_play
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.15:
	mov	w8, #1
	str	w8, [x22, #8]
	ldr	x8, [x20]
	cbnz	x8, LBB0_18
	b	LBB0_21
LBB0_16:
	mov	w21, #0
LBB0_17:
	ldr	x8, [x20]
	cbz	x8, LBB0_21
LBB0_18:
	mov	x0, x19
	bl	_budget_start_feed
	b	LBB0_31
LBB0_19:
	mov	x0, x19
	bl	_dvb_feed_start_pid
LBB0_20:
	mov	x21, x0
	ldr	x8, [x20]
	cbnz	x8, LBB0_18
LBB0_21:
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x20, _DMX_TYPE_SEC@GOTPAGE
Lloh21:
	ldr	x20, [x20, _DMX_TYPE_SEC@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_31
; %bb.22:
	ldr	w8, [x22, #12]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.23:
	mov	x23, #0
	mov	x24, #0
	add	x19, x19, #32
Lloh22:
	adrp	x25, _DMX_STATE_READY@GOTPAGE
Lloh23:
	ldr	x25, [x25, _DMX_STATE_READY@GOTPAGEOFF]
Lloh24:
	adrp	x26, _DMX_STATE_GO@GOTPAGE
Lloh25:
	ldr	x26, [x26, _DMX_STATE_GO@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x24, x24, #1
	add	x23, x23, #24
	cmp	x24, w8, sxtw
	b.ge	LBB0_31
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #16]
	ldr	x10, [x9, x23]
	ldr	x11, [x25]
	cmp	x10, x11
	b.ne	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x10, x9, x23
	ldr	x11, [x10, #8]
	ldr	x12, [x20]
	cmp	x11, x12
	b.ne	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x10, [x10, #16]
	cmp	x10, x19
	b.ne	LBB0_24
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x10, [x26]
	str	x10, [x9, x23]
	ldr	x10, [x22, #24]
	ldr	w10, [x10]
	cmp	w10, #128
	b.eq	LBB0_24
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x0, x9, x23
	bl	_StartHWFilter
	mov	x21, x0
	cbnz	w0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [x22, #12]
	b	LBB0_24
LBB0_31:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.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 AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMX_TYPE_TS,8,3                ; @DMX_TYPE_TS
	.comm	_TS_DECODER,4,2                 ; @TS_DECODER
	.comm	_DMX_PES_PCR,8,3                ; @DMX_PES_PCR
	.comm	_RP_AV,4,2                      ; @RP_AV
	.comm	_TS_PACKET,4,2                  ; @TS_PACKET
	.comm	_DMX_TYPE_SEC,8,3               ; @DMX_TYPE_SEC
	.comm	_DMX_STATE_READY,8,3            ; @DMX_STATE_READY
	.comm	_DMX_STATE_GO,8,3               ; @DMX_STATE_GO
	.no_dead_strip	_av7110_start_feed
.subsections_via_symbols
