	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function read_mfra
LCPI0_0:
	.long	0x42cc0000                      ## float 102
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_read_mfra:                             ## @read_mfra
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_avio_open2
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_avio_size
	leaq	-4(%rax), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_avio_seek
	movq	-48(%rbp), %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	movq	%rax, %rsi
	negq	%rsi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	movq	-48(%rbp), %rdi
	callq	_avio_rb32
	cmpq	%rbx, %rax
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$109, %edi
	movl	$114, %esi
	movl	$97, %edx
	callq	_MKBETAG
	cmpq	%rax, %rbx
	jne	LBB0_15
## %bb.5:
	movl	%r13d, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_read_tfra
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.3(%rip), %r13
	movl	%ebx, %eax
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	orl	%r8d, %eax
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdx
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_write_fragments
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %r13
	jmp	LBB0_10
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_9
LBB0_15:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.2(%rip), %r13
LBB0_9:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_avio_close
LBB0_12:
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_fprintf
LBB0_14:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"mfra size mismatch"

L_.str.2:                               ## @.str.2
	.asciz	"mfra tag mismatch"

L_.str.3:                               ## @.str.3
	.asciz	"error in write_fragments"

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"Unable to read the MFRA atom in %s (%s)\n"

	.no_dead_strip	_read_mfra
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_mfra
_read_mfra:                             ; @read_mfra
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	mov	x23, x5
	mov	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x25, x1
	mov	x26, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _AVIO_FLAG_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x19
	mov	x3, #0
	mov	x4, #0
	bl	_avio_open2
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x27, [sp, #8]
	mov	x0, x27
	bl	_avio_size
	sub	x1, x0, #4
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x27
	bl	_avio_seek
	ldr	x0, [sp, #8]
	bl	_avio_rb32
	mov	x27, x0
	ldr	x0, [sp, #8]
	neg	x1, x27
Lloh6:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_avio_seek
	ldr	x0, [sp, #8]
	bl	_avio_rb32
	cmp	x0, x27
	b.ne	LBB0_8
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_avio_rb32
	mov	x27, x0
	mov	w8, #1120665600
	fmov	s0, w8
	mov	w0, #109
	mov	w1, #114
	mov	w2, #97
	bl	_MKBETAG
	cmp	x27, x0
	b.ne	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [sp, #8]
	mov	x0, x26
	mov	x1, x25
	bl	_read_tfra
	cbz	w0, LBB0_3
; %bb.4:
	orr	w8, w22, w24
	cbz	w8, LBB0_6
; %bb.5:
	ldr	x2, [sp, #8]
	mov	x0, x26
	mov	x1, x25
	mov	x3, x23
	mov	x4, x24
	mov	x5, x22
	mov	x6, x21
	bl	_write_fragments
	mov	x20, x0
LBB0_6:
Lloh9:
	adrp	x21, l_.str.3@PAGE
Lloh10:
	add	x21, x21, l_.str.3@PAGEOFF
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_9
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_9
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
Lloh16:
	adrp	x21, l_.str.1@PAGE
Lloh17:
	add	x21, x21, l_.str.1@PAGEOFF
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_10
LBB0_9:
	bl	_avio_close
LBB0_10:
	cbz	w20, LBB0_12
; %bb.11:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_fprintf
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
Lloh23:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
Lloh26:
	adrp	x21, l_.str.2@PAGE
Lloh27:
	add	x21, x21, l_.str.2@PAGEOFF
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_9
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"mfra size mismatch"

l_.str.2:                               ; @.str.2
	.asciz	"mfra tag mismatch"

l_.str.3:                               ; @.str.3
	.asciz	"error in write_fragments"

	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"Unable to read the MFRA atom in %s (%s)\n"

	.no_dead_strip	_read_mfra
.subsections_via_symbols
