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

; 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.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] }
%"class.std::allocator.0" = type { i8 }
%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 }
%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 }

@.str.30 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [18 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL8logErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10logAvErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN13FfmpegEncoder28ReadFromFifoAndWriteToOutputEb(ptr noundef nonnull align 8 dereferenceable(152) %0, i1 noundef zeroext %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.0", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.0", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  %18 = zext i1 %1 to i8
  store i8 %18, ptr %5, align 1, !tbaa !9
  %19 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %20 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 6
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds %struct.AVCodecContext, ptr %21, i32 0, i32 73
  %23 = load i32, ptr %22, align 8, !tbaa !19
  store i32 %23, ptr %6, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !37
  br label %24

24:                                               ; preds = %136, %134, %2
  %25 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !38
  %27 = call i32 @av_audio_fifo_size(ptr noundef %26)
  %28 = load i32, ptr %6, align 4, !tbaa !37
  %29 = icmp sge i32 %27, %28
  br i1 %29, label %40, label %30

30:                                               ; preds = %24
  %31 = load i8, ptr %5, align 1, !tbaa !9, !range !39, !noundef !40
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %38

33:                                               ; preds = %30
  %34 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 4
  %35 = load ptr, ptr %34, align 8, !tbaa !38
  %36 = call i32 @av_audio_fifo_size(ptr noundef %35)
  %37 = icmp sgt i32 %36, 0
  br label %38

38:                                               ; preds = %33, %30
  %39 = phi i1 [ false, %30 ], [ %37, %33 ]
  br label %40

40:                                               ; preds = %38, %24
  %41 = phi i1 [ true, %24 ], [ %39, %38 ]
  br i1 %41, label %42, label %138

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %43 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !38
  %45 = call i32 @av_audio_fifo_size(ptr noundef %44)
  store i32 %45, ptr %8, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %46 = load i32, ptr %8, align 4, !tbaa !37
  %47 = load i32, ptr %6, align 4, !tbaa !37
  %48 = icmp sgt i32 %46, %47
  br i1 %48, label %49, label %51

49:                                               ; preds = %42
  %50 = load i32, ptr %6, align 4, !tbaa !37
  br label %53

51:                                               ; preds = %42
  %52 = load i32, ptr %8, align 4, !tbaa !37
  br label %53

53:                                               ; preds = %51, %49
  %54 = phi i32 [ %50, %49 ], [ %52, %51 ]
  store i32 %54, ptr %9, align 4, !tbaa !37
  %55 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 10
  %56 = load ptr, ptr %55, align 8, !tbaa !41
  %57 = load i32, ptr %9, align 4, !tbaa !37
  %58 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 16
  %59 = load i32, ptr %58, align 4, !tbaa !42
  %60 = call noundef ptr @_ZN13FfmpegEncoder12ReallocFrameEP7AVFrame14AVSampleFormatii(ptr noundef nonnull align 8 dereferenceable(152) %19, ptr noundef %56, i32 noundef 3, i32 noundef %57, i32 noundef %59)
  %61 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 10
  store ptr %60, ptr %61, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %62 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !38
  %64 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 10
  %65 = load ptr, ptr %64, align 8, !tbaa !41
  %66 = getelementptr inbounds %struct.AVFrame, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds [8 x ptr], ptr %66, i64 0, i64 0
  %68 = load i32, ptr %9, align 4, !tbaa !37
  %69 = call i32 @av_audio_fifo_read(ptr noundef %63, ptr noundef %67, i32 noundef %68)
  store i32 %69, ptr %10, align 4, !tbaa !37
  %70 = load i32, ptr %10, align 4, !tbaa !37
  %71 = load i32, ptr %9, align 4, !tbaa !37
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %73, label %85

73:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str.30, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %74 unwind label %76

74:                                               ; preds = %73
  invoke void @_ZL8logErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %75 unwind label %80

75:                                               ; preds = %74
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  store i1 false, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %134

76:                                               ; preds = %73
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %13, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %14, align 4
  br label %84

80:                                               ; preds = %74
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %13, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #4
  br label %84

84:                                               ; preds = %80, %76
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  br label %137

85:                                               ; preds = %53
  %86 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 11
  %87 = load ptr, ptr %86, align 8, !tbaa !43
  %88 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 6
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  %90 = getelementptr inbounds %struct.AVCodecContext, ptr %89, i32 0, i32 71
  %91 = load i32, ptr %90, align 4, !tbaa !44
  %92 = load i32, ptr %9, align 4, !tbaa !37
  %93 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 6
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = getelementptr inbounds %struct.AVCodecContext, ptr %94, i32 0, i32 70
  %96 = load i32, ptr %95, align 8, !tbaa !45
  %97 = call noundef ptr @_ZN13FfmpegEncoder12ReallocFrameEP7AVFrame14AVSampleFormatii(ptr noundef nonnull align 8 dereferenceable(152) %19, ptr noundef %87, i32 noundef %91, i32 noundef %92, i32 noundef %96)
  %98 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 11
  store ptr %97, ptr %98, align 8, !tbaa !43
  %99 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 12
  %100 = load ptr, ptr %99, align 8, !tbaa !46
  %101 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 11
  %102 = load ptr, ptr %101, align 8, !tbaa !43
  %103 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 10
  %104 = load ptr, ptr %103, align 8, !tbaa !41
  %105 = call i32 @swr_convert_frame(ptr noundef %100, ptr noundef %102, ptr noundef %104)
  store i32 %105, ptr %7, align 4, !tbaa !37
  %106 = load i32, ptr %7, align 4, !tbaa !37
  %107 = icmp slt i32 %106, 0
  br i1 %107, label %108, label %121

108:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.31, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %109 unwind label %112

109:                                              ; preds = %108
  %110 = load i32, ptr %7, align 4, !tbaa !37
  invoke void @_ZL10logAvErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef %110)
          to label %111 unwind label %116

111:                                              ; preds = %109
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #4
  store i1 false, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %134

112:                                              ; preds = %108
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %13, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %14, align 4
  br label %120

116:                                              ; preds = %109
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %13, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  br label %120

120:                                              ; preds = %116, %112
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #4
  br label %137

121:                                              ; preds = %85
  %122 = getelementptr inbounds %class.FfmpegEncoder, ptr %19, i32 0, i32 11
  %123 = load ptr, ptr %122, align 8, !tbaa !43
  %124 = call noundef i32 @_ZN13FfmpegEncoder24SendReceiveAndWriteFrameEP7AVFrame(ptr noundef nonnull align 8 dereferenceable(152) %19, ptr noundef %123)
  store i32 %124, ptr %7, align 4, !tbaa !37
  %125 = load i32, ptr %7, align 4, !tbaa !37
  %126 = icmp eq i32 %125, -11
  br i1 %126, label %127, label %128

127:                                              ; preds = %121
  store i32 2, ptr %15, align 4
  br label %134, !llvm.loop !47

128:                                              ; preds = %121
  %129 = load i32, ptr %7, align 4, !tbaa !37
  %130 = icmp slt i32 %129, 0
  br i1 %130, label %131, label %132

131:                                              ; preds = %128
  store i1 false, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %134

132:                                              ; preds = %128
  br label %133

133:                                              ; preds = %132
  store i32 0, ptr %15, align 4
  br label %134

134:                                              ; preds = %133, %131, %127, %111, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %135 = load i32, ptr %15, align 4
  switch i32 %135, label %144 [
    i32 0, label %136
    i32 2, label %24
  ]

136:                                              ; preds = %134
  br label %24, !llvm.loop !47

137:                                              ; preds = %120, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %146

138:                                              ; preds = %40
  %139 = load i8, ptr %5, align 1, !tbaa !9, !range !39, !noundef !40
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %143

141:                                              ; preds = %138
  call void @_ZN13FfmpegEncoder14FlushResamplerEv(ptr noundef nonnull align 8 dereferenceable(152) %19)
  %142 = call noundef i32 @_ZN13FfmpegEncoder24SendReceiveAndWriteFrameEP7AVFrame(ptr noundef nonnull align 8 dereferenceable(152) %19, ptr noundef null)
  br label %143

143:                                              ; preds = %141, %138
  store i1 true, ptr %3, align 1
  store i32 1, ptr %15, align 4
  br label %144

144:                                              ; preds = %143, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %145 = load i1, ptr %3, align 1
  ret i1 %145

146:                                              ; preds = %137
  %147 = load ptr, ptr %13, align 8
  %148 = load i32, ptr %14, align 4
  %149 = insertvalue { ptr, i32 } poison, ptr %147, 0
  %150 = insertvalue { ptr, i32 } %149, i32 %148, 1
  resume { ptr, i32 } %150
}

declare i32 @av_audio_fifo_size(ptr noundef) #3

; 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) #2 align 2

declare i32 @av_audio_fifo_read(ptr noundef, ptr noundef, i32 noundef) #3

declare i32 @swr_convert_frame(ptr noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13FfmpegEncoder14FlushResamplerEv(ptr noundef nonnull align 8 dereferenceable(152)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind 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 = { 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 #3 = { "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 #4 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 48}
!12 = !{!"_ZTS13FfmpegEncoder", !13, i64 0, !10, i64 8, !6, i64 16, !15, 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, !16, i64 104, !17, i64 112, !15, i64 144, !15, i64 148}
!13 = !{!"_ZTSN5musik4core3sdk16IBlockingEncoderE", !14, i64 0}
!14 = !{!"_ZTSN5musik4core3sdk8IEncoderE"}
!15 = !{!"int", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !16, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!20, !15, i64 376}
!20 = !{!"_ZTS14AVCodecContext", !6, i64 0, !15, i64 8, !21, i64 12, !6, i64 16, !22, i64 24, !15, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !16, i64 56, !15, i64 64, !15, i64 68, !6, i64 72, !15, i64 80, !23, i64 84, !23, i64 92, !23, i64 100, !15, i64 108, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, 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, !15, i64 172, !15, i64 176, !15, i64 180, !6, i64 184, !6, i64 192, !15, 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, !15, i64 240, !15, i64 244, !15, i64 248, !15, i64 252, !15, i64 256, !15, i64 260, !15, i64 264, !15, i64 268, !15, i64 272, !15, i64 276, !15, i64 280, !15, i64 284, !6, i64 288, !6, i64 296, !6, i64 304, !15, i64 312, !15, i64 316, !15, i64 320, !15, i64 324, !15, i64 328, !15, i64 332, !15, i64 336, !15, i64 340, !15, i64 344, !32, i64 348, !33, i64 352, !15, i64 376, !15, i64 380, !15, i64 384, !35, i64 388, !32, i64 392, !15, i64 396, !15, i64 400, !15, i64 404, !6, i64 408, !15, i64 416, !15, i64 420, !15, i64 424, !31, i64 428, !31, i64 432, !15, i64 436, !15, i64 440, !15, i64 444, !15, i64 448, !15, i64 452, !6, i64 456, !16, i64 464, !16, i64 472, !31, i64 480, !31, i64 484, !15, i64 488, !15, i64 492, !6, i64 496, !6, i64 504, !15, i64 512, !15, i64 516, !15, i64 520, !15, i64 524, !15, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !15, i64 568, !15, i64 572, !7, i64 576, !15, i64 640, !15, i64 644, !15, i64 648, !15, i64 652, !15, i64 656, !15, i64 660, !15, i64 664, !6, i64 672, !6, i64 680, !15, i64 688, !15, i64 692, !15, i64 696, !36, i64 700, !36, i64 704, !36, i64 708, !15, i64 712, !15, i64 716, !15, i64 720, !15, i64 724, !6, i64 728, !6, i64 736, !15, i64 744, !15, i64 748, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !15, i64 784, !15, i64 788, !16, i64 792, !15, i64 800, !15, i64 804, !16, i64 808, !6, i64 816, !16, i64 824, !6, i64 832, !15, i64 840, !6, i64 848, !15, i64 856}
!21 = !{!"_ZTS11AVMediaType", !7, i64 0}
!22 = !{!"_ZTS9AVCodecID", !7, i64 0}
!23 = !{!"_ZTS10AVRational", !15, i64 0, !15, 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, !15, 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 = !{!12, !6, i64 32}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!12, !6, i64 80}
!42 = !{!12, !15, i64 148}
!43 = !{!12, !6, i64 88}
!44 = !{!20, !32, i64 348}
!45 = !{!20, !15, i64 344}
!46 = !{!12, !6, i64 96}
!47 = distinct !{!47, !48}
!48 = !{!"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"

%"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] }
%"class.std::allocator.0" = type { i8 }

@.str.30 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [18 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL8logErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10logAvErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN13FfmpegEncoder28ReadFromFifoAndWriteToOutputEb(ptr noundef nonnull align 8 dereferenceable(152) %0, i1 noundef zeroext %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator.0", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.0", align 1
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 376
  %10 = load i32, ptr %9, align 8, !tbaa !17
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  %13 = getelementptr inbounds i8, ptr %0, i64 148
  %14 = getelementptr inbounds i8, ptr %0, i64 88
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  br label %16

16:                                               ; preds = %61, %2
  %17 = load ptr, ptr %11, align 8, !tbaa !35
  %18 = tail call i32 @av_audio_fifo_size(ptr noundef %17)
  %.not = icmp slt i32 %18, %10
  br i1 %.not, label %19, label %.critedge

19:                                               ; preds = %16
  br i1 %1, label %20, label %.critedge36

20:                                               ; preds = %19
  %21 = load ptr, ptr %11, align 8, !tbaa !35
  %22 = tail call i32 @av_audio_fifo_size(ptr noundef %21)
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.critedge, label %.critedge2

.critedge:                                        ; preds = %16, %20
  %24 = load ptr, ptr %11, align 8, !tbaa !35
  %25 = tail call i32 @av_audio_fifo_size(ptr noundef %24)
  %26 = tail call i32 @llvm.smin.i32(i32 %25, i32 %10)
  %27 = load ptr, ptr %12, align 8, !tbaa !36
  %28 = load i32, ptr %13, align 4, !tbaa !37
  %29 = tail call noundef ptr @_ZN13FfmpegEncoder12ReallocFrameEP7AVFrame14AVSampleFormatii(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %27, i32 noundef 3, i32 noundef %26, i32 noundef %28)
  store ptr %29, ptr %12, align 8, !tbaa !36
  %30 = load ptr, ptr %11, align 8, !tbaa !35
  %31 = tail call i32 @av_audio_fifo_read(ptr noundef %30, ptr noundef %29, i32 noundef %26)
  %32 = icmp slt i32 %31, %26
  br i1 %32, label %33, label %41

33:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.30, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %34 unwind label %36

34:                                               ; preds = %33
  invoke void @_ZL8logErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %35 unwind label %38

35:                                               ; preds = %34
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  br label %.critedge36

36:                                               ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %40

38:                                               ; preds = %34
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br label %40

40:                                               ; preds = %38, %36
  %.pn33 = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  br label %66

41:                                               ; preds = %.critedge
  %42 = load ptr, ptr %14, align 8, !tbaa !38
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 348
  %45 = load i32, ptr %44, align 4, !tbaa !39
  %46 = getelementptr inbounds i8, ptr %43, i64 344
  %47 = load i32, ptr %46, align 8, !tbaa !40
  %48 = tail call noundef ptr @_ZN13FfmpegEncoder12ReallocFrameEP7AVFrame14AVSampleFormatii(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %42, i32 noundef %45, i32 noundef %26, i32 noundef %47)
  store ptr %48, ptr %14, align 8, !tbaa !38
  %49 = load ptr, ptr %15, align 8, !tbaa !41
  %50 = load ptr, ptr %12, align 8, !tbaa !36
  %51 = tail call i32 @swr_convert_frame(ptr noundef %49, ptr noundef %48, ptr noundef %50)
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %53, label %61

53:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.31, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %54 unwind label %56

54:                                               ; preds = %53
  invoke void @_ZL10logAvErrorRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %51)
          to label %55 unwind label %58

55:                                               ; preds = %54
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %.critedge36

56:                                               ; preds = %53
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %54
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %60

60:                                               ; preds = %58, %56
  %.pn = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %66

61:                                               ; preds = %41
  %62 = load ptr, ptr %14, align 8, !tbaa !38
  %63 = tail call noundef i32 @_ZN13FfmpegEncoder24SendReceiveAndWriteFrameEP7AVFrame(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %62)
  %64 = icmp ne i32 %63, -11
  %65 = icmp slt i32 %63, 0
  %or.cond = and i1 %64, %65
  br i1 %or.cond, label %.critedge36, label %16, !llvm.loop !42

66:                                               ; preds = %60, %40
  %.pn33.pn = phi { ptr, i32 } [ %.pn33, %40 ], [ %.pn, %60 ]
  resume { ptr, i32 } %.pn33.pn

.critedge2:                                       ; preds = %20
  tail call void @_ZN13FfmpegEncoder14FlushResamplerEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  %67 = tail call noundef i32 @_ZN13FfmpegEncoder24SendReceiveAndWriteFrameEP7AVFrame(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef null)
  br label %.critedge36

.critedge36:                                      ; preds = %61, %19, %55, %35, %.critedge2
  %.228 = phi i1 [ true, %.critedge2 ], [ false, %35 ], [ false, %55 ], [ false, %61 ], [ true, %19 ]
  ret i1 %.228
}

declare i32 @av_audio_fifo_size(ptr noundef) local_unnamed_addr #3

; 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 #2 align 2

declare i32 @av_audio_fifo_read(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @swr_convert_frame(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13FfmpegEncoder14FlushResamplerEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind 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 = { 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 #3 = { "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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !12, i64 48}
!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 = !{!18, !13, i64 376}
!18 = !{!"_ZTS14AVCodecContext", !12, i64 0, !13, i64 8, !19, i64 12, !12, i64 16, !20, 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, !21, i64 84, !21, i64 92, !21, i64 100, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !21, i64 132, !22, i64 140, !22, i64 144, !23, i64 148, !24, i64 152, !25, i64 156, !26, i64 160, !27, i64 164, !28, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !12, i64 184, !12, i64 192, !13, i64 200, !29, i64 204, !29, i64 208, !29, i64 212, !29, i64 216, !29, i64 220, !29, i64 224, !29, i64 228, !29, i64 232, !29, 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, !30, i64 348, !31, i64 352, !13, i64 376, !13, i64 380, !13, i64 384, !33, i64 388, !30, i64 392, !13, i64 396, !13, i64 400, !13, i64 404, !12, i64 408, !13, i64 416, !13, i64 420, !13, i64 424, !29, i64 428, !29, 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, !29, i64 480, !29, 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, !34, i64 700, !34, i64 704, !34, 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}
!19 = !{!"_ZTS11AVMediaType", !10, i64 0}
!20 = !{!"_ZTS9AVCodecID", !10, i64 0}
!21 = !{!"_ZTS10AVRational", !13, i64 0, !13, i64 4}
!22 = !{!"_ZTS13AVPixelFormat", !10, i64 0}
!23 = !{!"_ZTS16AVColorPrimaries", !10, i64 0}
!24 = !{!"_ZTS29AVColorTransferCharacteristic", !10, i64 0}
!25 = !{!"_ZTS12AVColorSpace", !10, i64 0}
!26 = !{!"_ZTS12AVColorRange", !10, i64 0}
!27 = !{!"_ZTS16AVChromaLocation", !10, i64 0}
!28 = !{!"_ZTS12AVFieldOrder", !10, i64 0}
!29 = !{!"float", !10, i64 0}
!30 = !{!"_ZTS14AVSampleFormat", !10, i64 0}
!31 = !{!"_ZTS15AVChannelLayout", !32, i64 0, !13, i64 4, !10, i64 8, !12, i64 16}
!32 = !{!"_ZTS14AVChannelOrder", !10, i64 0}
!33 = !{!"_ZTS18AVAudioServiceType", !10, i64 0}
!34 = !{!"_ZTS9AVDiscard", !10, i64 0}
!35 = !{!6, !12, i64 32}
!36 = !{!6, !12, i64 80}
!37 = !{!6, !13, i64 148}
!38 = !{!6, !12, i64 88}
!39 = !{!18, !30, i64 348}
!40 = !{!18, !13, i64 344}
!41 = !{!6, !12, i64 96}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass