	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_dmxdev_ts_callback
_dvb_dmxdev_ts_callback:                ## @dvb_dmxdev_ts_callback
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%r8), %r14
	movq	(%r14), %rdi
	callq	_spin_lock
	movq	16(%r14), %rax
	movq	_DMX_OUT_DECODER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	callq	_spin_unlock
	jmp	LBB0_12
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_DMX_OUT_TAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_DMX_OUT_TSDEMUX_TAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:
	movq	(%r14), %rbx
	addq	$4, %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_11
	jmp	LBB0_7
LBB0_4:
	leaq	8(%r14), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_11
LBB0_7:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_dvb_dmxdev_buffer_write
	movl	%eax, %r13d
	cltq
	cmpq	%r12, %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dvb_dmxdev_buffer_write
	movl	%eax, %r13d
LBB0_9:
	testl	%r13d, %r13d
	jns	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_dvb_ringbuffer_flush
	movl	%r13d, (%rbx)
LBB0_11:
	movq	(%r14), %rdi
	callq	_spin_unlock
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMX_OUT_DECODER,8,3            ## @DMX_OUT_DECODER
	.comm	_DMX_OUT_TAP,8,3                ## @DMX_OUT_TAP
	.comm	_DMX_OUT_TSDEMUX_TAP,8,3        ## @DMX_OUT_TSDEMUX_TAP
	.no_dead_strip	_dvb_dmxdev_ts_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_dmxdev_ts_callback
_dvb_dmxdev_ts_callback:                ; @dvb_dmxdev_ts_callback
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x24, [x4]
	ldr	x0, [x24]
	bl	_spin_lock
	ldr	x8, [x24, #16]
Lloh0:
	adrp	x9, _DMX_OUT_DECODER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMX_OUT_DECODER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x24]
	bl	_spin_unlock
	b	LBB0_10
LBB0_2:
Lloh3:
	adrp	x9, _DMX_OUT_TAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMX_OUT_TAP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _DMX_OUT_TSDEMUX_TAP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DMX_OUT_TSDEMUX_TAP@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
	add	x20, x24, #8
	ldr	w8, [x20]
	cbnz	w8, LBB0_9
	b	LBB0_5
LBB0_4:
	ldr	x8, [x24]
	add	x20, x8, #4
	ldr	w8, [x20]
	cbnz	w8, LBB0_9
LBB0_5:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_dvb_dmxdev_buffer_write
	mov	x23, x0
	sxtw	x8, w23
	cmp	x8, x22
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_dvb_dmxdev_buffer_write
	mov	x23, x0
LBB0_7:
	tbz	w23, #31, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_dvb_ringbuffer_flush
	str	w23, [x20]
LBB0_9:
	ldr	x0, [x24]
	bl	_spin_unlock
	add	x0, x20, #4
	bl	_wake_up
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMX_OUT_DECODER,8,3            ; @DMX_OUT_DECODER
	.comm	_DMX_OUT_TAP,8,3                ; @DMX_OUT_TAP
	.comm	_DMX_OUT_TSDEMUX_TAP,8,3        ; @DMX_OUT_TSDEMUX_TAP
	.no_dead_strip	_dvb_dmxdev_ts_callback
.subsections_via_symbols
