	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbdmx_release_ts_feed
_dvbdmx_release_ts_feed:                ## @dvbdmx_release_ts_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_mutex_lock
	movq	_DMX_STATE_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rcx, (%rbx)
	movq	(%rax), %rax
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_dvb_demux_feed_del
	movl	$65535, 8(%rbx)                 ## imm = 0xFFFF
	movq	_TS_DECODER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	movq	_DMX_PES_OTHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_5
## %bb.4:
	movq	8(%r14), %rcx
	movq	$0, (%rcx,%rax,8)
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMX_STATE_FREE,8,3             ## @DMX_STATE_FREE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TS_DECODER,4,2                 ## @TS_DECODER
	.comm	_DMX_PES_OTHER,8,3              ## @DMX_PES_OTHER
	.no_dead_strip	_dvbdmx_release_ts_feed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvbdmx_release_ts_feed
_dvbdmx_release_ts_feed:                ; @dvbdmx_release_ts_feed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	ldr	x10, [x20]
Lloh0:
	adrp	x8, _DMX_STATE_FREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMX_STATE_FREE@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mutex_unlock
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	str	x9, [x20]
	ldr	x8, [x8]
	ldr	x9, [x20, #24]
	str	x8, [x9]
	mov	x0, x20
	bl	_dvb_demux_feed_del
	mov	w8, #65535
	str	w8, [x20, #8]
	ldr	w8, [x20, #12]
Lloh5:
	adrp	x9, _TS_DECODER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TS_DECODER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
Lloh8:
	adrp	x9, _DMX_PES_OTHER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMX_PES_OTHER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.4:
	ldr	x9, [x19, #8]
	str	xzr, [x9, x8, lsl #3]
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DMX_STATE_FREE,8,3             ; @DMX_STATE_FREE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TS_DECODER,4,2                 ; @TS_DECODER
	.comm	_DMX_PES_OTHER,8,3              ; @DMX_PES_OTHER
	.no_dead_strip	_dvbdmx_release_ts_feed
.subsections_via_symbols
