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

; 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_QuatroMulti = 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 @_ZN27Animation4Music_QuatroMulti8getImageER5ImageI8ColorRgbE(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 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 = 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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8
  %36 = getelementptr inbounds %class.AnimationBaseMusic, ptr %35, i32 0, i32 2
  %37 = call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr null) #5
  br i1 %37, label %38, label %39

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

39:                                               ; 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
  %40 = getelementptr inbounds %class.AnimationBaseMusic, ptr %35, i32 0, i32 2
  %41 = getelementptr inbounds %class.Animation4Music_QuatroMulti, ptr %35, i32 0, i32 1
  %42 = getelementptr inbounds %class.Animation4Music_QuatroMulti, ptr %35, i32 0, i32 2
  %43 = call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef %35, ptr noundef nonnull align 4 dereferenceable(4) %41, ptr noundef %6, ptr noundef null, ptr noundef null, ptr noundef %42)
  store ptr %43, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = icmp eq ptr %44, null
  br i1 %45, label %49, label %46

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

49:                                               ; preds = %46, %39
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %194

50:                                               ; preds = %46
  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 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %51)
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296) %52, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(3) %9, ptr noundef null, ptr noundef null)
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %193

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

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

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

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

192:                                              ; preds = %152, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %193

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

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

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

; 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 = !{!"_ZTS27Animation4Music_QuatroMulti", !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 @_ZN27Animation4Music_QuatroMulti8getImageER5ImageI8ColorRgbE(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 i32, align 4
  %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 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = tail call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr null) #5
  br i1 %20, label %121, label %21

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

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

29:                                               ; preds = %26
  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 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %30 = call noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296) %24, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(3) %4, ptr noundef null, ptr noundef null)
  br i1 %30, label %31, label %119

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

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

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

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

119:                                              ; preds = %76, %92, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  br label %120

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

121:                                              ; preds = %2, %120
  %.2 = phi i1 [ %.1, %120 ], [ 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 = !{!"_ZTS27Animation4Music_QuatroMulti", !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