	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpegts_close_filter
_mpegts_close_filter:                   ## @mpegts_close_filter
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movslq	(%rsi), %r12
	movq	8(%rsi), %rax
	movq	_MPEGTS_SECTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	24(%rbx), %r15
LBB0_5:
	movq	%r15, %rdi
	callq	_av_freep
	jmp	LBB0_6
LBB0_2:
	movq	_MPEGTS_PES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	leaq	16(%rbx), %r15
	movq	16(%rbx), %r13
	leaq	12(%r13), %rdi
	callq	_av_buffer_unref
	cmpl	$0, 8(%r13)
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%r13)
	jne	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_av_free
	movq	(%r14), %rax
	movq	$0, (%rax,%r12,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPEGTS_SECTION,8,3             ## @MPEGTS_SECTION
	.comm	_MPEGTS_PES,8,3                 ## @MPEGTS_PES
	.no_dead_strip	_mpegts_close_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpegts_close_filter
_mpegts_close_filter:                   ; @mpegts_close_filter
	.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	x20, x1
	mov	x19, x0
	ldrsw	x22, [x1]
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _MPEGTS_SECTION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MPEGTS_SECTION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	add	x21, x20, #24
LBB0_2:
	mov	x0, x21
	bl	_av_freep
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x9, _MPEGTS_PES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPEGTS_PES@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x21, x20
	ldr	x23, [x21, #16]!
	add	x0, x23, #12
	bl	_av_buffer_unref
	ldr	w8, [x23, #8]
	cbz	w8, LBB0_2
; %bb.5:
	ldr	x8, [x23]
	cbnz	x8, LBB0_2
LBB0_6:
	mov	x0, x20
	bl	_av_free
	ldr	x8, [x19]
	str	xzr, [x8, x22, lsl #3]
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MPEGTS_SECTION,8,3             ; @MPEGTS_SECTION
	.comm	_MPEGTS_PES,8,3                 ; @MPEGTS_PES
	.no_dead_strip	_mpegts_close_filter
.subsections_via_symbols
