	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AVIFILE_DestructAVIStream
_AVIFILE_DestructAVIStream:             ## @AVIFILE_DestructAVIStream
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	$-1, 104(%rbx)
	movl	$-1, (%rbx)
	movq	$0, 96(%rbx)
	cmpq	$0, 88(%rbx)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	88(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rbx)
LBB0_2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	72(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 72(%rbx)
	cmpq	$0, 64(%rbx)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	64(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
LBB0_4:
	cmpq	$0, 48(%rbx)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	48(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
LBB0_6:
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	32(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
LBB0_8:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_AVIFILE_DestructAVIStream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVIFILE_DestructAVIStream
_AVIFILE_DestructAVIStream:             ; @AVIFILE_DestructAVIStream
	.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	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x8, #-1
	mov	w9, #-1
	str	w9, [x19]
	stp	xzr, x8, [x19, #96]
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_GetProcessHeap
	ldr	x2, [x19, #88]
	mov	w1, #0
	bl	_HeapFree
	stp	xzr, xzr, [x19, #80]
LBB0_2:
	bl	_GetProcessHeap
	ldr	x2, [x19, #72]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #72]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_GetProcessHeap
	ldr	x2, [x19, #64]
	mov	w1, #0
	bl	_HeapFree
	stp	xzr, xzr, [x19, #56]
LBB0_4:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_GetProcessHeap
	ldr	x2, [x19, #48]
	mov	w1, #0
	bl	_HeapFree
	stp	xzr, xzr, [x19, #40]
LBB0_6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_GetProcessHeap
	ldr	x2, [x19, #32]
	mov	w1, #0
	bl	_HeapFree
	stp	xzr, xzr, [x19, #24]
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.9:
	bl	_GetProcessHeap
	ldr	x2, [x19, #16]
	mov	w1, #0
	bl	_HeapFree
	stp	xzr, xzr, [x19, #8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_AVIFILE_DestructAVIStream
.subsections_via_symbols
