; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/audiosource/vizsn (soloud_vizsn)

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

%"class.SoLoud::VizsnInstance" = type { %"class.SoLoud::AudioSourceInstance", ptr, %"struct.SoLoud::VizsnBank", %"struct.SoLoud::VizsnBank", %"struct.SoLoud::VizsnBank", i32, i32, i32, [1024 x i32], i32, i32, float, ptr, [2048 x float], i32, i32, i32, i32, i32, float }
%"class.SoLoud::AudioSourceInstance" = type { ptr, i32, i32, i32, float, [8 x float], float, float, float, float, i32, float, float, double, double, %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", i32, [8 x float], i32, i32, [8 x ptr], [2 x ptr], i32, i32, i32, double }
%"class.SoLoud::Fader" = type { float, float, float, double, double, double, float, i32 }
%"struct.SoLoud::VizsnBank" = type { [10 x %"struct.SoLoud::VizsnResonator"], float, float, float, float, float, float }
%"struct.SoLoud::VizsnResonator" = type { float, float, float, float, float }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [123 x i8], align 1
@__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj = external hidden unnamed_addr constant [90 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6SoLoud13VizsnInstance8getAudioEPfjj(ptr noundef nonnull align 8 dereferenceable(13520) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %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
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %14 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %15 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %16 = load i32, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 15
  %18 = load i32, ptr %17, align 4, !tbaa !18
  %19 = icmp ugt i32 %16, %18
  br i1 %19, label %20, label %51

20:                                               ; preds = %4
  br label %21

21:                                               ; preds = %46, %20
  %22 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 15
  %25 = load i32, ptr %24, align 4, !tbaa !18
  %26 = icmp ugt i32 %23, %25
  br i1 %26, label %27, label %31

27:                                               ; preds = %21
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = icmp ult i32 %28, %29
  br label %31

31:                                               ; preds = %27, %21
  %32 = phi i1 [ false, %21 ], [ %30, %27 ]
  br i1 %32, label %33, label %50

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 13
  %35 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 15
  %36 = load i32, ptr %35, align 4, !tbaa !18
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds [2048 x float], ptr %34, i64 0, i64 %37
  %39 = load float, ptr %38, align 4, !tbaa !19
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds float, ptr %40, i64 %42
  store float %39, ptr %43, align 4, !tbaa !19
  %44 = load i32, ptr %10, align 4, !tbaa !9
  %45 = add i32 %44, 1
  store i32 %45, ptr %10, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %33
  %47 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 15
  %48 = load i32, ptr %47, align 4, !tbaa !18
  %49 = add i32 %48, 1
  store i32 %49, ptr %47, align 4, !tbaa !18
  br label %21, !llvm.loop !20

50:                                               ; preds = %31
  br label %51

51:                                               ; preds = %50, %4
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = icmp eq i32 %52, %53
  br i1 %54, label %55, label %57

55:                                               ; preds = %51
  %56 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %56, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %265

57:                                               ; preds = %51
  %58 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 15
  store i32 0, ptr %58, align 4, !tbaa !18
  %59 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  store i32 0, ptr %59, align 8, !tbaa !11
  br label %60

60:                                               ; preds = %235, %57
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %63 = load i32, ptr %62, align 8, !tbaa !11
  %64 = add i32 %61, %63
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = icmp ult i32 %64, %65
  br i1 %66, label %67, label %241

67:                                               ; preds = %60
  %68 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 2
  %69 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %70 = load ptr, ptr %69, align 8, !tbaa !22
  %71 = load i8, ptr %70, align 1, !tbaa !23
  %72 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 11
  %73 = load float, ptr %72, align 4, !tbaa !24
  call void @_ZN6SoLoud13VizsnInstance8setphoneEPNS_9VizsnBankEcf(ptr noundef nonnull align 8 dereferenceable(13520) %14, ptr noundef %68, i8 noundef signext %71, float noundef %73)
  %74 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = load i8, ptr %75, align 1, !tbaa !23
  %77 = sext i8 %76 to i32
  %78 = icmp eq i32 %77, -1
  br i1 %78, label %79, label %95

79:                                               ; preds = %67
  %80 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 13
  %81 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %82 = load i32, ptr %81, align 8, !tbaa !11
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds [2048 x float], ptr %80, i64 0, i64 %83
  store float 0.000000e+00, ptr %84, align 4, !tbaa !19
  %85 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %86 = load i32, ptr %85, align 8, !tbaa !11
  %87 = add i32 %86, 1
  store i32 %87, ptr %85, align 8, !tbaa !11
  %88 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %89 = load i32, ptr %88, align 8, !tbaa !11
  %90 = icmp ult i32 %89, 2048
  br i1 %90, label %91, label %92

91:                                               ; preds = %79
  br label %94

92:                                               ; preds = %79
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 257, ptr noundef @__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj) #6
  unreachable

93:                                               ; No predecessors!
  br label %94

94:                                               ; preds = %93, %91
  br label %241

95:                                               ; preds = %67
  %96 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 3
  %97 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %98 = load ptr, ptr %97, align 8, !tbaa !22
  %99 = getelementptr inbounds i8, ptr %98, i64 1
  %100 = load i8, ptr %99, align 1, !tbaa !23
  %101 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 11
  %102 = load float, ptr %101, align 4, !tbaa !24
  call void @_ZN6SoLoud13VizsnInstance8setphoneEPNS_9VizsnBankEcf(ptr noundef nonnull align 8 dereferenceable(13520) %14, ptr noundef %96, i8 noundef signext %100, float noundef %102)
  call void @_ZN6SoLoud13VizsnInstance12slidePrepareEi(ptr noundef nonnull align 8 dereferenceable(13520) %14, i32 noundef 50)
  %103 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 5
  store i32 0, ptr %103, align 8, !tbaa !25
  %104 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %105 = load ptr, ptr %104, align 8, !tbaa !22
  %106 = load i8, ptr %105, align 1, !tbaa !23
  %107 = sext i8 %106 to i32
  %108 = icmp sge i32 %107, 14
  br i1 %108, label %109, label %115

109:                                              ; preds = %95
  %110 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %111 = load ptr, ptr %110, align 8, !tbaa !22
  %112 = load i8, ptr %111, align 1, !tbaa !23
  %113 = sext i8 %112 to i32
  %114 = icmp sle i32 %113, 16
  br i1 %114, label %121, label %115

115:                                              ; preds = %109, %95
  %116 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %117 = load ptr, ptr %116, align 8, !tbaa !22
  %118 = load i8, ptr %117, align 1, !tbaa !23
  %119 = sext i8 %118 to i32
  %120 = icmp eq i32 %119, -2
  br label %121

121:                                              ; preds = %115, %109
  %122 = phi i1 [ true, %109 ], [ %120, %115 ]
  %123 = zext i1 %122 to i64
  %124 = select i1 %122, i32 100, i32 300
  store i32 %124, ptr %11, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %145, %121
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %148

128:                                              ; preds = %125
  %129 = call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %14)
  %130 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 13
  %131 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %132 = load i32, ptr %131, align 8, !tbaa !11
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds [2048 x float], ptr %130, i64 0, i64 %133
  store float %129, ptr %134, align 4, !tbaa !19
  %135 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %136 = load i32, ptr %135, align 8, !tbaa !11
  %137 = add i32 %136, 1
  store i32 %137, ptr %135, align 8, !tbaa !11
  %138 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %139 = load i32, ptr %138, align 8, !tbaa !11
  %140 = icmp ult i32 %139, 2048
  br i1 %140, label %141, label %142

141:                                              ; preds = %128
  br label %144

142:                                              ; preds = %128
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 271, ptr noundef @__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj) #6
  unreachable

143:                                              ; No predecessors!
  br label %144

144:                                              ; preds = %143, %141
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %11, align 4, !tbaa !9
  %147 = add nsw i32 %146, -1
  store i32 %147, ptr %11, align 4, !tbaa !9
  br label %125, !llvm.loop !26

148:                                              ; preds = %125
  %149 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %150 = load ptr, ptr %149, align 8, !tbaa !22
  %151 = getelementptr inbounds i8, ptr %150, i64 1
  %152 = load i8, ptr %151, align 1, !tbaa !23
  %153 = sext i8 %152 to i32
  %154 = icmp sge i32 %153, 14
  br i1 %154, label %155, label %162

155:                                              ; preds = %148
  %156 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %157 = load ptr, ptr %156, align 8, !tbaa !22
  %158 = getelementptr inbounds i8, ptr %157, i64 1
  %159 = load i8, ptr %158, align 1, !tbaa !23
  %160 = sext i8 %159 to i32
  %161 = icmp sle i32 %160, 16
  br i1 %161, label %202, label %162

162:                                              ; preds = %155, %148
  %163 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %164 = load ptr, ptr %163, align 8, !tbaa !22
  %165 = getelementptr inbounds i8, ptr %164, i64 1
  %166 = load i8, ptr %165, align 1, !tbaa !23
  %167 = sext i8 %166 to i32
  %168 = icmp eq i32 %167, -2
  br i1 %168, label %202, label %169

169:                                              ; preds = %162
  store i32 50, ptr %11, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %198, %169
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %201

173:                                              ; preds = %170
  store i32 10, ptr %12, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %194, %173
  %175 = load i32, ptr %12, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %197

177:                                              ; preds = %174
  %178 = call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %14)
  %179 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 13
  %180 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %181 = load i32, ptr %180, align 8, !tbaa !11
  %182 = zext i32 %181 to i64
  %183 = getelementptr inbounds [2048 x float], ptr %179, i64 0, i64 %182
  store float %178, ptr %183, align 4, !tbaa !19
  %184 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %185 = load i32, ptr %184, align 8, !tbaa !11
  %186 = add i32 %185, 1
  store i32 %186, ptr %184, align 8, !tbaa !11
  %187 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %188 = load i32, ptr %187, align 8, !tbaa !11
  %189 = icmp ult i32 %188, 2048
  br i1 %189, label %190, label %191

190:                                              ; preds = %177
  br label %193

191:                                              ; preds = %177
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 282, ptr noundef @__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj) #6
  unreachable

192:                                              ; No predecessors!
  br label %193

193:                                              ; preds = %192, %190
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = add nsw i32 %195, -1
  store i32 %196, ptr %12, align 4, !tbaa !9
  br label %174, !llvm.loop !27

197:                                              ; preds = %174
  call void @_ZN6SoLoud13VizsnInstance9slideTickEv(ptr noundef nonnull align 8 dereferenceable(13520) %14)
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = add nsw i32 %199, -1
  store i32 %200, ptr %11, align 4, !tbaa !9
  br label %170, !llvm.loop !28

201:                                              ; preds = %170
  br label %235

202:                                              ; preds = %162, %155
  store i32 50, ptr %11, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %231, %202
  %204 = load i32, ptr %11, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %234

206:                                              ; preds = %203
  store i32 3, ptr %12, align 4, !tbaa !9
  br label %207

207:                                              ; preds = %227, %206
  %208 = load i32, ptr %12, align 4, !tbaa !9
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %230

210:                                              ; preds = %207
  %211 = call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %14)
  %212 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 13
  %213 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %214 = load i32, ptr %213, align 8, !tbaa !11
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds [2048 x float], ptr %212, i64 0, i64 %215
  store float %211, ptr %216, align 4, !tbaa !19
  %217 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %218 = load i32, ptr %217, align 8, !tbaa !11
  %219 = add i32 %218, 1
  store i32 %219, ptr %217, align 8, !tbaa !11
  %220 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 14
  %221 = load i32, ptr %220, align 8, !tbaa !11
  %222 = icmp ult i32 %221, 2048
  br i1 %222, label %223, label %224

223:                                              ; preds = %210
  br label %226

224:                                              ; preds = %210
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 295, ptr noundef @__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj) #6
  unreachable

225:                                              ; No predecessors!
  br label %226

226:                                              ; preds = %225, %223
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %12, align 4, !tbaa !9
  %229 = add nsw i32 %228, -1
  store i32 %229, ptr %12, align 4, !tbaa !9
  br label %207, !llvm.loop !29

230:                                              ; preds = %207
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %11, align 4, !tbaa !9
  %233 = add nsw i32 %232, -1
  store i32 %233, ptr %11, align 4, !tbaa !9
  br label %203, !llvm.loop !30

234:                                              ; preds = %203
  br label %235

235:                                              ; preds = %234, %201
  %236 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 12
  %237 = load ptr, ptr %236, align 8, !tbaa !22
  %238 = getelementptr inbounds i8, ptr %237, i32 1
  store ptr %238, ptr %236, align 8, !tbaa !22
  %239 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 2
  %240 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %239, ptr align 8 %240, i64 224, i1 false)
  br label %60, !llvm.loop !31

241:                                              ; preds = %94, %60
  br label %242

242:                                              ; preds = %260, %241
  %243 = load i32, ptr %10, align 4, !tbaa !9
  %244 = load i32, ptr %8, align 4, !tbaa !9
  %245 = icmp ult i32 %243, %244
  br i1 %245, label %246, label %263

246:                                              ; preds = %242
  %247 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 13
  %248 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 15
  %249 = load i32, ptr %248, align 4, !tbaa !18
  %250 = zext i32 %249 to i64
  %251 = getelementptr inbounds [2048 x float], ptr %247, i64 0, i64 %250
  %252 = load float, ptr %251, align 4, !tbaa !19
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = load i32, ptr %10, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = getelementptr inbounds float, ptr %253, i64 %255
  store float %252, ptr %256, align 4, !tbaa !19
  %257 = getelementptr inbounds %"class.SoLoud::VizsnInstance", ptr %14, i32 0, i32 15
  %258 = load i32, ptr %257, align 4, !tbaa !18
  %259 = add i32 %258, 1
  store i32 %259, ptr %257, align 4, !tbaa !18
  br label %260

260:                                              ; preds = %246
  %261 = load i32, ptr %10, align 4, !tbaa !9
  %262 = add i32 %261, 1
  store i32 %262, ptr %10, align 4, !tbaa !9
  br label %242, !llvm.loop !32

263:                                              ; preds = %242
  %264 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %264, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %265

265:                                              ; preds = %263, %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 4, ptr %10) #5
  %266 = load i32, ptr %5, align 4
  ret i32 %266
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6SoLoud13VizsnInstance8setphoneEPNS_9VizsnBankEcf(ptr noundef nonnull align 8 dereferenceable(13520), ptr noundef, i8 noundef signext, float noundef) #2 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6SoLoud13VizsnInstance12slidePrepareEi(ptr noundef nonnull align 8 dereferenceable(13520), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520)) #1 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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, !10, i64 13496}
!12 = !{!"_ZTSN6SoLoud13VizsnInstanceE", !13, i64 0, !6, i64 496, !17, i64 504, !17, i64 728, !17, i64 952, !10, i64 1176, !10, i64 1180, !10, i64 1184, !7, i64 1188, !10, i64 5284, !10, i64 5288, !14, i64 5292, !6, i64 5296, !7, i64 5304, !10, i64 13496, !10, i64 13500, !10, i64 13504, !10, i64 13508, !10, i64 13512, !14, i64 13516}
!13 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !10, i64 8, !10, i64 12, !10, i64 16, !14, i64 20, !7, i64 24, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !10, i64 72, !14, i64 76, !14, i64 80, !15, i64 88, !15, i64 96, !16, i64 104, !16, i64 152, !16, i64 200, !16, i64 248, !16, i64 296, !10, i64 344, !7, i64 348, !10, i64 380, !10, i64 384, !7, i64 392, !7, i64 456, !10, i64 472, !10, i64 476, !10, i64 480, !15, i64 488}
!14 = !{!"float", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN6SoLoud5FaderE", !14, i64 0, !14, i64 4, !14, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !14, i64 40, !10, i64 44}
!17 = !{!"_ZTSN6SoLoud9VizsnBankE", !7, i64 0, !14, i64 200, !14, i64 204, !14, i64 208, !14, i64 212, !14, i64 216, !14, i64 220}
!18 = !{!12, !10, i64 13500}
!19 = !{!14, !14, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !6, i64 5296}
!23 = !{!7, !7, i64 0}
!24 = !{!12, !14, i64 5292}
!25 = !{!12, !10, i64 1176}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}


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

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [123 x i8], align 1
@__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj = external hidden unnamed_addr constant [90 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6SoLoud13VizsnInstance8getAudioEPfjj(ptr noundef nonnull align 8 dereferenceable(13520) %0, ptr nocapture noundef writeonly %1, i32 noundef returned %2, i32 noundef %3) unnamed_addr #0 align 2 {
  %5 = ptrtoint ptr %0 to i64
  %6 = ptrtoint ptr %1 to i64
  %7 = ptrtoint ptr %0 to i64
  %8 = ptrtoint ptr %1 to i64
  %9 = getelementptr inbounds i8, ptr %0, i64 13496
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 13500
  %12 = load i32, ptr %11, align 4, !tbaa !16
  %13 = icmp ugt i32 %10, %12
  br i1 %13, label %.preheader51, label %.loopexit52

.preheader51:                                     ; preds = %4
  %.not76 = icmp eq i32 %2, 0
  br i1 %.not76, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader51
  %14 = getelementptr inbounds i8, ptr %0, i64 5304
  %15 = zext i32 %2 to i64
  %16 = zext i32 %12 to i64
  %17 = zext i32 %10 to i64
  %18 = xor i64 %16, -1
  %19 = add nsw i64 %18, %17
  %20 = add nsw i64 %15, -1
  %umin = tail call i64 @llvm.umin.i64(i64 %19, i64 %20)
  %21 = add nsw i64 %umin, 1
  %min.iters.check = icmp ult i64 %21, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %22 = add i64 %8, -5304
  %23 = shl nuw nsw i64 %16, 2
  %24 = add i64 %23, %7
  %25 = sub i64 %22, %24
  %diff.check = icmp ult i64 %25, 32
  br i1 %diff.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %21, -8
  %ind.end = add i64 %n.vec, %16
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %index, %16
  %26 = getelementptr inbounds [2048 x float], ptr %14, i64 0, i64 %offset.idx
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %wide.load = load <4 x float>, ptr %26, align 4, !tbaa !17
  %wide.load88 = load <4 x float>, ptr %27, align 4, !tbaa !17
  %28 = getelementptr inbounds float, ptr %1, i64 %index
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  store <4 x float> %wide.load, ptr %28, align 4, !tbaa !17
  store <4 x float> %wide.load88, ptr %29, align 4, !tbaa !17
  %index.next = add nuw i64 %index, 8
  %30 = icmp eq i64 %index.next, %n.vec
  br i1 %30, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %21, %n.vec
  br i1 %cmp.n, label %..loopexit52_crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv67.ph = phi i64 [ %16, %vector.memcheck ], [ %16, %.lr.ph ], [ %ind.end, %middle.block ]
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %scalar.ph ], [ %indvars.iv67.ph, %scalar.ph.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %31 = getelementptr inbounds [2048 x float], ptr %14, i64 0, i64 %indvars.iv67
  %32 = load float, ptr %31, align 4, !tbaa !17
  %33 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  store float %32, ptr %33, align 4, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %34 = icmp ult i64 %indvars.iv.next68, %17
  %35 = icmp ult i64 %indvars.iv.next, %15
  %36 = select i1 %34, i1 %35, i1 false
  br i1 %36, label %scalar.ph, label %..loopexit52_crit_edge, !llvm.loop !22

..loopexit52_crit_edge:                           ; preds = %scalar.ph, %middle.block
  %indvars.iv.next.lcssa = phi i64 [ %n.vec, %middle.block ], [ %indvars.iv.next, %scalar.ph ]
  %indvars.iv.next68.lcssa = phi i64 [ %ind.end, %middle.block ], [ %indvars.iv.next68, %scalar.ph ]
  %37 = trunc nuw i64 %indvars.iv.next68.lcssa to i32
  %38 = trunc nuw i64 %indvars.iv.next.lcssa to i32
  store i32 %37, ptr %11, align 4, !tbaa !16
  br label %.loopexit52

.loopexit52:                                      ; preds = %..loopexit52_crit_edge, %4
  %.130 = phi i32 [ 0, %4 ], [ %38, %..loopexit52_crit_edge ]
  %39 = icmp eq i32 %.130, %2
  br i1 %39, label %.loopexit, label %40

40:                                               ; preds = %.loopexit52
  store i32 0, ptr %11, align 4, !tbaa !16
  store i32 0, ptr %9, align 8, !tbaa !5
  %41 = icmp ult i32 %.130, %2
  br i1 %41, label %.lr.ph59, label %.loopexit

.lr.ph59:                                         ; preds = %40
  %42 = getelementptr inbounds i8, ptr %0, i64 504
  %43 = getelementptr inbounds i8, ptr %0, i64 5296
  %44 = getelementptr inbounds i8, ptr %0, i64 5292
  %45 = getelementptr inbounds i8, ptr %0, i64 728
  %46 = getelementptr inbounds i8, ptr %0, i64 1176
  %47 = getelementptr inbounds i8, ptr %0, i64 5304
  %.pre = load ptr, ptr %43, align 8, !tbaa !23
  br label %48

48:                                               ; preds = %.lr.ph59, %.loopexit47
  %49 = phi ptr [ %.pre, %.lr.ph59 ], [ %182, %.loopexit47 ]
  %50 = load i8, ptr %49, align 1, !tbaa !24
  %51 = load float, ptr %44, align 4, !tbaa !25
  tail call void @_ZN6SoLoud13VizsnInstance8setphoneEPNS_9VizsnBankEcf(ptr noundef nonnull align 8 dereferenceable(13520) %0, ptr noundef nonnull %42, i8 noundef signext %50, float noundef %51)
  %52 = load ptr, ptr %43, align 8, !tbaa !23
  %53 = load i8, ptr %52, align 1, !tbaa !24
  %54 = icmp eq i8 %53, -1
  br i1 %54, label %55, label %62

55:                                               ; preds = %48
  %56 = load i32, ptr %9, align 8, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %57
  store float 0.000000e+00, ptr %58, align 4, !tbaa !17
  %59 = add i32 %56, 1
  store i32 %59, ptr %9, align 8, !tbaa !5
  %60 = icmp ult i32 %59, 2048
  br i1 %60, label %.loopexit50, label %61

61:                                               ; preds = %55
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 257, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj) #5
  unreachable

62:                                               ; preds = %48
  %63 = getelementptr inbounds i8, ptr %52, i64 1
  %64 = load i8, ptr %63, align 1, !tbaa !24
  %65 = load float, ptr %44, align 4, !tbaa !25
  tail call void @_ZN6SoLoud13VizsnInstance8setphoneEPNS_9VizsnBankEcf(ptr noundef nonnull align 8 dereferenceable(13520) %0, ptr noundef nonnull %45, i8 noundef signext %64, float noundef %65)
  tail call void @_ZN6SoLoud13VizsnInstance12slidePrepareEi(ptr noundef nonnull align 8 dereferenceable(13520) %0, i32 noundef 50)
  store i32 0, ptr %46, align 8, !tbaa !26
  %66 = load ptr, ptr %43, align 8, !tbaa !23
  %67 = load i8, ptr %66, align 1, !tbaa !24
  %.fr = freeze i8 %67
  %68 = add i8 %.fr, -14
  %or.cond = icmp ult i8 %68, 3
  %69 = icmp eq i8 %.fr, -2
  %or.cond44 = or i1 %69, %or.cond
  %70 = select i1 %or.cond44, i32 100, i32 300
  br label %73

71:                                               ; preds = %73
  %72 = add nsw i32 %.02754, -1
  %.not = icmp eq i32 %72, 0
  br i1 %.not, label %81, label %73, !llvm.loop !27

73:                                               ; preds = %62, %71
  %.02754 = phi i32 [ %70, %62 ], [ %72, %71 ]
  %74 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %75 = load i32, ptr %9, align 8, !tbaa !5
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %76
  store float %74, ptr %77, align 4, !tbaa !17
  %78 = add i32 %75, 1
  store i32 %78, ptr %9, align 8, !tbaa !5
  %79 = icmp ult i32 %78, 2048
  br i1 %79, label %71, label %80

80:                                               ; preds = %73
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 271, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj) #5
  unreachable

81:                                               ; preds = %71
  %82 = load ptr, ptr %43, align 8, !tbaa !23
  %83 = getelementptr inbounds i8, ptr %82, i64 1
  %84 = load i8, ptr %83, align 1, !tbaa !24
  switch i8 %84, label %.preheader [
    i8 -2, label %.preheader45.preheader
    i8 16, label %.preheader45.preheader
    i8 15, label %.preheader45.preheader
    i8 14, label %.preheader45.preheader
  ]

.preheader45.preheader:                           ; preds = %81, %81, %81, %81
  br label %.preheader45

.preheader:                                       ; preds = %81, %154
  %.12858 = phi i32 [ %155, %154 ], [ 50, %81 ]
  %85 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %86 = load i32, ptr %9, align 8, !tbaa !5
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %87
  store float %85, ptr %88, align 4, !tbaa !17
  %89 = add i32 %86, 1
  store i32 %89, ptr %9, align 8, !tbaa !5
  %90 = icmp ult i32 %89, 2048
  br i1 %90, label %91, label %156

91:                                               ; preds = %.preheader
  %92 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %93 = load i32, ptr %9, align 8, !tbaa !5
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %94
  store float %92, ptr %95, align 4, !tbaa !17
  %96 = add i32 %93, 1
  store i32 %96, ptr %9, align 8, !tbaa !5
  %97 = icmp ult i32 %96, 2048
  br i1 %97, label %98, label %156

98:                                               ; preds = %91
  %99 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %100 = load i32, ptr %9, align 8, !tbaa !5
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %101
  store float %99, ptr %102, align 4, !tbaa !17
  %103 = add i32 %100, 1
  store i32 %103, ptr %9, align 8, !tbaa !5
  %104 = icmp ult i32 %103, 2048
  br i1 %104, label %105, label %156

105:                                              ; preds = %98
  %106 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %107 = load i32, ptr %9, align 8, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %108
  store float %106, ptr %109, align 4, !tbaa !17
  %110 = add i32 %107, 1
  store i32 %110, ptr %9, align 8, !tbaa !5
  %111 = icmp ult i32 %110, 2048
  br i1 %111, label %112, label %156

112:                                              ; preds = %105
  %113 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %114 = load i32, ptr %9, align 8, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %115
  store float %113, ptr %116, align 4, !tbaa !17
  %117 = add i32 %114, 1
  store i32 %117, ptr %9, align 8, !tbaa !5
  %118 = icmp ult i32 %117, 2048
  br i1 %118, label %119, label %156

119:                                              ; preds = %112
  %120 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %121 = load i32, ptr %9, align 8, !tbaa !5
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %122
  store float %120, ptr %123, align 4, !tbaa !17
  %124 = add i32 %121, 1
  store i32 %124, ptr %9, align 8, !tbaa !5
  %125 = icmp ult i32 %124, 2048
  br i1 %125, label %126, label %156

126:                                              ; preds = %119
  %127 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %128 = load i32, ptr %9, align 8, !tbaa !5
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %129
  store float %127, ptr %130, align 4, !tbaa !17
  %131 = add i32 %128, 1
  store i32 %131, ptr %9, align 8, !tbaa !5
  %132 = icmp ult i32 %131, 2048
  br i1 %132, label %133, label %156

133:                                              ; preds = %126
  %134 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %135 = load i32, ptr %9, align 8, !tbaa !5
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %136
  store float %134, ptr %137, align 4, !tbaa !17
  %138 = add i32 %135, 1
  store i32 %138, ptr %9, align 8, !tbaa !5
  %139 = icmp ult i32 %138, 2048
  br i1 %139, label %140, label %156

140:                                              ; preds = %133
  %141 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %142 = load i32, ptr %9, align 8, !tbaa !5
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %143
  store float %141, ptr %144, align 4, !tbaa !17
  %145 = add i32 %142, 1
  store i32 %145, ptr %9, align 8, !tbaa !5
  %146 = icmp ult i32 %145, 2048
  br i1 %146, label %147, label %156

147:                                              ; preds = %140
  %148 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %149 = load i32, ptr %9, align 8, !tbaa !5
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %150
  store float %148, ptr %151, align 4, !tbaa !17
  %152 = add i32 %149, 1
  store i32 %152, ptr %9, align 8, !tbaa !5
  %153 = icmp ult i32 %152, 2048
  br i1 %153, label %154, label %156

154:                                              ; preds = %147
  tail call void @_ZN6SoLoud13VizsnInstance9slideTickEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %155 = add nsw i32 %.12858, -1
  %.not37 = icmp eq i32 %155, 0
  br i1 %.not37, label %.loopexit47.loopexit, label %.preheader, !llvm.loop !28

156:                                              ; preds = %147, %140, %133, %126, %119, %112, %105, %98, %91, %.preheader
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 282, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj) #5
  unreachable

.preheader45:                                     ; preds = %.preheader45.preheader, %177
  %.256 = phi i32 [ %178, %177 ], [ 50, %.preheader45.preheader ]
  %157 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %158 = load i32, ptr %9, align 8, !tbaa !5
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %159
  store float %157, ptr %160, align 4, !tbaa !17
  %161 = add i32 %158, 1
  store i32 %161, ptr %9, align 8, !tbaa !5
  %162 = icmp ult i32 %161, 2048
  br i1 %162, label %163, label %179

163:                                              ; preds = %.preheader45
  %164 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %165 = load i32, ptr %9, align 8, !tbaa !5
  %166 = zext i32 %165 to i64
  %167 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %166
  store float %164, ptr %167, align 4, !tbaa !17
  %168 = add i32 %165, 1
  store i32 %168, ptr %9, align 8, !tbaa !5
  %169 = icmp ult i32 %168, 2048
  br i1 %169, label %170, label %179

170:                                              ; preds = %163
  %171 = tail call noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520) %0)
  %172 = load i32, ptr %9, align 8, !tbaa !5
  %173 = zext i32 %172 to i64
  %174 = getelementptr inbounds [2048 x float], ptr %47, i64 0, i64 %173
  store float %171, ptr %174, align 4, !tbaa !17
  %175 = add i32 %172, 1
  store i32 %175, ptr %9, align 8, !tbaa !5
  %176 = icmp ult i32 %175, 2048
  br i1 %176, label %177, label %179

177:                                              ; preds = %170
  %178 = add nsw i32 %.256, -1
  %.not39 = icmp eq i32 %178, 0
  br i1 %.not39, label %.loopexit47, label %.preheader45, !llvm.loop !29

179:                                              ; preds = %170, %163, %.preheader45
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 295, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6SoLoud13VizsnInstance8getAudioEPfjj) #5
  unreachable

.loopexit47.loopexit:                             ; preds = %154
  %.pre75 = load i32, ptr %9, align 8, !tbaa !5
  br label %.loopexit47

.loopexit47:                                      ; preds = %177, %.loopexit47.loopexit
  %180 = phi i32 [ %.pre75, %.loopexit47.loopexit ], [ %175, %177 ]
  %181 = load ptr, ptr %43, align 8, !tbaa !23
  %182 = getelementptr inbounds i8, ptr %181, i64 1
  store ptr %182, ptr %43, align 8, !tbaa !23
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(224) %42, ptr noundef nonnull align 8 dereferenceable(224) %45, i64 224, i1 false)
  %183 = add i32 %180, %.130
  %184 = icmp ult i32 %183, %2
  br i1 %184, label %48, label %.loopexit50, !llvm.loop !30

.loopexit50:                                      ; preds = %.loopexit47, %55
  br i1 %41, label %.lr.ph62, label %.loopexit

.lr.ph62:                                         ; preds = %.loopexit50
  %.promoted60 = load i32, ptr %11, align 4, !tbaa !16
  %185 = getelementptr inbounds i8, ptr %0, i64 5304
  %186 = zext i32 %.130 to i64
  %wide.trip.count = zext i32 %2 to i64
  %187 = sub nsw i64 %wide.trip.count, %186
  %min.iters.check93 = icmp ult i64 %187, 28
  br i1 %min.iters.check93, label %scalar.ph92.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph62
  %188 = xor i64 %186, -1
  %189 = add nsw i64 %188, %wide.trip.count
  %190 = trunc i64 %189 to i32
  %191 = xor i32 %.promoted60, -1
  %192 = icmp ult i32 %191, %190
  %193 = icmp ugt i64 %189, 4294967295
  %194 = or i1 %192, %193
  br i1 %194, label %scalar.ph92.preheader, label %vector.memcheck89

vector.memcheck89:                                ; preds = %vector.scevcheck
  %195 = shl nuw nsw i64 %186, 2
  %196 = add i64 %195, %6
  %197 = add i64 %196, -5304
  %198 = zext i32 %.promoted60 to i64
  %199 = shl nuw nsw i64 %198, 2
  %200 = add i64 %199, %5
  %201 = sub i64 %197, %200
  %diff.check90 = icmp ult i64 %201, 32
  br i1 %diff.check90, label %scalar.ph92.preheader, label %vector.ph94

vector.ph94:                                      ; preds = %vector.memcheck89
  %n.vec96 = and i64 %187, -8
  %ind.end97 = add nsw i64 %n.vec96, %186
  %.cast = trunc i64 %n.vec96 to i32
  %ind.end99 = add i32 %.promoted60, %.cast
  %invariant.gep = getelementptr float, ptr %1, i64 %186
  br label %vector.body101

vector.body101:                                   ; preds = %vector.body101, %vector.ph94
  %index102 = phi i64 [ 0, %vector.ph94 ], [ %index.next108, %vector.body101 ]
  %.cast104 = trunc i64 %index102 to i32
  %offset.idx105 = add i32 %.promoted60, %.cast104
  %202 = zext i32 %offset.idx105 to i64
  %203 = getelementptr inbounds [2048 x float], ptr %185, i64 0, i64 %202
  %204 = getelementptr inbounds i8, ptr %203, i64 16
  %wide.load106 = load <4 x float>, ptr %203, align 4, !tbaa !17
  %wide.load107 = load <4 x float>, ptr %204, align 4, !tbaa !17
  %gep = getelementptr float, ptr %invariant.gep, i64 %index102
  %205 = getelementptr inbounds i8, ptr %gep, i64 16
  store <4 x float> %wide.load106, ptr %gep, align 4, !tbaa !17
  store <4 x float> %wide.load107, ptr %205, align 4, !tbaa !17
  %index.next108 = add nuw i64 %index102, 8
  %206 = icmp eq i64 %index.next108, %n.vec96
  br i1 %206, label %middle.block91, label %vector.body101, !llvm.loop !31

middle.block91:                                   ; preds = %vector.body101
  %cmp.n109 = icmp eq i64 %187, %n.vec96
  br i1 %cmp.n109, label %..loopexit_crit_edge, label %scalar.ph92.preheader

scalar.ph92.preheader:                            ; preds = %middle.block91, %vector.memcheck89, %vector.scevcheck, %.lr.ph62
  %indvars.iv72.ph = phi i64 [ %186, %vector.memcheck89 ], [ %186, %vector.scevcheck ], [ %186, %.lr.ph62 ], [ %ind.end97, %middle.block91 ]
  %.ph = phi i32 [ %.promoted60, %vector.memcheck89 ], [ %.promoted60, %vector.scevcheck ], [ %.promoted60, %.lr.ph62 ], [ %ind.end99, %middle.block91 ]
  %207 = sub nsw i64 %wide.trip.count, %indvars.iv72.ph
  %xtraiter = and i64 %207, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph92.prol.loopexit, label %scalar.ph92.prol

scalar.ph92.prol:                                 ; preds = %scalar.ph92.preheader, %scalar.ph92.prol
  %indvars.iv72.prol = phi i64 [ %indvars.iv.next73.prol, %scalar.ph92.prol ], [ %indvars.iv72.ph, %scalar.ph92.preheader ]
  %208 = phi i32 [ %213, %scalar.ph92.prol ], [ %.ph, %scalar.ph92.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph92.prol ], [ 0, %scalar.ph92.preheader ]
  %209 = zext i32 %208 to i64
  %210 = getelementptr inbounds [2048 x float], ptr %185, i64 0, i64 %209
  %211 = load float, ptr %210, align 4, !tbaa !17
  %212 = getelementptr inbounds float, ptr %1, i64 %indvars.iv72.prol
  store float %211, ptr %212, align 4, !tbaa !17
  %213 = add i32 %208, 1
  %indvars.iv.next73.prol = add nuw nsw i64 %indvars.iv72.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph92.prol.loopexit, label %scalar.ph92.prol, !llvm.loop !32

scalar.ph92.prol.loopexit:                        ; preds = %scalar.ph92.prol, %scalar.ph92.preheader
  %.lcssa110.unr = phi i32 [ poison, %scalar.ph92.preheader ], [ %213, %scalar.ph92.prol ]
  %indvars.iv72.unr = phi i64 [ %indvars.iv72.ph, %scalar.ph92.preheader ], [ %indvars.iv.next73.prol, %scalar.ph92.prol ]
  %.unr = phi i32 [ %.ph, %scalar.ph92.preheader ], [ %213, %scalar.ph92.prol ]
  %214 = sub nsw i64 %indvars.iv72.ph, %wide.trip.count
  %215 = icmp ugt i64 %214, -4
  br i1 %215, label %..loopexit_crit_edge, label %scalar.ph92.preheader.new

scalar.ph92.preheader.new:                        ; preds = %scalar.ph92.prol.loopexit
  %invariant.gep120 = getelementptr i8, ptr %1, i64 4
  %invariant.gep122 = getelementptr i8, ptr %1, i64 8
  %invariant.gep124 = getelementptr i8, ptr %1, i64 12
  br label %scalar.ph92

scalar.ph92:                                      ; preds = %scalar.ph92, %scalar.ph92.preheader.new
  %indvars.iv72 = phi i64 [ %indvars.iv72.unr, %scalar.ph92.preheader.new ], [ %indvars.iv.next73.3, %scalar.ph92 ]
  %216 = phi i32 [ %.unr, %scalar.ph92.preheader.new ], [ %233, %scalar.ph92 ]
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds [2048 x float], ptr %185, i64 0, i64 %217
  %219 = load float, ptr %218, align 4, !tbaa !17
  %220 = getelementptr inbounds float, ptr %1, i64 %indvars.iv72
  store float %219, ptr %220, align 4, !tbaa !17
  %221 = add i32 %216, 1
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds [2048 x float], ptr %185, i64 0, i64 %222
  %224 = load float, ptr %223, align 4, !tbaa !17
  %gep121 = getelementptr float, ptr %invariant.gep120, i64 %indvars.iv72
  store float %224, ptr %gep121, align 4, !tbaa !17
  %225 = add i32 %216, 2
  %226 = zext i32 %225 to i64
  %227 = getelementptr inbounds [2048 x float], ptr %185, i64 0, i64 %226
  %228 = load float, ptr %227, align 4, !tbaa !17
  %gep123 = getelementptr float, ptr %invariant.gep122, i64 %indvars.iv72
  store float %228, ptr %gep123, align 4, !tbaa !17
  %229 = add i32 %216, 3
  %230 = zext i32 %229 to i64
  %231 = getelementptr inbounds [2048 x float], ptr %185, i64 0, i64 %230
  %232 = load float, ptr %231, align 4, !tbaa !17
  %gep125 = getelementptr float, ptr %invariant.gep124, i64 %indvars.iv72
  store float %232, ptr %gep125, align 4, !tbaa !17
  %233 = add i32 %216, 4
  %indvars.iv.next73.3 = add nuw nsw i64 %indvars.iv72, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next73.3, %wide.trip.count
  br i1 %exitcond.not.3, label %..loopexit_crit_edge, label %scalar.ph92, !llvm.loop !34

..loopexit_crit_edge:                             ; preds = %scalar.ph92.prol.loopexit, %scalar.ph92, %middle.block91
  %.lcssa = phi i32 [ %ind.end99, %middle.block91 ], [ %.lcssa110.unr, %scalar.ph92.prol.loopexit ], [ %233, %scalar.ph92 ]
  store i32 %.lcssa, ptr %11, align 4, !tbaa !16
  br label %.loopexit

.loopexit:                                        ; preds = %40, %.preheader51, %.loopexit50, %..loopexit_crit_edge, %.loopexit52
  ret i32 %2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6SoLoud13VizsnInstance8setphoneEPNS_9VizsnBankEcf(ptr noundef nonnull align 8 dereferenceable(13520), ptr noundef, i8 noundef signext, float noundef) local_unnamed_addr #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6SoLoud13VizsnInstance12slidePrepareEi(ptr noundef nonnull align 8 dereferenceable(13520), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6SoLoud13VizsnInstance7genwaveEv(ptr noundef nonnull align 8 dereferenceable(13520)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6SoLoud13VizsnInstance9slideTickEv(ptr noundef nonnull align 8 dereferenceable(13520)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn 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, !8, i64 13496}
!6 = !{!"_ZTSN6SoLoud13VizsnInstanceE", !7, i64 0, !14, i64 496, !15, i64 504, !15, i64 728, !15, i64 952, !8, i64 1176, !8, i64 1180, !8, i64 1184, !9, i64 1188, !8, i64 5284, !8, i64 5288, !11, i64 5292, !14, i64 5296, !9, i64 5304, !8, i64 13496, !8, i64 13500, !8, i64 13504, !8, i64 13508, !8, i64 13512, !11, i64 13516}
!7 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !8, i64 8, !8, i64 12, !8, i64 16, !11, i64 20, !9, i64 24, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !8, i64 72, !11, i64 76, !11, i64 80, !12, i64 88, !12, i64 96, !13, i64 104, !13, i64 152, !13, i64 200, !13, i64 248, !13, i64 296, !8, i64 344, !9, i64 348, !8, i64 380, !8, i64 384, !9, i64 392, !9, i64 456, !8, i64 472, !8, i64 476, !8, i64 480, !12, i64 488}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"float", !9, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!"_ZTSN6SoLoud5FaderE", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !11, i64 40, !8, i64 44}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!"_ZTSN6SoLoud9VizsnBankE", !9, i64 0, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220}
!16 = !{!6, !8, i64 13500}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19, !20}
!23 = !{!6, !14, i64 5296}
!24 = !{!9, !9, i64 0}
!25 = !{!6, !11, i64 5292}
!26 = !{!6, !8, i64 1176}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !19, !20, !21}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}
!34 = distinct !{!34, !19, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass