	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_read_close
_mxf_read_close:                        ## @mxf_read_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	leaq	56(%r15), %rdi
	callq	_av_freep
	leaq	48(%r15), %rdi
	callq	_av_freep
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.1:
	movq	8(%r14), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$7, %eax
	cmpq	$7, %rsi
	jae	LBB0_14
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_3
LBB0_14:
	andl	$-8, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	8(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	16(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	24(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	32(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	40(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	48(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	56(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	addq	$8, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_15
LBB0_3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	$0, (%rsi)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_5
LBB0_6:
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rdi
	addq	%r14, %rdi
	movl	$1, %esi
	callq	_mxf_free_metadataset
	incq	%rbx
	movslq	(%r15), %rax
	addq	$32, %r14
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	leaq	40(%r15), %rdi
	callq	_av_freep
	leaq	32(%r15), %rdi
	callq	_av_freep
	leaq	24(%r15), %rdi
	callq	_av_freep
	leaq	16(%r15), %rdi
	callq	_av_freep
	leaq	8(%r15), %r14
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.10:
	cmpl	$0, 4(%r15)
	jle	LBB0_16
## %bb.11:
	movl	$24, %ebx
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rdi
	callq	_av_freep
	movq	8(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$-8, %rdi
	callq	_av_freep
	movq	8(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$-16, %rdi
	callq	_av_freep
	movq	8(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$-24, %rdi
	callq	_av_freep
	movslq	4(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r14), %rdi
	addq	$32, %rbx
	incq	%r12
	jmp	LBB0_12
LBB0_16:
	movq	%r14, %rdi
	callq	_av_freep
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mxf_read_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_read_close
_mxf_read_close:                        ; @mxf_read_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	add	x0, x20, #56
	bl	_av_freep
	add	x0, x20, #48
	bl	_av_freep
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	str	xzr, [x10]
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x19, #0
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	add	x0, x8, x19
	mov	w1, #1
	bl	_mxf_free_metadataset
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x19, x19, #32
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	add	x0, x20, #40
	bl	_av_freep
	add	x0, x20, #32
	bl	_av_freep
	add	x0, x20, #24
	bl	_av_freep
	add	x0, x20, #16
	bl	_av_freep
	mov	x19, x20
	ldr	x8, [x19, #8]!
	cbz	x8, LBB0_11
; %bb.7:
	ldr	w9, [x20, #4]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.8:
	mov	w21, #24
	mov	w22, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x8, x21
	bl	_av_freep
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	sub	x0, x8, #8
	bl	_av_freep
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	sub	x0, x8, #16
	bl	_av_freep
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	sub	x0, x8, #24
	bl	_av_freep
	ldrsw	x8, [x20, #4]
	cmp	x22, x8
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	add	x21, x21, #32
	add	x22, x22, #1
	b	LBB0_9
LBB0_11:
	mov	x0, x19
	bl	_av_freep
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mxf_read_close
.subsections_via_symbols
