; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/core (soloud_core_basicops)

; 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::AudioSource" = type { ptr, i32, float, float, i32, i32, float, float, float, i32, float, [8 x ptr], ptr, ptr, ptr, i32, double }
%"class.SoLoud::Soloud" = type <{ ptr, ptr, i8, [7 x i8], ptr, ptr, ptr, i32, i32, %"class.SoLoud::AlignedFloatBuffer", i32, [4 x i8], %"class.SoLoud::AlignedFloatBuffer", ptr, %"class.SoLoud::AlignedFloatBuffer", ptr, [1024 x ptr], i32, i32, i32, i32, ptr, i32, i32, float, float, i32, i32, %"class.SoLoud::Fader", double, double, [8 x ptr], [8 x ptr], [8 x float], [256 x float], [256 x float], [256 x float], [3 x float], [3 x float], [3 x float], [3 x float], float, [24 x float], [4 x i8], [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr, i32, [1024 x i32], i32, i8, [7 x i8] }>
%"class.SoLoud::AlignedFloatBuffer" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.SoLoud::Fader" = type { float, float, float, double, double, double, float, i32 }
%"class.SoLoud::AudioSourceInstance3dData" = type <{ [3 x float], [3 x float], float, float, float, i32, float, [4 x i8], ptr, ptr, i32, float, float, [8 x float], i32, i32, [4 x i8] }>
%"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 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6SoLoud6Soloud4playERNS_11AudioSourceEffbj(ptr noundef nonnull align 8 dereferenceable(138833) %0, ptr noundef nonnull align 8 dereferenceable(152) %1, float noundef %2, float noundef %3, i1 noundef zeroext %4, i32 noundef %5) #0 align 2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store float %2, ptr %10, align 4, !tbaa !9
  store float %3, ptr %11, align 4, !tbaa !9
  %19 = zext i1 %4 to i8
  store i8 %19, ptr %12, align 1, !tbaa !11
  store i32 %5, ptr %13, align 4, !tbaa !13
  %20 = load ptr, ptr %8, align 8
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !15
  %24 = and i32 %23, 2
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %28

26:                                               ; preds = %6
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN6SoLoud11AudioSource4stopEv(ptr noundef nonnull align 8 dereferenceable(152) %27)
  br label %28

28:                                               ; preds = %26, %6
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %29, i32 0, i32 12
  store ptr %20, ptr %30, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  %33 = getelementptr inbounds ptr, ptr %32, i64 3
  %34 = load ptr, ptr %33, align 8
  %35 = call noundef ptr %34(ptr noundef nonnull align 8 dereferenceable(152) %31)
  store ptr %35, ptr %14, align 8, !tbaa !5
  call void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %36 = call noundef i32 @_ZN6SoLoud6Soloud22findFreeVoice_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %20)
  store i32 %36, ptr %15, align 4, !tbaa !13
  %37 = load i32, ptr %15, align 4, !tbaa !13
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %39, label %47

39:                                               ; preds = %28
  call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %20)
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = icmp eq ptr %40, null
  br i1 %41, label %46, label %42

42:                                               ; preds = %39
  %43 = load ptr, ptr %40, align 8, !tbaa !19
  %44 = getelementptr inbounds ptr, ptr %43, i64 1
  %45 = load ptr, ptr %44, align 8
  call void %45(ptr noundef nonnull align 8 dereferenceable(496) %40) #3
  br label %46

46:                                               ; preds = %42, %39
  store i32 7, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %206

47:                                               ; preds = %28
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %48, i32 0, i32 5
  %50 = load i32, ptr %49, align 8, !tbaa !21
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %60, label %52

52:                                               ; preds = %47
  %53 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 27
  %54 = load i32, ptr %53, align 4, !tbaa !22
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %55, i32 0, i32 5
  store i32 %54, ptr %56, align 8, !tbaa !21
  %57 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 27
  %58 = load i32, ptr %57, align 4, !tbaa !22
  %59 = add i32 %58, 1
  store i32 %59, ptr %57, align 4, !tbaa !22
  br label %60

60:                                               ; preds = %52, %47
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 16
  %63 = load i32, ptr %15, align 4, !tbaa !13
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [1024 x ptr], ptr %62, i64 0, i64 %64
  store ptr %61, ptr %65, align 8, !tbaa !5
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %66, i32 0, i32 5
  %68 = load i32, ptr %67, align 8, !tbaa !21
  %69 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 16
  %70 = load i32, ptr %15, align 4, !tbaa !13
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [1024 x ptr], ptr %69, i64 0, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %73, i32 0, i32 22
  store i32 %68, ptr %74, align 4, !tbaa !26
  %75 = load i32, ptr %13, align 4, !tbaa !13
  %76 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 16
  %77 = load i32, ptr %15, align 4, !tbaa !13
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [1024 x ptr], ptr %76, i64 0, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %80, i32 0, i32 23
  store i32 %75, ptr %81, align 8, !tbaa !28
  %82 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 16
  %83 = load i32, ptr %15, align 4, !tbaa !13
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [1024 x ptr], ptr %82, i64 0, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 26
  %89 = load i32, ptr %88, align 8, !tbaa !29
  call void @_ZN6SoLoud19AudioSourceInstance4initERNS_11AudioSourceEi(ptr noundef nonnull align 8 dereferenceable(496) %86, ptr noundef nonnull align 8 dereferenceable(152) %87, i32 noundef %89)
  %90 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 44
  %91 = load i32, ptr %15, align 4, !tbaa !13
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %90, i64 0, i64 %92
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN6SoLoud25AudioSourceInstance3dData4initERNS_11AudioSourceE(ptr noundef nonnull align 8 dereferenceable(116) %93, ptr noundef nonnull align 8 dereferenceable(152) %94)
  %95 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 26
  %96 = load i32, ptr %95, align 8, !tbaa !29
  %97 = add i32 %96, 1
  store i32 %97, ptr %95, align 8, !tbaa !29
  %98 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 26
  %99 = load i32, ptr %98, align 8, !tbaa !29
  %100 = icmp eq i32 %99, 1048575
  br i1 %100, label %101, label %103

101:                                              ; preds = %60
  %102 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 26
  store i32 0, ptr %102, align 8, !tbaa !29
  br label %103

103:                                              ; preds = %101, %60
  %104 = load i8, ptr %12, align 1, !tbaa !11, !range !30, !noundef !31
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %115

106:                                              ; preds = %103
  %107 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 16
  %108 = load i32, ptr %15, align 4, !tbaa !13
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [1024 x ptr], ptr %107, i64 0, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %111, i32 0, i32 3
  %113 = load i32, ptr %112, align 8, !tbaa !32
  %114 = or i32 %113, 4
  store i32 %114, ptr %112, align 8, !tbaa !32
  br label %115

115:                                              ; preds = %106, %103
  %116 = load i32, ptr %15, align 4, !tbaa !13
  %117 = load float, ptr %11, align 4, !tbaa !9
  call void @_ZN6SoLoud6Soloud20setVoicePan_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833) %20, i32 noundef %116, float noundef %117)
  %118 = load float, ptr %10, align 4, !tbaa !9
  %119 = fcmp olt float %118, 0.000000e+00
  br i1 %119, label %120, label %125

120:                                              ; preds = %115
  %121 = load i32, ptr %15, align 4, !tbaa !13
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %122, i32 0, i32 3
  %124 = load float, ptr %123, align 8, !tbaa !33
  call void @_ZN6SoLoud6Soloud23setVoiceVolume_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833) %20, i32 noundef %121, float noundef %124)
  br label %128

125:                                              ; preds = %115
  %126 = load i32, ptr %15, align 4, !tbaa !13
  %127 = load float, ptr %10, align 4, !tbaa !9
  call void @_ZN6SoLoud6Soloud23setVoiceVolume_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833) %20, i32 noundef %126, float noundef %127)
  br label %128

128:                                              ; preds = %125, %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !13
  br label %129

129:                                              ; preds = %160, %128
  %130 = load i32, ptr %17, align 4, !tbaa !13
  %131 = icmp slt i32 %130, 8
  br i1 %131, label %132, label %163

132:                                              ; preds = %129
  %133 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 16
  %134 = load i32, ptr %15, align 4, !tbaa !13
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [1024 x ptr], ptr %133, i64 0, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %137, i32 0, i32 5
  %139 = load i32, ptr %17, align 4, !tbaa !13
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [8 x float], ptr %138, i64 0, i64 %140
  %142 = load float, ptr %141, align 4, !tbaa !9
  %143 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 16
  %144 = load i32, ptr %15, align 4, !tbaa !13
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [1024 x ptr], ptr %143, i64 0, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %147, i32 0, i32 7
  %149 = load float, ptr %148, align 4, !tbaa !34
  %150 = fmul float %142, %149
  %151 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 16
  %152 = load i32, ptr %15, align 4, !tbaa !13
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [1024 x ptr], ptr %151, i64 0, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %155, i32 0, i32 21
  %157 = load i32, ptr %17, align 4, !tbaa !13
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [8 x float], ptr %156, i64 0, i64 %158
  store float %150, ptr %159, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %132
  %161 = load i32, ptr %17, align 4, !tbaa !13
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %17, align 4, !tbaa !13
  br label %129, !llvm.loop !35

163:                                              ; preds = %129
  %164 = load i32, ptr %15, align 4, !tbaa !13
  %165 = call noundef i32 @_ZN6SoLoud6Soloud34setVoiceRelativePlaySpeed_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833) %20, i32 noundef %164, float noundef 1.000000e+00)
  store i32 0, ptr %17, align 4, !tbaa !13
  br label %166

166:                                              ; preds = %198, %163
  %167 = load i32, ptr %17, align 4, !tbaa !13
  %168 = icmp slt i32 %167, 8
  br i1 %168, label %169, label %201

169:                                              ; preds = %166
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %170, i32 0, i32 11
  %172 = load i32, ptr %17, align 4, !tbaa !13
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [8 x ptr], ptr %171, i64 0, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %197

177:                                              ; preds = %169
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %178, i32 0, i32 11
  %180 = load i32, ptr %17, align 4, !tbaa !13
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [8 x ptr], ptr %179, i64 0, i64 %181
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = load ptr, ptr %183, align 8, !tbaa !19
  %185 = getelementptr inbounds ptr, ptr %184, i64 5
  %186 = load ptr, ptr %185, align 8
  %187 = call noundef ptr %186(ptr noundef nonnull align 8 dereferenceable(8) %183)
  %188 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 16
  %189 = load i32, ptr %15, align 4, !tbaa !13
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [1024 x ptr], ptr %188, i64 0, i64 %190
  %192 = load ptr, ptr %191, align 8, !tbaa !5
  %193 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %192, i32 0, i32 24
  %194 = load i32, ptr %17, align 4, !tbaa !13
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [8 x ptr], ptr %193, i64 0, i64 %195
  store ptr %187, ptr %196, align 8, !tbaa !5
  br label %197

197:                                              ; preds = %177, %169
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %17, align 4, !tbaa !13
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %17, align 4, !tbaa !13
  br label %166, !llvm.loop !37

201:                                              ; preds = %166
  %202 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %20, i32 0, i32 49
  store i8 1, ptr %202, align 8, !tbaa !38
  call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %203 = load i32, ptr %15, align 4, !tbaa !13
  %204 = call noundef i32 @_ZNK6SoLoud6Soloud27getHandleFromVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %20, i32 noundef %203)
  store i32 %204, ptr %18, align 4, !tbaa !13
  %205 = load i32, ptr %18, align 4, !tbaa !13
  store i32 %205, ptr %7, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %206

206:                                              ; preds = %201, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %207 = load i32, ptr %7, align 4
  ret i32 %207
}

declare void @_ZN6SoLoud11AudioSource4stopEv(ptr noundef nonnull align 8 dereferenceable(152)) #1

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

declare void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) #1

declare noundef i32 @_ZN6SoLoud6Soloud22findFreeVoice_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) #1

declare void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) #1

declare void @_ZN6SoLoud19AudioSourceInstance4initERNS_11AudioSourceEi(ptr noundef nonnull align 8 dereferenceable(496), ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #1

declare void @_ZN6SoLoud25AudioSourceInstance3dData4initERNS_11AudioSourceE(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef nonnull align 8 dereferenceable(152)) #1

declare void @_ZN6SoLoud6Soloud20setVoicePan_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, float noundef) #1

declare void @_ZN6SoLoud6Soloud23setVoiceVolume_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, float noundef) #1

declare noundef i32 @_ZN6SoLoud6Soloud34setVoiceRelativePlaySpeed_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, float noundef) #1

declare noundef i32 @_ZNK6SoLoud6Soloud27getHandleFromVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) #1

; 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 = { "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 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 8}
!16 = !{!"_ZTSN6SoLoud11AudioSourceE", !14, i64 8, !10, i64 12, !10, i64 16, !14, i64 20, !14, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !14, i64 40, !10, i64 44, !7, i64 48, !6, i64 112, !6, i64 120, !6, i64 128, !14, i64 136, !17, i64 144}
!17 = !{!"double", !7, i64 0}
!18 = !{!16, !6, i64 112}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !8, i64 0}
!21 = !{!16, !14, i64 24}
!22 = !{!23, !14, i64 8388}
!23 = !{!"_ZTSN6SoLoud6SoloudE", !6, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !14, i64 52, !24, i64 56, !14, i64 80, !24, i64 88, !6, i64 112, !24, i64 120, !6, i64 144, !7, i64 152, !14, i64 8344, !14, i64 8348, !14, i64 8352, !14, i64 8356, !6, i64 8360, !14, i64 8368, !14, i64 8372, !10, i64 8376, !10, i64 8380, !14, i64 8384, !14, i64 8388, !25, i64 8392, !17, i64 8440, !17, i64 8448, !7, i64 8456, !7, i64 8520, !7, i64 8584, !7, i64 8616, !7, i64 9640, !7, i64 10664, !7, i64 11688, !7, i64 11700, !7, i64 11712, !7, i64 11724, !10, i64 11736, !7, i64 11740, !7, i64 11840, !6, i64 134720, !14, i64 134728, !7, i64 134732, !14, i64 138828, !12, i64 138832}
!24 = !{!"_ZTSN6SoLoud18AlignedFloatBufferE", !6, i64 0, !6, i64 8, !14, i64 16}
!25 = !{!"_ZTSN6SoLoud5FaderE", !10, i64 0, !10, i64 4, !10, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !10, i64 40, !14, i64 44}
!26 = !{!27, !14, i64 380}
!27 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !14, i64 8, !14, i64 12, !14, i64 16, !10, i64 20, !7, i64 24, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !14, i64 72, !10, i64 76, !10, i64 80, !17, i64 88, !17, i64 96, !25, i64 104, !25, i64 152, !25, i64 200, !25, i64 248, !25, i64 296, !14, i64 344, !7, i64 348, !14, i64 380, !14, i64 384, !7, i64 392, !7, i64 456, !14, i64 472, !14, i64 476, !14, i64 480, !17, i64 488}
!28 = !{!27, !14, i64 384}
!29 = !{!23, !14, i64 8384}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!27, !14, i64 16}
!33 = !{!16, !10, i64 16}
!34 = !{!27, !10, i64 60}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = !{!23, !12, i64 138832}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.SoLoud::AudioSourceInstance3dData" = type <{ [3 x float], [3 x float], float, float, float, i32, float, [4 x i8], ptr, ptr, i32, float, float, [8 x float], i32, i32, [4 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6SoLoud6Soloud4playERNS_11AudioSourceEffbj(ptr noundef nonnull align 8 dereferenceable(138833) %0, ptr noundef nonnull align 8 dereferenceable(152) %1, float noundef %2, float noundef %3, i1 noundef zeroext %4, i32 noundef %5) local_unnamed_addr #0 align 2 {
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = and i32 %8, 2
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %11, label %10

10:                                               ; preds = %6
  tail call void @_ZN6SoLoud11AudioSource4stopEv(ptr noundef nonnull align 8 dereferenceable(152) %1)
  br label %11

11:                                               ; preds = %10, %6
  %12 = getelementptr inbounds i8, ptr %1, i64 112
  store ptr %0, ptr %12, align 8, !tbaa !13
  %13 = load ptr, ptr %1, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %13, i64 24
  %15 = load ptr, ptr %14, align 8
  %16 = tail call noundef ptr %15(ptr noundef nonnull align 8 dereferenceable(152) %1)
  tail call void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %0)
  %17 = tail call noundef i32 @_ZN6SoLoud6Soloud22findFreeVoice_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %0)
  %18 = icmp slt i32 %17, 0
  br i1 %18, label %19, label %25

19:                                               ; preds = %11
  tail call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %0)
  %20 = icmp eq ptr %16, null
  br i1 %20, label %151, label %21

21:                                               ; preds = %19
  %22 = load ptr, ptr %16, align 8, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load ptr, ptr %23, align 8
  tail call void %24(ptr noundef nonnull align 8 dereferenceable(496) %16) #2
  br label %151

25:                                               ; preds = %11
  %26 = getelementptr inbounds i8, ptr %1, i64 24
  %27 = load i32, ptr %26, align 8, !tbaa !16
  %.not51 = icmp eq i32 %27, 0
  br i1 %.not51, label %28, label %32

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %0, i64 8388
  %30 = load i32, ptr %29, align 4, !tbaa !17
  store i32 %30, ptr %26, align 8, !tbaa !16
  %31 = add i32 %30, 1
  store i32 %31, ptr %29, align 4, !tbaa !17
  br label %32

32:                                               ; preds = %28, %25
  %33 = phi i32 [ %30, %28 ], [ %27, %25 ]
  %34 = getelementptr inbounds i8, ptr %0, i64 152
  %35 = zext nneg i32 %17 to i64
  %36 = getelementptr inbounds [1024 x ptr], ptr %34, i64 0, i64 %35
  store ptr %16, ptr %36, align 8, !tbaa !22
  %37 = getelementptr inbounds i8, ptr %16, i64 380
  store i32 %33, ptr %37, align 4, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %16, i64 384
  store i32 %5, ptr %38, align 8, !tbaa !25
  %39 = getelementptr inbounds i8, ptr %0, i64 8384
  %40 = load i32, ptr %39, align 8, !tbaa !26
  tail call void @_ZN6SoLoud19AudioSourceInstance4initERNS_11AudioSourceEi(ptr noundef nonnull align 8 dereferenceable(496) %16, ptr noundef nonnull align 8 dereferenceable(152) %1, i32 noundef %40)
  %41 = getelementptr inbounds i8, ptr %0, i64 11840
  %42 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %41, i64 0, i64 %35
  tail call void @_ZN6SoLoud25AudioSourceInstance3dData4initERNS_11AudioSourceE(ptr noundef nonnull align 8 dereferenceable(116) %42, ptr noundef nonnull align 8 dereferenceable(152) %1)
  %43 = load i32, ptr %39, align 8, !tbaa !26
  %44 = add i32 %43, 1
  %45 = icmp eq i32 %44, 1048575
  %spec.select = select i1 %45, i32 0, i32 %44
  store i32 %spec.select, ptr %39, align 8, !tbaa !26
  br i1 %4, label %46, label %51

46:                                               ; preds = %32
  %47 = load ptr, ptr %36, align 8, !tbaa !22
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %49 = load i32, ptr %48, align 8, !tbaa !27
  %50 = or i32 %49, 4
  store i32 %50, ptr %48, align 8, !tbaa !27
  br label %51

51:                                               ; preds = %46, %32
  tail call void @_ZN6SoLoud6Soloud20setVoicePan_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %17, float noundef %3)
  %52 = fcmp olt float %2, 0.000000e+00
  %53 = getelementptr inbounds i8, ptr %1, i64 16
  %54 = load float, ptr %53, align 8
  %.sink = select i1 %52, float %54, float %2
  tail call void @_ZN6SoLoud6Soloud23setVoiceVolume_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %17, float noundef %.sink)
  %55 = load ptr, ptr %36, align 8, !tbaa !22
  %56 = getelementptr inbounds i8, ptr %55, i64 24
  %57 = getelementptr inbounds i8, ptr %55, i64 60
  %58 = getelementptr inbounds i8, ptr %55, i64 348
  %59 = load float, ptr %57, align 4, !tbaa !28
  %60 = load <4 x float>, ptr %56, align 4, !tbaa !29
  %61 = insertelement <4 x float> poison, float %59, i64 0
  %62 = shufflevector <4 x float> %61, <4 x float> poison, <4 x i32> zeroinitializer
  %63 = fmul <4 x float> %60, %62
  store <4 x float> %63, ptr %58, align 4, !tbaa !29
  %64 = getelementptr inbounds i8, ptr %55, i64 40
  %65 = getelementptr inbounds i8, ptr %55, i64 364
  %66 = load <4 x float>, ptr %64, align 4, !tbaa !29
  %67 = fmul <4 x float> %66, %62
  store <4 x float> %67, ptr %65, align 4, !tbaa !29
  %68 = tail call noundef i32 @_ZN6SoLoud6Soloud34setVoiceRelativePlaySpeed_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %17, float noundef 1.000000e+00)
  %69 = getelementptr inbounds i8, ptr %1, i64 48
  %70 = load ptr, ptr %69, align 8, !tbaa !22
  %.not52 = icmp eq ptr %70, null
  br i1 %.not52, label %78, label %71

71:                                               ; preds = %51
  %72 = load ptr, ptr %70, align 8, !tbaa !14
  %73 = getelementptr inbounds i8, ptr %72, i64 40
  %74 = load ptr, ptr %73, align 8
  %75 = tail call noundef ptr %74(ptr noundef nonnull align 8 dereferenceable(8) %70)
  %76 = load ptr, ptr %36, align 8, !tbaa !22
  %77 = getelementptr inbounds i8, ptr %76, i64 392
  store ptr %75, ptr %77, align 8, !tbaa !22
  br label %78

78:                                               ; preds = %51, %71
  %79 = getelementptr inbounds i8, ptr %1, i64 56
  %80 = load ptr, ptr %79, align 8, !tbaa !22
  %.not52.1 = icmp eq ptr %80, null
  br i1 %.not52.1, label %88, label %81

81:                                               ; preds = %78
  %82 = load ptr, ptr %80, align 8, !tbaa !14
  %83 = getelementptr inbounds i8, ptr %82, i64 40
  %84 = load ptr, ptr %83, align 8
  %85 = tail call noundef ptr %84(ptr noundef nonnull align 8 dereferenceable(8) %80)
  %86 = load ptr, ptr %36, align 8, !tbaa !22
  %87 = getelementptr inbounds i8, ptr %86, i64 400
  store ptr %85, ptr %87, align 8, !tbaa !22
  br label %88

88:                                               ; preds = %81, %78
  %89 = getelementptr inbounds i8, ptr %1, i64 64
  %90 = load ptr, ptr %89, align 8, !tbaa !22
  %.not52.2 = icmp eq ptr %90, null
  br i1 %.not52.2, label %98, label %91

91:                                               ; preds = %88
  %92 = load ptr, ptr %90, align 8, !tbaa !14
  %93 = getelementptr inbounds i8, ptr %92, i64 40
  %94 = load ptr, ptr %93, align 8
  %95 = tail call noundef ptr %94(ptr noundef nonnull align 8 dereferenceable(8) %90)
  %96 = load ptr, ptr %36, align 8, !tbaa !22
  %97 = getelementptr inbounds i8, ptr %96, i64 408
  store ptr %95, ptr %97, align 8, !tbaa !22
  br label %98

98:                                               ; preds = %91, %88
  %99 = getelementptr inbounds i8, ptr %1, i64 72
  %100 = load ptr, ptr %99, align 8, !tbaa !22
  %.not52.3 = icmp eq ptr %100, null
  br i1 %.not52.3, label %108, label %101

101:                                              ; preds = %98
  %102 = load ptr, ptr %100, align 8, !tbaa !14
  %103 = getelementptr inbounds i8, ptr %102, i64 40
  %104 = load ptr, ptr %103, align 8
  %105 = tail call noundef ptr %104(ptr noundef nonnull align 8 dereferenceable(8) %100)
  %106 = load ptr, ptr %36, align 8, !tbaa !22
  %107 = getelementptr inbounds i8, ptr %106, i64 416
  store ptr %105, ptr %107, align 8, !tbaa !22
  br label %108

108:                                              ; preds = %101, %98
  %109 = getelementptr inbounds i8, ptr %1, i64 80
  %110 = load ptr, ptr %109, align 8, !tbaa !22
  %.not52.4 = icmp eq ptr %110, null
  br i1 %.not52.4, label %118, label %111

111:                                              ; preds = %108
  %112 = load ptr, ptr %110, align 8, !tbaa !14
  %113 = getelementptr inbounds i8, ptr %112, i64 40
  %114 = load ptr, ptr %113, align 8
  %115 = tail call noundef ptr %114(ptr noundef nonnull align 8 dereferenceable(8) %110)
  %116 = load ptr, ptr %36, align 8, !tbaa !22
  %117 = getelementptr inbounds i8, ptr %116, i64 424
  store ptr %115, ptr %117, align 8, !tbaa !22
  br label %118

118:                                              ; preds = %111, %108
  %119 = getelementptr inbounds i8, ptr %1, i64 88
  %120 = load ptr, ptr %119, align 8, !tbaa !22
  %.not52.5 = icmp eq ptr %120, null
  br i1 %.not52.5, label %128, label %121

121:                                              ; preds = %118
  %122 = load ptr, ptr %120, align 8, !tbaa !14
  %123 = getelementptr inbounds i8, ptr %122, i64 40
  %124 = load ptr, ptr %123, align 8
  %125 = tail call noundef ptr %124(ptr noundef nonnull align 8 dereferenceable(8) %120)
  %126 = load ptr, ptr %36, align 8, !tbaa !22
  %127 = getelementptr inbounds i8, ptr %126, i64 432
  store ptr %125, ptr %127, align 8, !tbaa !22
  br label %128

128:                                              ; preds = %121, %118
  %129 = getelementptr inbounds i8, ptr %1, i64 96
  %130 = load ptr, ptr %129, align 8, !tbaa !22
  %.not52.6 = icmp eq ptr %130, null
  br i1 %.not52.6, label %138, label %131

131:                                              ; preds = %128
  %132 = load ptr, ptr %130, align 8, !tbaa !14
  %133 = getelementptr inbounds i8, ptr %132, i64 40
  %134 = load ptr, ptr %133, align 8
  %135 = tail call noundef ptr %134(ptr noundef nonnull align 8 dereferenceable(8) %130)
  %136 = load ptr, ptr %36, align 8, !tbaa !22
  %137 = getelementptr inbounds i8, ptr %136, i64 440
  store ptr %135, ptr %137, align 8, !tbaa !22
  br label %138

138:                                              ; preds = %131, %128
  %139 = getelementptr inbounds i8, ptr %1, i64 104
  %140 = load ptr, ptr %139, align 8, !tbaa !22
  %.not52.7 = icmp eq ptr %140, null
  br i1 %.not52.7, label %148, label %141

141:                                              ; preds = %138
  %142 = load ptr, ptr %140, align 8, !tbaa !14
  %143 = getelementptr inbounds i8, ptr %142, i64 40
  %144 = load ptr, ptr %143, align 8
  %145 = tail call noundef ptr %144(ptr noundef nonnull align 8 dereferenceable(8) %140)
  %146 = load ptr, ptr %36, align 8, !tbaa !22
  %147 = getelementptr inbounds i8, ptr %146, i64 448
  store ptr %145, ptr %147, align 8, !tbaa !22
  br label %148

148:                                              ; preds = %141, %138
  %149 = getelementptr inbounds i8, ptr %0, i64 138832
  store i8 1, ptr %149, align 8, !tbaa !30
  tail call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %0)
  %150 = tail call noundef i32 @_ZNK6SoLoud6Soloud27getHandleFromVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %17)
  br label %151

151:                                              ; preds = %19, %21, %148
  %.0 = phi i32 [ %150, %148 ], [ 7, %21 ], [ 7, %19 ]
  ret i32 %.0
}

declare void @_ZN6SoLoud11AudioSource4stopEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #1

declare void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) local_unnamed_addr #1

declare noundef i32 @_ZN6SoLoud6Soloud22findFreeVoice_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) local_unnamed_addr #1

declare void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) local_unnamed_addr #1

declare void @_ZN6SoLoud19AudioSourceInstance4initERNS_11AudioSourceEi(ptr noundef nonnull align 8 dereferenceable(496), ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #1

declare void @_ZN6SoLoud25AudioSourceInstance3dData4initERNS_11AudioSourceE(ptr noundef nonnull align 8 dereferenceable(116), ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #1

declare void @_ZN6SoLoud6Soloud20setVoicePan_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, float noundef) local_unnamed_addr #1

declare void @_ZN6SoLoud6Soloud23setVoiceVolume_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, float noundef) local_unnamed_addr #1

declare noundef i32 @_ZN6SoLoud6Soloud34setVoiceRelativePlaySpeed_internalEjf(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, float noundef) local_unnamed_addr #1

declare noundef i32 @_ZNK6SoLoud6Soloud27getHandleFromVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) local_unnamed_addr #1

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 = { "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 = { 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, !7, i64 8}
!6 = !{!"_ZTSN6SoLoud11AudioSourceE", !7, i64 8, !10, i64 12, !10, i64 16, !7, i64 20, !7, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 44, !8, i64 48, !11, i64 112, !11, i64 120, !11, i64 128, !7, i64 136, !12, i64 144}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!6, !11, i64 112}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !9, i64 0}
!16 = !{!6, !7, i64 24}
!17 = !{!18, !7, i64 8388}
!18 = !{!"_ZTSN6SoLoud6SoloudE", !11, i64 0, !11, i64 8, !19, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !7, i64 48, !7, i64 52, !20, i64 56, !7, i64 80, !20, i64 88, !11, i64 112, !20, i64 120, !11, i64 144, !8, i64 152, !7, i64 8344, !7, i64 8348, !7, i64 8352, !7, i64 8356, !11, i64 8360, !7, i64 8368, !7, i64 8372, !10, i64 8376, !10, i64 8380, !7, i64 8384, !7, i64 8388, !21, i64 8392, !12, i64 8440, !12, i64 8448, !8, i64 8456, !8, i64 8520, !8, i64 8584, !8, i64 8616, !8, i64 9640, !8, i64 10664, !8, i64 11688, !8, i64 11700, !8, i64 11712, !8, i64 11724, !10, i64 11736, !8, i64 11740, !8, i64 11840, !11, i64 134720, !7, i64 134728, !8, i64 134732, !7, i64 138828, !19, i64 138832}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTSN6SoLoud18AlignedFloatBufferE", !11, i64 0, !11, i64 8, !7, i64 16}
!21 = !{!"_ZTSN6SoLoud5FaderE", !10, i64 0, !10, i64 4, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !10, i64 40, !7, i64 44}
!22 = !{!11, !11, i64 0}
!23 = !{!24, !7, i64 380}
!24 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 20, !8, i64 24, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !7, i64 72, !10, i64 76, !10, i64 80, !12, i64 88, !12, i64 96, !21, i64 104, !21, i64 152, !21, i64 200, !21, i64 248, !21, i64 296, !7, i64 344, !8, i64 348, !7, i64 380, !7, i64 384, !8, i64 392, !8, i64 456, !7, i64 472, !7, i64 476, !7, i64 480, !12, i64 488}
!25 = !{!24, !7, i64 384}
!26 = !{!18, !7, i64 8384}
!27 = !{!24, !7, i64 16}
!28 = !{!24, !10, i64 60}
!29 = !{!10, !10, i64 0}
!30 = !{!18, !19, i64 138832}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass