	.file	"extr_avifile.c_AVIFILE_DestructAVIStream.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	AVIFILE_DestructAVIStream, @function
AVIFILE_DestructAVIStream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	setne	dil
	movzx	edi, dil
	call	assert@PLT
	mov	r12, QWORD PTR 88[rbx]
	mov	QWORD PTR 104[rbx], -1
	mov	DWORD PTR [rbx], -1
	mov	QWORD PTR 96[rbx], 0
	test	r12, r12
	je	.L2
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	QWORD PTR 88[rbx], 0
	mov	QWORD PTR 80[rbx], 0
.L2:
	mov	r12, QWORD PTR 72[rbx]
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r12
	mov	edi, eax
	call	HeapFree@PLT
	mov	r12, QWORD PTR 64[rbx]
	mov	QWORD PTR 72[rbx], 0
	test	r12, r12
	je	.L3
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	QWORD PTR 64[rbx], 0
	mov	QWORD PTR 56[rbx], 0
.L3:
	mov	r12, QWORD PTR 48[rbx]
	test	r12, r12
	je	.L4
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 40[rbx], 0
.L4:
	mov	r12, QWORD PTR 32[rbx]
	test	r12, r12
	je	.L5
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
.L5:
	mov	r12, QWORD PTR 16[rbx]
	test	r12, r12
	je	.L1
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	AVIFILE_DestructAVIStream, .-AVIFILE_DestructAVIStream
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_avifile.c_AVIFILE_DestructAVIStream.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AVIFILE_DestructAVIStream, %function
AVIFILE_DestructAVIStream:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	mov	r5, #0
	bl	assert
	mvn	r3, #0
	ldr	r2, [r4, #44]
	str	r3, [r4, #52]
	cmp	r2, r5
	str	r3, [r4]
	str	r5, [r4, #48]
	beq	.L2
	bl	GetProcessHeap
	mov	r1, r5
	ldr	r2, [r4, #44]
	bl	HeapFree
	str	r5, [r4, #44]
	str	r5, [r4, #40]
.L2:
	mov	r5, #0
	bl	GetProcessHeap
	mov	r1, r5
	ldr	r2, [r4, #36]
	bl	HeapFree
	ldr	r3, [r4, #32]
	str	r5, [r4, #36]
	cmp	r3, r5
	beq	.L3
	bl	GetProcessHeap
	mov	r1, r5
	ldr	r2, [r4, #32]
	bl	HeapFree
	str	r5, [r4, #32]
	str	r5, [r4, #28]
.L3:
	ldr	r3, [r4, #24]
	cmp	r3, #0
	beq	.L4
	bl	GetProcessHeap
	mov	r1, #0
	ldr	r2, [r4, #24]
	bl	HeapFree
	mov	r3, #0
	str	r3, [r4, #24]
	str	r3, [r4, #20]
.L4:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L5
	bl	GetProcessHeap
	mov	r1, #0
	ldr	r2, [r4, #16]
	bl	HeapFree
	mov	r3, #0
	str	r3, [r4, #16]
	str	r3, [r4, #12]
.L5:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	bl	GetProcessHeap
	mov	r1, #0
	ldr	r2, [r4, #8]
	bl	HeapFree
	mov	r3, #0
	str	r3, [r4, #8]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
	.size	AVIFILE_DestructAVIStream, .-AVIFILE_DestructAVIStream
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
