	.file	"extr_mxfdec.c_mxf_read_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mxf_read_close, @function
mxf_read_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR 16[rdi]
	lea	rdi, 56[rbx]
	call	av_freep@PLT
	lea	rdi, 48[rbx]
	call	av_freep@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L6
	mov	rdx, QWORD PTR 8[rbp]
	lea	ecx, -1[rax]
	lea	rax, 8[rdx]
	lea	rcx, [rax+rcx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	add	rax, 8
.L5:
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rdx], 0
	mov	rdx, rax
	cmp	rax, rcx
	jne	.L16
.L6:
	mov	ecx, DWORD PTR [rbx]
	xor	ebp, ebp
	test	ecx, ecx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	mov	esi, 1
	add	rbp, 1
	sal	rdi, 5
	add	rdi, QWORD PTR 32[rbx]
	call	mxf_free_metadataset@PLT
	cmp	DWORD PTR [rbx], ebp
	jg	.L3
.L4:
	lea	rdi, 40[rbx]
	call	av_freep@PLT
	lea	rdi, 32[rbx]
	call	av_freep@PLT
	lea	rdi, 24[rbx]
	call	av_freep@PLT
	lea	rdi, 16[rbx]
	call	av_freep@PLT
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L8
	mov	edx, DWORD PTR 4[rbx]
	test	edx, edx
	jle	.L8
	xor	r12d, r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR 8[rbx]
.L9:
	mov	rbp, r12
	add	r12, 1
	sal	rbp, 5
	lea	rdi, 24[rax+rbp]
	call	av_freep@PLT
	mov	rdi, QWORD PTR 8[rbx]
	add	rdi, rbp
	add	rdi, 16
	call	av_freep@PLT
	mov	rdi, QWORD PTR 8[rbx]
	add	rdi, rbp
	add	rdi, 8
	call	av_freep@PLT
	mov	rdi, QWORD PTR 8[rbx]
	add	rdi, rbp
	call	av_freep@PLT
	cmp	DWORD PTR 4[rbx], r12d
	jg	.L17
.L8:
	lea	rdi, 8[rbx]
	call	av_freep@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mxf_read_close, .-mxf_read_close
	.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_mxfdec.c_mxf_read_close.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxf_read_close, %function
mxf_read_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r4, [r0, #8]
	add	r0, r4, #32
	bl	av_freep
	add	r0, r4, #28
	bl	av_freep
	ldr	r1, [r5]
	cmp	r1, #0
	ble	.L6
	mov	ip, #0
	ldr	r3, [r5, #4]
	sub	r3, r3, #4
	add	r1, r3, r1, lsl #2
.L5:
	ldr	r2, [r3, #4]!
	cmp	r1, r3
	str	ip, [r2]
	bne	.L5
.L6:
	ldr	r3, [r4]
	cmp	r3, #0
	movgt	r5, #0
	ble	.L4
.L3:
	ldr	r0, [r4, #20]
	mov	r1, #1
	add	r0, r0, r5, lsl #4
	bl	mxf_free_metadataset
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L3
.L4:
	add	r0, r4, #24
	bl	av_freep
	add	r0, r4, #20
	bl	av_freep
	add	r0, r4, #16
	bl	av_freep
	add	r0, r4, #12
	bl	av_freep
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L8
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L8
	mov	r5, #0
	b	.L9
.L15:
	ldr	r0, [r4, #8]
.L9:
	add	r0, r0, r5, lsl #4
	add	r0, r0, #12
	bl	av_freep
	ldr	r0, [r4, #8]
	lsl	r6, r5, #4
	add	r0, r0, r6
	add	r0, r0, #8
	bl	av_freep
	ldr	r0, [r4, #8]
	add	r5, r5, #1
	add	r0, r0, r6
	add	r0, r0, #4
	bl	av_freep
	ldr	r0, [r4, #8]
	add	r0, r0, r6
	bl	av_freep
	ldr	r3, [r4, #4]
	cmp	r3, r5
	bgt	.L15
.L8:
	add	r0, r4, #8
	bl	av_freep
	mov	r0, #0
	pop	{r4, r5, r6, pc}
	.size	mxf_read_close, .-mxf_read_close
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
