; LLVM IR from lichen-community-systems/signaletic :: hosts/daisy/vendor/libDaisy/src/hid (audio)

; 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.daisy::AudioHandle::Impl" = type { ptr, ptr, %"struct.daisy::AudioHandle::Config", %"class.daisy::SaiHandle", %"class.daisy::SaiHandle", [2 x ptr], [2 x ptr], float, float }
%"struct.daisy::AudioHandle::Config" = type <{ i64, i32, float, float, [4 x i8] }>
%"class.daisy::SaiHandle" = type { ptr }
%"struct.daisy::SaiHandle::Config" = type { i32, %struct.anon, i32, i32, i32, i32, i32, i32 }
%struct.anon = type { %struct.dsy_gpio_pin, %struct.dsy_gpio_pin, %struct.dsy_gpio_pin, %struct.dsy_gpio_pin, %struct.dsy_gpio_pin }
%struct.dsy_gpio_pin = type { i32, i8 }

@_ZN5daisyL12audio_handleE = external hidden global %"class.daisy::AudioHandle::Impl", align 8

declare noundef nonnull align 4 dereferenceable(68) ptr @_ZNK5daisy9SaiHandle9GetConfigEv(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5daisy11AudioHandle4Impl16InternalCallbackEPiS2_m(ptr noundef %0, ptr noundef %1, i64 noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %34 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZNK5daisy9SaiHandle9GetConfigEv(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 3))
  %35 = getelementptr inbounds %"struct.daisy::SaiHandle::Config", ptr %34, i32 0, i32 3
  %36 = load i32, ptr %35, align 4, !tbaa !11
  store i32 %36, ptr %8, align 4, !tbaa !21
  %37 = call noundef i64 @_ZNK5daisy11AudioHandle4Impl11GetChannelsEv(ptr noundef nonnull align 8 dereferenceable(96) @_ZN5daisyL12audio_handleE)
  store i64 %37, ptr %7, align 8, !tbaa !9
  %38 = load i64, ptr %7, align 8, !tbaa !9
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %3
  store i32 1, ptr %9, align 4
  br label %752

41:                                               ; preds = %3
  %42 = load ptr, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 1), align 8, !tbaa !22
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %250

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %45 = load ptr, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 1), align 8, !tbaa !22
  store ptr %45, ptr %10, align 8, !tbaa !5
  %46 = load i64, ptr %6, align 8, !tbaa !9
  %47 = call ptr @llvm.stacksave.p0()
  store ptr %47, ptr %11, align 8
  %48 = alloca float, i64 %46, align 16
  store i64 %46, ptr %12, align 8
  %49 = load i64, ptr %6, align 8, !tbaa !9
  %50 = alloca float, i64 %49, align 16
  store i64 %49, ptr %13, align 8
  %51 = load i32, ptr %8, align 4, !tbaa !21
  switch i32 %51, label %147 [
    i32 0, label %52
    i32 1, label %85
    i32 2, label %116
  ]

52:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %81, %52
  %54 = load i64, ptr %14, align 8, !tbaa !9
  %55 = load i64, ptr %6, align 8, !tbaa !9
  %56 = icmp ult i64 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  store i32 3, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %84

58:                                               ; preds = %53
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load i64, ptr %14, align 8, !tbaa !9
  %61 = getelementptr inbounds i32, ptr %59, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !27
  %63 = trunc i32 %62 to i16
  %64 = call noundef float @_Z5s162fs(i16 noundef signext %63)
  %65 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %66 = fmul float %64, %65
  %67 = load i64, ptr %14, align 8, !tbaa !9
  %68 = getelementptr inbounds float, ptr %48, i64 %67
  store float %66, ptr %68, align 4, !tbaa !30
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load i64, ptr %14, align 8, !tbaa !9
  %71 = add i64 %70, 1
  %72 = getelementptr inbounds i32, ptr %69, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !27
  %74 = trunc i32 %73 to i16
  %75 = call noundef float @_Z5s162fs(i16 noundef signext %74)
  %76 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %77 = fmul float %75, %76
  %78 = load i64, ptr %14, align 8, !tbaa !9
  %79 = add i64 %78, 1
  %80 = getelementptr inbounds float, ptr %48, i64 %79
  store float %77, ptr %80, align 4, !tbaa !30
  br label %81

81:                                               ; preds = %58
  %82 = load i64, ptr %14, align 8, !tbaa !9
  %83 = add i64 %82, 2
  store i64 %83, ptr %14, align 8, !tbaa !9
  br label %53, !llvm.loop !31

84:                                               ; preds = %57
  br label %148

85:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %112, %85
  %87 = load i64, ptr %15, align 8, !tbaa !9
  %88 = load i64, ptr %6, align 8, !tbaa !9
  %89 = icmp ult i64 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 6, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %115

91:                                               ; preds = %86
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load i64, ptr %15, align 8, !tbaa !9
  %94 = getelementptr inbounds i32, ptr %92, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !27
  %96 = call noundef float @_Z5s242fi(i32 noundef %95)
  %97 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %98 = fmul float %96, %97
  %99 = load i64, ptr %15, align 8, !tbaa !9
  %100 = getelementptr inbounds float, ptr %48, i64 %99
  store float %98, ptr %100, align 4, !tbaa !30
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load i64, ptr %15, align 8, !tbaa !9
  %103 = add i64 %102, 1
  %104 = getelementptr inbounds i32, ptr %101, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !27
  %106 = call noundef float @_Z5s242fi(i32 noundef %105)
  %107 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %108 = fmul float %106, %107
  %109 = load i64, ptr %15, align 8, !tbaa !9
  %110 = add i64 %109, 1
  %111 = getelementptr inbounds float, ptr %48, i64 %110
  store float %108, ptr %111, align 4, !tbaa !30
  br label %112

112:                                              ; preds = %91
  %113 = load i64, ptr %15, align 8, !tbaa !9
  %114 = add i64 %113, 2
  store i64 %114, ptr %15, align 8, !tbaa !9
  br label %86, !llvm.loop !33

115:                                              ; preds = %90
  br label %148

116:                                              ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %143, %116
  %118 = load i64, ptr %16, align 8, !tbaa !9
  %119 = load i64, ptr %6, align 8, !tbaa !9
  %120 = icmp ult i64 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 9, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %146

122:                                              ; preds = %117
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load i64, ptr %16, align 8, !tbaa !9
  %125 = getelementptr inbounds i32, ptr %123, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !27
  %127 = call noundef float @_Z5s322fi(i32 noundef %126)
  %128 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %129 = fmul float %127, %128
  %130 = load i64, ptr %16, align 8, !tbaa !9
  %131 = getelementptr inbounds float, ptr %48, i64 %130
  store float %129, ptr %131, align 4, !tbaa !30
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load i64, ptr %16, align 8, !tbaa !9
  %134 = add i64 %133, 1
  %135 = getelementptr inbounds i32, ptr %132, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !27
  %137 = call noundef float @_Z5s322fi(i32 noundef %136)
  %138 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %139 = fmul float %137, %138
  %140 = load i64, ptr %16, align 8, !tbaa !9
  %141 = add i64 %140, 1
  %142 = getelementptr inbounds float, ptr %48, i64 %141
  store float %139, ptr %142, align 4, !tbaa !30
  br label %143

143:                                              ; preds = %122
  %144 = load i64, ptr %16, align 8, !tbaa !9
  %145 = add i64 %144, 2
  store i64 %145, ptr %16, align 8, !tbaa !9
  br label %117, !llvm.loop !34

146:                                              ; preds = %121
  br label %148

147:                                              ; preds = %44
  br label %148

148:                                              ; preds = %147, %146, %115, %84
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = load i64, ptr %6, align 8, !tbaa !9
  call void %149(ptr noundef %48, ptr noundef %50, i64 noundef %150)
  %151 = load i32, ptr %8, align 4, !tbaa !21
  switch i32 %151, label %247 [
    i32 0, label %152
    i32 1, label %185
    i32 2, label %216
  ]

152:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %181, %152
  %154 = load i64, ptr %17, align 8, !tbaa !9
  %155 = load i64, ptr %6, align 8, !tbaa !9
  %156 = icmp ult i64 %154, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %153
  store i32 13, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %184

158:                                              ; preds = %153
  %159 = load i64, ptr %17, align 8, !tbaa !9
  %160 = getelementptr inbounds float, ptr %50, i64 %159
  %161 = load float, ptr %160, align 4, !tbaa !30
  %162 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %163 = fmul float %161, %162
  %164 = call noundef signext i16 @_Z5f2s16f(float noundef %163)
  %165 = sext i16 %164 to i32
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = load i64, ptr %17, align 8, !tbaa !9
  %168 = getelementptr inbounds i32, ptr %166, i64 %167
  store i32 %165, ptr %168, align 4, !tbaa !27
  %169 = load i64, ptr %17, align 8, !tbaa !9
  %170 = add i64 %169, 1
  %171 = getelementptr inbounds float, ptr %50, i64 %170
  %172 = load float, ptr %171, align 4, !tbaa !30
  %173 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %174 = fmul float %172, %173
  %175 = call noundef signext i16 @_Z5f2s16f(float noundef %174)
  %176 = sext i16 %175 to i32
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = load i64, ptr %17, align 8, !tbaa !9
  %179 = add i64 %178, 1
  %180 = getelementptr inbounds i32, ptr %177, i64 %179
  store i32 %176, ptr %180, align 4, !tbaa !27
  br label %181

181:                                              ; preds = %158
  %182 = load i64, ptr %17, align 8, !tbaa !9
  %183 = add i64 %182, 2
  store i64 %183, ptr %17, align 8, !tbaa !9
  br label %153, !llvm.loop !36

184:                                              ; preds = %157
  br label %248

185:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %186

186:                                              ; preds = %212, %185
  %187 = load i64, ptr %18, align 8, !tbaa !9
  %188 = load i64, ptr %6, align 8, !tbaa !9
  %189 = icmp ult i64 %187, %188
  br i1 %189, label %191, label %190

190:                                              ; preds = %186
  store i32 16, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %215

191:                                              ; preds = %186
  %192 = load i64, ptr %18, align 8, !tbaa !9
  %193 = getelementptr inbounds float, ptr %50, i64 %192
  %194 = load float, ptr %193, align 4, !tbaa !30
  %195 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %196 = fmul float %194, %195
  %197 = call noundef i32 @_Z5f2s24f(float noundef %196)
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = load i64, ptr %18, align 8, !tbaa !9
  %200 = getelementptr inbounds i32, ptr %198, i64 %199
  store i32 %197, ptr %200, align 4, !tbaa !27
  %201 = load i64, ptr %18, align 8, !tbaa !9
  %202 = add i64 %201, 1
  %203 = getelementptr inbounds float, ptr %50, i64 %202
  %204 = load float, ptr %203, align 4, !tbaa !30
  %205 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %206 = fmul float %204, %205
  %207 = call noundef i32 @_Z5f2s24f(float noundef %206)
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = load i64, ptr %18, align 8, !tbaa !9
  %210 = add i64 %209, 1
  %211 = getelementptr inbounds i32, ptr %208, i64 %210
  store i32 %207, ptr %211, align 4, !tbaa !27
  br label %212

212:                                              ; preds = %191
  %213 = load i64, ptr %18, align 8, !tbaa !9
  %214 = add i64 %213, 2
  store i64 %214, ptr %18, align 8, !tbaa !9
  br label %186, !llvm.loop !37

215:                                              ; preds = %190
  br label %248

216:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %217

217:                                              ; preds = %243, %216
  %218 = load i64, ptr %19, align 8, !tbaa !9
  %219 = load i64, ptr %6, align 8, !tbaa !9
  %220 = icmp ult i64 %218, %219
  br i1 %220, label %222, label %221

221:                                              ; preds = %217
  store i32 19, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %246

222:                                              ; preds = %217
  %223 = load i64, ptr %19, align 8, !tbaa !9
  %224 = getelementptr inbounds float, ptr %50, i64 %223
  %225 = load float, ptr %224, align 4, !tbaa !30
  %226 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %227 = fmul float %225, %226
  %228 = call noundef i32 @_Z5f2s32f(float noundef %227)
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = load i64, ptr %19, align 8, !tbaa !9
  %231 = getelementptr inbounds i32, ptr %229, i64 %230
  store i32 %228, ptr %231, align 4, !tbaa !27
  %232 = load i64, ptr %19, align 8, !tbaa !9
  %233 = add i64 %232, 1
  %234 = getelementptr inbounds float, ptr %50, i64 %233
  %235 = load float, ptr %234, align 4, !tbaa !30
  %236 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %237 = fmul float %235, %236
  %238 = call noundef i32 @_Z5f2s32f(float noundef %237)
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = load i64, ptr %19, align 8, !tbaa !9
  %241 = add i64 %240, 1
  %242 = getelementptr inbounds i32, ptr %239, i64 %241
  store i32 %238, ptr %242, align 4, !tbaa !27
  br label %243

243:                                              ; preds = %222
  %244 = load i64, ptr %19, align 8, !tbaa !9
  %245 = add i64 %244, 2
  store i64 %245, ptr %19, align 8, !tbaa !9
  br label %217, !llvm.loop !38

246:                                              ; preds = %221
  br label %248

247:                                              ; preds = %148
  br label %248

248:                                              ; preds = %247, %246, %215, %184
  %249 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %249)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %751

250:                                              ; preds = %41
  %251 = load ptr, ptr @_ZN5daisyL12audio_handleE, align 8, !tbaa !39
  %252 = icmp ne ptr %251, null
  br i1 %252, label %253, label %750

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %254 = load ptr, ptr @_ZN5daisyL12audio_handleE, align 8, !tbaa !39
  store ptr %254, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %255 = call noundef i64 @_ZNK5daisy9SaiHandle9GetOffsetEv(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 4))
  store i64 %255, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %256 = load i64, ptr %7, align 8, !tbaa !9
  %257 = icmp ugt i64 %256, 2
  br i1 %257, label %258, label %261

258:                                              ; preds = %253
  %259 = load i64, ptr %6, align 8, !tbaa !9
  %260 = mul i64 %259, 2
  br label %263

261:                                              ; preds = %253
  %262 = load i64, ptr %6, align 8, !tbaa !9
  br label %263

263:                                              ; preds = %261, %258
  %264 = phi i64 [ %260, %258 ], [ %262, %261 ]
  store i64 %264, ptr %22, align 8, !tbaa !9
  %265 = load i64, ptr %22, align 8, !tbaa !9
  %266 = call ptr @llvm.stacksave.p0()
  store ptr %266, ptr %23, align 8
  %267 = alloca float, i64 %265, align 16
  store i64 %265, ptr %24, align 8
  %268 = load i64, ptr %22, align 8, !tbaa !9
  %269 = alloca float, i64 %268, align 16
  store i64 %268, ptr %25, align 8
  %270 = load i64, ptr %7, align 8, !tbaa !9
  %271 = alloca ptr, i64 %270, align 16
  store i64 %270, ptr %26, align 8
  %272 = load i64, ptr %7, align 8, !tbaa !9
  %273 = alloca ptr, i64 %272, align 16
  store i64 %272, ptr %27, align 8
  %274 = getelementptr inbounds ptr, ptr %271, i64 0
  store ptr %267, ptr %274, align 16, !tbaa !5
  %275 = load i64, ptr %22, align 8, !tbaa !9
  %276 = load i64, ptr %7, align 8, !tbaa !9
  %277 = udiv i64 %275, %276
  %278 = getelementptr inbounds float, ptr %267, i64 %277
  %279 = getelementptr inbounds ptr, ptr %271, i64 1
  store ptr %278, ptr %279, align 8, !tbaa !5
  %280 = getelementptr inbounds ptr, ptr %273, i64 0
  store ptr %269, ptr %280, align 16, !tbaa !5
  %281 = load i64, ptr %22, align 8, !tbaa !9
  %282 = load i64, ptr %7, align 8, !tbaa !9
  %283 = udiv i64 %281, %282
  %284 = getelementptr inbounds float, ptr %269, i64 %283
  %285 = getelementptr inbounds ptr, ptr %273, i64 1
  store ptr %284, ptr %285, align 8, !tbaa !5
  %286 = load i64, ptr %7, align 8, !tbaa !9
  %287 = icmp ugt i64 %286, 2
  br i1 %287, label %288, label %317

288:                                              ; preds = %263
  %289 = getelementptr inbounds ptr, ptr %271, i64 1
  %290 = load ptr, ptr %289, align 8, !tbaa !5
  %291 = load i64, ptr %22, align 8, !tbaa !9
  %292 = load i64, ptr %7, align 8, !tbaa !9
  %293 = udiv i64 %291, %292
  %294 = getelementptr inbounds float, ptr %290, i64 %293
  %295 = getelementptr inbounds ptr, ptr %271, i64 2
  store ptr %294, ptr %295, align 16, !tbaa !5
  %296 = getelementptr inbounds ptr, ptr %271, i64 2
  %297 = load ptr, ptr %296, align 16, !tbaa !5
  %298 = load i64, ptr %22, align 8, !tbaa !9
  %299 = load i64, ptr %7, align 8, !tbaa !9
  %300 = udiv i64 %298, %299
  %301 = getelementptr inbounds float, ptr %297, i64 %300
  %302 = getelementptr inbounds ptr, ptr %271, i64 3
  store ptr %301, ptr %302, align 8, !tbaa !5
  %303 = getelementptr inbounds ptr, ptr %273, i64 1
  %304 = load ptr, ptr %303, align 8, !tbaa !5
  %305 = load i64, ptr %22, align 8, !tbaa !9
  %306 = load i64, ptr %7, align 8, !tbaa !9
  %307 = udiv i64 %305, %306
  %308 = getelementptr inbounds float, ptr %304, i64 %307
  %309 = getelementptr inbounds ptr, ptr %273, i64 2
  store ptr %308, ptr %309, align 16, !tbaa !5
  %310 = getelementptr inbounds ptr, ptr %273, i64 2
  %311 = load ptr, ptr %310, align 16, !tbaa !5
  %312 = load i64, ptr %22, align 8, !tbaa !9
  %313 = load i64, ptr %7, align 8, !tbaa !9
  %314 = udiv i64 %312, %313
  %315 = getelementptr inbounds float, ptr %311, i64 %314
  %316 = getelementptr inbounds ptr, ptr %273, i64 3
  store ptr %315, ptr %316, align 8, !tbaa !5
  br label %317

317:                                              ; preds = %288, %263
  %318 = load i32, ptr %8, align 4, !tbaa !21
  switch i32 %318, label %530 [
    i32 0, label %319
    i32 1, label %392
    i32 2, label %461
  ]

319:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %320

320:                                              ; preds = %388, %319
  %321 = load i64, ptr %28, align 8, !tbaa !9
  %322 = load i64, ptr %6, align 8, !tbaa !9
  %323 = icmp ult i64 %321, %322
  br i1 %323, label %325, label %324

324:                                              ; preds = %320
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %391

325:                                              ; preds = %320
  %326 = load ptr, ptr %4, align 8, !tbaa !5
  %327 = load i64, ptr %28, align 8, !tbaa !9
  %328 = getelementptr inbounds i32, ptr %326, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !27
  %330 = trunc i32 %329 to i16
  %331 = call noundef float @_Z5s162fs(i16 noundef signext %330)
  %332 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %333 = fmul float %331, %332
  %334 = getelementptr inbounds ptr, ptr %271, i64 0
  %335 = load ptr, ptr %334, align 16, !tbaa !5
  %336 = load i64, ptr %28, align 8, !tbaa !9
  %337 = udiv i64 %336, 2
  %338 = getelementptr inbounds float, ptr %335, i64 %337
  store float %333, ptr %338, align 4, !tbaa !30
  %339 = load ptr, ptr %4, align 8, !tbaa !5
  %340 = load i64, ptr %28, align 8, !tbaa !9
  %341 = add i64 %340, 1
  %342 = getelementptr inbounds i32, ptr %339, i64 %341
  %343 = load i32, ptr %342, align 4, !tbaa !27
  %344 = trunc i32 %343 to i16
  %345 = call noundef float @_Z5s162fs(i16 noundef signext %344)
  %346 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %347 = fmul float %345, %346
  %348 = getelementptr inbounds ptr, ptr %271, i64 1
  %349 = load ptr, ptr %348, align 8, !tbaa !5
  %350 = load i64, ptr %28, align 8, !tbaa !9
  %351 = udiv i64 %350, 2
  %352 = getelementptr inbounds float, ptr %349, i64 %351
  store float %347, ptr %352, align 4, !tbaa !30
  %353 = load i64, ptr %7, align 8, !tbaa !9
  %354 = icmp ugt i64 %353, 2
  br i1 %354, label %355, label %387

355:                                              ; preds = %325
  %356 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 5), i64 0, i64 1), align 8, !tbaa !5
  %357 = load i64, ptr %21, align 8, !tbaa !9
  %358 = load i64, ptr %28, align 8, !tbaa !9
  %359 = add i64 %357, %358
  %360 = getelementptr inbounds i32, ptr %356, i64 %359
  %361 = load i32, ptr %360, align 4, !tbaa !27
  %362 = trunc i32 %361 to i16
  %363 = call noundef float @_Z5s162fs(i16 noundef signext %362)
  %364 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %365 = fmul float %363, %364
  %366 = getelementptr inbounds ptr, ptr %271, i64 2
  %367 = load ptr, ptr %366, align 16, !tbaa !5
  %368 = load i64, ptr %28, align 8, !tbaa !9
  %369 = udiv i64 %368, 2
  %370 = getelementptr inbounds float, ptr %367, i64 %369
  store float %365, ptr %370, align 4, !tbaa !30
  %371 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 5), i64 0, i64 1), align 8, !tbaa !5
  %372 = load i64, ptr %21, align 8, !tbaa !9
  %373 = load i64, ptr %28, align 8, !tbaa !9
  %374 = add i64 %372, %373
  %375 = add i64 %374, 1
  %376 = getelementptr inbounds i32, ptr %371, i64 %375
  %377 = load i32, ptr %376, align 4, !tbaa !27
  %378 = trunc i32 %377 to i16
  %379 = call noundef float @_Z5s162fs(i16 noundef signext %378)
  %380 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %381 = fmul float %379, %380
  %382 = getelementptr inbounds ptr, ptr %271, i64 3
  %383 = load ptr, ptr %382, align 8, !tbaa !5
  %384 = load i64, ptr %28, align 8, !tbaa !9
  %385 = udiv i64 %384, 2
  %386 = getelementptr inbounds float, ptr %383, i64 %385
  store float %381, ptr %386, align 4, !tbaa !30
  br label %387

387:                                              ; preds = %355, %325
  br label %388

388:                                              ; preds = %387
  %389 = load i64, ptr %28, align 8, !tbaa !9
  %390 = add i64 %389, 2
  store i64 %390, ptr %28, align 8, !tbaa !9
  br label %320, !llvm.loop !40

391:                                              ; preds = %324
  br label %531

392:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %393

393:                                              ; preds = %457, %392
  %394 = load i64, ptr %29, align 8, !tbaa !9
  %395 = load i64, ptr %6, align 8, !tbaa !9
  %396 = icmp ult i64 %394, %395
  br i1 %396, label %398, label %397

397:                                              ; preds = %393
  store i32 26, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %460

398:                                              ; preds = %393
  %399 = load ptr, ptr %4, align 8, !tbaa !5
  %400 = load i64, ptr %29, align 8, !tbaa !9
  %401 = getelementptr inbounds i32, ptr %399, i64 %400
  %402 = load i32, ptr %401, align 4, !tbaa !27
  %403 = call noundef float @_Z5s242fi(i32 noundef %402)
  %404 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %405 = fmul float %403, %404
  %406 = getelementptr inbounds ptr, ptr %271, i64 0
  %407 = load ptr, ptr %406, align 16, !tbaa !5
  %408 = load i64, ptr %29, align 8, !tbaa !9
  %409 = udiv i64 %408, 2
  %410 = getelementptr inbounds float, ptr %407, i64 %409
  store float %405, ptr %410, align 4, !tbaa !30
  %411 = load ptr, ptr %4, align 8, !tbaa !5
  %412 = load i64, ptr %29, align 8, !tbaa !9
  %413 = add i64 %412, 1
  %414 = getelementptr inbounds i32, ptr %411, i64 %413
  %415 = load i32, ptr %414, align 4, !tbaa !27
  %416 = call noundef float @_Z5s242fi(i32 noundef %415)
  %417 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %418 = fmul float %416, %417
  %419 = getelementptr inbounds ptr, ptr %271, i64 1
  %420 = load ptr, ptr %419, align 8, !tbaa !5
  %421 = load i64, ptr %29, align 8, !tbaa !9
  %422 = udiv i64 %421, 2
  %423 = getelementptr inbounds float, ptr %420, i64 %422
  store float %418, ptr %423, align 4, !tbaa !30
  %424 = load i64, ptr %7, align 8, !tbaa !9
  %425 = icmp ugt i64 %424, 2
  br i1 %425, label %426, label %456

426:                                              ; preds = %398
  %427 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 5), i64 0, i64 1), align 8, !tbaa !5
  %428 = load i64, ptr %21, align 8, !tbaa !9
  %429 = load i64, ptr %29, align 8, !tbaa !9
  %430 = add i64 %428, %429
  %431 = getelementptr inbounds i32, ptr %427, i64 %430
  %432 = load i32, ptr %431, align 4, !tbaa !27
  %433 = call noundef float @_Z5s242fi(i32 noundef %432)
  %434 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %435 = fmul float %433, %434
  %436 = getelementptr inbounds ptr, ptr %271, i64 2
  %437 = load ptr, ptr %436, align 16, !tbaa !5
  %438 = load i64, ptr %29, align 8, !tbaa !9
  %439 = udiv i64 %438, 2
  %440 = getelementptr inbounds float, ptr %437, i64 %439
  store float %435, ptr %440, align 4, !tbaa !30
  %441 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 5), i64 0, i64 1), align 8, !tbaa !5
  %442 = load i64, ptr %21, align 8, !tbaa !9
  %443 = load i64, ptr %29, align 8, !tbaa !9
  %444 = add i64 %442, %443
  %445 = add i64 %444, 1
  %446 = getelementptr inbounds i32, ptr %441, i64 %445
  %447 = load i32, ptr %446, align 4, !tbaa !27
  %448 = call noundef float @_Z5s242fi(i32 noundef %447)
  %449 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %450 = fmul float %448, %449
  %451 = getelementptr inbounds ptr, ptr %271, i64 3
  %452 = load ptr, ptr %451, align 8, !tbaa !5
  %453 = load i64, ptr %29, align 8, !tbaa !9
  %454 = udiv i64 %453, 2
  %455 = getelementptr inbounds float, ptr %452, i64 %454
  store float %450, ptr %455, align 4, !tbaa !30
  br label %456

456:                                              ; preds = %426, %398
  br label %457

457:                                              ; preds = %456
  %458 = load i64, ptr %29, align 8, !tbaa !9
  %459 = add i64 %458, 2
  store i64 %459, ptr %29, align 8, !tbaa !9
  br label %393, !llvm.loop !41

460:                                              ; preds = %397
  br label %531

461:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %462

462:                                              ; preds = %526, %461
  %463 = load i64, ptr %30, align 8, !tbaa !9
  %464 = load i64, ptr %6, align 8, !tbaa !9
  %465 = icmp ult i64 %463, %464
  br i1 %465, label %467, label %466

466:                                              ; preds = %462
  store i32 29, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %529

467:                                              ; preds = %462
  %468 = load ptr, ptr %4, align 8, !tbaa !5
  %469 = load i64, ptr %30, align 8, !tbaa !9
  %470 = getelementptr inbounds i32, ptr %468, i64 %469
  %471 = load i32, ptr %470, align 4, !tbaa !27
  %472 = call noundef float @_Z5s322fi(i32 noundef %471)
  %473 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %474 = fmul float %472, %473
  %475 = getelementptr inbounds ptr, ptr %271, i64 0
  %476 = load ptr, ptr %475, align 16, !tbaa !5
  %477 = load i64, ptr %30, align 8, !tbaa !9
  %478 = udiv i64 %477, 2
  %479 = getelementptr inbounds float, ptr %476, i64 %478
  store float %474, ptr %479, align 4, !tbaa !30
  %480 = load ptr, ptr %4, align 8, !tbaa !5
  %481 = load i64, ptr %30, align 8, !tbaa !9
  %482 = add i64 %481, 1
  %483 = getelementptr inbounds i32, ptr %480, i64 %482
  %484 = load i32, ptr %483, align 4, !tbaa !27
  %485 = call noundef float @_Z5s322fi(i32 noundef %484)
  %486 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %487 = fmul float %485, %486
  %488 = getelementptr inbounds ptr, ptr %271, i64 1
  %489 = load ptr, ptr %488, align 8, !tbaa !5
  %490 = load i64, ptr %30, align 8, !tbaa !9
  %491 = udiv i64 %490, 2
  %492 = getelementptr inbounds float, ptr %489, i64 %491
  store float %487, ptr %492, align 4, !tbaa !30
  %493 = load i64, ptr %7, align 8, !tbaa !9
  %494 = icmp ugt i64 %493, 2
  br i1 %494, label %495, label %525

495:                                              ; preds = %467
  %496 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 5), i64 0, i64 1), align 8, !tbaa !5
  %497 = load i64, ptr %21, align 8, !tbaa !9
  %498 = load i64, ptr %30, align 8, !tbaa !9
  %499 = add i64 %497, %498
  %500 = getelementptr inbounds i32, ptr %496, i64 %499
  %501 = load i32, ptr %500, align 4, !tbaa !27
  %502 = call noundef float @_Z5s322fi(i32 noundef %501)
  %503 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %504 = fmul float %502, %503
  %505 = getelementptr inbounds ptr, ptr %271, i64 2
  %506 = load ptr, ptr %505, align 16, !tbaa !5
  %507 = load i64, ptr %30, align 8, !tbaa !9
  %508 = udiv i64 %507, 2
  %509 = getelementptr inbounds float, ptr %506, i64 %508
  store float %504, ptr %509, align 4, !tbaa !30
  %510 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 5), i64 0, i64 1), align 8, !tbaa !5
  %511 = load i64, ptr %21, align 8, !tbaa !9
  %512 = load i64, ptr %30, align 8, !tbaa !9
  %513 = add i64 %511, %512
  %514 = add i64 %513, 1
  %515 = getelementptr inbounds i32, ptr %510, i64 %514
  %516 = load i32, ptr %515, align 4, !tbaa !27
  %517 = call noundef float @_Z5s322fi(i32 noundef %516)
  %518 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 7), align 8, !tbaa !29
  %519 = fmul float %517, %518
  %520 = getelementptr inbounds ptr, ptr %271, i64 3
  %521 = load ptr, ptr %520, align 8, !tbaa !5
  %522 = load i64, ptr %30, align 8, !tbaa !9
  %523 = udiv i64 %522, 2
  %524 = getelementptr inbounds float, ptr %521, i64 %523
  store float %519, ptr %524, align 4, !tbaa !30
  br label %525

525:                                              ; preds = %495, %467
  br label %526

526:                                              ; preds = %525
  %527 = load i64, ptr %30, align 8, !tbaa !9
  %528 = add i64 %527, 2
  store i64 %528, ptr %30, align 8, !tbaa !9
  br label %462, !llvm.loop !42

529:                                              ; preds = %466
  br label %531

530:                                              ; preds = %317
  br label %531

531:                                              ; preds = %530, %529, %460, %391
  %532 = load ptr, ptr %20, align 8, !tbaa !5
  %533 = load i64, ptr %6, align 8, !tbaa !9
  %534 = udiv i64 %533, 2
  call void %532(ptr noundef %271, ptr noundef %273, i64 noundef %534)
  %535 = load i32, ptr %8, align 4, !tbaa !21
  switch i32 %535, label %747 [
    i32 0, label %536
    i32 1, label %609
    i32 2, label %678
  ]

536:                                              ; preds = %531
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %537

537:                                              ; preds = %605, %536
  %538 = load i64, ptr %31, align 8, !tbaa !9
  %539 = load i64, ptr %6, align 8, !tbaa !9
  %540 = icmp ult i64 %538, %539
  br i1 %540, label %542, label %541

541:                                              ; preds = %537
  store i32 33, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %608

542:                                              ; preds = %537
  %543 = getelementptr inbounds ptr, ptr %273, i64 0
  %544 = load ptr, ptr %543, align 16, !tbaa !5
  %545 = load i64, ptr %31, align 8, !tbaa !9
  %546 = udiv i64 %545, 2
  %547 = getelementptr inbounds float, ptr %544, i64 %546
  %548 = load float, ptr %547, align 4, !tbaa !30
  %549 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %550 = fmul float %548, %549
  %551 = call noundef signext i16 @_Z5f2s16f(float noundef %550)
  %552 = sext i16 %551 to i32
  %553 = load ptr, ptr %5, align 8, !tbaa !5
  %554 = load i64, ptr %31, align 8, !tbaa !9
  %555 = getelementptr inbounds i32, ptr %553, i64 %554
  store i32 %552, ptr %555, align 4, !tbaa !27
  %556 = getelementptr inbounds ptr, ptr %273, i64 1
  %557 = load ptr, ptr %556, align 8, !tbaa !5
  %558 = load i64, ptr %31, align 8, !tbaa !9
  %559 = udiv i64 %558, 2
  %560 = getelementptr inbounds float, ptr %557, i64 %559
  %561 = load float, ptr %560, align 4, !tbaa !30
  %562 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %563 = fmul float %561, %562
  %564 = call noundef signext i16 @_Z5f2s16f(float noundef %563)
  %565 = sext i16 %564 to i32
  %566 = load ptr, ptr %5, align 8, !tbaa !5
  %567 = load i64, ptr %31, align 8, !tbaa !9
  %568 = add i64 %567, 1
  %569 = getelementptr inbounds i32, ptr %566, i64 %568
  store i32 %565, ptr %569, align 4, !tbaa !27
  %570 = load i64, ptr %7, align 8, !tbaa !9
  %571 = icmp ugt i64 %570, 2
  br i1 %571, label %572, label %604

572:                                              ; preds = %542
  %573 = getelementptr inbounds ptr, ptr %273, i64 2
  %574 = load ptr, ptr %573, align 16, !tbaa !5
  %575 = load i64, ptr %31, align 8, !tbaa !9
  %576 = udiv i64 %575, 2
  %577 = getelementptr inbounds float, ptr %574, i64 %576
  %578 = load float, ptr %577, align 4, !tbaa !30
  %579 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %580 = fmul float %578, %579
  %581 = call noundef signext i16 @_Z5f2s16f(float noundef %580)
  %582 = sext i16 %581 to i32
  %583 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 6), i64 0, i64 1), align 8, !tbaa !5
  %584 = load i64, ptr %21, align 8, !tbaa !9
  %585 = load i64, ptr %31, align 8, !tbaa !9
  %586 = add i64 %584, %585
  %587 = getelementptr inbounds i32, ptr %583, i64 %586
  store i32 %582, ptr %587, align 4, !tbaa !27
  %588 = getelementptr inbounds ptr, ptr %273, i64 3
  %589 = load ptr, ptr %588, align 8, !tbaa !5
  %590 = load i64, ptr %31, align 8, !tbaa !9
  %591 = udiv i64 %590, 2
  %592 = getelementptr inbounds float, ptr %589, i64 %591
  %593 = load float, ptr %592, align 4, !tbaa !30
  %594 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %595 = fmul float %593, %594
  %596 = call noundef signext i16 @_Z5f2s16f(float noundef %595)
  %597 = sext i16 %596 to i32
  %598 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 6), i64 0, i64 1), align 8, !tbaa !5
  %599 = load i64, ptr %21, align 8, !tbaa !9
  %600 = load i64, ptr %31, align 8, !tbaa !9
  %601 = add i64 %599, %600
  %602 = add i64 %601, 1
  %603 = getelementptr inbounds i32, ptr %598, i64 %602
  store i32 %597, ptr %603, align 4, !tbaa !27
  br label %604

604:                                              ; preds = %572, %542
  br label %605

605:                                              ; preds = %604
  %606 = load i64, ptr %31, align 8, !tbaa !9
  %607 = add i64 %606, 2
  store i64 %607, ptr %31, align 8, !tbaa !9
  br label %537, !llvm.loop !43

608:                                              ; preds = %541
  br label %748

609:                                              ; preds = %531
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %610

610:                                              ; preds = %674, %609
  %611 = load i64, ptr %32, align 8, !tbaa !9
  %612 = load i64, ptr %6, align 8, !tbaa !9
  %613 = icmp ult i64 %611, %612
  br i1 %613, label %615, label %614

614:                                              ; preds = %610
  store i32 36, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %677

615:                                              ; preds = %610
  %616 = getelementptr inbounds ptr, ptr %273, i64 0
  %617 = load ptr, ptr %616, align 16, !tbaa !5
  %618 = load i64, ptr %32, align 8, !tbaa !9
  %619 = udiv i64 %618, 2
  %620 = getelementptr inbounds float, ptr %617, i64 %619
  %621 = load float, ptr %620, align 4, !tbaa !30
  %622 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %623 = fmul float %621, %622
  %624 = call noundef i32 @_Z5f2s24f(float noundef %623)
  %625 = load ptr, ptr %5, align 8, !tbaa !5
  %626 = load i64, ptr %32, align 8, !tbaa !9
  %627 = getelementptr inbounds i32, ptr %625, i64 %626
  store i32 %624, ptr %627, align 4, !tbaa !27
  %628 = getelementptr inbounds ptr, ptr %273, i64 1
  %629 = load ptr, ptr %628, align 8, !tbaa !5
  %630 = load i64, ptr %32, align 8, !tbaa !9
  %631 = udiv i64 %630, 2
  %632 = getelementptr inbounds float, ptr %629, i64 %631
  %633 = load float, ptr %632, align 4, !tbaa !30
  %634 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %635 = fmul float %633, %634
  %636 = call noundef i32 @_Z5f2s24f(float noundef %635)
  %637 = load ptr, ptr %5, align 8, !tbaa !5
  %638 = load i64, ptr %32, align 8, !tbaa !9
  %639 = add i64 %638, 1
  %640 = getelementptr inbounds i32, ptr %637, i64 %639
  store i32 %636, ptr %640, align 4, !tbaa !27
  %641 = load i64, ptr %7, align 8, !tbaa !9
  %642 = icmp ugt i64 %641, 2
  br i1 %642, label %643, label %673

643:                                              ; preds = %615
  %644 = getelementptr inbounds ptr, ptr %273, i64 2
  %645 = load ptr, ptr %644, align 16, !tbaa !5
  %646 = load i64, ptr %32, align 8, !tbaa !9
  %647 = udiv i64 %646, 2
  %648 = getelementptr inbounds float, ptr %645, i64 %647
  %649 = load float, ptr %648, align 4, !tbaa !30
  %650 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %651 = fmul float %649, %650
  %652 = call noundef i32 @_Z5f2s24f(float noundef %651)
  %653 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 6), i64 0, i64 1), align 8, !tbaa !5
  %654 = load i64, ptr %21, align 8, !tbaa !9
  %655 = load i64, ptr %32, align 8, !tbaa !9
  %656 = add i64 %654, %655
  %657 = getelementptr inbounds i32, ptr %653, i64 %656
  store i32 %652, ptr %657, align 4, !tbaa !27
  %658 = getelementptr inbounds ptr, ptr %273, i64 3
  %659 = load ptr, ptr %658, align 8, !tbaa !5
  %660 = load i64, ptr %32, align 8, !tbaa !9
  %661 = udiv i64 %660, 2
  %662 = getelementptr inbounds float, ptr %659, i64 %661
  %663 = load float, ptr %662, align 4, !tbaa !30
  %664 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %665 = fmul float %663, %664
  %666 = call noundef i32 @_Z5f2s24f(float noundef %665)
  %667 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 6), i64 0, i64 1), align 8, !tbaa !5
  %668 = load i64, ptr %21, align 8, !tbaa !9
  %669 = load i64, ptr %32, align 8, !tbaa !9
  %670 = add i64 %668, %669
  %671 = add i64 %670, 1
  %672 = getelementptr inbounds i32, ptr %667, i64 %671
  store i32 %666, ptr %672, align 4, !tbaa !27
  br label %673

673:                                              ; preds = %643, %615
  br label %674

674:                                              ; preds = %673
  %675 = load i64, ptr %32, align 8, !tbaa !9
  %676 = add i64 %675, 2
  store i64 %676, ptr %32, align 8, !tbaa !9
  br label %610, !llvm.loop !44

677:                                              ; preds = %614
  br label %748

678:                                              ; preds = %531
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  store i64 0, ptr %33, align 8, !tbaa !9
  br label %679

679:                                              ; preds = %743, %678
  %680 = load i64, ptr %33, align 8, !tbaa !9
  %681 = load i64, ptr %6, align 8, !tbaa !9
  %682 = icmp ult i64 %680, %681
  br i1 %682, label %684, label %683

683:                                              ; preds = %679
  store i32 39, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %746

684:                                              ; preds = %679
  %685 = getelementptr inbounds ptr, ptr %273, i64 0
  %686 = load ptr, ptr %685, align 16, !tbaa !5
  %687 = load i64, ptr %33, align 8, !tbaa !9
  %688 = udiv i64 %687, 2
  %689 = getelementptr inbounds float, ptr %686, i64 %688
  %690 = load float, ptr %689, align 4, !tbaa !30
  %691 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %692 = fmul float %690, %691
  %693 = call noundef i32 @_Z5f2s32f(float noundef %692)
  %694 = load ptr, ptr %5, align 8, !tbaa !5
  %695 = load i64, ptr %33, align 8, !tbaa !9
  %696 = getelementptr inbounds i32, ptr %694, i64 %695
  store i32 %693, ptr %696, align 4, !tbaa !27
  %697 = getelementptr inbounds ptr, ptr %273, i64 1
  %698 = load ptr, ptr %697, align 8, !tbaa !5
  %699 = load i64, ptr %33, align 8, !tbaa !9
  %700 = udiv i64 %699, 2
  %701 = getelementptr inbounds float, ptr %698, i64 %700
  %702 = load float, ptr %701, align 4, !tbaa !30
  %703 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %704 = fmul float %702, %703
  %705 = call noundef i32 @_Z5f2s32f(float noundef %704)
  %706 = load ptr, ptr %5, align 8, !tbaa !5
  %707 = load i64, ptr %33, align 8, !tbaa !9
  %708 = add i64 %707, 1
  %709 = getelementptr inbounds i32, ptr %706, i64 %708
  store i32 %705, ptr %709, align 4, !tbaa !27
  %710 = load i64, ptr %7, align 8, !tbaa !9
  %711 = icmp ugt i64 %710, 2
  br i1 %711, label %712, label %742

712:                                              ; preds = %684
  %713 = getelementptr inbounds ptr, ptr %273, i64 2
  %714 = load ptr, ptr %713, align 16, !tbaa !5
  %715 = load i64, ptr %33, align 8, !tbaa !9
  %716 = udiv i64 %715, 2
  %717 = getelementptr inbounds float, ptr %714, i64 %716
  %718 = load float, ptr %717, align 4, !tbaa !30
  %719 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %720 = fmul float %718, %719
  %721 = call noundef i32 @_Z5f2s32f(float noundef %720)
  %722 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 6), i64 0, i64 1), align 8, !tbaa !5
  %723 = load i64, ptr %21, align 8, !tbaa !9
  %724 = load i64, ptr %33, align 8, !tbaa !9
  %725 = add i64 %723, %724
  %726 = getelementptr inbounds i32, ptr %722, i64 %725
  store i32 %721, ptr %726, align 4, !tbaa !27
  %727 = getelementptr inbounds ptr, ptr %273, i64 3
  %728 = load ptr, ptr %727, align 8, !tbaa !5
  %729 = load i64, ptr %33, align 8, !tbaa !9
  %730 = udiv i64 %729, 2
  %731 = getelementptr inbounds float, ptr %728, i64 %730
  %732 = load float, ptr %731, align 4, !tbaa !30
  %733 = load float, ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 8), align 4, !tbaa !35
  %734 = fmul float %732, %733
  %735 = call noundef i32 @_Z5f2s32f(float noundef %734)
  %736 = load ptr, ptr getelementptr inbounds ([2 x ptr], ptr getelementptr inbounds (%"class.daisy::AudioHandle::Impl", ptr @_ZN5daisyL12audio_handleE, i32 0, i32 6), i64 0, i64 1), align 8, !tbaa !5
  %737 = load i64, ptr %21, align 8, !tbaa !9
  %738 = load i64, ptr %33, align 8, !tbaa !9
  %739 = add i64 %737, %738
  %740 = add i64 %739, 1
  %741 = getelementptr inbounds i32, ptr %736, i64 %740
  store i32 %735, ptr %741, align 4, !tbaa !27
  br label %742

742:                                              ; preds = %712, %684
  br label %743

743:                                              ; preds = %742
  %744 = load i64, ptr %33, align 8, !tbaa !9
  %745 = add i64 %744, 2
  store i64 %745, ptr %33, align 8, !tbaa !9
  br label %679, !llvm.loop !45

746:                                              ; preds = %683
  br label %748

747:                                              ; preds = %531
  br label %748

748:                                              ; preds = %747, %746, %677, %608
  %749 = load ptr, ptr %23, align 8
  call void @llvm.stackrestore.p0(ptr %749)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %750

750:                                              ; preds = %748, %250
  br label %751

751:                                              ; preds = %750, %248
  store i32 0, ptr %9, align 4
  br label %752

752:                                              ; preds = %751, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %753 = load i32, ptr %9, align 4
  switch i32 %753, label %755 [
    i32 0, label %754
    i32 1, label %754
  ]

754:                                              ; preds = %752, %752
  ret void

755:                                              ; preds = %752
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5daisy11AudioHandle4Impl11GetChannelsEv(ptr noundef nonnull align 8 dereferenceable(96)) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_Z5s162fs(i16 noundef signext) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_Z5s242fi(i32 noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_Z5s322fi(i32 noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_Z5f2s16f(float noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5f2s24f(float noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5f2s32f(float noundef) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

declare noundef i64 @_ZNK5daisy9SaiHandle9GetOffsetEv(ptr noundef nonnull align 8 dereferenceable(8)) #0

attributes #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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { alwaysinline 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 #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 = !{!"long", !7, i64 0}
!11 = !{!12, !18, i64 48}
!12 = !{!"_ZTSN5daisy9SaiHandle6ConfigE", !13, i64 0, !14, i64 4, !17, i64 44, !18, i64 48, !19, i64 52, !19, i64 56, !20, i64 60, !20, i64 64}
!13 = !{!"_ZTSN5daisy9SaiHandle6Config10PeripheralE", !7, i64 0}
!14 = !{!"_ZTSN5daisy9SaiHandle6ConfigUt_E", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32}
!15 = !{!"_ZTS12dsy_gpio_pin", !16, i64 0, !7, i64 4}
!16 = !{!"_ZTS13dsy_gpio_port", !7, i64 0}
!17 = !{!"_ZTSN5daisy9SaiHandle6Config10SampleRateE", !7, i64 0}
!18 = !{!"_ZTSN5daisy9SaiHandle6Config8BitDepthE", !7, i64 0}
!19 = !{!"_ZTSN5daisy9SaiHandle6Config4SyncE", !7, i64 0}
!20 = !{!"_ZTSN5daisy9SaiHandle6Config9DirectionE", !7, i64 0}
!21 = !{!18, !18, i64 0}
!22 = !{!23, !6, i64 8}
!23 = !{!"_ZTSN5daisy11AudioHandle4ImplE", !6, i64 0, !6, i64 8, !24, i64 16, !26, i64 40, !26, i64 48, !7, i64 56, !7, i64 72, !25, i64 88, !25, i64 92}
!24 = !{!"_ZTSN5daisy11AudioHandle6ConfigE", !10, i64 0, !17, i64 8, !25, i64 12, !25, i64 16}
!25 = !{!"float", !7, i64 0}
!26 = !{!"_ZTSN5daisy9SaiHandleE", !6, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"int", !7, i64 0}
!29 = !{!23, !25, i64 88}
!30 = !{!25, !25, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !32}
!35 = !{!23, !25, i64 92}
!36 = distinct !{!36, !32}
!37 = distinct !{!37, !32}
!38 = distinct !{!38, !32}
!39 = !{!23, !6, i64 0}
!40 = distinct !{!40, !32}
!41 = distinct !{!41, !32}
!42 = distinct !{!42, !32}
!43 = distinct !{!43, !32}
!44 = distinct !{!44, !32}
!45 = distinct !{!45, !32}


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

%"class.daisy::AudioHandle::Impl" = type { ptr, ptr, %"struct.daisy::AudioHandle::Config", %"class.daisy::SaiHandle", %"class.daisy::SaiHandle", [2 x ptr], [2 x ptr], float, float }
%"struct.daisy::AudioHandle::Config" = type <{ i64, i32, float, float, [4 x i8] }>
%"class.daisy::SaiHandle" = type { ptr }

@_ZN5daisyL12audio_handleE = external hidden global %"class.daisy::AudioHandle::Impl", align 8

declare noundef nonnull align 4 dereferenceable(68) ptr @_ZNK5daisy9SaiHandle9GetConfigEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5daisy11AudioHandle4Impl16InternalCallbackEPiS2_m(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, i64 noundef %2) local_unnamed_addr #1 align 2 {
  %4 = tail call noundef nonnull align 4 dereferenceable(68) ptr @_ZNK5daisy9SaiHandle9GetConfigEv(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 40))
  %5 = getelementptr inbounds i8, ptr %4, i64 48
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = tail call noundef i64 @_ZNK5daisy11AudioHandle4Impl11GetChannelsEv(ptr noundef nonnull align 8 dereferenceable(96) @_ZN5daisyL12audio_handleE)
  %8 = icmp eq i64 %7, 0
  br i1 %8, label %379, label %9

9:                                                ; preds = %3
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 8), align 8, !tbaa !17
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %115, label %11

11:                                               ; preds = %9
  %12 = tail call ptr @llvm.stacksave.p0()
  %13 = alloca float, i64 %2, align 16
  %14 = alloca float, i64 %2, align 16
  switch i32 %6, label %.loopexit214 [
    i32 0, label %.preheader213
    i32 1, label %.preheader215
    i32 2, label %.preheader217
  ]

.preheader217:                                    ; preds = %11
  %.not242 = icmp eq i64 %2, 0
  br i1 %.not242, label %.loopexit208.sink.split, label %.lr.ph

.preheader215:                                    ; preds = %11
  %.not243 = icmp eq i64 %2, 0
  br i1 %.not243, label %.loopexit208.sink.split, label %.lr.ph221

.preheader213:                                    ; preds = %11
  %.not244 = icmp eq i64 %2, 0
  br i1 %.not244, label %.loopexit208.sink.split, label %.lr.ph223

.lr.ph223:                                        ; preds = %.preheader213, %.lr.ph223
  %.0187222 = phi i64 [ %32, %.lr.ph223 ], [ 0, %.preheader213 ]
  %15 = getelementptr inbounds i32, ptr %0, i64 %.0187222
  %16 = load i32, ptr %15, align 4, !tbaa !24
  %17 = trunc i32 %16 to i16
  %18 = tail call noundef float @_Z5s162fs(i16 noundef signext %17)
  %19 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %20 = getelementptr inbounds float, ptr %13, i64 %.0187222
  %21 = or disjoint i64 %.0187222, 1
  %22 = getelementptr inbounds i32, ptr %0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !24
  %24 = trunc i32 %23 to i16
  %25 = tail call noundef float @_Z5s162fs(i16 noundef signext %24)
  %26 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %27 = insertelement <2 x float> poison, float %18, i64 0
  %28 = insertelement <2 x float> %27, float %25, i64 1
  %29 = insertelement <2 x float> poison, float %19, i64 0
  %30 = insertelement <2 x float> %29, float %26, i64 1
  %31 = fmul <2 x float> %28, %30
  store <2 x float> %31, ptr %20, align 8, !tbaa !27
  %32 = add i64 %.0187222, 2
  %33 = icmp ult i64 %32, %2
  br i1 %33, label %.lr.ph223, label %.loopexit214, !llvm.loop !28

.lr.ph221:                                        ; preds = %.preheader215, %.lr.ph221
  %.0188220 = phi i64 [ %49, %.lr.ph221 ], [ 0, %.preheader215 ]
  %34 = getelementptr inbounds i32, ptr %0, i64 %.0188220
  %35 = load i32, ptr %34, align 4, !tbaa !24
  %36 = tail call noundef float @_Z5s242fi(i32 noundef %35)
  %37 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %38 = getelementptr inbounds float, ptr %13, i64 %.0188220
  %39 = or disjoint i64 %.0188220, 1
  %40 = getelementptr inbounds i32, ptr %0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !24
  %42 = tail call noundef float @_Z5s242fi(i32 noundef %41)
  %43 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %44 = insertelement <2 x float> poison, float %36, i64 0
  %45 = insertelement <2 x float> %44, float %42, i64 1
  %46 = insertelement <2 x float> poison, float %37, i64 0
  %47 = insertelement <2 x float> %46, float %43, i64 1
  %48 = fmul <2 x float> %45, %47
  store <2 x float> %48, ptr %38, align 8, !tbaa !27
  %49 = add i64 %.0188220, 2
  %50 = icmp ult i64 %49, %2
  br i1 %50, label %.lr.ph221, label %.loopexit214, !llvm.loop !30

.lr.ph:                                           ; preds = %.preheader217, %.lr.ph
  %.0189219 = phi i64 [ %66, %.lr.ph ], [ 0, %.preheader217 ]
  %51 = getelementptr inbounds i32, ptr %0, i64 %.0189219
  %52 = load i32, ptr %51, align 4, !tbaa !24
  %53 = tail call noundef float @_Z5s322fi(i32 noundef %52)
  %54 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %55 = getelementptr inbounds float, ptr %13, i64 %.0189219
  %56 = or disjoint i64 %.0189219, 1
  %57 = getelementptr inbounds i32, ptr %0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !24
  %59 = tail call noundef float @_Z5s322fi(i32 noundef %58)
  %60 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %61 = insertelement <2 x float> poison, float %53, i64 0
  %62 = insertelement <2 x float> %61, float %59, i64 1
  %63 = insertelement <2 x float> poison, float %54, i64 0
  %64 = insertelement <2 x float> %63, float %60, i64 1
  %65 = fmul <2 x float> %62, %64
  store <2 x float> %65, ptr %55, align 8, !tbaa !27
  %66 = add i64 %.0189219, 2
  %67 = icmp ult i64 %66, %2
  br i1 %67, label %.lr.ph, label %.loopexit214, !llvm.loop !31

.loopexit214:                                     ; preds = %.lr.ph, %.lr.ph221, %.lr.ph223, %11
  call void %10(ptr noundef nonnull %13, ptr noundef nonnull %14, i64 noundef %2)
  switch i32 %6, label %.sink.split [
    i32 0, label %.preheader207
    i32 1, label %.preheader209
    i32 2, label %.preheader211
  ]

.preheader211:                                    ; preds = %.loopexit214
  %.not245 = icmp eq i64 %2, 0
  br i1 %.not245, label %.sink.split, label %.lr.ph225

.preheader209:                                    ; preds = %.loopexit214
  %.not246 = icmp eq i64 %2, 0
  br i1 %.not246, label %.sink.split, label %.lr.ph227

.preheader207:                                    ; preds = %.loopexit214
  %.not247 = icmp eq i64 %2, 0
  br i1 %.not247, label %.sink.split, label %.lr.ph229

.lr.ph229:                                        ; preds = %.preheader207, %.lr.ph229
  %.0190228 = phi i64 [ %83, %.lr.ph229 ], [ 0, %.preheader207 ]
  %68 = getelementptr inbounds float, ptr %14, i64 %.0190228
  %69 = load float, ptr %68, align 8, !tbaa !27
  %70 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %71 = fmul float %69, %70
  %72 = call noundef signext i16 @_Z5f2s16f(float noundef %71)
  %73 = sext i16 %72 to i32
  %74 = getelementptr inbounds i32, ptr %1, i64 %.0190228
  store i32 %73, ptr %74, align 4, !tbaa !24
  %75 = or disjoint i64 %.0190228, 1
  %76 = getelementptr inbounds float, ptr %14, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !27
  %78 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %79 = fmul float %77, %78
  %80 = call noundef signext i16 @_Z5f2s16f(float noundef %79)
  %81 = sext i16 %80 to i32
  %82 = getelementptr inbounds i32, ptr %1, i64 %75
  store i32 %81, ptr %82, align 4, !tbaa !24
  %83 = add i64 %.0190228, 2
  %84 = icmp ult i64 %83, %2
  br i1 %84, label %.lr.ph229, label %.sink.split, !llvm.loop !33

.lr.ph227:                                        ; preds = %.preheader209, %.lr.ph227
  %.0191226 = phi i64 [ %98, %.lr.ph227 ], [ 0, %.preheader209 ]
  %85 = getelementptr inbounds float, ptr %14, i64 %.0191226
  %86 = load float, ptr %85, align 8, !tbaa !27
  %87 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %88 = fmul float %86, %87
  %89 = call noundef i32 @_Z5f2s24f(float noundef %88)
  %90 = getelementptr inbounds i32, ptr %1, i64 %.0191226
  store i32 %89, ptr %90, align 4, !tbaa !24
  %91 = or disjoint i64 %.0191226, 1
  %92 = getelementptr inbounds float, ptr %14, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !27
  %94 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %95 = fmul float %93, %94
  %96 = call noundef i32 @_Z5f2s24f(float noundef %95)
  %97 = getelementptr inbounds i32, ptr %1, i64 %91
  store i32 %96, ptr %97, align 4, !tbaa !24
  %98 = add i64 %.0191226, 2
  %99 = icmp ult i64 %98, %2
  br i1 %99, label %.lr.ph227, label %.sink.split, !llvm.loop !34

.lr.ph225:                                        ; preds = %.preheader211, %.lr.ph225
  %.0192224 = phi i64 [ %113, %.lr.ph225 ], [ 0, %.preheader211 ]
  %100 = getelementptr inbounds float, ptr %14, i64 %.0192224
  %101 = load float, ptr %100, align 8, !tbaa !27
  %102 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %103 = fmul float %101, %102
  %104 = call noundef i32 @_Z5f2s32f(float noundef %103)
  %105 = getelementptr inbounds i32, ptr %1, i64 %.0192224
  store i32 %104, ptr %105, align 4, !tbaa !24
  %106 = or disjoint i64 %.0192224, 1
  %107 = getelementptr inbounds float, ptr %14, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !27
  %109 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %110 = fmul float %108, %109
  %111 = call noundef i32 @_Z5f2s32f(float noundef %110)
  %112 = getelementptr inbounds i32, ptr %1, i64 %106
  store i32 %111, ptr %112, align 4, !tbaa !24
  %113 = add i64 %.0192224, 2
  %114 = icmp ult i64 %113, %2
  br i1 %114, label %.lr.ph225, label %.sink.split, !llvm.loop !35

.loopexit208.sink.split:                          ; preds = %.preheader213, %.preheader215, %.preheader217
  call void %10(ptr noundef nonnull %13, ptr noundef nonnull %14, i64 noundef %2)
  br label %.sink.split

115:                                              ; preds = %9
  %116 = load ptr, ptr @_ZN5daisyL12audio_handleE, align 8, !tbaa !36
  %.not196 = icmp eq ptr %116, null
  br i1 %.not196, label %379, label %117

117:                                              ; preds = %115
  %118 = tail call noundef i64 @_ZNK5daisy9SaiHandle9GetOffsetEv(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 48))
  %119 = icmp ugt i64 %7, 2
  %120 = zext i1 %119 to i64
  %121 = shl i64 %2, %120
  %122 = tail call ptr @llvm.stacksave.p0()
  %123 = alloca float, i64 %121, align 16
  %124 = alloca float, i64 %121, align 16
  %125 = alloca ptr, i64 %7, align 16
  %126 = alloca ptr, i64 %7, align 16
  store ptr %123, ptr %125, align 16, !tbaa !37
  %127 = udiv i64 %121, %7
  %128 = getelementptr inbounds float, ptr %123, i64 %127
  %129 = getelementptr inbounds i8, ptr %125, i64 8
  store ptr %128, ptr %129, align 8, !tbaa !37
  store ptr %124, ptr %126, align 16, !tbaa !37
  %130 = getelementptr inbounds float, ptr %124, i64 %127
  %131 = getelementptr inbounds i8, ptr %126, i64 8
  store ptr %130, ptr %131, align 8, !tbaa !37
  br i1 %119, label %132, label %141

132:                                              ; preds = %117
  %133 = getelementptr inbounds float, ptr %128, i64 %127
  %134 = getelementptr inbounds i8, ptr %125, i64 16
  store ptr %133, ptr %134, align 16, !tbaa !37
  %135 = getelementptr inbounds float, ptr %133, i64 %127
  %136 = getelementptr inbounds i8, ptr %125, i64 24
  store ptr %135, ptr %136, align 8, !tbaa !37
  %137 = getelementptr inbounds float, ptr %130, i64 %127
  %138 = getelementptr inbounds i8, ptr %126, i64 16
  store ptr %137, ptr %138, align 16, !tbaa !37
  %139 = getelementptr inbounds float, ptr %137, i64 %127
  %140 = getelementptr inbounds i8, ptr %126, i64 24
  store ptr %139, ptr %140, align 8, !tbaa !37
  br label %141

141:                                              ; preds = %132, %117
  %142 = phi ptr [ %135, %132 ], [ undef, %117 ]
  %143 = phi ptr [ %133, %132 ], [ undef, %117 ]
  switch i32 %6, label %.loopexit202 [
    i32 0, label %.preheader201
    i32 1, label %.preheader203
    i32 2, label %.preheader205
  ]

.preheader205:                                    ; preds = %141
  %.not248 = icmp eq i64 %2, 0
  br i1 %.not248, label %.loopexit.sink.split, label %.lr.ph231

.preheader203:                                    ; preds = %141
  %.not249 = icmp eq i64 %2, 0
  br i1 %.not249, label %.loopexit.sink.split, label %.lr.ph233

.preheader201:                                    ; preds = %141
  %.not250 = icmp eq i64 %2, 0
  br i1 %.not250, label %.loopexit.sink.split, label %.lr.ph235

.lr.ph235:                                        ; preds = %.preheader201, %179
  %.0186234 = phi i64 [ %180, %179 ], [ 0, %.preheader201 ]
  %144 = getelementptr inbounds i32, ptr %0, i64 %.0186234
  %145 = load i32, ptr %144, align 4, !tbaa !24
  %146 = trunc i32 %145 to i16
  %147 = call noundef float @_Z5s162fs(i16 noundef signext %146)
  %148 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %149 = fmul float %147, %148
  %150 = lshr exact i64 %.0186234, 1
  %151 = getelementptr inbounds float, ptr %123, i64 %150
  store float %149, ptr %151, align 4, !tbaa !27
  %152 = or disjoint i64 %.0186234, 1
  %153 = getelementptr inbounds i32, ptr %0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !24
  %155 = trunc i32 %154 to i16
  %156 = call noundef float @_Z5s162fs(i16 noundef signext %155)
  %157 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %158 = fmul float %156, %157
  %159 = getelementptr inbounds float, ptr %128, i64 %150
  store float %158, ptr %159, align 4, !tbaa !27
  br i1 %119, label %160, label %179

160:                                              ; preds = %.lr.ph235
  %161 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 64), align 8, !tbaa !37
  %162 = add i64 %.0186234, %118
  %163 = getelementptr inbounds i32, ptr %161, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !24
  %165 = trunc i32 %164 to i16
  %166 = call noundef float @_Z5s162fs(i16 noundef signext %165)
  %167 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %168 = fmul float %166, %167
  %169 = getelementptr inbounds float, ptr %143, i64 %150
  store float %168, ptr %169, align 4, !tbaa !27
  %170 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 64), align 8, !tbaa !37
  %171 = getelementptr i32, ptr %170, i64 %162
  %172 = getelementptr i8, ptr %171, i64 4
  %173 = load i32, ptr %172, align 4, !tbaa !24
  %174 = trunc i32 %173 to i16
  %175 = call noundef float @_Z5s162fs(i16 noundef signext %174)
  %176 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %177 = fmul float %175, %176
  %178 = getelementptr inbounds float, ptr %142, i64 %150
  store float %177, ptr %178, align 4, !tbaa !27
  br label %179

179:                                              ; preds = %.lr.ph235, %160
  %180 = add i64 %.0186234, 2
  %181 = icmp ult i64 %180, %2
  br i1 %181, label %.lr.ph235, label %.loopexit202, !llvm.loop !38

.lr.ph233:                                        ; preds = %.preheader203, %213
  %.0185232 = phi i64 [ %214, %213 ], [ 0, %.preheader203 ]
  %182 = getelementptr inbounds i32, ptr %0, i64 %.0185232
  %183 = load i32, ptr %182, align 4, !tbaa !24
  %184 = call noundef float @_Z5s242fi(i32 noundef %183)
  %185 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %186 = fmul float %184, %185
  %187 = lshr exact i64 %.0185232, 1
  %188 = getelementptr inbounds float, ptr %123, i64 %187
  store float %186, ptr %188, align 4, !tbaa !27
  %189 = or disjoint i64 %.0185232, 1
  %190 = getelementptr inbounds i32, ptr %0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !24
  %192 = call noundef float @_Z5s242fi(i32 noundef %191)
  %193 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %194 = fmul float %192, %193
  %195 = getelementptr inbounds float, ptr %128, i64 %187
  store float %194, ptr %195, align 4, !tbaa !27
  br i1 %119, label %196, label %213

196:                                              ; preds = %.lr.ph233
  %197 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 64), align 8, !tbaa !37
  %198 = add i64 %.0185232, %118
  %199 = getelementptr inbounds i32, ptr %197, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !24
  %201 = call noundef float @_Z5s242fi(i32 noundef %200)
  %202 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %203 = fmul float %201, %202
  %204 = getelementptr inbounds float, ptr %143, i64 %187
  store float %203, ptr %204, align 4, !tbaa !27
  %205 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 64), align 8, !tbaa !37
  %206 = getelementptr i32, ptr %205, i64 %198
  %207 = getelementptr i8, ptr %206, i64 4
  %208 = load i32, ptr %207, align 4, !tbaa !24
  %209 = call noundef float @_Z5s242fi(i32 noundef %208)
  %210 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %211 = fmul float %209, %210
  %212 = getelementptr inbounds float, ptr %142, i64 %187
  store float %211, ptr %212, align 4, !tbaa !27
  br label %213

213:                                              ; preds = %.lr.ph233, %196
  %214 = add i64 %.0185232, 2
  %215 = icmp ult i64 %214, %2
  br i1 %215, label %.lr.ph233, label %.loopexit202, !llvm.loop !39

.lr.ph231:                                        ; preds = %.preheader205, %247
  %.0184230 = phi i64 [ %248, %247 ], [ 0, %.preheader205 ]
  %216 = getelementptr inbounds i32, ptr %0, i64 %.0184230
  %217 = load i32, ptr %216, align 4, !tbaa !24
  %218 = call noundef float @_Z5s322fi(i32 noundef %217)
  %219 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %220 = fmul float %218, %219
  %221 = lshr exact i64 %.0184230, 1
  %222 = getelementptr inbounds float, ptr %123, i64 %221
  store float %220, ptr %222, align 4, !tbaa !27
  %223 = or disjoint i64 %.0184230, 1
  %224 = getelementptr inbounds i32, ptr %0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !24
  %226 = call noundef float @_Z5s322fi(i32 noundef %225)
  %227 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %228 = fmul float %226, %227
  %229 = getelementptr inbounds float, ptr %128, i64 %221
  store float %228, ptr %229, align 4, !tbaa !27
  br i1 %119, label %230, label %247

230:                                              ; preds = %.lr.ph231
  %231 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 64), align 8, !tbaa !37
  %232 = add i64 %.0184230, %118
  %233 = getelementptr inbounds i32, ptr %231, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !24
  %235 = call noundef float @_Z5s322fi(i32 noundef %234)
  %236 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %237 = fmul float %235, %236
  %238 = getelementptr inbounds float, ptr %143, i64 %221
  store float %237, ptr %238, align 4, !tbaa !27
  %239 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 64), align 8, !tbaa !37
  %240 = getelementptr i32, ptr %239, i64 %232
  %241 = getelementptr i8, ptr %240, i64 4
  %242 = load i32, ptr %241, align 4, !tbaa !24
  %243 = call noundef float @_Z5s322fi(i32 noundef %242)
  %244 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 88), align 8, !tbaa !26
  %245 = fmul float %243, %244
  %246 = getelementptr inbounds float, ptr %142, i64 %221
  store float %245, ptr %246, align 4, !tbaa !27
  br label %247

247:                                              ; preds = %.lr.ph231, %230
  %248 = add i64 %.0184230, 2
  %249 = icmp ult i64 %248, %2
  br i1 %249, label %.lr.ph231, label %.loopexit202, !llvm.loop !40

.loopexit202:                                     ; preds = %247, %213, %179, %141
  %250 = lshr i64 %2, 1
  call void %116(ptr noundef nonnull %125, ptr noundef nonnull %126, i64 noundef %250)
  switch i32 %6, label %.sink.split [
    i32 0, label %.preheader
    i32 1, label %.preheader197
    i32 2, label %.preheader199
  ]

.preheader199:                                    ; preds = %.loopexit202
  %.not251 = icmp eq i64 %2, 0
  br i1 %.not251, label %.sink.split, label %.lr.ph237

.lr.ph237:                                        ; preds = %.preheader199
  %251 = getelementptr inbounds i8, ptr %126, i64 16
  %252 = getelementptr inbounds i8, ptr %126, i64 24
  br label %339

.preheader197:                                    ; preds = %.loopexit202
  %.not252 = icmp eq i64 %2, 0
  br i1 %.not252, label %.sink.split, label %.lr.ph239

.lr.ph239:                                        ; preds = %.preheader197
  %253 = getelementptr inbounds i8, ptr %126, i64 16
  %254 = getelementptr inbounds i8, ptr %126, i64 24
  br label %300

.preheader:                                       ; preds = %.loopexit202
  %.not253 = icmp eq i64 %2, 0
  br i1 %.not253, label %.sink.split, label %.lr.ph241

.lr.ph241:                                        ; preds = %.preheader
  %255 = getelementptr inbounds i8, ptr %126, i64 16
  %256 = getelementptr inbounds i8, ptr %126, i64 24
  br label %257

257:                                              ; preds = %.lr.ph241, %297
  %.0183240 = phi i64 [ 0, %.lr.ph241 ], [ %298, %297 ]
  %258 = load ptr, ptr %126, align 16, !tbaa !37
  %259 = lshr exact i64 %.0183240, 1
  %260 = getelementptr inbounds float, ptr %258, i64 %259
  %261 = load float, ptr %260, align 4, !tbaa !27
  %262 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %263 = fmul float %261, %262
  %264 = call noundef signext i16 @_Z5f2s16f(float noundef %263)
  %265 = sext i16 %264 to i32
  %266 = getelementptr inbounds i32, ptr %1, i64 %.0183240
  store i32 %265, ptr %266, align 4, !tbaa !24
  %267 = load ptr, ptr %131, align 8, !tbaa !37
  %268 = getelementptr inbounds float, ptr %267, i64 %259
  %269 = load float, ptr %268, align 4, !tbaa !27
  %270 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %271 = fmul float %269, %270
  %272 = call noundef signext i16 @_Z5f2s16f(float noundef %271)
  %273 = sext i16 %272 to i32
  %274 = or disjoint i64 %.0183240, 1
  %275 = getelementptr inbounds i32, ptr %1, i64 %274
  store i32 %273, ptr %275, align 4, !tbaa !24
  br i1 %119, label %276, label %297

276:                                              ; preds = %257
  %277 = load ptr, ptr %255, align 16, !tbaa !37
  %278 = getelementptr inbounds float, ptr %277, i64 %259
  %279 = load float, ptr %278, align 4, !tbaa !27
  %280 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %281 = fmul float %279, %280
  %282 = call noundef signext i16 @_Z5f2s16f(float noundef %281)
  %283 = sext i16 %282 to i32
  %284 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 80), align 8, !tbaa !37
  %285 = add i64 %.0183240, %118
  %286 = getelementptr inbounds i32, ptr %284, i64 %285
  store i32 %283, ptr %286, align 4, !tbaa !24
  %287 = load ptr, ptr %256, align 8, !tbaa !37
  %288 = getelementptr inbounds float, ptr %287, i64 %259
  %289 = load float, ptr %288, align 4, !tbaa !27
  %290 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %291 = fmul float %289, %290
  %292 = call noundef signext i16 @_Z5f2s16f(float noundef %291)
  %293 = sext i16 %292 to i32
  %294 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 80), align 8, !tbaa !37
  %295 = getelementptr i32, ptr %294, i64 %285
  %296 = getelementptr i8, ptr %295, i64 4
  store i32 %293, ptr %296, align 4, !tbaa !24
  br label %297

297:                                              ; preds = %257, %276
  %298 = add i64 %.0183240, 2
  %299 = icmp ult i64 %298, %2
  br i1 %299, label %257, label %.sink.split, !llvm.loop !41

300:                                              ; preds = %.lr.ph239, %336
  %.0182238 = phi i64 [ 0, %.lr.ph239 ], [ %337, %336 ]
  %301 = load ptr, ptr %126, align 16, !tbaa !37
  %302 = lshr exact i64 %.0182238, 1
  %303 = getelementptr inbounds float, ptr %301, i64 %302
  %304 = load float, ptr %303, align 4, !tbaa !27
  %305 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %306 = fmul float %304, %305
  %307 = call noundef i32 @_Z5f2s24f(float noundef %306)
  %308 = getelementptr inbounds i32, ptr %1, i64 %.0182238
  store i32 %307, ptr %308, align 4, !tbaa !24
  %309 = load ptr, ptr %131, align 8, !tbaa !37
  %310 = getelementptr inbounds float, ptr %309, i64 %302
  %311 = load float, ptr %310, align 4, !tbaa !27
  %312 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %313 = fmul float %311, %312
  %314 = call noundef i32 @_Z5f2s24f(float noundef %313)
  %315 = or disjoint i64 %.0182238, 1
  %316 = getelementptr inbounds i32, ptr %1, i64 %315
  store i32 %314, ptr %316, align 4, !tbaa !24
  br i1 %119, label %317, label %336

317:                                              ; preds = %300
  %318 = load ptr, ptr %253, align 16, !tbaa !37
  %319 = getelementptr inbounds float, ptr %318, i64 %302
  %320 = load float, ptr %319, align 4, !tbaa !27
  %321 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %322 = fmul float %320, %321
  %323 = call noundef i32 @_Z5f2s24f(float noundef %322)
  %324 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 80), align 8, !tbaa !37
  %325 = add i64 %.0182238, %118
  %326 = getelementptr inbounds i32, ptr %324, i64 %325
  store i32 %323, ptr %326, align 4, !tbaa !24
  %327 = load ptr, ptr %254, align 8, !tbaa !37
  %328 = getelementptr inbounds float, ptr %327, i64 %302
  %329 = load float, ptr %328, align 4, !tbaa !27
  %330 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %331 = fmul float %329, %330
  %332 = call noundef i32 @_Z5f2s24f(float noundef %331)
  %333 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 80), align 8, !tbaa !37
  %334 = getelementptr i32, ptr %333, i64 %325
  %335 = getelementptr i8, ptr %334, i64 4
  store i32 %332, ptr %335, align 4, !tbaa !24
  br label %336

336:                                              ; preds = %300, %317
  %337 = add i64 %.0182238, 2
  %338 = icmp ult i64 %337, %2
  br i1 %338, label %300, label %.sink.split, !llvm.loop !42

339:                                              ; preds = %.lr.ph237, %375
  %.0236 = phi i64 [ 0, %.lr.ph237 ], [ %376, %375 ]
  %340 = load ptr, ptr %126, align 16, !tbaa !37
  %341 = lshr exact i64 %.0236, 1
  %342 = getelementptr inbounds float, ptr %340, i64 %341
  %343 = load float, ptr %342, align 4, !tbaa !27
  %344 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %345 = fmul float %343, %344
  %346 = call noundef i32 @_Z5f2s32f(float noundef %345)
  %347 = getelementptr inbounds i32, ptr %1, i64 %.0236
  store i32 %346, ptr %347, align 4, !tbaa !24
  %348 = load ptr, ptr %131, align 8, !tbaa !37
  %349 = getelementptr inbounds float, ptr %348, i64 %341
  %350 = load float, ptr %349, align 4, !tbaa !27
  %351 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %352 = fmul float %350, %351
  %353 = call noundef i32 @_Z5f2s32f(float noundef %352)
  %354 = or disjoint i64 %.0236, 1
  %355 = getelementptr inbounds i32, ptr %1, i64 %354
  store i32 %353, ptr %355, align 4, !tbaa !24
  br i1 %119, label %356, label %375

356:                                              ; preds = %339
  %357 = load ptr, ptr %251, align 16, !tbaa !37
  %358 = getelementptr inbounds float, ptr %357, i64 %341
  %359 = load float, ptr %358, align 4, !tbaa !27
  %360 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %361 = fmul float %359, %360
  %362 = call noundef i32 @_Z5f2s32f(float noundef %361)
  %363 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 80), align 8, !tbaa !37
  %364 = add i64 %.0236, %118
  %365 = getelementptr inbounds i32, ptr %363, i64 %364
  store i32 %362, ptr %365, align 4, !tbaa !24
  %366 = load ptr, ptr %252, align 8, !tbaa !37
  %367 = getelementptr inbounds float, ptr %366, i64 %341
  %368 = load float, ptr %367, align 4, !tbaa !27
  %369 = load float, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 92), align 4, !tbaa !32
  %370 = fmul float %368, %369
  %371 = call noundef i32 @_Z5f2s32f(float noundef %370)
  %372 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN5daisyL12audio_handleE, i64 80), align 8, !tbaa !37
  %373 = getelementptr i32, ptr %372, i64 %364
  %374 = getelementptr i8, ptr %373, i64 4
  store i32 %371, ptr %374, align 4, !tbaa !24
  br label %375

375:                                              ; preds = %339, %356
  %376 = add i64 %.0236, 2
  %377 = icmp ult i64 %376, %2
  br i1 %377, label %339, label %.sink.split, !llvm.loop !43

.loopexit.sink.split:                             ; preds = %.preheader201, %.preheader203, %.preheader205
  %378 = lshr i64 %2, 1
  call void %116(ptr noundef nonnull %125, ptr noundef nonnull %126, i64 noundef %378)
  br label %.sink.split

.sink.split:                                      ; preds = %.lr.ph225, %.lr.ph227, %.lr.ph229, %375, %336, %297, %.loopexit202, %.preheader, %.preheader197, %.preheader199, %.loopexit.sink.split, %.loopexit214, %.preheader207, %.preheader209, %.preheader211, %.loopexit208.sink.split
  %.sink = phi ptr [ %12, %.loopexit208.sink.split ], [ %12, %.preheader211 ], [ %12, %.preheader209 ], [ %12, %.preheader207 ], [ %12, %.loopexit214 ], [ %122, %.loopexit.sink.split ], [ %122, %.preheader199 ], [ %122, %.preheader197 ], [ %122, %.preheader ], [ %122, %.loopexit202 ], [ %122, %297 ], [ %122, %336 ], [ %122, %375 ], [ %12, %.lr.ph229 ], [ %12, %.lr.ph227 ], [ %12, %.lr.ph225 ]
  call void @llvm.stackrestore.p0(ptr %.sink)
  br label %379

379:                                              ; preds = %.sink.split, %115, %3
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5daisy11AudioHandle4Impl11GetChannelsEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_Z5s162fs(i16 noundef signext) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_Z5s242fi(i32 noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_Z5s322fi(i32 noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_Z5f2s16f(float noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5f2s24f(float noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5f2s32f(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

declare noundef i64 @_ZNK5daisy9SaiHandle9GetOffsetEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

attributes #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 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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { alwaysinline 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, !14, i64 48}
!6 = !{!"_ZTSN5daisy9SaiHandle6ConfigE", !7, i64 0, !10, i64 4, !13, i64 44, !14, i64 48, !15, i64 52, !15, i64 56, !16, i64 60, !16, i64 64}
!7 = !{!"_ZTSN5daisy9SaiHandle6Config10PeripheralE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN5daisy9SaiHandle6ConfigUt_E", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!11 = !{!"_ZTS12dsy_gpio_pin", !12, i64 0, !8, i64 4}
!12 = !{!"_ZTS13dsy_gpio_port", !8, i64 0}
!13 = !{!"_ZTSN5daisy9SaiHandle6Config10SampleRateE", !8, i64 0}
!14 = !{!"_ZTSN5daisy9SaiHandle6Config8BitDepthE", !8, i64 0}
!15 = !{!"_ZTSN5daisy9SaiHandle6Config4SyncE", !8, i64 0}
!16 = !{!"_ZTSN5daisy9SaiHandle6Config9DirectionE", !8, i64 0}
!17 = !{!18, !19, i64 8}
!18 = !{!"_ZTSN5daisy11AudioHandle4ImplE", !19, i64 0, !19, i64 8, !20, i64 16, !23, i64 40, !23, i64 48, !8, i64 56, !8, i64 72, !22, i64 88, !22, i64 92}
!19 = !{!"any pointer", !8, i64 0}
!20 = !{!"_ZTSN5daisy11AudioHandle6ConfigE", !21, i64 0, !13, i64 8, !22, i64 12, !22, i64 16}
!21 = !{!"long", !8, i64 0}
!22 = !{!"float", !8, i64 0}
!23 = !{!"_ZTSN5daisy9SaiHandleE", !19, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !8, i64 0}
!26 = !{!18, !22, i64 88}
!27 = !{!22, !22, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = !{!18, !22, i64 92}
!33 = distinct !{!33, !29}
!34 = distinct !{!34, !29}
!35 = distinct !{!35, !29}
!36 = !{!18, !19, i64 0}
!37 = !{!19, !19, i64 0}
!38 = distinct !{!38, !29}
!39 = distinct !{!39, !29}
!40 = distinct !{!40, !29}
!41 = distinct !{!41, !29}
!42 = distinct !{!42, !29}
!43 = distinct !{!43, !29}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass