	.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, -96(%rbp)
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	movq	(%rsi), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	jmp	LBB0_48
LBB0_2:
	movq	8(%rsi), %rbx
	movq	16(%rsi), %r15
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_avformat_open_input
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avformat_find_stream_info
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_av_dump_format
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_avformat_alloc_output_context2
	cmpq	$0, -48(%rbp)
	je	LBB0_7
## %bb.8:
	movq	-56(%rbp), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, -96(%rbp)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	-48(%rbp), %rdi
	movq	16(%rdi), %r12
	movq	-56(%rbp), %rax
	cmpl	$0, (%rax)
	jle	LBB0_23
## %bb.11:
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	$-1, (%rcx,%r15,4)
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r15
	movslq	(%rax), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_22
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	8(%rcx), %rbx
	movq	(%rbx), %rcx
	cmpq	(%r13), %rcx
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_AVMEDIA_TYPE_SUBTITLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax,%r15,4)
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %r12
	movq	8(%rax), %rdi
	movq	%rbx, %rsi
	callq	_avcodec_parameters_copy
	testl	%eax, %eax
	js	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%r14d
	movq	8(%r12), %rax
	movq	$0, 8(%rax)
	movq	-56(%rbp), %rax
	jmp	LBB0_21
LBB0_3:
	movl	%eax, %r14d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdx
LBB0_26:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_41
LBB0_5:
	movl	%eax, %r14d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
LBB0_31:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_41
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_fprintf
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_41
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_41
LBB0_22:
	movq	-48(%rbp), %rdi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
LBB0_23:
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_av_dump_format
	movq	_AVFMT_NOFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_27
## %bb.24:
	movq	-48(%rbp), %rdi
	addq	$4, %rdi
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_avio_open
	testl	%eax, %eax
	js	LBB0_25
LBB0_27:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avformat_write_header
	testl	%eax, %eax
	js	LBB0_30
## %bb.28:
	movq	-56(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	callq	_av_read_frame
	testl	%eax, %eax
	js	LBB0_29
## %bb.32:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rbx
	leaq	-128(%rbp), %r12
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	%r12, %rdi
	callq	_av_packet_unref
	movq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_av_read_frame
	testl	%eax, %eax
	js	LBB0_38
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	-128(%rbp), %rax
	cmpq	%rbx, %rax
	jae	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ecx
	testl	%ecx, %ecx
	js	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	-56(%rbp), %rdi
	movq	8(%rdi), %rdx
	movq	(%rdx,%rax,8), %r13
	movq	%rcx, -128(%rbp)
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	movq	(%rax,%rcx,8), %rbx
	movq	%r12, %rsi
	leaq	L_.str.8(%rip), %rdx
	callq	_log_packet
	movq	-104(%rbp), %rdi
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	_AV_ROUND_PASS_MINMAX@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_AV_ROUND_NEAR_INF@GOTPCREL(%rip), %r14
	orl	(%r14), %ecx
	callq	_av_rescale_q_rnd
	movq	%rax, -104(%rbp)
	movq	-112(%rbp), %rdi
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	callq	_av_rescale_q_rnd
	movq	%rax, -112(%rbp)
	movl	-116(%rbp), %edi
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	_av_rescale_q
	movl	%eax, -116(%rbp)
	movl	$-1, -120(%rbp)
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	leaq	L_.str.9(%rip), %rdx
	callq	_log_packet
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_av_interleaved_write_frame
	testl	%eax, %eax
	jns	LBB0_37
## %bb.36:
	movl	%eax, %r14d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_39
LBB0_30:
	movl	%eax, %r14d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_31
LBB0_38:
	movl	%eax, %r14d
LBB0_39:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_41
LBB0_19:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%ebx, %r14d
	jmp	LBB0_41
LBB0_29:
	movl	%eax, %r14d
LBB0_40:
	movq	-48(%rbp), %rdi
	callq	_av_write_trailer
LBB0_41:
	leaq	-56(%rbp), %rdi
	callq	_avformat_close_input
	movq	-48(%rbp), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_42
## %bb.43:
	movq	_AVFMT_NOFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_45
## %bb.44:
	addq	$4, %rdi
	callq	_avio_closep
	movq	-48(%rbp), %rdi
	jmp	LBB0_45
LBB0_42:
	xorl	%edi, %edi
LBB0_45:
	callq	_avformat_free_context
	leaq	-96(%rbp), %rdi
	callq	_av_freep
	testl	%r14d, %r14d
	jns	LBB0_49
## %bb.46:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_49
## %bb.47:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_av_err2str
	leaq	L_.str.11(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_48:
	movl	$1, %ebx
LBB0_49:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	%eax, %r14d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s input output\nAPI example program to remux a media file with libavformat and libavcodec.\nThe output format is guessed according to the file extension.\n\n"

	.comm	_stderr,4,2                     ## @stderr
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	"Error occurred when opening output file\n"

L_.str.8:                               ## @.str.8
	.asciz	"in"

	.comm	_AV_ROUND_NEAR_INF,4,2          ## @AV_ROUND_NEAR_INF
	.comm	_AV_ROUND_PASS_MINMAX,4,2       ## @AV_ROUND_PASS_MINMAX
L_.str.9:                               ## @.str.9
	.asciz	"out"

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"

.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:
	ldr	x1, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_24
LBB0_2:
	ldp	x19, x21, [x1, #8]
	add	x0, sp, #72
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	bl	_avformat_open_input
	tbnz	w0, #31, LBB0_14
; %bb.3:
	ldr	x0, [sp, #72]
	mov	w1, #0
	bl	_avformat_find_stream_info
	tbnz	w0, #31, LBB0_15
; %bb.4:
	ldr	x0, [sp, #72]
	mov	w1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_av_dump_format
	add	x0, sp, #64
	mov	x1, #0
	mov	x2, #0
	mov	x3, x21
	bl	_avformat_alloc_output_context2
	ldr	x8, [sp, #64]
	cbz	x8, LBB0_26
; %bb.5:
	ldr	x8, [sp, #72]
	ldr	w22, [x8]
	mov	x0, x22
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [sp, #24]
	cbz	x0, LBB0_27
; %bb.6:
	mov	x19, x0
	ldp	x0, x8, [sp, #64]
	ldr	x28, [x0, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_29
; %bb.7:
	stp	x22, x28, [sp, #8]              ; 16-byte Folded Spill
	mov	x25, #0
	mov	w26, #0
Lloh2:
	adrp	x27, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh3:
	ldr	x27, [x27, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh4:
	adrp	x28, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh5:
	ldr	x28, [x28, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh6:
	adrp	x22, _AVMEDIA_TYPE_SUBTITLE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _AVMEDIA_TYPE_SUBTITLE@GOTPAGEOFF]
	mov	w24, #-1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	w24, [x19, x25, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x25, x25, #1
	ldrsw	x9, [x8]
	cmp	x25, x9
	b.ge	LBB0_28
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #8]
	ldr	x9, [x9, x25, lsl #3]
	ldr	x20, [x9, #8]
	ldr	x9, [x20]
	ldr	x10, [x27]
	ldr	x11, [x28]
	ldr	x12, [x22]
	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	w26, [x19, x25, 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
	mov	x23, x0
	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	w26, w26, #1
	ldr	x8, [x23, #8]
	str	xzr, [x8, #8]
	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
LBB0_17:
	mov	x28, #0
LBB0_18:
	add	x0, sp, #72
	bl	_avformat_close_input
	ldr	x0, [sp, #64]
	cbz	x0, LBB0_21
; %bb.19:
	ldr	w8, [x28]
Lloh18:
	adrp	x9, _AVFMT_NOFILE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AVFMT_NOFILE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.20:
	add	x0, x0, #4
	bl	_avio_closep
	ldr	x0, [sp, #64]
LBB0_21:
	bl	_avformat_free_context
	add	x0, sp, #24
	bl	_av_freep
	mov	w0, #0
	tbz	w20, #31, LBB0_25
; %bb.22:
Lloh21:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_25
; %bb.23:
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_av_err2str
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str.11@PAGE
Lloh28:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_24:
	mov	w0, #1
LBB0_25:
	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_26:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	x28, #0
Lloh34:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh36:
	ldr	w20, [x8]
	b	LBB0_18
LBB0_27:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_17
LBB0_28:
	ldr	x0, [sp, #64]
	ldp	x22, x28, [sp, #8]              ; 16-byte Folded Reload
LBB0_29:
	mov	w1, #0
	mov	x2, x21
	mov	w3, #1
	bl	_av_dump_format
	ldr	w8, [x28]
Lloh40:
	adrp	x9, _AVFMT_NOFILE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AVFMT_NOFILE@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_31
; %bb.30:
	ldr	x8, [sp, #64]
	add	x0, x8, #4
Lloh43:
	adrp	x8, _AVIO_FLAG_WRITE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_avio_open
	tbnz	w0, #31, LBB0_44
LBB0_31:
	ldr	x0, [sp, #64]
	mov	x1, #0
	bl	_avformat_write_header
	tbnz	w0, #31, LBB0_41
; %bb.32:
	ldr	x0, [sp, #72]
	add	x1, sp, #32
	bl	_av_read_frame
	tbnz	w0, #31, LBB0_39
; %bb.33:
Lloh46:
	adrp	x21, l_.str.8@PAGE
Lloh47:
	add	x21, x21, l_.str.8@PAGEOFF
Lloh48:
	adrp	x23, _AV_ROUND_NEAR_INF@GOTPAGE
Lloh49:
	ldr	x23, [x23, _AV_ROUND_NEAR_INF@GOTPAGEOFF]
	sxtw	x25, w22
Lloh50:
	adrp	x26, _AV_ROUND_PASS_MINMAX@GOTPAGE
Lloh51:
	ldr	x26, [x26, _AV_ROUND_PASS_MINMAX@GOTPAGEOFF]
	mov	w27, #-1
Lloh52:
	adrp	x22, l_.str.9@PAGE
Lloh53:
	add	x22, x22, l_.str.9@PAGEOFF
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 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_39
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #32]
	cmp	x8, x25
	b.hs	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w9, [x19, x8, lsl #2]
	tbnz	w9, #31, LBB0_34
; %bb.37:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	x0, [sp, #72]
	ldr	x10, [x0, #8]
	ldr	x20, [x10, x8, lsl #3]
	str	x9, [sp, #32]
	ldr	x8, [sp, #64]
	ldr	x8, [x8, #8]
	ldr	x24, [x8, x9, lsl #3]
	add	x1, sp, #32
	mov	x2, x21
	bl	_log_packet
	ldr	x0, [sp, #56]
	ldr	w1, [x20]
	ldr	w2, [x24]
	ldr	w8, [x23]
	ldr	w9, [x26]
	orr	w3, w9, w8
	bl	_av_rescale_q_rnd
	str	x0, [sp, #56]
	ldr	x0, [sp, #48]
	ldr	w1, [x20]
	ldr	w2, [x24]
	ldr	w8, [x23]
	ldr	w9, [x26]
	orr	w3, w9, w8
	bl	_av_rescale_q_rnd
	str	x0, [sp, #48]
	ldr	w0, [sp, #44]
	ldr	w1, [x20]
	ldr	w2, [x24]
	bl	_av_rescale_q
	stp	w27, w0, [sp, #40]
	ldr	x0, [sp, #64]
	add	x1, sp, #32
	mov	x2, x22
	bl	_log_packet
	ldr	x0, [sp, #64]
	add	x1, sp, #32
	bl	_av_interleaved_write_frame
	tbz	w0, #31, LBB0_34
; %bb.38:
	mov	x20, x0
Lloh54:
	adrp	x8, _stderr@GOTPAGE
Lloh55:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x1, l_.str.10@PAGE
Lloh58:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
	b	LBB0_40
LBB0_39:
	mov	x20, x0
LBB0_40:
	ldr	x0, [sp, #64]
	bl	_av_write_trailer
	b	LBB0_18
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.7@PAGE
Lloh63:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	b	LBB0_18
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
	bl	_fprintf
Lloh69:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh70:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh71:
	ldr	w20, [x8]
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_18
LBB0_43:
	mov	x20, x0
Lloh72:
	adrp	x8, _stderr@GOTPAGE
Lloh73:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
Lloh75:
	adrp	x1, l_.str.5@PAGE
Lloh76:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_18
LBB0_44:
	mov	x20, x0
Lloh77:
	adrp	x8, _stderr@GOTPAGE
Lloh78:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh80:
	adrp	x1, l_.str.6@PAGE
Lloh81:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	b	LBB0_18
	.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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s input output\nAPI example program to remux a media file with libavformat and libavcodec.\nThe output format is guessed according to the file extension.\n\n"

	.comm	_stderr,4,2                     ; @stderr
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	"Error occurred when opening output file\n"

l_.str.8:                               ; @.str.8
	.asciz	"in"

	.comm	_AV_ROUND_NEAR_INF,4,2          ; @AV_ROUND_NEAR_INF
	.comm	_AV_ROUND_PASS_MINMAX,4,2       ; @AV_ROUND_PASS_MINMAX
l_.str.9:                               ; @.str.9
	.asciz	"out"

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"

.subsections_via_symbols
