	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_dvb_feed_func
_pvr2_dvb_feed_func:                    ## @pvr2_dvb_feed_func
	.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	_PVR2_TRACE_DVB_FEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_pvr2_trace
	xorl	%eax, %eax
	callq	_set_freezable
	movq	24(%r14), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	leaq	16(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_try_to_freeze
	movq	%r12, %rdi
	callq	_pvr2_stream_get_ready_buffer
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pvr2_buffer_get_count
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movq	8(%r14), %r15
	movq	%rbx, %rdi
	callq	_pvr2_buffer_get_id
	movl	(%r15,%rax,4), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_dvb_dmx_swfilter
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %ebx
	movq	%r12, %rdi
	callq	_pvr2_stream_get_ready_count
	movb	$1, %cl
	testq	%rax, %rax
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	setne	%cl
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %esi
	movl	%ebx, %edi
	callq	_wait_event_interruptible
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_pvr2_buffer_get_status
	testl	%eax, %eax
	js	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_pvr2_buffer_queue
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	je	LBB0_2
LBB0_9:
	movq	_PVR2_TRACE_DVB_FEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_pvr2_trace
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVR2_TRACE_DVB_FEED,4,2        ## @PVR2_TRACE_DVB_FEED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvb feed thread started"

L_.str.1:                               ## @.str.1
	.asciz	"dvb feed thread stopped"

	.no_dead_strip	_pvr2_dvb_feed_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_dvb_feed_func
_pvr2_dvb_feed_func:                    ; @pvr2_dvb_feed_func
	.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
Lloh0:
	adrp	x24, _PVR2_TRACE_DVB_FEED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PVR2_TRACE_DVB_FEED@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pvr2_trace
	bl	_set_freezable
	ldr	x8, [x19, #24]
	ldr	x20, [x8]
	bl	_kthread_should_stop
	cbz	x0, LBB0_2
LBB0_1:
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pvr2_trace
	mov	w0, #0
	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
LBB0_2:
	add	x21, x19, #16
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	ldr	x25, [x19, #8]
	mov	x0, x22
	bl	_pvr2_buffer_get_id
	ldr	w1, [x25, x0, lsl #2]
	mov	x0, x21
	mov	x2, x23
	bl	_dvb_dmx_swfilter
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_pvr2_buffer_queue
	tbnz	w0, #31, LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_try_to_freeze
	mov	x0, x20
	bl	_pvr2_stream_get_ready_buffer
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	bl	_pvr2_buffer_get_count
	cbnz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_pvr2_buffer_get_status
	tbz	w0, #31, LBB0_4
	b	LBB0_1
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w22, [x19]
	mov	x0, x20
	bl	_pvr2_stream_get_ready_count
	cmp	x0, #0
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_kthread_should_stop
	cmp	x0, #0
	cset	w1, ne
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_wait_event_interruptible
	tbz	w0, #31, LBB0_5
	b	LBB0_1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PVR2_TRACE_DVB_FEED,4,2        ; @PVR2_TRACE_DVB_FEED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvb feed thread started"

l_.str.1:                               ; @.str.1
	.asciz	"dvb feed thread stopped"

	.no_dead_strip	_pvr2_dvb_feed_func
.subsections_via_symbols
