	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -88(%rbp)
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$-1, %r14d
	jmp	LBB0_45
LBB0_2:
	movl	%edi, %r15d
	movq	8(%rsi), %r14
	movq	16(%rsi), %r12
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_avformat_open_input
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avformat_find_stream_info
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_avformat_alloc_output_context2
	cmpq	$0, -48(%rbp)
	je	LBB0_9
## %bb.11:
	movq	-56(%rbp), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, -88(%rbp)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_46
## %bb.12:
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rax
	cmpl	$0, (%rax)
	jle	LBB0_23
## %bb.13:
	xorl	%r13d, %r13d
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	$-1, (%rcx,%r13,4)
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r13
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_23
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	8(%rcx), %rbx
	movq	(%rbx), %rcx
	cmpq	(%r14), %rcx
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax,%r13,4)
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%rax), %rdi
	movq	%rbx, %rsi
	callq	_avcodec_parameters_copy
	testl	%eax, %eax
	js	LBB0_47
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%r12d
	movq	-56(%rbp), %rax
	jmp	LBB0_22
LBB0_3:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
LBB0_4:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_38
LBB0_6:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_38
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	xorl	%eax, %eax
	callq	_fprintf
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_38
LBB0_23:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_av_dump_format
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %rax
	movq	_AVFMT_NOFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_26
## %bb.24:
	addq	$4, %rdi
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_avio_open
	testl	%eax, %eax
	js	LBB0_25
LBB0_26:
	movq	$0, -80(%rbp)
	cmpl	$4, %r15d
	jne	LBB0_28
## %bb.27:
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.8(%rip), %rdx
	leaq	-80(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_28:
	movq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_avformat_write_header
	testl	%eax, %eax
	js	LBB0_48
## %bb.29:
	movq	-56(%rbp), %rdi
	leaq	-120(%rbp), %rsi
	callq	_av_read_frame
	testl	%eax, %eax
	js	LBB0_36
## %bb.30:
	movslq	-68(%rbp), %r12                 ## 4-byte Folded Reload
	leaq	-120(%rbp), %r15
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	%r15, %rdi
	callq	_av_packet_unref
	movq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_av_read_frame
	testl	%eax, %eax
	js	LBB0_36
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	-120(%rbp), %rax
	cmpq	%r12, %rax
	jae	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ecx
	testl	%ecx, %ecx
	js	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	-56(%rbp), %rdx
	movq	16(%rdx), %rdx
	movq	(%rdx,%rax,8), %rbx
	movq	%rcx, -120(%rbp)
	movq	-48(%rbp), %rax
	movq	16(%rax), %rax
	movq	(%rax,%rcx,8), %r13
	movq	-96(%rbp), %rdi
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	_AV_ROUND_PASS_MINMAX@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	_AV_ROUND_NEAR_INF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	callq	_av_rescale_q_rnd
	movq	%rax, -96(%rbp)
	movq	-104(%rbp), %rdi
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movl	(%r14), %ecx
	movq	_AV_ROUND_NEAR_INF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	callq	_av_rescale_q_rnd
	movq	%rax, -104(%rbp)
	movl	-108(%rbp), %edi
	movl	(%rbx), %esi
	movl	(%r13), %edx
	callq	_av_rescale_q
	movl	%eax, -108(%rbp)
	movl	$-1, -112(%rbp)
	movq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_av_interleaved_write_frame
	testl	%eax, %eax
	jns	LBB0_35
## %bb.34:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_37
LBB0_46:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_38
LBB0_36:
	movl	%eax, %ebx
LBB0_37:
	movq	-48(%rbp), %rdi
	callq	_av_write_trailer
LBB0_38:
	leaq	-56(%rbp), %rdi
	callq	_avformat_close_input
	movq	-48(%rbp), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.40:
	movq	8(%rdi), %rax
	movq	_AVFMT_NOFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_42
## %bb.41:
	addq	$4, %rdi
	callq	_avio_closep
	movq	-48(%rbp), %rdi
	jmp	LBB0_42
LBB0_39:
	xorl	%edi, %edi
LBB0_42:
	callq	_avformat_free_context
	leaq	-88(%rbp), %rdi
	callq	_av_freep
	testl	%ebx, %ebx
	jns	LBB0_45
## %bb.43:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_45
## %bb.44:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_av_err2str
	leaq	L_.str.11(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %r14d
LBB0_45:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_48:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_7
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
LBB0_47:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_7
LBB0_25:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Could not open input file '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to retrieve input stream information"

L_.str.3:                               ## @.str.3
	.asciz	"Could not create output context\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ## @AVMEDIA_TYPE_SUBTITLE
L_.str.4:                               ## @.str.4
	.asciz	"Failed allocating output stream\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to copy codec parameters\n"

	.comm	_AVFMT_NOFILE,4,2               ## @AVFMT_NOFILE
	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
L_.str.6:                               ## @.str.6
	.asciz	"Could not open output file '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"movflags"

L_.str.8:                               ## @.str.8
	.asciz	"frag_keyframe+empty_moov+default_base_moof"

L_.str.9:                               ## @.str.9
	.asciz	"Error occurred when opening output file\n"

	.comm	_AV_ROUND_NEAR_INF,4,2          ## @AV_ROUND_NEAR_INF
	.comm	_AV_ROUND_PASS_MINMAX,4,2       ## @AV_ROUND_PASS_MINMAX
L_.str.10:                              ## @.str.10
	.asciz	"Error muxing packet\n"

	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
L_.str.11:                              ## @.str.11
	.asciz	"Error occurred: %s\n"

L_str:                                  ## @str
	.asciz	"You need to pass at least two parameters."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	stp	xzr, xzr, [sp, #64]
	str	xzr, [sp, #24]
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #-1
	b	LBB0_40
LBB0_2:
	mov	x21, x0
	ldp	x19, x22, [x1, #8]
	add	x0, sp, #72
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	bl	_avformat_open_input
	tbnz	w0, #31, LBB0_14
; %bb.3:
	ldr	x0, [sp, #72]
	mov	x1, #0
	bl	_avformat_find_stream_info
	tbnz	w0, #31, LBB0_15
; %bb.4:
	add	x0, sp, #64
	mov	x1, #0
	mov	x2, #0
	mov	x3, x22
	bl	_avformat_alloc_output_context2
	ldr	x8, [sp, #64]
	cbz	x8, LBB0_17
; %bb.5:
	ldr	x8, [sp, #72]
	ldr	w20, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [sp, #24]
	cbz	x0, LBB0_31
; %bb.6:
	mov	x19, x0
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #72]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.7:
	mov	x24, #0
	mov	w25, #0
Lloh2:
	adrp	x26, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh4:
	adrp	x27, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh5:
	ldr	x27, [x27, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh6:
	adrp	x28, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
	mov	w23, #-1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	w23, [x19, x24, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	ldrsw	x9, [x8]
	cmp	x24, x9
	b.ge	LBB0_19
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #16]
	ldr	x9, [x9, x24, lsl #3]
	ldr	x20, [x9, #8]
	ldr	x9, [x20]
	ldr	x10, [x26]
	ldr	x11, [x27]
	ldr	x12, [x28]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	ccmp	x9, x12, #4, ne
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	w25, [x19, x24, lsl #2]
	ldr	x0, [sp, #64]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_42
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x0, #8]
	mov	x1, x20
	bl	_avcodec_parameters_copy
	tbnz	w0, #31, LBB0_43
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w25, w25, #1
	ldr	x8, [sp, #72]
	b	LBB0_9
LBB0_14:
	mov	x20, x0
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_15:
	mov	x20, x0
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:
	bl	_fprintf
	b	LBB0_34
LBB0_17:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_18:
	bl	_fprintf
Lloh23:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	b	LBB0_34
LBB0_19:
	ldr	x0, [sp, #64]
	mov	w1, #0
	mov	x2, x22
	mov	w3, #1
	bl	_av_dump_format
	ldr	x8, [sp, #64]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _AVFMT_NOFILE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _AVFMT_NOFILE@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_21
; %bb.20:
	add	x0, x8, #4
Lloh29:
	adrp	x8, _AVIO_FLAG_WRITE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_avio_open
	tbnz	w0, #31, LBB0_44
LBB0_21:
	str	xzr, [sp, #16]
	cmp	w21, #4
	b.ne	LBB0_23
; %bb.22:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh34:
	adrp	x2, l_.str.8@PAGE
Lloh35:
	add	x2, x2, l_.str.8@PAGEOFF
	add	x0, sp, #16
	mov	w3, #0
	bl	_av_dict_set
LBB0_23:
	ldr	x0, [sp, #64]
	add	x1, sp, #16
	bl	_avformat_write_header
	tbnz	w0, #31, LBB0_41
; %bb.24:
	ldr	x0, [sp, #72]
	add	x1, sp, #32
	bl	_av_read_frame
	tbnz	w0, #31, LBB0_32
; %bb.25:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sxtw	x21, w8
Lloh36:
	adrp	x22, _AV_ROUND_NEAR_INF@GOTPAGE
Lloh37:
	ldr	x22, [x22, _AV_ROUND_NEAR_INF@GOTPAGEOFF]
Lloh38:
	adrp	x23, _AV_ROUND_PASS_MINMAX@GOTPAGE
Lloh39:
	ldr	x23, [x23, _AV_ROUND_PASS_MINMAX@GOTPAGEOFF]
	mov	w24, #-1
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x0, sp, #32
	bl	_av_packet_unref
	ldr	x0, [sp, #72]
	add	x1, sp, #32
	bl	_av_read_frame
	tbnz	w0, #31, LBB0_32
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #32]
	cmp	x8, x21
	b.hs	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w9, [x19, x8, lsl #2]
	tbnz	w9, #31, LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x10, [sp, #72]
	ldr	x10, [x10, #16]
	ldr	x20, [x10, x8, lsl #3]
	str	x9, [sp, #32]
	ldp	x0, x8, [sp, #56]
	ldr	x8, [x8, #16]
	ldr	x25, [x8, x9, lsl #3]
	ldr	w1, [x20]
	ldr	w2, [x25]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w3, w9, w8
	bl	_av_rescale_q_rnd
	str	x0, [sp, #56]
	ldr	x0, [sp, #48]
	ldr	w1, [x20]
	ldr	w2, [x25]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w3, w9, w8
	bl	_av_rescale_q_rnd
	str	x0, [sp, #48]
	ldr	w0, [sp, #44]
	ldr	w1, [x20]
	ldr	w2, [x25]
	bl	_av_rescale_q
	stp	w24, w0, [sp, #40]
	ldr	x0, [sp, #64]
	add	x1, sp, #32
	bl	_av_interleaved_write_frame
	tbz	w0, #31, LBB0_26
; %bb.30:
	mov	x20, x0
Lloh40:
	adrp	x8, _stderr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.10@PAGE
Lloh44:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
	b	LBB0_33
LBB0_31:
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_34
LBB0_32:
	mov	x20, x0
LBB0_33:
	ldr	x0, [sp, #64]
	bl	_av_write_trailer
LBB0_34:
	add	x0, sp, #72
	bl	_avformat_close_input
	ldr	x0, [sp, #64]
	cbz	x0, LBB0_37
; %bb.35:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _AVFMT_NOFILE@GOTPAGE
Lloh49:
	ldr	x9, [x9, _AVFMT_NOFILE@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_37
; %bb.36:
	add	x0, x0, #4
	bl	_avio_closep
	ldr	x0, [sp, #64]
LBB0_37:
	bl	_avformat_free_context
	add	x0, sp, #24
	bl	_av_freep
	mov	w0, #0
	tbz	w20, #31, LBB0_40
; %bb.38:
Lloh51:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_40
; %bb.39:
Lloh54:
	adrp	x8, _stderr@GOTPAGE
Lloh55:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh56:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_av_err2str
	str	x0, [sp]
Lloh57:
	adrp	x1, l_.str.11@PAGE
Lloh58:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	w0, #1
LBB0_40:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_41:
	mov	x20, x0
Lloh59:
	adrp	x8, _stderr@GOTPAGE
Lloh60:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
Lloh62:
	adrp	x1, l_.str.9@PAGE
Lloh63:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_16
LBB0_42:
Lloh64:
	adrp	x8, _stderr@GOTPAGE
Lloh65:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
Lloh67:
	adrp	x1, l_.str.4@PAGE
Lloh68:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_43:
	mov	x20, x0
Lloh69:
	adrp	x8, _stderr@GOTPAGE
Lloh70:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
Lloh72:
	adrp	x1, l_.str.5@PAGE
Lloh73:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_44:
	mov	x20, x0
Lloh74:
	adrp	x8, _stderr@GOTPAGE
Lloh75:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh77:
	adrp	x1, l_.str.6@PAGE
Lloh78:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Could not open input file '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to retrieve input stream information"

l_.str.3:                               ; @.str.3
	.asciz	"Could not create output context\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_SUBTITLE,8,3      ; @AVMEDIA_TYPE_SUBTITLE
l_.str.4:                               ; @.str.4
	.asciz	"Failed allocating output stream\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to copy codec parameters\n"

	.comm	_AVFMT_NOFILE,4,2               ; @AVFMT_NOFILE
	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
l_.str.6:                               ; @.str.6
	.asciz	"Could not open output file '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"movflags"

l_.str.8:                               ; @.str.8
	.asciz	"frag_keyframe+empty_moov+default_base_moof"

l_.str.9:                               ; @.str.9
	.asciz	"Error occurred when opening output file\n"

	.comm	_AV_ROUND_NEAR_INF,4,2          ; @AV_ROUND_NEAR_INF
	.comm	_AV_ROUND_PASS_MINMAX,4,2       ; @AV_ROUND_PASS_MINMAX
l_.str.10:                              ; @.str.10
	.asciz	"Error muxing packet\n"

	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
l_.str.11:                              ; @.str.11
	.asciz	"Error occurred: %s\n"

l_str:                                  ; @str
	.asciz	"You need to pass at least two parameters."

.subsections_via_symbols
