; LLVM IR from awawa-dev/HyperHDR :: sources/effects (Animation4Music_QuatroMultiFast)

; 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"

%struct.ColorRgb = type { i8, i8, i8 }
%class.AnimationBaseMusic = type <{ %class.AnimationBase.base, [3 x i8], %"class.std::function", %struct.MovingTarget, [4 x i8] }>
%class.AnimationBase.base = type <{ ptr, i32, i8 }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%struct.MovingTarget = type { %struct.ColorRgb, %struct.ColorRgb, %struct.ColorRgb, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%class.Animation4Music_QuatroMultiFast = type { %class.AnimationBaseMusic.base, i32, i32, [4 x i8] }
%class.AnimationBaseMusic.base = type <{ %class.AnimationBase.base, [3 x i8], %"class.std::function", %struct.MovingTarget }>

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN31Animation4Music_QuatroMultiFast8getImageER5ImageI8ColorRgbE(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull align 8 dereferenceable(20) %1) unnamed_addr #0 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.ColorRgb, align 1
  %10 = alloca %struct.ColorRgb, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8
  %37 = getelementptr inbounds %class.AnimationBaseMusic, ptr %36, i32 0, i32 2
  %38 = call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr null) #5
  br i1 %38, label %39, label %40

39:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %196

40:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %41 = getelementptr inbounds %class.AnimationBaseMusic, ptr %36, i32 0, i32 2
  %42 = getelementptr inbounds %class.Animation4Music_QuatroMultiFast, ptr %36, i32 0, i32 1
  %43 = getelementptr inbounds %class.Animation4Music_QuatroMultiFast, ptr %36, i32 0, i32 2
  %44 = call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef %36, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef null, ptr noundef null, ptr noundef %6, ptr noundef %43)
  store ptr %44, ptr %7, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %50, label %47

47:                                               ; preds = %40
  %48 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %49 = trunc i8 %48 to i1
  br i1 %49, label %51, label %50

50:                                               ; preds = %47, %40
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %195

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 3, ptr %9) #5
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %9) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr %10) #5
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %52)
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = call noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296) %53, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(3) %9, ptr noundef %10, ptr noundef null)
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %194

56:                                               ; preds = %51
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN18SoundCaptureResult14RestoreFullLumER8ColorRgbi(ptr noundef nonnull align 4 dereferenceable(296) %57, ptr noundef nonnull align 1 dereferenceable(3) %10, i32 noundef 32)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %class.Animation4Music_QuatroMultiFast, ptr %36, i32 0, i32 2
  %60 = load i32, ptr %59, align 8, !tbaa !13
  %61 = call noundef i32 @_ZN18SoundCaptureResult13getValue3StepEi(ptr noundef nonnull align 4 dereferenceable(296) %58, i32 noundef %60)
  store i32 %61, ptr %13, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %62)
  %64 = udiv i32 %63, 2
  store i32 %64, ptr %14, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %65 = load i32, ptr %14, align 4, !tbaa !22
  %66 = load i32, ptr %13, align 4, !tbaa !22
  %67 = mul nsw i32 %65, %66
  %68 = sdiv i32 %67, 255
  store i32 %68, ptr %16, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 255, ptr %17, align 4, !tbaa !22
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %70 = load i32, ptr %69, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  store i32 %70, ptr %15, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %71 = load i32, ptr %14, align 4, !tbaa !22
  %72 = load i32, ptr %15, align 4, !tbaa !22
  %73 = sub nsw i32 %71, %72
  store i32 %73, ptr %19, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !22
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %75 = load i32, ptr %74, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  store i32 %75, ptr %18, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %76 = load i32, ptr %14, align 4, !tbaa !22
  %77 = load i32, ptr %15, align 4, !tbaa !22
  %78 = add nsw i32 %76, %77
  store i32 %78, ptr %22, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %79)
  %81 = sub nsw i32 %80, 1
  store i32 %81, ptr %23, align 4, !tbaa !22
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %83 = load i32, ptr %82, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  store i32 %83, ptr %21, align 4, !tbaa !22
  %84 = load i32, ptr %21, align 4, !tbaa !22
  %85 = load i32, ptr %18, align 4, !tbaa !22
  %86 = icmp sgt i32 %84, %85
  br i1 %86, label %87, label %127

87:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %88)
  %90 = uitofp i32 %89 to double
  %91 = fmul double %90, 4.000000e-02
  %92 = fptosi double %91 to i32
  store i32 %92, ptr %24, align 4, !tbaa !22
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load i32, ptr %18, align 4, !tbaa !22
  %95 = trunc i32 %94 to i16
  %96 = load i32, ptr %24, align 4, !tbaa !22
  %97 = trunc i32 %96 to i16
  %98 = load i32, ptr %21, align 4, !tbaa !22
  %99 = trunc i32 %98 to i16
  %100 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %101 = trunc i32 %100 to i8
  %102 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %103 = trunc i32 %102 to i8
  %104 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %105 = trunc i32 %104 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %93, i16 noundef zeroext 0, i16 noundef zeroext %95, i16 noundef zeroext %97, i16 noundef zeroext %99, i8 noundef zeroext %101, i8 noundef zeroext %103, i8 noundef zeroext %105)
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %107)
  %109 = sub i32 %108, 1
  %110 = load i32, ptr %24, align 4, !tbaa !22
  %111 = sub i32 %109, %110
  %112 = trunc i32 %111 to i16
  %113 = load i32, ptr %18, align 4, !tbaa !22
  %114 = trunc i32 %113 to i16
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %115)
  %117 = sub i32 %116, 1
  %118 = trunc i32 %117 to i16
  %119 = load i32, ptr %21, align 4, !tbaa !22
  %120 = trunc i32 %119 to i16
  %121 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %122 = trunc i32 %121 to i8
  %123 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %124 = trunc i32 %123 to i8
  %125 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %126 = trunc i32 %125 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %106, i16 noundef zeroext %112, i16 noundef zeroext %114, i16 noundef zeroext %118, i16 noundef zeroext %120, i8 noundef zeroext %122, i8 noundef zeroext %124, i8 noundef zeroext %126)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %127

127:                                              ; preds = %87, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %128)
  %130 = udiv i32 %129, 2
  store i32 %130, ptr %25, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %131 = load i32, ptr %25, align 4, !tbaa !22
  %132 = load i32, ptr %13, align 4, !tbaa !22
  %133 = mul nsw i32 %131, %132
  %134 = sdiv i32 %133, 255
  store i32 %134, ptr %27, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 255, ptr %28, align 4, !tbaa !22
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %136 = load i32, ptr %135, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  store i32 %136, ptr %26, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %137 = load i32, ptr %25, align 4, !tbaa !22
  %138 = load i32, ptr %26, align 4, !tbaa !22
  %139 = sub nsw i32 %137, %138
  store i32 %139, ptr %30, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !22
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %141 = load i32, ptr %140, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  store i32 %141, ptr %29, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %142 = load i32, ptr %25, align 4, !tbaa !22
  %143 = load i32, ptr %26, align 4, !tbaa !22
  %144 = add nsw i32 %142, %143
  store i32 %144, ptr %33, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %145)
  %147 = sub nsw i32 %146, 1
  store i32 %147, ptr %34, align 4, !tbaa !22
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %34)
  %149 = load i32, ptr %148, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  store i32 %149, ptr %32, align 4, !tbaa !22
  %150 = load i32, ptr %32, align 4, !tbaa !22
  %151 = load i32, ptr %29, align 4, !tbaa !22
  %152 = icmp sgt i32 %150, %151
  br i1 %152, label %153, label %193

153:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %154)
  %156 = uitofp i32 %155 to double
  %157 = fmul double %156, 6.700000e-02
  %158 = fptosi double %157 to i32
  store i32 %158, ptr %35, align 4, !tbaa !22
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = load i32, ptr %29, align 4, !tbaa !22
  %161 = trunc i32 %160 to i16
  %162 = load i32, ptr %32, align 4, !tbaa !22
  %163 = trunc i32 %162 to i16
  %164 = load i32, ptr %35, align 4, !tbaa !22
  %165 = trunc i32 %164 to i16
  %166 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %167 = trunc i32 %166 to i8
  %168 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %169 = trunc i32 %168 to i8
  %170 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %171 = trunc i32 %170 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %159, i16 noundef zeroext %161, i16 noundef zeroext 0, i16 noundef zeroext %163, i16 noundef zeroext %165, i8 noundef zeroext %167, i8 noundef zeroext %169, i8 noundef zeroext %171)
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = load i32, ptr %29, align 4, !tbaa !22
  %174 = trunc i32 %173 to i16
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %175)
  %177 = sub i32 %176, 1
  %178 = load i32, ptr %35, align 4, !tbaa !22
  %179 = sub i32 %177, %178
  %180 = trunc i32 %179 to i16
  %181 = load i32, ptr %32, align 4, !tbaa !22
  %182 = trunc i32 %181 to i16
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %183)
  %185 = sub i32 %184, 1
  %186 = trunc i32 %185 to i16
  %187 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %188 = trunc i32 %187 to i8
  %189 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %190 = trunc i32 %189 to i8
  %191 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %192 = trunc i32 %191 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %172, i16 noundef zeroext %174, i16 noundef zeroext %180, i16 noundef zeroext %182, i16 noundef zeroext %186, i8 noundef zeroext %188, i8 noundef zeroext %190, i8 noundef zeroext %192)
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %193

193:                                              ; preds = %153, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %194

194:                                              ; preds = %193, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 3, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #5
  br label %195

195:                                              ; preds = %194, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  br label %196

196:                                              ; preds = %195, %39
  %197 = load i1, ptr %3, align 1
  ret i1 %197
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32), ptr) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0 align 2

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

declare void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20)) #4

declare noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef, ptr noundef) #4

declare void @_ZN18SoundCaptureResult14RestoreFullLumER8ColorRgbi(ptr noundef nonnull align 4 dereferenceable(296), ptr noundef nonnull align 1 dereferenceable(3), i32 noundef) #4

declare noundef i32 @_ZN18SoundCaptureResult13getValue3StepEi(ptr noundef nonnull align 4 dereferenceable(296), i32 noundef) #4

declare noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

declare noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20)) #4

declare void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3)) #3 align 2

declare void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #4

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 = { inlinehint 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 #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, !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 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !17, i64 112}
!14 = !{!"_ZTS31Animation4Music_QuatroMultiFast", !15, i64 0, !17, i64 108, !17, i64 112}
!15 = !{!"_ZTS18AnimationBaseMusic", !16, i64 0, !18, i64 16, !20, i64 48}
!16 = !{!"_ZTS13AnimationBase", !17, i64 8, !10, i64 12}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEE", !19, i64 0, !6, i64 24}
!19 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!20 = !{!"_ZTS12MovingTarget", !21, i64 0, !21, i64 3, !21, i64 6, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56}
!21 = !{!"_ZTS8ColorRgb", !7, i64 0, !7, i64 1, !7, i64 2}
!22 = !{!17, !17, i64 0}


; 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"

%struct.ColorRgb = type { i8, i8, i8 }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN31Animation4Music_QuatroMultiFast8getImageER5ImageI8ColorRgbE(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull align 8 dereferenceable(20) %1) unnamed_addr #0 align 2 {
  %3 = alloca i8, align 1
  %4 = alloca %struct.ColorRgb, align 1
  %5 = alloca %struct.ColorRgb, 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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = tail call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr null) #5
  br i1 %21, label %122, label %22

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  store i8 0, ptr %3, align 1, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 108
  %24 = getelementptr inbounds i8, ptr %0, i64 112
  %25 = call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull %0, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef null, ptr noundef null, ptr noundef nonnull %3, ptr noundef nonnull %24)
  %26 = icmp eq ptr %25, null
  br i1 %26, label %121, label %27

27:                                               ; preds = %22
  %28 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %30, label %121

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #5
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %4) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %5) #5
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %31 = call noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296) %25, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 1 dereferenceable(3) %4, ptr noundef nonnull %5, ptr noundef null)
  br i1 %31, label %32, label %120

32:                                               ; preds = %30
  call void @_ZN18SoundCaptureResult14RestoreFullLumER8ColorRgbi(ptr noundef nonnull align 4 dereferenceable(296) %25, ptr noundef nonnull align 1 dereferenceable(3) %5, i32 noundef 32)
  %33 = load i32, ptr %24, align 8, !tbaa !11
  %34 = call noundef i32 @_ZN18SoundCaptureResult13getValue3StepEi(ptr noundef nonnull align 4 dereferenceable(296) %25, i32 noundef %33)
  %35 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %36 = lshr i32 %35, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %37 = mul nsw i32 %36, %34
  %38 = sdiv i32 %37, 255
  store i32 %38, ptr %8, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 255, ptr %9, align 4, !tbaa !21
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %40 = load i32, ptr %39, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %41 = sub nsw i32 %36, %40
  store i32 %41, ptr %10, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 0, ptr %11, align 4, !tbaa !21
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %43 = load i32, ptr %42, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %44 = add nsw i32 %40, %36
  store i32 %44, ptr %12, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %45 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr %13, align 4, !tbaa !21
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %48 = load i32, ptr %47, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  %49 = icmp sgt i32 %48, %43
  br i1 %49, label %50, label %77

50:                                               ; preds = %32
  %51 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %52 = uitofp i32 %51 to double
  %53 = fmul double %52, 4.000000e-02
  %54 = fptosi double %53 to i32
  %55 = trunc i32 %43 to i16
  %56 = trunc i32 %54 to i16
  %57 = trunc i32 %48 to i16
  %58 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %59 = trunc i32 %58 to i8
  %60 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %61 = trunc i32 %60 to i8
  %62 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %63 = trunc i32 %62 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext 0, i16 noundef zeroext %55, i16 noundef zeroext %56, i16 noundef zeroext %57, i8 noundef zeroext %59, i8 noundef zeroext %61, i8 noundef zeroext %63)
  %64 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %65 = xor i32 %54, -1
  %66 = add i32 %64, %65
  %67 = trunc i32 %66 to i16
  %68 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %69 = trunc i32 %68 to i16
  %70 = add i16 %69, -1
  %71 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %72 = trunc i32 %71 to i8
  %73 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %74 = trunc i32 %73 to i8
  %75 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %76 = trunc i32 %75 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %67, i16 noundef zeroext %55, i16 noundef zeroext %70, i16 noundef zeroext %57, i8 noundef zeroext %72, i8 noundef zeroext %74, i8 noundef zeroext %76)
  br label %77

77:                                               ; preds = %50, %32
  %78 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %79 = lshr i32 %78, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  %80 = mul nsw i32 %79, %34
  %81 = sdiv i32 %80, 255
  store i32 %81, ptr %14, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  store i32 255, ptr %15, align 4, !tbaa !21
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %83 = load i32, ptr %82, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  %84 = sub nsw i32 %79, %83
  store i32 %84, ptr %16, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  store i32 0, ptr %17, align 4, !tbaa !21
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %86 = load i32, ptr %85, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %87 = add nsw i32 %83, %79
  store i32 %87, ptr %18, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #5
  %88 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %89 = add nsw i32 %88, -1
  store i32 %89, ptr %19, align 4, !tbaa !21
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %91 = load i32, ptr %90, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  %92 = icmp sgt i32 %91, %86
  br i1 %92, label %93, label %120

93:                                               ; preds = %77
  %94 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %95 = uitofp i32 %94 to double
  %96 = fmul double %95, 6.700000e-02
  %97 = fptosi double %96 to i32
  %98 = trunc i32 %86 to i16
  %99 = trunc i32 %91 to i16
  %100 = trunc i32 %97 to i16
  %101 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %102 = trunc i32 %101 to i8
  %103 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %104 = trunc i32 %103 to i8
  %105 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %106 = trunc i32 %105 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %98, i16 noundef zeroext 0, i16 noundef zeroext %99, i16 noundef zeroext %100, i8 noundef zeroext %102, i8 noundef zeroext %104, i8 noundef zeroext %106)
  %107 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %108 = xor i32 %97, -1
  %109 = add i32 %107, %108
  %110 = trunc i32 %109 to i16
  %111 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %112 = trunc i32 %111 to i16
  %113 = add i16 %112, -1
  %114 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %115 = trunc i32 %114 to i8
  %116 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %117 = trunc i32 %116 to i8
  %118 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %119 = trunc i32 %118 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %98, i16 noundef zeroext %110, i16 noundef zeroext %99, i16 noundef zeroext %113, i8 noundef zeroext %115, i8 noundef zeroext %117, i8 noundef zeroext %119)
  br label %120

120:                                              ; preds = %77, %93, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  br label %121

121:                                              ; preds = %22, %27, %120
  %.1 = phi i1 [ %31, %120 ], [ false, %27 ], [ false, %22 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  br label %122

122:                                              ; preds = %2, %121
  %.2 = phi i1 [ %.1, %121 ], [ false, %2 ]
  ret i1 %.2
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32), ptr) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

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

declare void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @_ZN18SoundCaptureResult14RestoreFullLumER8ColorRgbi(ptr noundef nonnull align 4 dereferenceable(296), ptr noundef nonnull align 1 dereferenceable(3), i32 noundef) local_unnamed_addr #4

declare noundef i32 @_ZN18SoundCaptureResult13getValue3StepEi(ptr noundef nonnull align 4 dereferenceable(296), i32 noundef) local_unnamed_addr #4

declare noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

declare noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #4

declare void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #3 align 2

declare void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #4

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 = { inlinehint 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 #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, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !15, i64 112}
!12 = !{!"_ZTS31Animation4Music_QuatroMultiFast", !13, i64 0, !15, i64 108, !15, i64 112}
!13 = !{!"_ZTS18AnimationBaseMusic", !14, i64 0, !16, i64 16, !19, i64 48}
!14 = !{!"_ZTS13AnimationBase", !15, i64 8, !6, i64 12}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEE", !17, i64 0, !18, i64 24}
!17 = !{!"_ZTSSt14_Function_base", !7, i64 0, !18, i64 16}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTS12MovingTarget", !20, i64 0, !20, i64 3, !20, i64 6, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56}
!20 = !{!"_ZTS8ColorRgb", !7, i64 0, !7, i64 1, !7, i64 2}
!21 = !{!15, !15, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass