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

; 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_TestEq = 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 @_ZN22Animation4Music_TestEq8getImageER5ImageI8ColorRgbE(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 [8 x i8], align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.ColorRgb, align 1
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca i16, align 2
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  %17 = getelementptr inbounds %class.AnimationBaseMusic, ptr %16, i32 0, i32 2
  %18 = call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr null) #5
  br i1 %18, label %19, label %20

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

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %21 = getelementptr inbounds %class.AnimationBaseMusic, ptr %16, i32 0, i32 2
  %22 = getelementptr inbounds %class.Animation4Music_TestEq, ptr %16, i32 0, i32 1
  %23 = getelementptr inbounds %class.Animation4Music_TestEq, ptr %16, i32 0, i32 2
  %24 = call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef %16, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %23)
  store ptr %24, ptr %7, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %20
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %85

28:                                               ; preds = %20
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  call void @_ZN18SoundCaptureResult12GetBufResultEPhm(ptr noundef nonnull align 4 dereferenceable(296) %29, ptr noundef %30, i64 noundef 8)
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %31)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %32)
  %34 = udiv i32 %33, 8
  store i32 %34, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %81, %28
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = icmp slt i32 %36, 8
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %84

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 3, ptr %11) #5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = trunc i32 %41 to i8
  %43 = call i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296) %40, i8 noundef zeroext %42)
  store i24 %43, ptr %11, align 1
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %44)
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = mul i32 %45, %46
  %48 = udiv i32 %47, 8
  %49 = trunc i32 %48 to i16
  store i16 %49, ptr %12, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #5
  %50 = load i16, ptr %12, align 2, !tbaa !11
  %51 = zext i16 %50 to i32
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = add nsw i32 %51, %52
  %54 = trunc i32 %53 to i16
  store i16 %54, ptr %13, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #5
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %55)
  %57 = sub i32 %56, 1
  %58 = trunc i32 %57 to i16
  store i16 %58, ptr %14, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  %59 = load i16, ptr %14, align 2, !tbaa !11
  %60 = zext i16 %59 to i32
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !13
  %65 = zext i8 %64 to i32
  %66 = sub nsw i32 255, %65
  %67 = mul nsw i32 %60, %66
  %68 = sdiv i32 %67, 255
  %69 = trunc i32 %68 to i16
  store i16 %69, ptr %15, align 2, !tbaa !11
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load i16, ptr %12, align 2, !tbaa !11
  %72 = load i16, ptr %14, align 2, !tbaa !11
  %73 = load i16, ptr %13, align 2, !tbaa !11
  %74 = load i16, ptr %15, align 2, !tbaa !11
  %75 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %11)
  %76 = trunc i32 %75 to i8
  %77 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %11)
  %78 = trunc i32 %77 to i8
  %79 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %11)
  %80 = trunc i32 %79 to i8
  call void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %70, i16 noundef zeroext %71, i16 noundef zeroext %72, i16 noundef zeroext %73, i16 noundef zeroext %74, i8 noundef zeroext %76, i8 noundef zeroext %78, i8 noundef zeroext %80)
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 3, ptr %11) #5
  br label %81

81:                                               ; preds = %39
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %10, align 4, !tbaa !9
  br label %35, !llvm.loop !14

84:                                               ; preds = %38
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %85

85:                                               ; preds = %84, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %86

86:                                               ; preds = %85, %19
  %87 = load i1, ptr %3, align 1
  ret i1 %87
}

; 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

declare void @_ZN18SoundCaptureResult12GetBufResultEPhm(ptr noundef nonnull align 4 dereferenceable(296), ptr noundef, i64 noundef) #3

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

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

declare i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296), i8 noundef zeroext) #3

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

declare void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(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) #3

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { "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 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"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"

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN22Animation4Music_TestEq8getImageER5ImageI8ColorRgbE(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull align 8 dereferenceable(20) %1) unnamed_addr #0 align 2 {
  %3 = alloca [8 x i8], align 1
  %4 = alloca %struct.ColorRgb, align 4
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = tail call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr null) #5
  br i1 %6, label %198, label %7

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 108
  %9 = getelementptr inbounds i8, ptr %0, i64 112
  %10 = tail call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %0, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull %9)
  %11 = icmp ne ptr %10, null
  br i1 %11, label %.loopexit.loopexit, label %.loopexit

.loopexit.loopexit:                               ; preds = %7
  call void @_ZN18SoundCaptureResult12GetBufResultEPhm(ptr noundef nonnull align 4 dereferenceable(296) %10, ptr noundef nonnull %3, i64 noundef 8)
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %12 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %13 = lshr i32 %12, 3
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #5
  %14 = call i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296) %10, i8 noundef zeroext 0)
  store i24 %14, ptr %4, align 4
  %15 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %16 = trunc i32 %13 to i16
  %17 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %18 = trunc i32 %17 to i16
  %19 = add i16 %18, -1
  %20 = zext i16 %19 to i32
  %21 = load i8, ptr %3, align 1, !tbaa !5
  %22 = xor i8 %21, -1
  %23 = zext i8 %22 to i32
  %24 = mul nuw nsw i32 %20, %23
  %25 = udiv i32 %24, 255
  %26 = trunc nuw i32 %25 to i16
  %27 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %28 = trunc i32 %27 to i8
  %29 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %30 = trunc i32 %29 to i8
  %31 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %32 = trunc i32 %31 to i8
  call void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext 0, i16 noundef zeroext %19, i16 noundef zeroext %16, i16 noundef zeroext %26, i8 noundef zeroext %28, i8 noundef zeroext %30, i8 noundef zeroext %32)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #5
  %33 = call i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296) %10, i8 noundef zeroext 1)
  store i24 %33, ptr %4, align 4
  %34 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %35 = lshr i32 %34, 3
  %36 = trunc i32 %35 to i16
  %37 = add nuw nsw i32 %35, %13
  %38 = trunc i32 %37 to i16
  %39 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %40 = trunc i32 %39 to i16
  %41 = add i16 %40, -1
  %42 = zext i16 %41 to i32
  %43 = getelementptr inbounds i8, ptr %3, i64 1
  %44 = load i8, ptr %43, align 1, !tbaa !5
  %45 = xor i8 %44, -1
  %46 = zext i8 %45 to i32
  %47 = mul nuw nsw i32 %42, %46
  %48 = udiv i32 %47, 255
  %49 = trunc nuw i32 %48 to i16
  %50 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %51 = trunc i32 %50 to i8
  %52 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %53 = trunc i32 %52 to i8
  %54 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %55 = trunc i32 %54 to i8
  call void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %36, i16 noundef zeroext %41, i16 noundef zeroext %38, i16 noundef zeroext %49, i8 noundef zeroext %51, i8 noundef zeroext %53, i8 noundef zeroext %55)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #5
  %56 = call i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296) %10, i8 noundef zeroext 2)
  store i24 %56, ptr %4, align 4
  %57 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %58 = lshr i32 %57, 2
  %59 = trunc i32 %58 to i16
  %60 = add nuw nsw i32 %58, %13
  %61 = trunc i32 %60 to i16
  %62 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %63 = trunc i32 %62 to i16
  %64 = add i16 %63, -1
  %65 = zext i16 %64 to i32
  %66 = getelementptr inbounds i8, ptr %3, i64 2
  %67 = load i8, ptr %66, align 1, !tbaa !5
  %68 = xor i8 %67, -1
  %69 = zext i8 %68 to i32
  %70 = mul nuw nsw i32 %65, %69
  %71 = udiv i32 %70, 255
  %72 = trunc nuw i32 %71 to i16
  %73 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %74 = trunc i32 %73 to i8
  %75 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %76 = trunc i32 %75 to i8
  %77 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %78 = trunc i32 %77 to i8
  call void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %59, i16 noundef zeroext %64, i16 noundef zeroext %61, i16 noundef zeroext %72, i8 noundef zeroext %74, i8 noundef zeroext %76, i8 noundef zeroext %78)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #5
  %79 = call i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296) %10, i8 noundef zeroext 3)
  store i24 %79, ptr %4, align 4
  %80 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %81 = mul i32 %80, 3
  %82 = lshr i32 %81, 3
  %83 = trunc i32 %82 to i16
  %84 = add nuw nsw i32 %82, %13
  %85 = trunc i32 %84 to i16
  %86 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %87 = trunc i32 %86 to i16
  %88 = add i16 %87, -1
  %89 = zext i16 %88 to i32
  %90 = getelementptr inbounds i8, ptr %3, i64 3
  %91 = load i8, ptr %90, align 1, !tbaa !5
  %92 = xor i8 %91, -1
  %93 = zext i8 %92 to i32
  %94 = mul nuw nsw i32 %89, %93
  %95 = udiv i32 %94, 255
  %96 = trunc nuw i32 %95 to i16
  %97 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %98 = trunc i32 %97 to i8
  %99 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %100 = trunc i32 %99 to i8
  %101 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %102 = trunc i32 %101 to i8
  call void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %83, i16 noundef zeroext %88, i16 noundef zeroext %85, i16 noundef zeroext %96, i8 noundef zeroext %98, i8 noundef zeroext %100, i8 noundef zeroext %102)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #5
  %103 = call i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296) %10, i8 noundef zeroext 4)
  store i24 %103, ptr %4, align 4
  %104 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %105 = lshr i32 %104, 1
  %106 = trunc i32 %105 to i16
  %107 = add nuw i32 %105, %13
  %108 = trunc i32 %107 to i16
  %109 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %110 = trunc i32 %109 to i16
  %111 = add i16 %110, -1
  %112 = zext i16 %111 to i32
  %113 = getelementptr inbounds i8, ptr %3, i64 4
  %114 = load i8, ptr %113, align 1, !tbaa !5
  %115 = xor i8 %114, -1
  %116 = zext i8 %115 to i32
  %117 = mul nuw nsw i32 %112, %116
  %118 = udiv i32 %117, 255
  %119 = trunc nuw i32 %118 to i16
  %120 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %121 = trunc i32 %120 to i8
  %122 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %123 = trunc i32 %122 to i8
  %124 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %125 = trunc i32 %124 to i8
  call void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %106, i16 noundef zeroext %111, i16 noundef zeroext %108, i16 noundef zeroext %119, i8 noundef zeroext %121, i8 noundef zeroext %123, i8 noundef zeroext %125)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #5
  %126 = call i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296) %10, i8 noundef zeroext 5)
  store i24 %126, ptr %4, align 4
  %127 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %128 = mul i32 %127, 5
  %129 = lshr i32 %128, 3
  %130 = trunc i32 %129 to i16
  %131 = add nuw nsw i32 %129, %13
  %132 = trunc i32 %131 to i16
  %133 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %134 = trunc i32 %133 to i16
  %135 = add i16 %134, -1
  %136 = zext i16 %135 to i32
  %137 = getelementptr inbounds i8, ptr %3, i64 5
  %138 = load i8, ptr %137, align 1, !tbaa !5
  %139 = xor i8 %138, -1
  %140 = zext i8 %139 to i32
  %141 = mul nuw nsw i32 %136, %140
  %142 = udiv i32 %141, 255
  %143 = trunc nuw i32 %142 to i16
  %144 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %145 = trunc i32 %144 to i8
  %146 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %147 = trunc i32 %146 to i8
  %148 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %149 = trunc i32 %148 to i8
  call void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %130, i16 noundef zeroext %135, i16 noundef zeroext %132, i16 noundef zeroext %143, i8 noundef zeroext %145, i8 noundef zeroext %147, i8 noundef zeroext %149)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #5
  %150 = call i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296) %10, i8 noundef zeroext 6)
  store i24 %150, ptr %4, align 4
  %151 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %152 = mul i32 %151, 6
  %153 = lshr i32 %152, 3
  %154 = trunc i32 %153 to i16
  %155 = add nuw nsw i32 %153, %13
  %156 = trunc i32 %155 to i16
  %157 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %158 = trunc i32 %157 to i16
  %159 = add i16 %158, -1
  %160 = zext i16 %159 to i32
  %161 = getelementptr inbounds i8, ptr %3, i64 6
  %162 = load i8, ptr %161, align 1, !tbaa !5
  %163 = xor i8 %162, -1
  %164 = zext i8 %163 to i32
  %165 = mul nuw nsw i32 %160, %164
  %166 = udiv i32 %165, 255
  %167 = trunc nuw i32 %166 to i16
  %168 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %169 = trunc i32 %168 to i8
  %170 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %171 = trunc i32 %170 to i8
  %172 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %173 = trunc i32 %172 to i8
  call void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %154, i16 noundef zeroext %159, i16 noundef zeroext %156, i16 noundef zeroext %167, i8 noundef zeroext %169, i8 noundef zeroext %171, i8 noundef zeroext %173)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #5
  %174 = call i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296) %10, i8 noundef zeroext 7)
  store i24 %174, ptr %4, align 4
  %175 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %176 = mul i32 %175, 7
  %177 = lshr i32 %176, 3
  %178 = trunc i32 %177 to i16
  %179 = add nuw nsw i32 %177, %13
  %180 = trunc i32 %179 to i16
  %181 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %182 = trunc i32 %181 to i16
  %183 = add i16 %182, -1
  %184 = zext i16 %183 to i32
  %185 = getelementptr inbounds i8, ptr %3, i64 7
  %186 = load i8, ptr %185, align 1, !tbaa !5
  %187 = xor i8 %186, -1
  %188 = zext i8 %187 to i32
  %189 = mul nuw nsw i32 %184, %188
  %190 = udiv i32 %189, 255
  %191 = trunc nuw i32 %190 to i16
  %192 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %193 = trunc i32 %192 to i8
  %194 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %195 = trunc i32 %194 to i8
  %196 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %197 = trunc i32 %196 to i8
  call void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %178, i16 noundef zeroext %183, i16 noundef zeroext %180, i16 noundef zeroext %191, i8 noundef zeroext %193, i8 noundef zeroext %195, i8 noundef zeroext %197)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %198

198:                                              ; preds = %2, %.loopexit
  %.1 = phi i1 [ %11, %.loopexit ], [ false, %2 ]
  ret i1 %.1
}

; 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

declare void @_ZN18SoundCaptureResult12GetBufResultEPhm(ptr noundef nonnull align 4 dereferenceable(296), ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

declare i24 @_ZNK18SoundCaptureResult13getRangeColorEh(ptr noundef nonnull align 4 dereferenceable(296), i8 noundef zeroext) local_unnamed_addr #3

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

declare void @_ZN5ImageI8ColorRgbE7fastBoxEtttthhh(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 #3

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { "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 = { 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 #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass