	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_packetizer_close            ## -- Begin function vc_packetizer_close
	.p2align	4, 0x90
_vc_packetizer_close:                   ## @vc_packetizer_close
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_vc_container_format_delete
LBB0_3:
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_vc_container_format_delete
LBB0_5:
	movq	16(%r15), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	*%rcx
	movq	16(%r15), %rax
LBB0_7:
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_vc_packetizer_unload
LBB0_9:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_10
LBB0_13:
	movq	%r15, %rdi
	callq	_free
LBB0_14:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rbx
	cmpq	$0, (%rdi)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_free
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_packetizer_close            ; -- Begin function vc_packetizer_close
	.p2align	2
_vc_packetizer_close:                   ; @vc_packetizer_close
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x0, [x0, #32]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_vc_container_format_delete
LBB0_3:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_vc_container_format_delete
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x9
	ldr	x8, [x19, #16]
LBB0_7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_vc_packetizer_unload
LBB0_9:
	ldr	x0, [x20, #16]
	cbnz	x0, LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_free
LBB0_11:
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	cbz	x20, LBB0_10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x20, [x0]
	cbz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_free
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
.subsections_via_symbols
