; LLVM IR from merpheus-dev/LavaEngine :: src/Utils/soloud/src/audiosource/wav (dr_impl)

; 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.drwav = type { ptr, ptr, ptr, ptr, %struct.drwav_allocation_callbacks, i32, %struct.drwav_fmt, i32, i16, i16, i16, i64, i64, i64, i64, i64, i32, %struct.drwav_smpl, %struct.drwav__memory_stream, %struct.drwav__memory_stream_write, %struct.anon.1, %struct.anon.2, %struct.anon.3 }
%struct.drwav_allocation_callbacks = type { ptr, ptr, ptr, ptr }
%struct.drwav_fmt = type { i16, i16, i32, i32, i16, i16, i16, i16, i32, [16 x i8] }
%struct.drwav_smpl = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, [1 x %struct.drwav_smpl_loop] }
%struct.drwav_smpl_loop = type { i32, i32, i32, i32, i32, i32 }
%struct.drwav__memory_stream = type { ptr, i64, i64 }
%struct.drwav__memory_stream_write = type { ptr, ptr, i64, i64, i64 }
%struct.anon.1 = type { i64 }
%struct.anon.2 = type { i32, [2 x i16], [2 x i32], [4 x i32], i32, [2 x [2 x i32]] }
%struct.anon.3 = type { i32, [2 x i32], [2 x i32], [16 x i32], i32 }
%struct.drwav_data_format = type { i32, i32, i32, i32, i32 }

@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL18drwavGUID_W64_RIFF = external hidden constant [16 x i8], align 16
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL18drwavGUID_W64_WAVE = external hidden constant [16 x i8], align 16
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL18drwavGUID_W64_DATA = external hidden constant [16 x i8], align 16
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL17drwavGUID_W64_FMT = external hidden constant [16 x i8], align 16

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z26drwav_init_write__internalP5drwavPK17drwav_data_formatm(ptr noundef %0, ptr noundef %1, i64 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  store i64 0, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.drwav, ptr %16, i32 0, i32 16
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %39

20:                                               ; preds = %3
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.drwav, ptr %22, i32 0, i32 6
  %24 = getelementptr inbounds %struct.drwav_fmt, ptr %23, i32 0, i32 5
  %25 = load i16, ptr %24, align 2, !tbaa !24
  %26 = zext i16 %25 to i64
  %27 = mul i64 %21, %26
  %28 = udiv i64 %27, 8
  store i64 %28, ptr %9, align 8, !tbaa !9
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.drwav_data_format, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 4, !tbaa !25
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %38

33:                                               ; preds = %20
  %34 = load i64, ptr %9, align 8, !tbaa !9
  %35 = icmp ugt i64 %34, 4294967259
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %323

37:                                               ; preds = %33
  br label %38

38:                                               ; preds = %37, %20
  br label %39

39:                                               ; preds = %38, %3
  %40 = load i64, ptr %9, align 8, !tbaa !9
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.drwav, ptr %41, i32 0, i32 15
  store i64 %40, ptr %42, align 8, !tbaa !27
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.drwav_data_format, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 4, !tbaa !25
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %78

47:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #2
  %48 = load i64, ptr %9, align 8, !tbaa !9
  %49 = trunc i64 %48 to i32
  %50 = add i32 36, %49
  store i32 %50, ptr %12, align 4, !tbaa !28
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.drwav, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !29
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.drwav, ptr %54, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !30
  %57 = call noundef i64 %53(ptr noundef %56, ptr noundef @.str.19, i64 noundef 4)
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = add i64 %58, %57
  store i64 %59, ptr %8, align 8, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.drwav, ptr %60, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !29
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.drwav, ptr %63, i32 0, i32 3
  %65 = load ptr, ptr %64, align 8, !tbaa !30
  %66 = call noundef i64 %62(ptr noundef %65, ptr noundef %12, i64 noundef 4)
  %67 = load i64, ptr %8, align 8, !tbaa !9
  %68 = add i64 %67, %66
  store i64 %68, ptr %8, align 8, !tbaa !9
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.drwav, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !29
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.drwav, ptr %72, i32 0, i32 3
  %74 = load ptr, ptr %73, align 8, !tbaa !30
  %75 = call noundef i64 %71(ptr noundef %74, ptr noundef @.str.21, i64 noundef 4)
  %76 = load i64, ptr %8, align 8, !tbaa !9
  %77 = add i64 %76, %75
  store i64 %77, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #2
  br label %108

78:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  %79 = load i64, ptr %9, align 8, !tbaa !9
  %80 = add i64 104, %79
  store i64 %80, ptr %13, align 8, !tbaa !9
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.drwav, ptr %81, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !29
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.drwav, ptr %84, i32 0, i32 3
  %86 = load ptr, ptr %85, align 8, !tbaa !30
  %87 = call noundef i64 %83(ptr noundef %86, ptr noundef @_ZL18drwavGUID_W64_RIFF, i64 noundef 16)
  %88 = load i64, ptr %8, align 8, !tbaa !9
  %89 = add i64 %88, %87
  store i64 %89, ptr %8, align 8, !tbaa !9
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.drwav, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !29
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.drwav, ptr %93, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !30
  %96 = call noundef i64 %92(ptr noundef %95, ptr noundef %13, i64 noundef 8)
  %97 = load i64, ptr %8, align 8, !tbaa !9
  %98 = add i64 %97, %96
  store i64 %98, ptr %8, align 8, !tbaa !9
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.drwav, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !29
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.drwav, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !30
  %105 = call noundef i64 %101(ptr noundef %104, ptr noundef @_ZL18drwavGUID_W64_WAVE, i64 noundef 16)
  %106 = load i64, ptr %8, align 8, !tbaa !9
  %107 = add i64 %106, %105
  store i64 %107, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  br label %108

108:                                              ; preds = %78, %47
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.drwav_data_format, ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 4, !tbaa !25
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %132

113:                                              ; preds = %108
  store i64 16, ptr %10, align 8, !tbaa !9
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.drwav, ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !29
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.drwav, ptr %117, i32 0, i32 3
  %119 = load ptr, ptr %118, align 8, !tbaa !30
  %120 = call noundef i64 %116(ptr noundef %119, ptr noundef @.str.25, i64 noundef 4)
  %121 = load i64, ptr %8, align 8, !tbaa !9
  %122 = add i64 %121, %120
  store i64 %122, ptr %8, align 8, !tbaa !9
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.drwav, ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !29
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.drwav, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !30
  %129 = call noundef i64 %125(ptr noundef %128, ptr noundef %10, i64 noundef 4)
  %130 = load i64, ptr %8, align 8, !tbaa !9
  %131 = add i64 %130, %129
  store i64 %131, ptr %8, align 8, !tbaa !9
  br label %151

132:                                              ; preds = %108
  store i64 40, ptr %10, align 8, !tbaa !9
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.drwav, ptr %133, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !29
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.drwav, ptr %136, i32 0, i32 3
  %138 = load ptr, ptr %137, align 8, !tbaa !30
  %139 = call noundef i64 %135(ptr noundef %138, ptr noundef @_ZL17drwavGUID_W64_FMT, i64 noundef 16)
  %140 = load i64, ptr %8, align 8, !tbaa !9
  %141 = add i64 %140, %139
  store i64 %141, ptr %8, align 8, !tbaa !9
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.drwav, ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !29
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.drwav, ptr %145, i32 0, i32 3
  %147 = load ptr, ptr %146, align 8, !tbaa !30
  %148 = call noundef i64 %144(ptr noundef %147, ptr noundef %10, i64 noundef 8)
  %149 = load i64, ptr %8, align 8, !tbaa !9
  %150 = add i64 %149, %148
  store i64 %150, ptr %8, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %132, %113
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.drwav, ptr %152, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !29
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.drwav, ptr %155, i32 0, i32 3
  %157 = load ptr, ptr %156, align 8, !tbaa !30
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.drwav, ptr %158, i32 0, i32 6
  %160 = getelementptr inbounds %struct.drwav_fmt, ptr %159, i32 0, i32 0
  %161 = call noundef i64 %154(ptr noundef %157, ptr noundef %160, i64 noundef 2)
  %162 = load i64, ptr %8, align 8, !tbaa !9
  %163 = add i64 %162, %161
  store i64 %163, ptr %8, align 8, !tbaa !9
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.drwav, ptr %164, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !29
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.drwav, ptr %167, i32 0, i32 3
  %169 = load ptr, ptr %168, align 8, !tbaa !30
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.drwav, ptr %170, i32 0, i32 6
  %172 = getelementptr inbounds %struct.drwav_fmt, ptr %171, i32 0, i32 1
  %173 = call noundef i64 %166(ptr noundef %169, ptr noundef %172, i64 noundef 2)
  %174 = load i64, ptr %8, align 8, !tbaa !9
  %175 = add i64 %174, %173
  store i64 %175, ptr %8, align 8, !tbaa !9
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.drwav, ptr %176, i32 0, i32 1
  %178 = load ptr, ptr %177, align 8, !tbaa !29
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.drwav, ptr %179, i32 0, i32 3
  %181 = load ptr, ptr %180, align 8, !tbaa !30
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.drwav, ptr %182, i32 0, i32 6
  %184 = getelementptr inbounds %struct.drwav_fmt, ptr %183, i32 0, i32 2
  %185 = call noundef i64 %178(ptr noundef %181, ptr noundef %184, i64 noundef 4)
  %186 = load i64, ptr %8, align 8, !tbaa !9
  %187 = add i64 %186, %185
  store i64 %187, ptr %8, align 8, !tbaa !9
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.drwav, ptr %188, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8, !tbaa !29
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.drwav, ptr %191, i32 0, i32 3
  %193 = load ptr, ptr %192, align 8, !tbaa !30
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.drwav, ptr %194, i32 0, i32 6
  %196 = getelementptr inbounds %struct.drwav_fmt, ptr %195, i32 0, i32 3
  %197 = call noundef i64 %190(ptr noundef %193, ptr noundef %196, i64 noundef 4)
  %198 = load i64, ptr %8, align 8, !tbaa !9
  %199 = add i64 %198, %197
  store i64 %199, ptr %8, align 8, !tbaa !9
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.drwav, ptr %200, i32 0, i32 1
  %202 = load ptr, ptr %201, align 8, !tbaa !29
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.drwav, ptr %203, i32 0, i32 3
  %205 = load ptr, ptr %204, align 8, !tbaa !30
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.drwav, ptr %206, i32 0, i32 6
  %208 = getelementptr inbounds %struct.drwav_fmt, ptr %207, i32 0, i32 4
  %209 = call noundef i64 %202(ptr noundef %205, ptr noundef %208, i64 noundef 2)
  %210 = load i64, ptr %8, align 8, !tbaa !9
  %211 = add i64 %210, %209
  store i64 %211, ptr %8, align 8, !tbaa !9
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.drwav, ptr %212, i32 0, i32 1
  %214 = load ptr, ptr %213, align 8, !tbaa !29
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.drwav, ptr %215, i32 0, i32 3
  %217 = load ptr, ptr %216, align 8, !tbaa !30
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.drwav, ptr %218, i32 0, i32 6
  %220 = getelementptr inbounds %struct.drwav_fmt, ptr %219, i32 0, i32 5
  %221 = call noundef i64 %214(ptr noundef %217, ptr noundef %220, i64 noundef 2)
  %222 = load i64, ptr %8, align 8, !tbaa !9
  %223 = add i64 %222, %221
  store i64 %223, ptr %8, align 8, !tbaa !9
  %224 = load i64, ptr %8, align 8, !tbaa !9
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.drwav, ptr %225, i32 0, i32 13
  store i64 %224, ptr %226, align 8, !tbaa !31
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.drwav_data_format, ptr %227, i32 0, i32 0
  %229 = load i32, ptr %228, align 4, !tbaa !25
  %230 = icmp eq i32 %229, 0
  br i1 %230, label %231, label %252

231:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  %232 = load i64, ptr %9, align 8, !tbaa !9
  %233 = trunc i64 %232 to i32
  store i32 %233, ptr %14, align 4, !tbaa !28
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.drwav, ptr %234, i32 0, i32 1
  %236 = load ptr, ptr %235, align 8, !tbaa !29
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.drwav, ptr %237, i32 0, i32 3
  %239 = load ptr, ptr %238, align 8, !tbaa !30
  %240 = call noundef i64 %236(ptr noundef %239, ptr noundef @.str.22, i64 noundef 4)
  %241 = load i64, ptr %8, align 8, !tbaa !9
  %242 = add i64 %241, %240
  store i64 %242, ptr %8, align 8, !tbaa !9
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.drwav, ptr %243, i32 0, i32 1
  %245 = load ptr, ptr %244, align 8, !tbaa !29
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.drwav, ptr %246, i32 0, i32 3
  %248 = load ptr, ptr %247, align 8, !tbaa !30
  %249 = call noundef i64 %245(ptr noundef %248, ptr noundef %14, i64 noundef 4)
  %250 = load i64, ptr %8, align 8, !tbaa !9
  %251 = add i64 %250, %249
  store i64 %251, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  br label %273

252:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  %253 = load i64, ptr %9, align 8, !tbaa !9
  %254 = add i64 24, %253
  store i64 %254, ptr %15, align 8, !tbaa !9
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.drwav, ptr %255, i32 0, i32 1
  %257 = load ptr, ptr %256, align 8, !tbaa !29
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.drwav, ptr %258, i32 0, i32 3
  %260 = load ptr, ptr %259, align 8, !tbaa !30
  %261 = call noundef i64 %257(ptr noundef %260, ptr noundef @_ZL18drwavGUID_W64_DATA, i64 noundef 16)
  %262 = load i64, ptr %8, align 8, !tbaa !9
  %263 = add i64 %262, %261
  store i64 %263, ptr %8, align 8, !tbaa !9
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.drwav, ptr %264, i32 0, i32 1
  %266 = load ptr, ptr %265, align 8, !tbaa !29
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.drwav, ptr %267, i32 0, i32 3
  %269 = load ptr, ptr %268, align 8, !tbaa !30
  %270 = call noundef i64 %266(ptr noundef %269, ptr noundef %15, i64 noundef 8)
  %271 = load i64, ptr %8, align 8, !tbaa !9
  %272 = add i64 %271, %270
  store i64 %272, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  br label %273

273:                                              ; preds = %252, %231
  %274 = load ptr, ptr %6, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.drwav_data_format, ptr %274, i32 0, i32 0
  %276 = load i32, ptr %275, align 4, !tbaa !25
  %277 = icmp eq i32 %276, 0
  br i1 %277, label %278, label %286

278:                                              ; preds = %273
  %279 = load i64, ptr %8, align 8, !tbaa !9
  %280 = load i64, ptr %10, align 8, !tbaa !9
  %281 = add i64 20, %280
  %282 = add i64 %281, 8
  %283 = icmp ne i64 %279, %282
  br i1 %283, label %284, label %285

284:                                              ; preds = %278
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %323

285:                                              ; preds = %278
  br label %294

286:                                              ; preds = %273
  %287 = load i64, ptr %8, align 8, !tbaa !9
  %288 = load i64, ptr %10, align 8, !tbaa !9
  %289 = add i64 40, %288
  %290 = add i64 %289, 24
  %291 = icmp ne i64 %287, %290
  br i1 %291, label %292, label %293

292:                                              ; preds = %286
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %323

293:                                              ; preds = %286
  br label %294

294:                                              ; preds = %293, %285
  %295 = load ptr, ptr %6, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.drwav_data_format, ptr %295, i32 0, i32 0
  %297 = load i32, ptr %296, align 4, !tbaa !25
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.drwav, ptr %298, i32 0, i32 5
  store i32 %297, ptr %299, align 8, !tbaa !32
  %300 = load ptr, ptr %6, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.drwav_data_format, ptr %300, i32 0, i32 2
  %302 = load i32, ptr %301, align 4, !tbaa !33
  %303 = trunc i32 %302 to i16
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.drwav, ptr %304, i32 0, i32 8
  store i16 %303, ptr %305, align 8, !tbaa !34
  %306 = load ptr, ptr %6, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.drwav_data_format, ptr %306, i32 0, i32 3
  %308 = load i32, ptr %307, align 4, !tbaa !35
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.drwav, ptr %309, i32 0, i32 7
  store i32 %308, ptr %310, align 4, !tbaa !36
  %311 = load ptr, ptr %6, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.drwav_data_format, ptr %311, i32 0, i32 4
  %313 = load i32, ptr %312, align 4, !tbaa !37
  %314 = trunc i32 %313 to i16
  %315 = load ptr, ptr %5, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.drwav, ptr %315, i32 0, i32 9
  store i16 %314, ptr %316, align 2, !tbaa !38
  %317 = load ptr, ptr %6, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.drwav_data_format, ptr %317, i32 0, i32 1
  %319 = load i32, ptr %318, align 4, !tbaa !39
  %320 = trunc i32 %319 to i16
  %321 = load ptr, ptr %5, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.drwav, ptr %321, i32 0, i32 10
  store i16 %320, ptr %322, align 4, !tbaa !40
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %323

323:                                              ; preds = %294, %292, %284, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  %324 = load i32, ptr %4, align 4
  ret i32 %324
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !17, i64 160}
!12 = !{!"_ZTS5drwav", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !14, i64 64, !15, i64 68, !17, i64 108, !16, i64 112, !16, i64 114, !16, i64 116, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !17, i64 160, !18, i64 164, !19, i64 224, !20, i64 248, !21, i64 288, !22, i64 296, !23, i64 348}
!13 = !{!"_ZTS26drwav_allocation_callbacks", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!"_ZTS15drwav_container", !7, i64 0}
!15 = !{!"_ZTS9drwav_fmt", !16, i64 0, !16, i64 2, !17, i64 4, !17, i64 8, !16, i64 12, !16, i64 14, !16, i64 16, !16, i64 18, !17, i64 20, !7, i64 24}
!16 = !{!"short", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTS10drwav_smpl", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !7, i64 36}
!19 = !{!"_ZTS20drwav__memory_stream", !6, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!"_ZTS26drwav__memory_stream_write", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!21 = !{!"_ZTSN5drwavUt_E", !10, i64 0}
!22 = !{!"_ZTSN5drwavUt0_E", !17, i64 0, !7, i64 4, !7, i64 8, !7, i64 16, !17, i64 32, !7, i64 36}
!23 = !{!"_ZTSN5drwavUt1_E", !17, i64 0, !7, i64 4, !7, i64 12, !7, i64 20, !17, i64 84}
!24 = !{!12, !16, i64 82}
!25 = !{!26, !14, i64 0}
!26 = !{!"_ZTS17drwav_data_format", !14, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16}
!27 = !{!12, !10, i64 152}
!28 = !{!17, !17, i64 0}
!29 = !{!12, !6, i64 8}
!30 = !{!12, !6, i64 24}
!31 = !{!12, !10, i64 136}
!32 = !{!12, !14, i64 64}
!33 = !{!26, !17, i64 8}
!34 = !{!12, !16, i64 112}
!35 = !{!26, !17, i64 12}
!36 = !{!12, !17, i64 108}
!37 = !{!26, !17, i64 16}
!38 = !{!12, !16, i64 114}
!39 = !{!26, !17, i64 4}
!40 = !{!12, !16, i64 116}


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

@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL18drwavGUID_W64_RIFF = external hidden constant [16 x i8], align 16
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL18drwavGUID_W64_WAVE = external hidden constant [16 x i8], align 16
@.str.22 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL18drwavGUID_W64_DATA = external hidden constant [16 x i8], align 16
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL17drwavGUID_W64_FMT = external hidden constant [16 x i8], align 16

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z26drwav_init_write__internalP5drwavPK17drwav_data_formatm(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #1 {
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #2
  %9 = getelementptr inbounds i8, ptr %0, i64 160
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %thread-pre-split, label %11

11:                                               ; preds = %3
  %12 = getelementptr inbounds i8, ptr %0, i64 82
  %13 = load i16, ptr %12, align 2, !tbaa !22
  %14 = zext i16 %13 to i64
  %15 = mul i64 %14, %2
  %16 = lshr i64 %15, 3
  %17 = load i32, ptr %1, align 4, !tbaa !23
  %18 = icmp eq i32 %17, 0
  %19 = icmp ugt i64 %15, 34359738079
  %or.cond = select i1 %18, i1 %19, i1 false
  br i1 %or.cond, label %154, label %20

thread-pre-split:                                 ; preds = %3
  %.pr = load i32, ptr %1, align 4, !tbaa !23
  br label %20

20:                                               ; preds = %thread-pre-split, %11
  %21 = phi i32 [ %.pr, %thread-pre-split ], [ %17, %11 ]
  %.0 = phi i64 [ 0, %thread-pre-split ], [ %16, %11 ]
  %22 = getelementptr inbounds i8, ptr %0, i64 152
  store i64 %.0, ptr %22, align 8, !tbaa !25
  %23 = icmp eq i32 %21, 0
  br i1 %23, label %24, label %40

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #2
  %25 = trunc i64 %.0 to i32
  %26 = add i32 %25, 36
  store i32 %26, ptr %5, align 4, !tbaa !26
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !27
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  %30 = load ptr, ptr %29, align 8, !tbaa !28
  %31 = tail call noundef i64 %28(ptr noundef %30, ptr noundef nonnull @.str.19, i64 noundef 4)
  %32 = load ptr, ptr %27, align 8, !tbaa !27
  %33 = load ptr, ptr %29, align 8, !tbaa !28
  %34 = call noundef i64 %32(ptr noundef %33, ptr noundef nonnull %5, i64 noundef 4)
  %35 = add i64 %34, %31
  %36 = load ptr, ptr %27, align 8, !tbaa !27
  %37 = load ptr, ptr %29, align 8, !tbaa !28
  %38 = call noundef i64 %36(ptr noundef %37, ptr noundef nonnull @.str.21, i64 noundef 4)
  %39 = add i64 %35, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #2
  br label %55

40:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #2
  %41 = add nuw nsw i64 %.0, 104
  store i64 %41, ptr %6, align 8, !tbaa !29
  %42 = getelementptr inbounds i8, ptr %0, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !27
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !28
  %46 = tail call noundef i64 %43(ptr noundef %45, ptr noundef nonnull @_ZL18drwavGUID_W64_RIFF, i64 noundef 16)
  %47 = load ptr, ptr %42, align 8, !tbaa !27
  %48 = load ptr, ptr %44, align 8, !tbaa !28
  %49 = call noundef i64 %47(ptr noundef %48, ptr noundef nonnull %6, i64 noundef 8)
  %50 = add i64 %49, %46
  %51 = load ptr, ptr %42, align 8, !tbaa !27
  %52 = load ptr, ptr %44, align 8, !tbaa !28
  %53 = call noundef i64 %51(ptr noundef %52, ptr noundef nonnull @_ZL18drwavGUID_W64_WAVE, i64 noundef 16)
  %54 = add i64 %50, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  br label %55

55:                                               ; preds = %40, %24
  %.096 = phi i64 [ %39, %24 ], [ %54, %40 ]
  %56 = load i32, ptr %1, align 4, !tbaa !23
  %57 = icmp eq i32 %56, 0
  %58 = getelementptr inbounds i8, ptr %0, i64 8
  %59 = getelementptr inbounds i8, ptr %0, i64 24
  br i1 %57, label %60, label %64

60:                                               ; preds = %55
  store i64 16, ptr %4, align 8, !tbaa !29
  %61 = load ptr, ptr %58, align 8, !tbaa !27
  %62 = load ptr, ptr %59, align 8, !tbaa !28
  %63 = call noundef i64 %61(ptr noundef %62, ptr noundef nonnull @.str.25, i64 noundef 4)
  br label %68

64:                                               ; preds = %55
  store i64 40, ptr %4, align 8, !tbaa !29
  %65 = load ptr, ptr %58, align 8, !tbaa !27
  %66 = load ptr, ptr %59, align 8, !tbaa !28
  %67 = call noundef i64 %65(ptr noundef %66, ptr noundef nonnull @_ZL17drwavGUID_W64_FMT, i64 noundef 16)
  br label %68

68:                                               ; preds = %64, %60
  %.sink104 = phi i64 [ %67, %64 ], [ %63, %60 ]
  %.sink102 = phi i64 [ 8, %64 ], [ 4, %60 ]
  %69 = add i64 %.sink104, %.096
  %70 = load ptr, ptr %58, align 8, !tbaa !27
  %71 = load ptr, ptr %59, align 8, !tbaa !28
  %72 = call noundef i64 %70(ptr noundef %71, ptr noundef nonnull %4, i64 noundef %.sink102)
  %73 = add i64 %69, %72
  %74 = getelementptr inbounds i8, ptr %0, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !27
  %76 = getelementptr inbounds i8, ptr %0, i64 24
  %77 = load ptr, ptr %76, align 8, !tbaa !28
  %78 = getelementptr inbounds i8, ptr %0, i64 68
  %79 = call noundef i64 %75(ptr noundef %77, ptr noundef nonnull %78, i64 noundef 2)
  %80 = add i64 %79, %73
  %81 = load ptr, ptr %74, align 8, !tbaa !27
  %82 = load ptr, ptr %76, align 8, !tbaa !28
  %83 = getelementptr inbounds i8, ptr %0, i64 70
  %84 = call noundef i64 %81(ptr noundef %82, ptr noundef nonnull %83, i64 noundef 2)
  %85 = add i64 %80, %84
  %86 = load ptr, ptr %74, align 8, !tbaa !27
  %87 = load ptr, ptr %76, align 8, !tbaa !28
  %88 = getelementptr inbounds i8, ptr %0, i64 72
  %89 = call noundef i64 %86(ptr noundef %87, ptr noundef nonnull %88, i64 noundef 4)
  %90 = add i64 %85, %89
  %91 = load ptr, ptr %74, align 8, !tbaa !27
  %92 = load ptr, ptr %76, align 8, !tbaa !28
  %93 = getelementptr inbounds i8, ptr %0, i64 76
  %94 = call noundef i64 %91(ptr noundef %92, ptr noundef nonnull %93, i64 noundef 4)
  %95 = add i64 %90, %94
  %96 = load ptr, ptr %74, align 8, !tbaa !27
  %97 = load ptr, ptr %76, align 8, !tbaa !28
  %98 = getelementptr inbounds i8, ptr %0, i64 80
  %99 = call noundef i64 %96(ptr noundef %97, ptr noundef nonnull %98, i64 noundef 2)
  %100 = add i64 %95, %99
  %101 = load ptr, ptr %74, align 8, !tbaa !27
  %102 = load ptr, ptr %76, align 8, !tbaa !28
  %103 = getelementptr inbounds i8, ptr %0, i64 82
  %104 = call noundef i64 %101(ptr noundef %102, ptr noundef nonnull %103, i64 noundef 2)
  %105 = add i64 %100, %104
  %106 = getelementptr inbounds i8, ptr %0, i64 136
  store i64 %105, ptr %106, align 8, !tbaa !30
  %107 = load i32, ptr %1, align 4, !tbaa !23
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %119

109:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #2
  %110 = trunc i64 %.0 to i32
  store i32 %110, ptr %7, align 4, !tbaa !26
  %111 = load ptr, ptr %74, align 8, !tbaa !27
  %112 = load ptr, ptr %76, align 8, !tbaa !28
  %113 = call noundef i64 %111(ptr noundef %112, ptr noundef nonnull @.str.22, i64 noundef 4)
  %114 = add i64 %113, %105
  %115 = load ptr, ptr %74, align 8, !tbaa !27
  %116 = load ptr, ptr %76, align 8, !tbaa !28
  %117 = call noundef i64 %115(ptr noundef %116, ptr noundef nonnull %7, i64 noundef 4)
  %118 = add i64 %114, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #2
  br label %129

119:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #2
  %120 = add nuw nsw i64 %.0, 24
  store i64 %120, ptr %8, align 8, !tbaa !29
  %121 = load ptr, ptr %74, align 8, !tbaa !27
  %122 = load ptr, ptr %76, align 8, !tbaa !28
  %123 = call noundef i64 %121(ptr noundef %122, ptr noundef nonnull @_ZL18drwavGUID_W64_DATA, i64 noundef 16)
  %124 = add i64 %123, %105
  %125 = load ptr, ptr %74, align 8, !tbaa !27
  %126 = load ptr, ptr %76, align 8, !tbaa !28
  %127 = call noundef i64 %125(ptr noundef %126, ptr noundef nonnull %8, i64 noundef 8)
  %128 = add i64 %124, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #2
  br label %129

129:                                              ; preds = %119, %109
  %.2 = phi i64 [ %118, %109 ], [ %128, %119 ]
  %130 = load i32, ptr %1, align 4, !tbaa !23
  %131 = icmp eq i32 %130, 0
  %132 = load i64, ptr %4, align 8, !tbaa !29
  br i1 %131, label %133, label %135

133:                                              ; preds = %129
  %134 = add i64 %132, 28
  %.not99 = icmp eq i64 %.2, %134
  br i1 %.not99, label %137, label %154

135:                                              ; preds = %129
  %136 = add i64 %132, 64
  %.not98 = icmp eq i64 %.2, %136
  br i1 %.not98, label %137, label %154

137:                                              ; preds = %135, %133
  %138 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %130, ptr %138, align 8, !tbaa !31
  %139 = getelementptr inbounds i8, ptr %1, i64 8
  %140 = load i32, ptr %139, align 4, !tbaa !32
  %141 = trunc i32 %140 to i16
  %142 = getelementptr inbounds i8, ptr %0, i64 112
  store i16 %141, ptr %142, align 8, !tbaa !33
  %143 = getelementptr inbounds i8, ptr %1, i64 12
  %144 = load i32, ptr %143, align 4, !tbaa !34
  %145 = getelementptr inbounds i8, ptr %0, i64 108
  store i32 %144, ptr %145, align 4, !tbaa !35
  %146 = getelementptr inbounds i8, ptr %1, i64 16
  %147 = load i32, ptr %146, align 4, !tbaa !36
  %148 = trunc i32 %147 to i16
  %149 = getelementptr inbounds i8, ptr %0, i64 114
  store i16 %148, ptr %149, align 2, !tbaa !37
  %150 = getelementptr inbounds i8, ptr %1, i64 4
  %151 = load i32, ptr %150, align 4, !tbaa !38
  %152 = trunc i32 %151 to i16
  %153 = getelementptr inbounds i8, ptr %0, i64 116
  store i16 %152, ptr %153, align 4, !tbaa !39
  br label %154

154:                                              ; preds = %135, %133, %11, %137
  %.097 = phi i32 [ 1, %137 ], [ 0, %11 ], [ 0, %133 ], [ 0, %135 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #2
  ret i32 %.097
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !14, i64 160}
!6 = !{!"_ZTS5drwav", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 64, !12, i64 68, !14, i64 108, !13, i64 112, !13, i64 114, !13, i64 116, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !14, i64 160, !16, i64 164, !17, i64 224, !18, i64 248, !19, i64 288, !20, i64 296, !21, i64 348}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS26drwav_allocation_callbacks", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!11 = !{!"_ZTS15drwav_container", !8, i64 0}
!12 = !{!"_ZTS9drwav_fmt", !13, i64 0, !13, i64 2, !14, i64 4, !14, i64 8, !13, i64 12, !13, i64 14, !13, i64 16, !13, i64 18, !14, i64 20, !8, i64 24}
!13 = !{!"short", !8, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"_ZTS10drwav_smpl", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !8, i64 36}
!17 = !{!"_ZTS20drwav__memory_stream", !7, i64 0, !15, i64 8, !15, i64 16}
!18 = !{!"_ZTS26drwav__memory_stream_write", !7, i64 0, !7, i64 8, !15, i64 16, !15, i64 24, !15, i64 32}
!19 = !{!"_ZTSN5drwavUt_E", !15, i64 0}
!20 = !{!"_ZTSN5drwavUt0_E", !14, i64 0, !8, i64 4, !8, i64 8, !8, i64 16, !14, i64 32, !8, i64 36}
!21 = !{!"_ZTSN5drwavUt1_E", !14, i64 0, !8, i64 4, !8, i64 12, !8, i64 20, !14, i64 84}
!22 = !{!6, !13, i64 82}
!23 = !{!24, !11, i64 0}
!24 = !{!"_ZTS17drwav_data_format", !11, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16}
!25 = !{!6, !15, i64 152}
!26 = !{!14, !14, i64 0}
!27 = !{!6, !7, i64 8}
!28 = !{!6, !7, i64 24}
!29 = !{!15, !15, i64 0}
!30 = !{!6, !15, i64 136}
!31 = !{!6, !11, i64 64}
!32 = !{!24, !14, i64 8}
!33 = !{!6, !13, i64 112}
!34 = !{!24, !14, i64 12}
!35 = !{!6, !14, i64 108}
!36 = !{!24, !14, i64 16}
!37 = !{!6, !13, i64 114}
!38 = !{!24, !14, i64 4}
!39 = !{!6, !13, i64 116}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass