	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_moof
_copy_moof:                             ## @copy_moof
	.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
	pushq	%rax
	movl	$32792, %eax                    ## imm = 0x8018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %rdx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32832(%rbp), %rsi
	xorl	%r8d, %r8d
	callq	*(%rdi)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32824(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	callq	*(%r15)
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	testq	%r13, %r13
	jle	LBB0_8
## %bb.4:
	leaq	-32816(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$32768, %esi                    ## imm = 0x8000
	callq	_FFMIN
	movq	-32832(%rbp), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_avio_read
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ebx
	movq	-32824(%rbp), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_avio_write
	movl	%ebx, %eax
	subq	%rax, %r13
	jg	LBB0_5
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
LBB0_8:
	movq	-32824(%rbp), %rdi
	callq	_avio_flush
	leaq	-32824(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ff_format_io_close
LBB0_9:
	leaq	-32832(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ff_format_io_close
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r14d, %eax
	addq	$32792, %rsp                    ## imm = 0x8018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_copy_moof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_moof
_copy_moof:                             ; @copy_moof
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #32800
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #8, lsl #12             ; =32768
	sub	sp, sp, #32
	mov	x21, x3
	mov	x22, x2
	mov	x2, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _AVIO_FLAG_READ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x9]
	add	x1, sp, #16
	mov	x4, #0
	blr	x8
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _AVIO_FLAG_WRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x9]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	mov	x4, #0
	blr	x8
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:
	cmp	x21, #1
	b.lt	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #32768
	bl	_FFMIN
	mov	x2, x0
	ldr	x0, [sp, #16]
	add	x1, sp, #24
	bl	_avio_read
	cmp	w0, #0
	b.le	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x0, [sp, #8]
	add	x1, sp, #24
	mov	x2, x22
	bl	_avio_write
	sub	x21, x21, w22, uxtw
	cmp	x21, #0
	b.gt	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	x20, x0
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_avio_flush
	add	x1, sp, #8
	mov	x0, x19
	bl	_ff_format_io_close
LBB0_8:
	add	x1, sp, #16
	mov	x0, x19
	bl	_ff_format_io_close
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	add	sp, sp, #8, lsl #12             ; =32768
	add	sp, sp, #32
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_copy_moof
.subsections_via_symbols
