; LLVM IR from erwincoumans/tiny-differentiable-simulator :: third_party/tiny_audio (b3WriteWavFile)

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

%struct.b3WaveHeader = type { [4 x i8], i32, [4 x i8], [4 x i8], i32, %union.anon.8, i16, i32, i32, i16, i16, i16, i16, i32, [16 x i8], [4 x i8], i32, i32 }
%union.anon.8 = type { i16 }
%class.b3WriteWavFile = type { ptr, ptr }
%struct.b3WriteWavFileInternalData = type { ptr, i32, i32, i32, i8, i32, i32, i32, i8, i8, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@__const._ZN14b3WriteWavFile10setWavFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiib.data = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN14b3WriteWavFile10setWavFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiib(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) #0 align 2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca %struct.b3WaveHeader, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca [4 x i8], align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  %18 = zext i1 %4 to i8
  store i8 %18, ptr %11, align 1, !tbaa !11
  %19 = load ptr, ptr %7, align 8
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %22, i32 0, i32 1
  store i32 %20, ptr %23, align 8, !tbaa !15
  %24 = load i32, ptr %9, align 4, !tbaa !9
  %25 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !13
  %27 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %26, i32 0, i32 2
  store i32 %24, ptr %27, align 4, !tbaa !25
  %28 = load i8, ptr %11, align 1, !tbaa !11, !range !26, !noundef !27
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %34

30:                                               ; preds = %5
  %31 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %32, i32 0, i32 3
  store i32 64, ptr %33, align 8, !tbaa !28
  br label %38

34:                                               ; preds = %5
  %35 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %36, i32 0, i32 3
  store i32 32, ptr %37, align 8, !tbaa !28
  br label %38

38:                                               ; preds = %34, %30
  %39 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str, i64 noundef 0) #6
  %40 = icmp eq i64 %39, -1
  br i1 %40, label %41, label %43

41:                                               ; preds = %38
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef @.str)
  br label %43

43:                                               ; preds = %41, %38
  %44 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %45 = call noalias ptr @fopen(ptr noundef %44, ptr noundef @.str.1)
  %46 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %47, i32 0, i32 0
  store ptr %45, ptr %48, align 8, !tbaa !29
  %49 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  %51 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !29
  %53 = icmp ne ptr %52, null
  br i1 %53, label %55, label %54

54:                                               ; preds = %43
  store i1 false, ptr %6, align 1
  br label %237

55:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 72, ptr %12) #6
  %56 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 0
  store i8 82, ptr %56, align 1, !tbaa !30
  %57 = getelementptr inbounds i8, ptr %56, i64 1
  store i8 73, ptr %57, align 1, !tbaa !30
  %58 = getelementptr inbounds i8, ptr %56, i64 2
  store i8 70, ptr %58, align 1, !tbaa !30
  %59 = getelementptr inbounds i8, ptr %56, i64 3
  store i8 70, ptr %59, align 1, !tbaa !30
  %60 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 1
  store i32 44, ptr %60, align 4, !tbaa !31
  %61 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 2
  store i8 87, ptr %61, align 1, !tbaa !30
  %62 = getelementptr inbounds i8, ptr %61, i64 1
  store i8 65, ptr %62, align 1, !tbaa !30
  %63 = getelementptr inbounds i8, ptr %61, i64 2
  store i8 86, ptr %63, align 1, !tbaa !30
  %64 = getelementptr inbounds i8, ptr %61, i64 3
  store i8 69, ptr %64, align 1, !tbaa !30
  %65 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 3
  store i8 102, ptr %65, align 1, !tbaa !30
  %66 = getelementptr inbounds i8, ptr %65, i64 1
  store i8 109, ptr %66, align 1, !tbaa !30
  %67 = getelementptr inbounds i8, ptr %65, i64 2
  store i8 116, ptr %67, align 1, !tbaa !30
  %68 = getelementptr inbounds i8, ptr %65, i64 3
  store i8 32, ptr %68, align 1, !tbaa !30
  %69 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 4
  store i32 16, ptr %69, align 4, !tbaa !34
  %70 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 5
  store i16 1, ptr %70, align 4, !tbaa !30
  %71 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 6
  store i16 1, ptr %71, align 2, !tbaa !35
  %72 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 7
  %73 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %73, ptr %72, align 4, !tbaa !36
  %74 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 8
  store i32 0, ptr %74, align 4, !tbaa !37
  %75 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 9
  store i16 2, ptr %75, align 4, !tbaa !38
  %76 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 10
  store i16 16, ptr %76, align 2, !tbaa !39
  %77 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 11
  store i16 0, ptr %77, align 4, !tbaa !40
  %78 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 12
  store i16 0, ptr %78, align 2, !tbaa !41
  %79 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 13
  store i32 0, ptr %79, align 4, !tbaa !42
  %80 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 14
  store i8 1, ptr %80, align 1, !tbaa !30
  %81 = getelementptr inbounds i8, ptr %80, i64 1
  store i8 0, ptr %81, align 1, !tbaa !30
  %82 = getelementptr inbounds i8, ptr %80, i64 2
  store i8 0, ptr %82, align 1, !tbaa !30
  %83 = getelementptr inbounds i8, ptr %80, i64 3
  store i8 0, ptr %83, align 1, !tbaa !30
  %84 = getelementptr inbounds i8, ptr %80, i64 4
  store i8 0, ptr %84, align 1, !tbaa !30
  %85 = getelementptr inbounds i8, ptr %80, i64 5
  store i8 0, ptr %85, align 1, !tbaa !30
  %86 = getelementptr inbounds i8, ptr %80, i64 6
  store i8 16, ptr %86, align 1, !tbaa !30
  %87 = getelementptr inbounds i8, ptr %80, i64 7
  store i8 0, ptr %87, align 1, !tbaa !30
  %88 = getelementptr inbounds i8, ptr %80, i64 8
  store i8 -128, ptr %88, align 1, !tbaa !30
  %89 = getelementptr inbounds i8, ptr %80, i64 9
  store i8 0, ptr %89, align 1, !tbaa !30
  %90 = getelementptr inbounds i8, ptr %80, i64 10
  store i8 0, ptr %90, align 1, !tbaa !30
  %91 = getelementptr inbounds i8, ptr %80, i64 11
  store i8 -86, ptr %91, align 1, !tbaa !30
  %92 = getelementptr inbounds i8, ptr %80, i64 12
  store i8 0, ptr %92, align 1, !tbaa !30
  %93 = getelementptr inbounds i8, ptr %80, i64 13
  store i8 56, ptr %93, align 1, !tbaa !30
  %94 = getelementptr inbounds i8, ptr %80, i64 14
  store i8 -101, ptr %94, align 1, !tbaa !30
  %95 = getelementptr inbounds i8, ptr %80, i64 15
  store i8 113, ptr %95, align 1, !tbaa !30
  %96 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 15
  store i8 102, ptr %96, align 1, !tbaa !30
  %97 = getelementptr inbounds i8, ptr %96, i64 1
  store i8 97, ptr %97, align 1, !tbaa !30
  %98 = getelementptr inbounds i8, ptr %96, i64 2
  store i8 99, ptr %98, align 1, !tbaa !30
  %99 = getelementptr inbounds i8, ptr %96, i64 3
  store i8 116, ptr %99, align 1, !tbaa !30
  %100 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 16
  store i32 4, ptr %100, align 4, !tbaa !43
  %101 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 17
  store i32 0, ptr %101, align 4, !tbaa !44
  %102 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !13
  %104 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 8, !tbaa !15
  %106 = trunc i32 %105 to i16
  %107 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 6
  store i16 %106, ptr %107, align 2, !tbaa !35
  %108 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %109, i32 0, i32 3
  %111 = load i32, ptr %110, align 8, !tbaa !28
  %112 = icmp eq i32 %111, 32
  br i1 %112, label %113, label %116

113:                                              ; preds = %55
  %114 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 5
  store i16 3, ptr %114, align 4, !tbaa !30
  %115 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 10
  store i16 32, ptr %115, align 2, !tbaa !39
  br label %126

116:                                              ; preds = %55
  %117 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !13
  %119 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %118, i32 0, i32 3
  %120 = load i32, ptr %119, align 8, !tbaa !28
  %121 = icmp eq i32 %120, 64
  br i1 %121, label %122, label %125

122:                                              ; preds = %116
  %123 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 5
  store i16 3, ptr %123, align 4, !tbaa !30
  %124 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 10
  store i16 64, ptr %124, align 2, !tbaa !39
  br label %125

125:                                              ; preds = %122, %116
  br label %126

126:                                              ; preds = %125, %113
  %127 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !13
  %129 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 8, !tbaa !15
  %131 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 10
  %132 = load i16, ptr %131, align 2, !tbaa !39
  %133 = sext i16 %132 to i32
  %134 = mul nsw i32 %130, %133
  %135 = sdiv i32 %134, 8
  %136 = trunc i32 %135 to i16
  %137 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 9
  store i16 %136, ptr %137, align 4, !tbaa !38
  %138 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 7
  %139 = load i32, ptr %138, align 4, !tbaa !36
  %140 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 9
  %141 = load i16, ptr %140, align 4, !tbaa !38
  %142 = sext i16 %141 to i32
  %143 = mul nsw i32 %139, %142
  %144 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 8
  store i32 %143, ptr %144, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 36, ptr %13, align 4, !tbaa !9
  %145 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %146 = load ptr, ptr %145, align 8, !tbaa !13
  %147 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %146, i32 0, i32 1
  %148 = load i32, ptr %147, align 8, !tbaa !15
  %149 = icmp sgt i32 %148, 2
  br i1 %149, label %155, label %150

150:                                              ; preds = %126
  %151 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 10
  %152 = load i16, ptr %151, align 2, !tbaa !39
  %153 = sext i16 %152 to i32
  %154 = icmp sgt i32 %153, 16
  br i1 %154, label %155, label %182

155:                                              ; preds = %150, %126
  store i32 72, ptr %13, align 4, !tbaa !9
  %156 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 4
  %157 = load i32, ptr %156, align 4, !tbaa !34
  %158 = add nsw i32 %157, 24
  store i32 %158, ptr %156, align 4, !tbaa !34
  %159 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 5
  store i16 -2, ptr %159, align 4, !tbaa !30
  %160 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 11
  store i16 22, ptr %160, align 4, !tbaa !40
  %161 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 10
  %162 = load i16, ptr %161, align 2, !tbaa !39
  %163 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 12
  store i16 %162, ptr %163, align 2, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %164 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 14
  %165 = getelementptr inbounds [16 x i8], ptr %164, i64 0, i64 0
  store ptr %165, ptr %14, align 8, !tbaa !5
  %166 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !13
  %168 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %167, i32 0, i32 3
  %169 = load i32, ptr %168, align 8, !tbaa !28
  %170 = icmp eq i32 %169, 32
  br i1 %170, label %177, label %171

171:                                              ; preds = %155
  %172 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !13
  %174 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %173, i32 0, i32 3
  %175 = load i32, ptr %174, align 8, !tbaa !28
  %176 = icmp eq i32 %175, 64
  br i1 %176, label %177, label %179

177:                                              ; preds = %171, %155
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  store i16 3, ptr %178, align 2, !tbaa !45
  br label %181

179:                                              ; preds = %171
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  store i16 1, ptr %180, align 2, !tbaa !45
  br label %181

181:                                              ; preds = %179, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %182

182:                                              ; preds = %181, %150
  %183 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %184 = load ptr, ptr %183, align 8, !tbaa !13
  %185 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %184, i32 0, i32 4
  store i8 0, ptr %185, align 4, !tbaa !46
  %186 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %187 = load ptr, ptr %186, align 8, !tbaa !13
  %188 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %187, i32 0, i32 9
  %189 = load i8, ptr %188, align 1, !tbaa !47, !range !26, !noundef !27
  %190 = trunc i8 %189 to i1
  br i1 %190, label %207, label %191

191:                                              ; preds = %182
  %192 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %193 = load ptr, ptr %192, align 8, !tbaa !13
  %194 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %193, i32 0, i32 4
  store i8 1, ptr %194, align 4, !tbaa !46
  %195 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 4
  call void @_Z8b3Swap32Ph(ptr noundef %195)
  %196 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 5
  call void @_Z8b3Swap16Ph(ptr noundef %196)
  %197 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 6
  call void @_Z8b3Swap16Ph(ptr noundef %197)
  %198 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 7
  call void @_Z8b3Swap32Ph(ptr noundef %198)
  %199 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 8
  call void @_Z8b3Swap32Ph(ptr noundef %199)
  %200 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 9
  call void @_Z8b3Swap16Ph(ptr noundef %200)
  %201 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 10
  call void @_Z8b3Swap16Ph(ptr noundef %201)
  %202 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 11
  call void @_Z8b3Swap16Ph(ptr noundef %202)
  %203 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 12
  call void @_Z8b3Swap16Ph(ptr noundef %203)
  %204 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 14
  %205 = getelementptr inbounds [16 x i8], ptr %204, i64 0, i64 0
  call void @_Z8b3Swap16Ph(ptr noundef %205)
  %206 = getelementptr inbounds %struct.b3WaveHeader, ptr %12, i32 0, i32 16
  call void @_Z8b3Swap32Ph(ptr noundef %206)
  br label %207

207:                                              ; preds = %191, %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %15, ptr align 1 @__const._ZN14b3WriteWavFile10setWavFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiib.data, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  %208 = load i32, ptr %13, align 4, !tbaa !9
  %209 = zext i32 %208 to i64
  %210 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %211 = load ptr, ptr %210, align 8, !tbaa !13
  %212 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %211, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !29
  %214 = call i64 @fwrite(ptr noundef %12, i64 noundef 1, i64 noundef %209, ptr noundef %213)
  %215 = load i32, ptr %13, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = icmp ne i64 %214, %216
  br i1 %217, label %218, label %219

218:                                              ; preds = %207
  store i1 false, ptr %6, align 1
  store i32 1, ptr %17, align 4
  br label %236

219:                                              ; preds = %207
  %220 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %221 = load ptr, ptr %220, align 8, !tbaa !13
  %222 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %221, i32 0, i32 0
  %223 = load ptr, ptr %222, align 8, !tbaa !29
  %224 = call i64 @fwrite(ptr noundef %15, i64 noundef 4, i64 noundef 1, ptr noundef %223)
  %225 = icmp ne i64 %224, 1
  br i1 %225, label %226, label %227

226:                                              ; preds = %219
  store i1 false, ptr %6, align 1
  store i32 1, ptr %17, align 4
  br label %236

227:                                              ; preds = %219
  %228 = getelementptr inbounds %class.b3WriteWavFile, ptr %19, i32 0, i32 1
  %229 = load ptr, ptr %228, align 8, !tbaa !13
  %230 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %229, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !29
  %232 = call i64 @fwrite(ptr noundef %16, i64 noundef 4, i64 noundef 1, ptr noundef %231)
  %233 = icmp ne i64 %232, 1
  br i1 %233, label %234, label %235

234:                                              ; preds = %227
  store i1 false, ptr %6, align 1
  store i32 1, ptr %17, align 4
  br label %236

235:                                              ; preds = %227
  store i1 true, ptr %6, align 1
  store i32 1, ptr %17, align 4
  br label %236

236:                                              ; preds = %235, %234, %226, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #6
  br label %237

237:                                              ; preds = %236, %54
  %238 = load i1, ptr %6, align 1
  ret i1 %238
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #0 align 2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z8b3Swap32Ph(ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z8b3Swap16Ph(ptr noundef) #4

; 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) #5

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr 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 = { 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS14b3WriteWavFile", !6, i64 8}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTS26b3WriteWavFileInternalData", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !12, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !12, i64 36, !12, i64 37, !17, i64 40, !21, i64 64}
!17 = !{!"_ZTSSt6vectorIfSaIfEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!16, !10, i64 12}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!16, !10, i64 16}
!29 = !{!16, !6, i64 0}
!30 = !{!7, !7, i64 0}
!31 = !{!32, !10, i64 4}
!32 = !{!"_ZTS12b3WaveHeader", !7, i64 0, !10, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 20, !33, i64 22, !10, i64 24, !10, i64 28, !33, i64 32, !33, i64 34, !33, i64 36, !33, i64 38, !10, i64 40, !7, i64 44, !7, i64 60, !10, i64 64, !10, i64 68}
!33 = !{!"short", !7, i64 0}
!34 = !{!32, !10, i64 16}
!35 = !{!32, !33, i64 22}
!36 = !{!32, !10, i64 24}
!37 = !{!32, !10, i64 28}
!38 = !{!32, !33, i64 32}
!39 = !{!32, !33, i64 34}
!40 = !{!32, !33, i64 36}
!41 = !{!32, !33, i64 38}
!42 = !{!32, !10, i64 40}
!43 = !{!32, !10, i64 64}
!44 = !{!32, !10, i64 68}
!45 = !{!33, !33, i64 0}
!46 = !{!16, !12, i64 20}
!47 = !{!16, !12, i64 37}


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

%struct.b3WaveHeader = type { [4 x i8], i32, [4 x i8], [4 x i8], i32, %union.anon.8, i16, i32, i32, i16, i16, i16, i16, i32, [16 x i8], [4 x i8], i32, i32 }
%union.anon.8 = type { i16 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@__const._ZN14b3WriteWavFile10setWavFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiib.data = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN14b3WriteWavFile10setWavFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiib(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %0, ptr noundef nonnull %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #0 align 2 {
  %6 = alloca %struct.b3WaveHeader, align 4
  %7 = alloca [4 x i8], align 4
  %8 = alloca i32, align 4
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %3, ptr %11, align 8, !tbaa !10
  %12 = getelementptr inbounds i8, ptr %10, i64 12
  store i32 %2, ptr %12, align 4, !tbaa !22
  %spec.select = select i1 %4, i32 64, i32 32
  %13 = getelementptr inbounds i8, ptr %10, i64 16
  store i32 %spec.select, ptr %13, align 8
  %14 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str, i64 noundef 0) #6
  %15 = icmp eq i64 %14, -1
  br i1 %15, label %16, label %18

16:                                               ; preds = %5
  %17 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str)
  br label %18

18:                                               ; preds = %16, %5
  %19 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %20 = tail call noalias ptr @fopen(ptr noundef %19, ptr noundef nonnull @.str.1)
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %20, ptr %21, align 8, !tbaa !23
  %.not = icmp eq ptr %20, null
  br i1 %.not, label %83, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #6
  store <4 x i8> <i8 82, i8 73, i8 70, i8 70>, ptr %6, align 4, !tbaa !24
  %23 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 44, ptr %23, align 4, !tbaa !25
  %24 = getelementptr inbounds i8, ptr %6, i64 8
  store <8 x i8> <i8 87, i8 65, i8 86, i8 69, i8 102, i8 109, i8 116, i8 32>, ptr %24, align 4, !tbaa !24
  %25 = getelementptr inbounds i8, ptr %6, i64 16
  store i32 16, ptr %25, align 4, !tbaa !28
  %26 = getelementptr inbounds i8, ptr %6, i64 20
  store i16 1, ptr %26, align 4, !tbaa !24
  %27 = getelementptr inbounds i8, ptr %6, i64 22
  %28 = getelementptr inbounds i8, ptr %6, i64 24
  store i32 %2, ptr %28, align 4, !tbaa !29
  %29 = getelementptr inbounds i8, ptr %6, i64 28
  store i32 0, ptr %29, align 4, !tbaa !30
  %30 = getelementptr inbounds i8, ptr %6, i64 32
  store i16 2, ptr %30, align 4, !tbaa !31
  %31 = getelementptr inbounds i8, ptr %6, i64 34
  store i16 16, ptr %31, align 2, !tbaa !32
  %32 = getelementptr inbounds i8, ptr %6, i64 36
  %33 = getelementptr inbounds i8, ptr %6, i64 38
  %34 = getelementptr inbounds i8, ptr %6, i64 44
  store i64 0, ptr %32, align 4
  store i8 1, ptr %34, align 4, !tbaa !24
  %35 = getelementptr inbounds i8, ptr %6, i64 45
  %36 = getelementptr inbounds i8, ptr %6, i64 50
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %35, i8 0, i64 5, i1 false)
  store <8 x i8> <i8 16, i8 0, i8 -128, i8 0, i8 0, i8 -86, i8 0, i8 56>, ptr %36, align 2, !tbaa !24
  %37 = getelementptr inbounds i8, ptr %6, i64 58
  store <4 x i8> <i8 -101, i8 113, i8 102, i8 97>, ptr %37, align 2, !tbaa !24
  %38 = getelementptr inbounds i8, ptr %6, i64 62
  store i8 99, ptr %38, align 2, !tbaa !24
  %39 = getelementptr inbounds i8, ptr %6, i64 63
  store i8 116, ptr %39, align 1, !tbaa !24
  %40 = getelementptr inbounds i8, ptr %6, i64 64
  store i32 4, ptr %40, align 4, !tbaa !33
  %41 = getelementptr inbounds i8, ptr %6, i64 68
  store i32 0, ptr %41, align 4, !tbaa !34
  %42 = getelementptr inbounds i8, ptr %21, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !10
  %44 = trunc i32 %43 to i16
  store i16 %44, ptr %27, align 2, !tbaa !35
  %45 = getelementptr inbounds i8, ptr %21, i64 16
  %46 = load i32, ptr %45, align 8, !tbaa !36
  switch i32 %46, label %48 [
    i32 32, label %.sink.split
    i32 64, label %47
  ]

47:                                               ; preds = %22
  br label %.sink.split

.sink.split:                                      ; preds = %22, %47
  %.sink = phi i16 [ 64, %47 ], [ 32, %22 ]
  store i16 3, ptr %26, align 4, !tbaa !24
  store i16 %.sink, ptr %31, align 2, !tbaa !32
  br label %48

48:                                               ; preds = %.sink.split, %22
  %49 = phi i1 [ false, %22 ], [ true, %.sink.split ]
  %50 = phi i16 [ 16, %22 ], [ %.sink, %.sink.split ]
  %51 = load i32, ptr %42, align 8, !tbaa !10
  %52 = zext nneg i16 %50 to i32
  %53 = mul nsw i32 %51, %52
  %54 = lshr exact i32 %53, 3
  %55 = trunc i32 %54 to i16
  store i16 %55, ptr %30, align 4, !tbaa !31
  %sext = shl i32 %53, 13
  %56 = ashr exact i32 %sext, 16
  %57 = mul nsw i32 %56, %2
  store i32 %57, ptr %29, align 4, !tbaa !30
  %58 = icmp sgt i32 %51, 2
  %or.cond = or i1 %58, %49
  br i1 %or.cond, label %59, label %63

59:                                               ; preds = %48
  store i32 40, ptr %25, align 4, !tbaa !28
  store i16 -2, ptr %26, align 4, !tbaa !24
  store i16 22, ptr %32, align 4, !tbaa !37
  store i16 %50, ptr %33, align 2, !tbaa !38
  %60 = load i32, ptr %45, align 8, !tbaa !36
  %61 = add i32 %60, -32
  %switch.and = and i32 %61, -33
  %switch.selectcmp = icmp eq i32 %switch.and, 0
  %62 = select i1 %switch.selectcmp, i16 3, i16 1
  store i16 %62, ptr %34, align 4, !tbaa !39
  br label %63

63:                                               ; preds = %48, %59
  %.012 = phi i64 [ 72, %59 ], [ 36, %48 ]
  %64 = getelementptr inbounds i8, ptr %21, i64 20
  store i8 0, ptr %64, align 4, !tbaa !40
  %65 = getelementptr inbounds i8, ptr %21, i64 37
  %66 = load i8, ptr %65, align 1, !tbaa !41, !range !42, !noundef !43
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %69, label %68

68:                                               ; preds = %63
  store i8 1, ptr %64, align 4, !tbaa !40
  call void @_Z8b3Swap32Ph(ptr noundef nonnull %25)
  call void @_Z8b3Swap16Ph(ptr noundef nonnull %26)
  call void @_Z8b3Swap16Ph(ptr noundef nonnull %27)
  call void @_Z8b3Swap32Ph(ptr noundef nonnull %28)
  call void @_Z8b3Swap32Ph(ptr noundef nonnull %29)
  call void @_Z8b3Swap16Ph(ptr noundef nonnull %30)
  call void @_Z8b3Swap16Ph(ptr noundef nonnull %31)
  call void @_Z8b3Swap16Ph(ptr noundef nonnull %32)
  call void @_Z8b3Swap16Ph(ptr noundef nonnull %33)
  call void @_Z8b3Swap16Ph(ptr noundef nonnull %34)
  call void @_Z8b3Swap32Ph(ptr noundef nonnull %40)
  %.pre = load ptr, ptr %9, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %68, %63
  %70 = phi ptr [ %.pre, %68 ], [ %21, %63 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %71 = load i32, ptr @__const._ZN14b3WriteWavFile10setWavFileENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiib.data, align 1
  store i32 %71, ptr %7, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !44
  %72 = load ptr, ptr %70, align 8, !tbaa !23
  %73 = call i64 @fwrite(ptr noundef nonnull %6, i64 noundef 1, i64 noundef %.012, ptr noundef %72)
  %.not15 = icmp eq i64 %73, %.012
  br i1 %.not15, label %74, label %82

74:                                               ; preds = %69
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load ptr, ptr %75, align 8, !tbaa !23
  %77 = call i64 @fwrite(ptr noundef nonnull %7, i64 noundef 4, i64 noundef 1, ptr noundef %76)
  %.not16 = icmp eq i64 %77, 1
  br i1 %.not16, label %78, label %82

78:                                               ; preds = %74
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !23
  %81 = call i64 @fwrite(ptr noundef nonnull %8, i64 noundef 4, i64 noundef 1, ptr noundef %80)
  %.not17 = icmp eq i64 %81, 1
  br label %82

82:                                               ; preds = %78, %74, %69
  %.0 = phi i1 [ false, %69 ], [ false, %74 ], [ %.not17, %78 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  br label %83

83:                                               ; preds = %18, %82
  %.1 = phi i1 [ %.0, %82 ], [ false, %18 ]
  ret i1 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z8b3Swap32Ph(ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z8b3Swap16Ph(ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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 = { nofree 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!"_ZTS14b3WriteWavFile", !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"_ZTS26b3WriteWavFileInternalData", !7, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !13, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !13, i64 36, !13, i64 37, !14, i64 40, !18, i64 64}
!12 = !{!"int", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTSSt6vectorIfSaIfEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!22 = !{!11, !12, i64 12}
!23 = !{!11, !7, i64 0}
!24 = !{!8, !8, i64 0}
!25 = !{!26, !12, i64 4}
!26 = !{!"_ZTS12b3WaveHeader", !8, i64 0, !12, i64 4, !8, i64 8, !8, i64 12, !12, i64 16, !8, i64 20, !27, i64 22, !12, i64 24, !12, i64 28, !27, i64 32, !27, i64 34, !27, i64 36, !27, i64 38, !12, i64 40, !8, i64 44, !8, i64 60, !12, i64 64, !12, i64 68}
!27 = !{!"short", !8, i64 0}
!28 = !{!26, !12, i64 16}
!29 = !{!26, !12, i64 24}
!30 = !{!26, !12, i64 28}
!31 = !{!26, !27, i64 32}
!32 = !{!26, !27, i64 34}
!33 = !{!26, !12, i64 64}
!34 = !{!26, !12, i64 68}
!35 = !{!26, !27, i64 22}
!36 = !{!11, !12, i64 16}
!37 = !{!26, !27, i64 36}
!38 = !{!26, !27, i64 38}
!39 = !{!27, !27, i64 0}
!40 = !{!11, !13, i64 20}
!41 = !{!11, !13, i64 37}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!12, !12, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass