; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/audiosource/ay/chipplayer.ll (ZN10ChipPlayer4playEPfj)

; 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.ChipPlayer = type { ptr, %class.SNDBUFFER, %class.SNDCHIP, %class.SNDCHIP, i32, i32, i32, i32 }
%class.SNDBUFFER = type <{ ptr, i32, i32, i32, [4 x i8] }>
%class.SNDCHIP = type <{ %class.SNDRENDER, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, [2 x i8], [6 x [32 x i32]], i32, %union.anon, i32, i32, i32, i32, %struct.SNDCHIP_VOLTAB, %struct.SNDCHIP_PANTAB, [4 x i8] }>
%class.SNDRENDER = type { ptr, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%union.anon = type { [16 x i8] }
%struct.SNDCHIP_VOLTAB = type { [32 x i32] }
%struct.SNDCHIP_PANTAB = type { [6 x i32] }
%union.SNDSAMPLE = type { i32 }
%struct.anon = type { i16, i16 }
%"class.SoLoud::AyInstance" = type <{ %"class.SoLoud::AudioSourceInstance", ptr, ptr, 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 }
%"class.SoLoud::Fader" = type { float, float, float, double, double, double, float, i32 }
%"class.SoLoud::Ay" = type { %"class.SoLoud::AudioSource", i8, i32, i32, i32, i32, ptr }
%"class.SoLoud::AudioSource" = type { ptr, i32, float, float, i32, i32, float, float, float, i32, float, [8 x ptr], ptr, ptr, ptr, i32, double }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10ChipPlayer4playEPfj(ptr noundef nonnull align 8 dereferenceable(2384) %0, ptr noundef %1, i32 noundef %2) #0 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i16, align 2
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %21 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %22 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %22, ptr %8, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %238, %3
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %239

26:                                               ; preds = %23
  %27 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 1
  call void @_ZN9SNDBUFFER11count_startEv(ptr noundef nonnull align 8 dereferenceable(20) %27)
  %28 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 1
  %29 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 2
  call void @_ZN9SNDBUFFER5countERK9SNDRENDER(ptr noundef nonnull align 8 dereferenceable(20) %28, ptr noundef nonnull align 8 dereferenceable(80) %29)
  %30 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 1
  %31 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 3
  call void @_ZN9SNDBUFFER5countERK9SNDRENDER(ptr noundef nonnull align 8 dereferenceable(20) %30, ptr noundef nonnull align 8 dereferenceable(80) %31)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %32 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 1
  %33 = call noundef i32 @_ZN9SNDBUFFER9count_endEv(ptr noundef nonnull align 8 dereferenceable(20) %32)
  store i32 %33, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = call noundef i32 @_Z4_minii(i32 noundef %34, i32 noundef %35)
  store i32 %36, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %81, %26
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = icmp ult i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %84

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %43 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 1
  %44 = getelementptr inbounds %class.SNDBUFFER, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 1
  %47 = getelementptr inbounds %class.SNDBUFFER, ptr %46, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !19
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = add i32 %48, %49
  %51 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 1
  %52 = getelementptr inbounds %class.SNDBUFFER, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !20
  %54 = sub i32 %53, 1
  %55 = and i32 %50, %54
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds %union.SNDSAMPLE, ptr %45, i64 %56
  store ptr %57, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.anon, ptr %58, i32 0, i32 0
  %60 = load i16, ptr %59, align 4, !tbaa !21
  %61 = zext i16 %60 to i32
  %62 = mul nsw i32 2, %61
  store i32 %62, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.anon, ptr %63, i32 0, i32 1
  %65 = load i16, ptr %64, align 2, !tbaa !21
  %66 = zext i16 %65 to i32
  %67 = mul nsw i32 2, %66
  store i32 %67, ptr %14, align 4, !tbaa !9
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = sitofp i32 %68 to float
  %70 = fdiv float %69, 3.276700e+04
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  store float %70, ptr %71, align 4, !tbaa !22
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = sitofp i32 %72 to float
  %74 = fdiv float %73, 3.276700e+04
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %75, i64 %77
  store float %74, ptr %78, align 4, !tbaa !22
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds float, ptr %79, i32 1
  store ptr %80, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %81

81:                                               ; preds = %42
  %82 = load i32, ptr %11, align 4, !tbaa !9
  %83 = add i32 %82, 1
  store i32 %83, ptr %11, align 4, !tbaa !9
  br label %37, !llvm.loop !24

84:                                               ; preds = %41
  %85 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 1
  %86 = load i32, ptr %10, align 4, !tbaa !9
  call void @_ZN9SNDBUFFER12samples_readEj(ptr noundef nonnull align 8 dereferenceable(20) %85, i32 noundef %86)
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = load i32, ptr %7, align 4, !tbaa !9
  %89 = sub i32 %88, %87
  store i32 %89, ptr %7, align 4, !tbaa !9
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %94, label %92

92:                                               ; preds = %84
  %93 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %93, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %236

94:                                               ; preds = %84
  %95 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !26
  %97 = getelementptr inbounds %"class.SoLoud::AyInstance", ptr %96, i32 0, i32 3
  %98 = load i32, ptr %97, align 8, !tbaa !27
  %99 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !26
  %101 = getelementptr inbounds %"class.SoLoud::AyInstance", ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !32
  %103 = getelementptr inbounds %"class.SoLoud::Ay", ptr %102, i32 0, i32 5
  %104 = load i32, ptr %103, align 8, !tbaa !33
  %105 = icmp sge i32 %98, %104
  br i1 %105, label %106, label %110

106:                                              ; preds = %94
  %107 = load i32, ptr %8, align 4, !tbaa !9
  %108 = load i32, ptr %7, align 4, !tbaa !9
  %109 = sub i32 %107, %108
  store i32 %109, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %236

110:                                              ; preds = %94
  %111 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 2
  call void @_ZN7SNDCHIP11start_frameEv(ptr noundef nonnull align 8 dereferenceable(1164) %111)
  %112 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 3
  call void @_ZN7SNDCHIP11start_frameEv(ptr noundef nonnull align 8 dereferenceable(1164) %112)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %113 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 4
  %114 = load i32, ptr %113, align 8, !tbaa !37
  store i32 %114, ptr %16, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %224, %110
  %116 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 4
  %117 = load i32, ptr %116, align 8, !tbaa !37
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = sub i32 %117, %118
  %120 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 7
  %121 = load i32, ptr %120, align 4, !tbaa !38
  %122 = icmp ult i32 %119, %121
  br i1 %122, label %123, label %225

123:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #4
  br label %124

124:                                              ; preds = %174, %123
  %125 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8, !tbaa !26
  %127 = getelementptr inbounds %"class.SoLoud::AyInstance", ptr %126, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !32
  %129 = getelementptr inbounds %"class.SoLoud::Ay", ptr %128, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !39
  %131 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !26
  %133 = getelementptr inbounds %"class.SoLoud::AyInstance", ptr %132, i32 0, i32 3
  %134 = load i32, ptr %133, align 8, !tbaa !27
  %135 = sdiv i32 %134, 2
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds i16, ptr %130, i64 %136
  %138 = load i16, ptr %137, align 2, !tbaa !40
  store i16 %138, ptr %17, align 2, !tbaa !40
  %139 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !26
  %141 = getelementptr inbounds %"class.SoLoud::AyInstance", ptr %140, i32 0, i32 3
  %142 = load i32, ptr %141, align 8, !tbaa !27
  %143 = add nsw i32 %142, 2
  store i32 %143, ptr %141, align 8, !tbaa !27
  %144 = load i16, ptr %17, align 2, !tbaa !40
  %145 = zext i16 %144 to i32
  %146 = and i32 %145, 32768
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %155

148:                                              ; preds = %124
  %149 = load i16, ptr %17, align 2, !tbaa !40
  %150 = zext i16 %149 to i32
  %151 = xor i32 %150, 32768
  %152 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 4
  %153 = load i32, ptr %152, align 8, !tbaa !37
  %154 = add i32 %153, %151
  store i32 %154, ptr %152, align 8, !tbaa !37
  br label %155

155:                                              ; preds = %148, %124
  br label %156

156:                                              ; preds = %155
  %157 = load i16, ptr %17, align 2, !tbaa !40
  %158 = zext i16 %157 to i32
  %159 = and i32 %158, 32768
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %174

161:                                              ; preds = %156
  %162 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8, !tbaa !26
  %164 = getelementptr inbounds %"class.SoLoud::AyInstance", ptr %163, i32 0, i32 3
  %165 = load i32, ptr %164, align 8, !tbaa !27
  %166 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 0
  %167 = load ptr, ptr %166, align 8, !tbaa !26
  %168 = getelementptr inbounds %"class.SoLoud::AyInstance", ptr %167, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !32
  %170 = getelementptr inbounds %"class.SoLoud::Ay", ptr %169, i32 0, i32 5
  %171 = load i32, ptr %170, align 8, !tbaa !33
  %172 = icmp sge i32 %165, %171
  %173 = xor i1 %172, true
  br label %174

174:                                              ; preds = %161, %156
  %175 = phi i1 [ false, %156 ], [ %173, %161 ]
  br i1 %175, label %124, label %176, !llvm.loop !42

176:                                              ; preds = %174
  %177 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8, !tbaa !26
  %179 = getelementptr inbounds %"class.SoLoud::AyInstance", ptr %178, i32 0, i32 3
  %180 = load i32, ptr %179, align 8, !tbaa !27
  %181 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !26
  %183 = getelementptr inbounds %"class.SoLoud::AyInstance", ptr %182, i32 0, i32 1
  %184 = load ptr, ptr %183, align 8, !tbaa !32
  %185 = getelementptr inbounds %"class.SoLoud::Ay", ptr %184, i32 0, i32 5
  %186 = load i32, ptr %185, align 8, !tbaa !33
  %187 = icmp sge i32 %180, %186
  br i1 %187, label %188, label %189

188:                                              ; preds = %176
  store i32 8, ptr %15, align 4
  br label %222

189:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %190 = load i16, ptr %17, align 2, !tbaa !40
  %191 = zext i16 %190 to i32
  %192 = ashr i32 %191, 8
  %193 = trunc i32 %192 to i8
  store i8 %193, ptr %18, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  %194 = load i16, ptr %17, align 2, !tbaa !40
  %195 = zext i16 %194 to i32
  %196 = and i32 %195, 255
  %197 = trunc i32 %196 to i8
  store i8 %197, ptr %19, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %198 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 4
  %199 = load i32, ptr %198, align 8, !tbaa !37
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = sub i32 %199, %200
  store i32 %201, ptr %20, align 4, !tbaa !9
  %202 = load i8, ptr %18, align 1, !tbaa !21
  %203 = zext i8 %202 to i32
  %204 = and i32 %203, 16
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %215

206:                                              ; preds = %189
  %207 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 3
  %208 = load i8, ptr %18, align 1, !tbaa !21
  %209 = zext i8 %208 to i32
  %210 = and i32 %209, 15
  %211 = trunc i32 %210 to i8
  call void @_ZN7SNDCHIP6selectEh(ptr noundef nonnull align 8 dereferenceable(1164) %207, i8 noundef zeroext %211)
  %212 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 3
  %213 = load i32, ptr %20, align 4, !tbaa !9
  %214 = load i8, ptr %19, align 1, !tbaa !21
  call void @_ZN7SNDCHIP5writeEjh(ptr noundef nonnull align 8 dereferenceable(1164) %212, i32 noundef %213, i8 noundef zeroext %214)
  br label %221

215:                                              ; preds = %189
  %216 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 2
  %217 = load i8, ptr %18, align 1, !tbaa !21
  call void @_ZN7SNDCHIP6selectEh(ptr noundef nonnull align 8 dereferenceable(1164) %216, i8 noundef zeroext %217)
  %218 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 2
  %219 = load i32, ptr %20, align 4, !tbaa !9
  %220 = load i8, ptr %19, align 1, !tbaa !21
  call void @_ZN7SNDCHIP5writeEjh(ptr noundef nonnull align 8 dereferenceable(1164) %218, i32 noundef %219, i8 noundef zeroext %220)
  br label %221

221:                                              ; preds = %215, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  store i32 0, ptr %15, align 4
  br label %222

222:                                              ; preds = %221, %188
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #4
  %223 = load i32, ptr %15, align 4
  switch i32 %223, label %243 [
    i32 0, label %224
    i32 8, label %225
  ]

224:                                              ; preds = %222
  br label %115, !llvm.loop !43

225:                                              ; preds = %222, %115
  %226 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 2
  %227 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 4
  %228 = load i32, ptr %227, align 8, !tbaa !37
  %229 = load i32, ptr %16, align 4, !tbaa !9
  %230 = sub i32 %228, %229
  call void @_ZN7SNDCHIP9end_frameEj(ptr noundef nonnull align 8 dereferenceable(1164) %226, i32 noundef %230)
  %231 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 3
  %232 = getelementptr inbounds %class.ChipPlayer, ptr %21, i32 0, i32 4
  %233 = load i32, ptr %232, align 8, !tbaa !37
  %234 = load i32, ptr %16, align 4, !tbaa !9
  %235 = sub i32 %233, %234
  call void @_ZN7SNDCHIP9end_frameEj(ptr noundef nonnull align 8 dereferenceable(1164) %231, i32 noundef %235)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  store i32 0, ptr %15, align 4
  br label %236

236:                                              ; preds = %225, %106, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %237 = load i32, ptr %15, align 4
  switch i32 %237, label %241 [
    i32 0, label %238
  ]

238:                                              ; preds = %236
  br label %23, !llvm.loop !44

239:                                              ; preds = %23
  %240 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %240, ptr %4, align 4
  store i32 1, ptr %15, align 4
  br label %241

241:                                              ; preds = %239, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %242 = load i32, ptr %4, align 4
  ret i32 %242

243:                                              ; preds = %222
  unreachable
}

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

declare void @_ZN9SNDBUFFER11count_startEv(ptr noundef nonnull align 8 dereferenceable(20)) #2

declare void @_ZN9SNDBUFFER5countERK9SNDRENDER(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(80)) #2

declare noundef i32 @_ZN9SNDBUFFER9count_endEv(ptr noundef nonnull align 8 dereferenceable(20)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4_minii(i32 noundef, i32 noundef) #3

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

declare void @_ZN9SNDBUFFER12samples_readEj(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #2

declare void @_ZN7SNDCHIP11start_frameEv(ptr noundef nonnull align 8 dereferenceable(1164)) #2

declare void @_ZN7SNDCHIP6selectEh(ptr noundef nonnull align 8 dereferenceable(1164), i8 noundef zeroext) #2

declare void @_ZN7SNDCHIP5writeEjh(ptr noundef nonnull align 8 dereferenceable(1164), i32 noundef, i8 noundef zeroext) #2

declare void @_ZN7SNDCHIP9end_frameEj(ptr noundef nonnull align 8 dereferenceable(1164), i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !6, i64 8}
!12 = !{!"_ZTS10ChipPlayer", !6, i64 0, !13, i64 8, !14, i64 32, !14, i64 1200, !10, i64 2368, !10, i64 2372, !10, i64 2376, !10, i64 2380}
!13 = !{!"_ZTS9SNDBUFFER", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!14 = !{!"_ZTS7SNDCHIP", !15, i64 0, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !7, i64 204, !7, i64 205, !7, i64 208, !16, i64 976, !7, i64 980, !10, i64 996, !10, i64 1000, !10, i64 1004, !10, i64 1008, !17, i64 1012, !18, i64 1140}
!15 = !{!"_ZTS9SNDRENDER", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76}
!16 = !{!"_ZTSN7SNDCHIP9CHIP_TYPEE", !7, i64 0}
!17 = !{!"_ZTS14SNDCHIP_VOLTAB", !7, i64 0}
!18 = !{!"_ZTS14SNDCHIP_PANTAB", !7, i64 0}
!19 = !{!12, !10, i64 20}
!20 = !{!12, !10, i64 16}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"float", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!12, !6, i64 0}
!27 = !{!28, !10, i64 512}
!28 = !{!"_ZTSN6SoLoud10AyInstanceE", !29, i64 0, !6, i64 496, !6, i64 504, !10, i64 512}
!29 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !10, i64 8, !10, i64 12, !10, i64 16, !23, i64 20, !7, i64 24, !23, i64 56, !23, i64 60, !23, i64 64, !23, i64 68, !10, i64 72, !23, i64 76, !23, i64 80, !30, i64 88, !30, i64 96, !31, i64 104, !31, i64 152, !31, i64 200, !31, i64 248, !31, 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, !30, i64 488}
!30 = !{!"double", !7, i64 0}
!31 = !{!"_ZTSN6SoLoud5FaderE", !23, i64 0, !23, i64 4, !23, i64 8, !30, i64 16, !30, i64 24, !30, i64 32, !23, i64 40, !10, i64 44}
!32 = !{!28, !6, i64 496}
!33 = !{!34, !10, i64 168}
!34 = !{!"_ZTSN6SoLoud2AyE", !35, i64 0, !36, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !6, i64 176}
!35 = !{!"_ZTSN6SoLoud11AudioSourceE", !10, i64 8, !23, i64 12, !23, i64 16, !10, i64 20, !10, i64 24, !23, i64 28, !23, i64 32, !23, i64 36, !10, i64 40, !23, i64 44, !7, i64 48, !6, i64 112, !6, i64 120, !6, i64 128, !10, i64 136, !30, i64 144}
!36 = !{!"bool", !7, i64 0}
!37 = !{!12, !10, i64 2368}
!38 = !{!12, !10, i64 2380}
!39 = !{!34, !6, i64 176}
!40 = !{!41, !41, i64 0}
!41 = !{!"short", !7, i64 0}
!42 = distinct !{!42, !25}
!43 = distinct !{!43, !25}
!44 = distinct !{!44, !25}


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

%union.SNDSAMPLE = type { i32 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10ChipPlayer4playEPfj(ptr noundef nonnull align 8 dereferenceable(2384) %0, ptr nocapture noundef writeonly %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  %.not70 = icmp eq i32 %2, 0
  br i1 %.not70, label %.thread60, label %.lr.ph74

.lr.ph74:                                         ; preds = %3
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %6 = getelementptr inbounds i8, ptr %0, i64 1200
  %7 = getelementptr inbounds i8, ptr %0, i64 20
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = zext i32 %2 to i64
  %10 = getelementptr inbounds i8, ptr %0, i64 2368
  %11 = getelementptr inbounds i8, ptr %0, i64 2380
  br label %12

12:                                               ; preds = %.thread, %.lr.ph74
  %.04372 = phi ptr [ %1, %.lr.ph74 ], [ %.144.lcssa, %.thread ]
  %.04571 = phi i32 [ %2, %.lr.ph74 ], [ %19, %.thread ]
  tail call void @_ZN9SNDBUFFER11count_startEv(ptr noundef nonnull align 8 dereferenceable(20) %4)
  tail call void @_ZN9SNDBUFFER5countERK9SNDRENDER(ptr noundef nonnull align 8 dereferenceable(20) %4, ptr noundef nonnull align 8 dereferenceable(80) %5)
  tail call void @_ZN9SNDBUFFER5countERK9SNDRENDER(ptr noundef nonnull align 8 dereferenceable(20) %4, ptr noundef nonnull align 8 dereferenceable(80) %6)
  %13 = tail call noundef i32 @_ZN9SNDBUFFER9count_endEv(ptr noundef nonnull align 8 dereferenceable(20) %4)
  %14 = tail call noundef i32 @_Z4_minii(i32 noundef %13, i32 noundef %.04571)
  %.not76 = icmp eq i32 %14, 0
  br i1 %.not76, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %12
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = load i32, ptr %7, align 4, !tbaa !17
  %17 = load i32, ptr %8, align 8, !tbaa !18
  %18 = add i32 %17, -1
  br label %20

._crit_edge:                                      ; preds = %20, %12
  %.144.lcssa = phi ptr [ %.04372, %12 ], [ %37, %20 ]
  tail call void @_ZN9SNDBUFFER12samples_readEj(ptr noundef nonnull align 8 dereferenceable(20) %4, i32 noundef %14)
  %19 = sub i32 %.04571, %14
  %.not51 = icmp eq i32 %19, 0
  br i1 %.not51, label %.thread60, label %39

20:                                               ; preds = %.lr.ph, %20
  %.14467 = phi ptr [ %.04372, %.lr.ph ], [ %37, %20 ]
  %.04666 = phi i32 [ 0, %.lr.ph ], [ %38, %20 ]
  %21 = add i32 %16, %.04666
  %22 = and i32 %18, %21
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds %union.SNDSAMPLE, ptr %15, i64 %23
  %25 = load i16, ptr %24, align 4, !tbaa !19
  %26 = zext i16 %25 to i32
  %27 = shl nuw nsw i32 %26, 1
  %28 = getelementptr inbounds i8, ptr %24, i64 2
  %29 = load i16, ptr %28, align 2, !tbaa !19
  %30 = zext i16 %29 to i32
  %31 = shl nuw nsw i32 %30, 1
  %32 = uitofp nneg i32 %27 to float
  %33 = fdiv float %32, 3.276700e+04
  store float %33, ptr %.14467, align 4, !tbaa !20
  %34 = uitofp nneg i32 %31 to float
  %35 = fdiv float %34, 3.276700e+04
  %36 = getelementptr inbounds float, ptr %.14467, i64 %9
  store float %35, ptr %36, align 4, !tbaa !20
  %37 = getelementptr inbounds i8, ptr %.14467, i64 4
  %38 = add nuw i32 %.04666, 1
  %exitcond.not = icmp eq i32 %38, %14
  br i1 %exitcond.not, label %._crit_edge, label %20, !llvm.loop !22

39:                                               ; preds = %._crit_edge
  %40 = load ptr, ptr %0, align 8, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %40, i64 512
  %42 = load i32, ptr %41, align 8, !tbaa !25
  %43 = getelementptr inbounds i8, ptr %40, i64 496
  %44 = load ptr, ptr %43, align 8, !tbaa !30
  %45 = getelementptr inbounds i8, ptr %44, i64 168
  %46 = load i32, ptr %45, align 8, !tbaa !31
  %.not52 = icmp slt i32 %42, %46
  br i1 %.not52, label %49, label %47

47:                                               ; preds = %39
  %48 = sub i32 %2, %19
  br label %.thread60

49:                                               ; preds = %39
  tail call void @_ZN7SNDCHIP11start_frameEv(ptr noundef nonnull align 8 dereferenceable(1164) %5)
  tail call void @_ZN7SNDCHIP11start_frameEv(ptr noundef nonnull align 8 dereferenceable(1164) %6)
  %50 = load i32, ptr %10, align 8, !tbaa !35
  %51 = load i32, ptr %11, align 4, !tbaa !36
  %.not77 = icmp eq i32 %51, 0
  br i1 %.not77, label %.thread, label %.preheader

.preheader:                                       ; preds = %49, %81
  %.promoted69 = phi i32 [ %82, %81 ], [ %50, %49 ]
  %52 = load ptr, ptr %0, align 8, !tbaa !24
  %53 = getelementptr inbounds i8, ptr %52, i64 496
  %54 = load ptr, ptr %53, align 8, !tbaa !30
  %55 = getelementptr inbounds i8, ptr %54, i64 176
  %56 = load ptr, ptr %55, align 8, !tbaa !37
  %57 = getelementptr inbounds i8, ptr %52, i64 512
  %.promoted = load i32, ptr %57, align 8, !tbaa !25
  %58 = getelementptr inbounds i8, ptr %54, i64 168
  %.pre.pre = load i32, ptr %58, align 8, !tbaa !31
  br label %59

59:                                               ; preds = %.preheader, %67
  %60 = phi i32 [ %.promoted69, %.preheader ], [ %70, %67 ]
  %61 = phi i32 [ %.promoted, %.preheader ], [ %66, %67 ]
  %62 = sdiv i32 %61, 2
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i16, ptr %56, i64 %63
  %65 = load i16, ptr %64, align 2, !tbaa !38
  %66 = add nsw i32 %61, 2
  %.not53 = icmp sgt i16 %65, -1
  br i1 %.not53, label %.critedge, label %67

67:                                               ; preds = %59
  %68 = and i16 %65, 32767
  %69 = zext nneg i16 %68 to i32
  %70 = add i32 %60, %69
  store i32 %70, ptr %10, align 8, !tbaa !35
  %.not54 = icmp slt i32 %66, %.pre.pre
  br i1 %.not54, label %59, label %.critedge, !llvm.loop !40

.critedge:                                        ; preds = %59, %67
  %71 = phi i32 [ %60, %59 ], [ %70, %67 ]
  store i32 %66, ptr %57, align 8, !tbaa !25
  %.not55 = icmp slt i32 %66, %.pre.pre
  br i1 %.not55, label %72, label %.thread

72:                                               ; preds = %.critedge
  %73 = lshr i16 %65, 8
  %74 = trunc i16 %65 to i8
  %75 = sub i32 %71, %50
  %76 = and i16 %65, 4096
  %.not56 = icmp eq i16 %76, 0
  %77 = trunc nuw i16 %73 to i8
  br i1 %.not56, label %80, label %78

78:                                               ; preds = %72
  %79 = and i8 %77, 15
  tail call void @_ZN7SNDCHIP6selectEh(ptr noundef nonnull align 8 dereferenceable(1164) %6, i8 noundef zeroext %79)
  br label %81

80:                                               ; preds = %72
  tail call void @_ZN7SNDCHIP6selectEh(ptr noundef nonnull align 8 dereferenceable(1164) %5, i8 noundef zeroext %77)
  br label %81

81:                                               ; preds = %78, %80
  %.sink = phi ptr [ %6, %78 ], [ %5, %80 ]
  tail call void @_ZN7SNDCHIP5writeEjh(ptr noundef nonnull align 8 dereferenceable(1164) %.sink, i32 noundef %75, i8 noundef zeroext %74)
  %82 = load i32, ptr %10, align 8, !tbaa !35
  %83 = sub i32 %82, %50
  %84 = load i32, ptr %11, align 4, !tbaa !36
  %85 = icmp ult i32 %83, %84
  br i1 %85, label %.preheader, label %.thread

.thread:                                          ; preds = %81, %.critedge, %49
  %86 = phi i32 [ %50, %49 ], [ %82, %81 ], [ %71, %.critedge ]
  %87 = sub i32 %86, %50
  tail call void @_ZN7SNDCHIP9end_frameEj(ptr noundef nonnull align 8 dereferenceable(1164) %5, i32 noundef %87)
  %88 = load i32, ptr %10, align 8, !tbaa !35
  %89 = sub i32 %88, %50
  tail call void @_ZN7SNDCHIP9end_frameEj(ptr noundef nonnull align 8 dereferenceable(1164) %6, i32 noundef %89)
  br label %12

.thread60:                                        ; preds = %._crit_edge, %3, %47
  %.2 = phi i32 [ %48, %47 ], [ 0, %3 ], [ %2, %._crit_edge ]
  ret i32 %.2
}

declare void @_ZN9SNDBUFFER11count_startEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #1

declare void @_ZN9SNDBUFFER5countERK9SNDRENDER(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1

declare noundef i32 @_ZN9SNDBUFFER9count_endEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4_minii(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN9SNDBUFFER12samples_readEj(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #1

declare void @_ZN7SNDCHIP11start_frameEv(ptr noundef nonnull align 8 dereferenceable(1164)) local_unnamed_addr #1

declare void @_ZN7SNDCHIP6selectEh(ptr noundef nonnull align 8 dereferenceable(1164), i8 noundef zeroext) local_unnamed_addr #1

declare void @_ZN7SNDCHIP5writeEjh(ptr noundef nonnull align 8 dereferenceable(1164), i32 noundef, i8 noundef zeroext) local_unnamed_addr #1

declare void @_ZN7SNDCHIP9end_frameEj(ptr noundef nonnull align 8 dereferenceable(1164), 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!"_ZTS10ChipPlayer", !7, i64 0, !10, i64 8, !12, i64 32, !12, i64 1200, !11, i64 2368, !11, i64 2372, !11, i64 2376, !11, i64 2380}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS9SNDBUFFER", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTS7SNDCHIP", !13, i64 0, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !8, i64 204, !8, i64 205, !8, i64 208, !14, i64 976, !8, i64 980, !11, i64 996, !11, i64 1000, !11, i64 1004, !11, i64 1008, !15, i64 1012, !16, i64 1140}
!13 = !{!"_ZTS9SNDRENDER", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !7, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76}
!14 = !{!"_ZTSN7SNDCHIP9CHIP_TYPEE", !8, i64 0}
!15 = !{!"_ZTS14SNDCHIP_VOLTAB", !8, i64 0}
!16 = !{!"_ZTS14SNDCHIP_PANTAB", !8, i64 0}
!17 = !{!6, !11, i64 20}
!18 = !{!6, !11, i64 16}
!19 = !{!8, !8, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !8, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!6, !7, i64 0}
!25 = !{!26, !11, i64 512}
!26 = !{!"_ZTSN6SoLoud10AyInstanceE", !27, i64 0, !7, i64 496, !7, i64 504, !11, i64 512}
!27 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !11, i64 8, !11, i64 12, !11, i64 16, !21, i64 20, !8, i64 24, !21, i64 56, !21, i64 60, !21, i64 64, !21, i64 68, !11, i64 72, !21, i64 76, !21, i64 80, !28, i64 88, !28, i64 96, !29, i64 104, !29, i64 152, !29, i64 200, !29, i64 248, !29, i64 296, !11, i64 344, !8, i64 348, !11, i64 380, !11, i64 384, !8, i64 392, !8, i64 456, !11, i64 472, !11, i64 476, !11, i64 480, !28, i64 488}
!28 = !{!"double", !8, i64 0}
!29 = !{!"_ZTSN6SoLoud5FaderE", !21, i64 0, !21, i64 4, !21, i64 8, !28, i64 16, !28, i64 24, !28, i64 32, !21, i64 40, !11, i64 44}
!30 = !{!26, !7, i64 496}
!31 = !{!32, !11, i64 168}
!32 = !{!"_ZTSN6SoLoud2AyE", !33, i64 0, !34, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !7, i64 176}
!33 = !{!"_ZTSN6SoLoud11AudioSourceE", !11, i64 8, !21, i64 12, !21, i64 16, !11, i64 20, !11, i64 24, !21, i64 28, !21, i64 32, !21, i64 36, !11, i64 40, !21, i64 44, !8, i64 48, !7, i64 112, !7, i64 120, !7, i64 128, !11, i64 136, !28, i64 144}
!34 = !{!"bool", !8, i64 0}
!35 = !{!6, !11, i64 2368}
!36 = !{!6, !11, i64 2380}
!37 = !{!32, !7, i64 176}
!38 = !{!39, !39, i64 0}
!39 = !{!"short", !8, i64 0}
!40 = distinct !{!40, !23}


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