; LLVM IR from clangen/musikcube :: src/plugins/stockencoders/FfmpegEncoder.ll (ZN13FfmpegEncoder14FlushResamplerEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.FfmpegEncoder = type { %"class.musik::core::sdk::IBlockingEncoder", i8, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, %"class.std::__cxx11::basic_string", i32, i32 }
%"class.musik::core::sdk::IBlockingEncoder" = type { %"class.musik::core::sdk::IEncoder" }
%"class.musik::core::sdk::IEncoder" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.AVCodecContext = type { ptr, i32, i32, ptr, i32, i32, ptr, ptr, ptr, i64, i32, i32, ptr, i32, %struct.AVRational, %struct.AVRational, %struct.AVRational, i32, i32, i32, i32, i32, i32, %struct.AVRational, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, float, float, float, float, float, float, float, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.AVChannelLayout, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, float, float, i32, i32, i32, i32, i32, ptr, i64, i64, float, float, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, [8 x i64], i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i64, i32, i32, i64, ptr, i64, ptr, i32, ptr, i32 }
%struct.AVRational = type { i32, i32 }
%struct.AVChannelLayout = type { i32, i32, %union.anon.6, ptr }
%union.anon.6 = type { i64 }
%struct.AVFrame = type { [8 x ptr], [8 x i32], ptr, i32, i32, i32, i32, i32, i32, %struct.AVRational, i64, i64, %struct.AVRational, i32, ptr, i32, i32, i32, i32, i32, [8 x ptr], ptr, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i64, ptr, i32, i32, ptr, ptr, i64, i64, i64, i64, ptr, %struct.AVChannelLayout, i64 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN13FfmpegEncoder12ReallocFrameEP7AVFrame14AVSampleFormatii(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13FfmpegEncoder24SendReceiveAndWriteFrameEP7AVFrame(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13FfmpegEncoder14FlushResamplerEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %7 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 12
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 6
  %10 = load ptr, ptr %9, align 8, !tbaa !18
  %11 = getelementptr inbounds %struct.AVCodecContext, ptr %10, i32 0, i32 70
  %12 = load i32, ptr %11, align 8, !tbaa !19
  %13 = sext i32 %12 to i64
  %14 = call i64 @swr_get_delay(ptr noundef %8, i64 noundef %13)
  store i64 %14, ptr %3, align 8, !tbaa !37
  br label %15

15:                                               ; preds = %73, %1
  %16 = load i64, ptr %3, align 8, !tbaa !37
  %17 = icmp sgt i64 %16, 0
  br i1 %17, label %18, label %74

18:                                               ; preds = %15
  %19 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 11
  %20 = load ptr, ptr %19, align 8, !tbaa !38
  %21 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 6
  %22 = load ptr, ptr %21, align 8, !tbaa !18
  %23 = getelementptr inbounds %struct.AVCodecContext, ptr %22, i32 0, i32 71
  %24 = load i32, ptr %23, align 4, !tbaa !39
  %25 = load i64, ptr %3, align 8, !tbaa !37
  %26 = trunc i64 %25 to i32
  %27 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 6
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = getelementptr inbounds %struct.AVCodecContext, ptr %28, i32 0, i32 73
  %30 = load i32, ptr %29, align 8, !tbaa !40
  %31 = icmp sgt i32 %26, %30
  br i1 %31, label %32, label %37

32:                                               ; preds = %18
  %33 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 6
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  %35 = getelementptr inbounds %struct.AVCodecContext, ptr %34, i32 0, i32 73
  %36 = load i32, ptr %35, align 8, !tbaa !40
  br label %40

37:                                               ; preds = %18
  %38 = load i64, ptr %3, align 8, !tbaa !37
  %39 = trunc i64 %38 to i32
  br label %40

40:                                               ; preds = %37, %32
  %41 = phi i32 [ %36, %32 ], [ %39, %37 ]
  %42 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 6
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  %44 = getelementptr inbounds %struct.AVCodecContext, ptr %43, i32 0, i32 70
  %45 = load i32, ptr %44, align 8, !tbaa !19
  %46 = call noundef ptr @_ZN13FfmpegEncoder12ReallocFrameEP7AVFrame14AVSampleFormatii(ptr noundef nonnull align 8 dereferenceable(152) %6, ptr noundef %20, i32 noundef %24, i32 noundef %41, i32 noundef %45)
  %47 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 11
  store ptr %46, ptr %47, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %48 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 12
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 11
  %51 = load ptr, ptr %50, align 8, !tbaa !38
  %52 = getelementptr inbounds %struct.AVFrame, ptr %51, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !41
  %54 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 11
  %55 = load ptr, ptr %54, align 8, !tbaa !38
  %56 = getelementptr inbounds %struct.AVFrame, ptr %55, i32 0, i32 5
  %57 = load i32, ptr %56, align 8, !tbaa !44
  %58 = call i32 @swr_convert(ptr noundef %49, ptr noundef %53, i32 noundef %57, ptr noundef null, i32 noundef 0)
  store i32 %58, ptr %4, align 4, !tbaa !45
  %59 = load i32, ptr %4, align 4, !tbaa !45
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %61, label %69

61:                                               ; preds = %40
  %62 = getelementptr inbounds %class.FfmpegEncoder, ptr %6, i32 0, i32 11
  %63 = load ptr, ptr %62, align 8, !tbaa !38
  %64 = call noundef i32 @_ZN13FfmpegEncoder24SendReceiveAndWriteFrameEP7AVFrame(ptr noundef nonnull align 8 dereferenceable(152) %6, ptr noundef %63)
  %65 = load i32, ptr %4, align 4, !tbaa !45
  %66 = sext i32 %65 to i64
  %67 = load i64, ptr %3, align 8, !tbaa !37
  %68 = sub nsw i64 %67, %66
  store i64 %68, ptr %3, align 8, !tbaa !37
  br label %70

69:                                               ; preds = %40
  store i32 3, ptr %5, align 4
  br label %71

70:                                               ; preds = %61
  store i32 0, ptr %5, align 4
  br label %71

71:                                               ; preds = %70, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %72 = load i32, ptr %5, align 4
  switch i32 %72, label %75 [
    i32 0, label %73
    i32 3, label %74
  ]

73:                                               ; preds = %71
  br label %15, !llvm.loop !46

74:                                               ; preds = %71, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void

75:                                               ; preds = %71
  unreachable
}

declare i64 @swr_get_delay(ptr noundef, i64 noundef) #2

declare i32 @swr_convert(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 96}
!10 = !{!"_ZTS13FfmpegEncoder", !11, i64 0, !13, i64 8, !6, i64 16, !14, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !15, i64 104, !16, i64 112, !14, i64 144, !14, i64 148}
!11 = !{!"_ZTSN5musik4core3sdk16IBlockingEncoderE", !12, i64 0}
!12 = !{!"_ZTSN5musik4core3sdk8IEncoderE"}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !15, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!10, !6, i64 48}
!19 = !{!20, !14, i64 344}
!20 = !{!"_ZTS14AVCodecContext", !6, i64 0, !14, i64 8, !21, i64 12, !6, i64 16, !22, i64 24, !14, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !15, i64 56, !14, i64 64, !14, i64 68, !6, i64 72, !14, i64 80, !23, i64 84, !23, i64 92, !23, i64 100, !14, i64 108, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !23, i64 132, !24, i64 140, !24, i64 144, !25, i64 148, !26, i64 152, !27, i64 156, !28, i64 160, !29, i64 164, !30, i64 168, !14, i64 172, !14, i64 176, !14, i64 180, !6, i64 184, !6, i64 192, !14, i64 200, !31, i64 204, !31, i64 208, !31, i64 212, !31, i64 216, !31, i64 220, !31, i64 224, !31, i64 228, !31, i64 232, !31, i64 236, !14, i64 240, !14, i64 244, !14, i64 248, !14, i64 252, !14, i64 256, !14, i64 260, !14, i64 264, !14, i64 268, !14, i64 272, !14, i64 276, !14, i64 280, !14, i64 284, !6, i64 288, !6, i64 296, !6, i64 304, !14, i64 312, !14, i64 316, !14, i64 320, !14, i64 324, !14, i64 328, !14, i64 332, !14, i64 336, !14, i64 340, !14, i64 344, !32, i64 348, !33, i64 352, !14, i64 376, !14, i64 380, !14, i64 384, !35, i64 388, !32, i64 392, !14, i64 396, !14, i64 400, !14, i64 404, !6, i64 408, !14, i64 416, !14, i64 420, !14, i64 424, !31, i64 428, !31, i64 432, !14, i64 436, !14, i64 440, !14, i64 444, !14, i64 448, !14, i64 452, !6, i64 456, !15, i64 464, !15, i64 472, !31, i64 480, !31, i64 484, !14, i64 488, !14, i64 492, !6, i64 496, !6, i64 504, !14, i64 512, !14, i64 516, !14, i64 520, !14, i64 524, !14, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !14, i64 568, !14, i64 572, !7, i64 576, !14, i64 640, !14, i64 644, !14, i64 648, !14, i64 652, !14, i64 656, !14, i64 660, !14, i64 664, !6, i64 672, !6, i64 680, !14, i64 688, !14, i64 692, !14, i64 696, !36, i64 700, !36, i64 704, !36, i64 708, !14, i64 712, !14, i64 716, !14, i64 720, !14, i64 724, !6, i64 728, !6, i64 736, !14, i64 744, !14, i64 748, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !14, i64 784, !14, i64 788, !15, i64 792, !14, i64 800, !14, i64 804, !15, i64 808, !6, i64 816, !15, i64 824, !6, i64 832, !14, i64 840, !6, i64 848, !14, i64 856}
!21 = !{!"_ZTS11AVMediaType", !7, i64 0}
!22 = !{!"_ZTS9AVCodecID", !7, i64 0}
!23 = !{!"_ZTS10AVRational", !14, i64 0, !14, i64 4}
!24 = !{!"_ZTS13AVPixelFormat", !7, i64 0}
!25 = !{!"_ZTS16AVColorPrimaries", !7, i64 0}
!26 = !{!"_ZTS29AVColorTransferCharacteristic", !7, i64 0}
!27 = !{!"_ZTS12AVColorSpace", !7, i64 0}
!28 = !{!"_ZTS12AVColorRange", !7, i64 0}
!29 = !{!"_ZTS16AVChromaLocation", !7, i64 0}
!30 = !{!"_ZTS12AVFieldOrder", !7, i64 0}
!31 = !{!"float", !7, i64 0}
!32 = !{!"_ZTS14AVSampleFormat", !7, i64 0}
!33 = !{!"_ZTS15AVChannelLayout", !34, i64 0, !14, i64 4, !7, i64 8, !6, i64 16}
!34 = !{!"_ZTS14AVChannelOrder", !7, i64 0}
!35 = !{!"_ZTS18AVAudioServiceType", !7, i64 0}
!36 = !{!"_ZTS9AVDiscard", !7, i64 0}
!37 = !{!15, !15, i64 0}
!38 = !{!10, !6, i64 88}
!39 = !{!20, !32, i64 348}
!40 = !{!20, !14, i64 376}
!41 = !{!42, !6, i64 96}
!42 = !{!"_ZTS7AVFrame", !7, i64 0, !7, i64 64, !6, i64 96, !14, i64 104, !14, i64 108, !14, i64 112, !14, i64 116, !14, i64 120, !43, i64 124, !23, i64 128, !15, i64 136, !15, i64 144, !23, i64 152, !14, i64 160, !6, i64 168, !14, i64 176, !14, i64 180, !14, i64 184, !14, i64 188, !14, i64 192, !7, i64 200, !6, i64 264, !14, i64 272, !6, i64 280, !14, i64 288, !14, i64 292, !28, i64 296, !25, i64 300, !26, i64 304, !27, i64 308, !29, i64 312, !15, i64 320, !15, i64 328, !6, i64 336, !14, i64 344, !14, i64 348, !6, i64 352, !6, i64 360, !15, i64 368, !15, i64 376, !15, i64 384, !15, i64 392, !6, i64 400, !33, i64 408, !15, i64 432}
!43 = !{!"_ZTS13AVPictureType", !7, i64 0}
!44 = !{!42, !14, i64 112}
!45 = !{!14, !14, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN13FfmpegEncoder12ReallocFrameEP7AVFrame14AVSampleFormatii(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13FfmpegEncoder24SendReceiveAndWriteFrameEP7AVFrame(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13FfmpegEncoder14FlushResamplerEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 96
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 48
  %5 = load ptr, ptr %4, align 8, !tbaa !17
  %6 = getelementptr inbounds i8, ptr %5, i64 344
  %7 = load i32, ptr %6, align 8, !tbaa !18
  %8 = sext i32 %7 to i64
  %9 = tail call i64 @swr_get_delay(ptr noundef %3, i64 noundef %8)
  %10 = getelementptr inbounds i8, ptr %0, i64 88
  %11 = icmp sgt i64 %9, 0
  br i1 %11, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %1, %29
  %.0714 = phi i64 [ %33, %29 ], [ %9, %1 ]
  %12 = load ptr, ptr %10, align 8, !tbaa !36
  %13 = load ptr, ptr %4, align 8, !tbaa !17
  %14 = getelementptr inbounds i8, ptr %13, i64 348
  %15 = load i32, ptr %14, align 4, !tbaa !37
  %16 = trunc i64 %.0714 to i32
  %17 = getelementptr inbounds i8, ptr %13, i64 376
  %18 = load i32, ptr %17, align 8, !tbaa !38
  %. = tail call i32 @llvm.smin.i32(i32 %18, i32 %16)
  %19 = getelementptr inbounds i8, ptr %13, i64 344
  %20 = load i32, ptr %19, align 8, !tbaa !18
  %21 = tail call noundef ptr @_ZN13FfmpegEncoder12ReallocFrameEP7AVFrame14AVSampleFormatii(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %12, i32 noundef %15, i32 noundef %., i32 noundef %20)
  store ptr %21, ptr %10, align 8, !tbaa !36
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %21, i64 96
  %24 = load ptr, ptr %23, align 8, !tbaa !39
  %25 = getelementptr inbounds i8, ptr %21, i64 112
  %26 = load i32, ptr %25, align 8, !tbaa !42
  %27 = tail call i32 @swr_convert(ptr noundef %22, ptr noundef %24, i32 noundef %26, ptr noundef null, i32 noundef 0)
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %29, label %.thread

29:                                               ; preds = %.lr.ph
  %30 = load ptr, ptr %10, align 8, !tbaa !36
  %31 = tail call noundef i32 @_ZN13FfmpegEncoder24SendReceiveAndWriteFrameEP7AVFrame(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %30)
  %32 = zext nneg i32 %27 to i64
  %33 = sub nsw i64 %.0714, %32
  %34 = icmp sgt i64 %33, 0
  br i1 %34, label %.lr.ph, label %.thread

.thread:                                          ; preds = %29, %.lr.ph, %1
  ret void
}

declare i64 @swr_get_delay(ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @swr_convert(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 96}
!6 = !{!"_ZTS13FfmpegEncoder", !7, i64 0, !9, i64 8, !12, i64 16, !13, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !14, i64 104, !15, i64 112, !13, i64 144, !13, i64 148}
!7 = !{!"_ZTSN5musik4core3sdk16IBlockingEncoderE", !8, i64 0}
!8 = !{!"_ZTSN5musik4core3sdk8IEncoderE"}
!9 = !{!"bool", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"long", !10, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !14, i64 8, !10, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!17 = !{!6, !12, i64 48}
!18 = !{!19, !13, i64 344}
!19 = !{!"_ZTS14AVCodecContext", !12, i64 0, !13, i64 8, !20, i64 12, !12, i64 16, !21, i64 24, !13, i64 28, !12, i64 32, !12, i64 40, !12, i64 48, !14, i64 56, !13, i64 64, !13, i64 68, !12, i64 72, !13, i64 80, !22, i64 84, !22, i64 92, !22, i64 100, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !22, i64 132, !23, i64 140, !23, i64 144, !24, i64 148, !25, i64 152, !26, i64 156, !27, i64 160, !28, i64 164, !29, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !12, i64 184, !12, i64 192, !13, i64 200, !30, i64 204, !30, i64 208, !30, i64 212, !30, i64 216, !30, i64 220, !30, i64 224, !30, i64 228, !30, i64 232, !30, i64 236, !13, i64 240, !13, i64 244, !13, i64 248, !13, i64 252, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !12, i64 288, !12, i64 296, !12, i64 304, !13, i64 312, !13, i64 316, !13, i64 320, !13, i64 324, !13, i64 328, !13, i64 332, !13, i64 336, !13, i64 340, !13, i64 344, !31, i64 348, !32, i64 352, !13, i64 376, !13, i64 380, !13, i64 384, !34, i64 388, !31, i64 392, !13, i64 396, !13, i64 400, !13, i64 404, !12, i64 408, !13, i64 416, !13, i64 420, !13, i64 424, !30, i64 428, !30, i64 432, !13, i64 436, !13, i64 440, !13, i64 444, !13, i64 448, !13, i64 452, !12, i64 456, !14, i64 464, !14, i64 472, !30, i64 480, !30, i64 484, !13, i64 488, !13, i64 492, !12, i64 496, !12, i64 504, !13, i64 512, !13, i64 516, !13, i64 520, !13, i64 524, !13, i64 528, !12, i64 536, !12, i64 544, !12, i64 552, !12, i64 560, !13, i64 568, !13, i64 572, !10, i64 576, !13, i64 640, !13, i64 644, !13, i64 648, !13, i64 652, !13, i64 656, !13, i64 660, !13, i64 664, !12, i64 672, !12, i64 680, !13, i64 688, !13, i64 692, !13, i64 696, !35, i64 700, !35, i64 704, !35, i64 708, !13, i64 712, !13, i64 716, !13, i64 720, !13, i64 724, !12, i64 728, !12, i64 736, !13, i64 744, !13, i64 748, !12, i64 752, !12, i64 760, !12, i64 768, !12, i64 776, !13, i64 784, !13, i64 788, !14, i64 792, !13, i64 800, !13, i64 804, !14, i64 808, !12, i64 816, !14, i64 824, !12, i64 832, !13, i64 840, !12, i64 848, !13, i64 856}
!20 = !{!"_ZTS11AVMediaType", !10, i64 0}
!21 = !{!"_ZTS9AVCodecID", !10, i64 0}
!22 = !{!"_ZTS10AVRational", !13, i64 0, !13, i64 4}
!23 = !{!"_ZTS13AVPixelFormat", !10, i64 0}
!24 = !{!"_ZTS16AVColorPrimaries", !10, i64 0}
!25 = !{!"_ZTS29AVColorTransferCharacteristic", !10, i64 0}
!26 = !{!"_ZTS12AVColorSpace", !10, i64 0}
!27 = !{!"_ZTS12AVColorRange", !10, i64 0}
!28 = !{!"_ZTS16AVChromaLocation", !10, i64 0}
!29 = !{!"_ZTS12AVFieldOrder", !10, i64 0}
!30 = !{!"float", !10, i64 0}
!31 = !{!"_ZTS14AVSampleFormat", !10, i64 0}
!32 = !{!"_ZTS15AVChannelLayout", !33, i64 0, !13, i64 4, !10, i64 8, !12, i64 16}
!33 = !{!"_ZTS14AVChannelOrder", !10, i64 0}
!34 = !{!"_ZTS18AVAudioServiceType", !10, i64 0}
!35 = !{!"_ZTS9AVDiscard", !10, i64 0}
!36 = !{!6, !12, i64 88}
!37 = !{!19, !31, i64 348}
!38 = !{!19, !13, i64 376}
!39 = !{!40, !12, i64 96}
!40 = !{!"_ZTS7AVFrame", !10, i64 0, !10, i64 64, !12, i64 96, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !41, i64 124, !22, i64 128, !14, i64 136, !14, i64 144, !22, i64 152, !13, i64 160, !12, i64 168, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !13, i64 192, !10, i64 200, !12, i64 264, !13, i64 272, !12, i64 280, !13, i64 288, !13, i64 292, !27, i64 296, !24, i64 300, !25, i64 304, !26, i64 308, !28, i64 312, !14, i64 320, !14, i64 328, !12, i64 336, !13, i64 344, !13, i64 348, !12, i64 352, !12, i64 360, !14, i64 368, !14, i64 376, !14, i64 384, !14, i64 392, !12, i64 400, !32, i64 408, !14, i64 432}
!41 = !{!"_ZTS13AVPictureType", !10, i64 0}
!42 = !{!40, !13, i64 112}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass