	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_read_index_entry_array
_mxf_read_index_entry_array:            ## @mxf_read_index_entry_array
	.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	%rsi, %r14
	movq	%rdi, %r12
	callq	_avio_rb32
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, %r15
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.1:
	cmpl	$10, %r15d
	jg	LBB0_3
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$8, %esi
	callq	_av_calloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movl	(%r14), %edi
	movl	$8, %esi
	callq	_av_calloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movl	(%r14), %edi
	movl	$4, %esi
	callq	_av_calloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.7:
	addl	$-11, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_avio_r8
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r12, %rdi
	callq	_avio_r8
	movq	%r12, %rdi
	callq	_avio_r8
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r12, %rdi
	callq	_avio_rb64
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_avio_skip
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_12:
	leaq	24(%r14), %rdi
	callq	_av_freep
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_av_freep
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mxf_read_index_entry_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_read_index_entry_array
_mxf_read_index_entry_array:            ; @mxf_read_index_entry_array
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_avio_rb32
	str	w0, [x19]
	mov	x0, x20
	bl	_avio_rb32
	mov	x21, x0
	ldr	w0, [x19]
	cmp	w0, #0
	ccmp	w21, #10, #0, ne
	b.le	LBB0_9
; %bb.1:
	mov	w1, #8
	bl	_av_calloc
	mov	x22, x19
	str	x0, [x22, #24]!
	cbz	x0, LBB0_11
; %bb.2:
	ldr	w0, [x19]
	mov	w1, #8
	bl	_av_calloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w0, [x19]
	mov	w1, #4
	bl	_av_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x22, #0
	sub	w21, w21, #11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_feof
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_avio_r8
	ldr	x8, [x19, #24]
	lsl	x23, x22, #3
	str	x0, [x8, x23]
	mov	x0, x20
	bl	_avio_r8
	mov	x0, x20
	bl	_avio_r8
	ldr	x8, [x19, #16]
	str	x0, [x8, x23]
	mov	x0, x20
	bl	_avio_rb64
	ldr	x8, [x19, #8]
	str	w0, [x8, x22, lsl #2]
	mov	x0, x20
	mov	x1, x21
	bl	_avio_skip
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x22
	bl	_av_freep
	add	x0, x19, #16
	bl	_av_freep
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mxf_read_index_entry_array
.subsections_via_symbols
