; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/audiosource/speech/klatt.ll (ZN5klatt21pitch_synch_par_resetEi)

; 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.klatt = type <{ %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, i32, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, i32, float, float, float, float, float, i32, i32, ptr, i32, %class.klatt_frame, [4 x i8], ptr, i32, i32, %class.Slope, %class.Slope, float, [4 x i8] }>
%class.resonator = type { float, float, float, float, float }
%class.klatt_frame = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%class.Slope = type { float, i32 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5klatt21pitch_synch_par_resetEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %7 = load ptr, ptr %3, align 8
  %8 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 19
  %9 = load i32, ptr %8, align 4, !tbaa !11
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %11, label %116

11:                                               ; preds = %2
  %12 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 17
  %13 = load i32, ptr %12, align 4, !tbaa !17
  %14 = mul nsw i32 40, %13
  %15 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 19
  %16 = load i32, ptr %15, align 4, !tbaa !11
  %17 = sdiv i32 %14, %16
  %18 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  store i32 %17, ptr %18, align 8, !tbaa !18
  %19 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 20
  %20 = load i32, ptr %19, align 8, !tbaa !19
  %21 = call noundef float @_ZL7DBtoLINi(i32 noundef %20)
  %22 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 27
  store float %21, ptr %22, align 4, !tbaa !20
  %23 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  %24 = load i32, ptr %23, align 8, !tbaa !18
  %25 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 26
  store i32 %24, ptr %25, align 8, !tbaa !21
  %26 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 20
  %27 = load i32, ptr %26, align 8, !tbaa !19
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %29, label %33

29:                                               ; preds = %11
  %30 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 26
  %31 = load i32, ptr %30, align 8, !tbaa !21
  %32 = ashr i32 %31, 1
  store i32 %32, ptr %30, align 8, !tbaa !21
  br label %33

33:                                               ; preds = %29, %11
  %34 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 42
  %35 = getelementptr inbounds %class.klatt_frame, ptr %34, i32 0, i32 20
  %36 = load i32, ptr %35, align 4, !tbaa !22
  %37 = call noundef float @_ZL7DBtoLINi(i32 noundef %36)
  %38 = fmul float %37, 0x3FB99999A0000000
  %39 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 31
  store float %38, ptr %39, align 4, !tbaa !23
  %40 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 42
  %41 = getelementptr inbounds %class.klatt_frame, ptr %40, i32 0, i32 19
  %42 = load i32, ptr %41, align 4, !tbaa !24
  %43 = mul nsw i32 4, %42
  %44 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 25
  store i32 %43, ptr %44, align 4, !tbaa !25
  %45 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 25
  %46 = load i32, ptr %45, align 4, !tbaa !25
  %47 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  %48 = load i32, ptr %47, align 8, !tbaa !18
  %49 = sub nsw i32 %48, 1
  %50 = icmp sge i32 %46, %49
  br i1 %50, label %51, label %56

51:                                               ; preds = %33
  %52 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  %53 = load i32, ptr %52, align 8, !tbaa !18
  %54 = sub nsw i32 %53, 2
  %55 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 25
  store i32 %54, ptr %55, align 4, !tbaa !25
  br label %56

56:                                               ; preds = %51, %33
  %57 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 25
  %58 = load i32, ptr %57, align 4, !tbaa !25
  %59 = icmp slt i32 %58, 40
  br i1 %59, label %60, label %62

60:                                               ; preds = %56
  %61 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 25
  store i32 40, ptr %61, align 4, !tbaa !25
  br label %62

62:                                               ; preds = %60, %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %63 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 17
  %64 = load i32, ptr %63, align 4, !tbaa !17
  %65 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 25
  %66 = load i32, ptr %65, align 4, !tbaa !25
  %67 = sdiv i32 %64, %66
  store i32 %67, ptr %5, align 4, !tbaa !9
  %68 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 9
  %69 = load i32, ptr %5, align 4, !tbaa !9
  %70 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 17
  %71 = load i32, ptr %70, align 4, !tbaa !17
  call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %68, i32 noundef 0, i32 noundef %69, i32 noundef %71)
  %72 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 25
  %73 = load i32, ptr %72, align 4, !tbaa !25
  %74 = sitofp i32 %73 to float
  %75 = fmul float %74, 0x3F810F51A0000000
  store float %75, ptr %6, align 4, !tbaa !26
  %76 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 9
  %77 = load float, ptr %6, align 4, !tbaa !26
  %78 = load float, ptr %6, align 4, !tbaa !26
  %79 = fmul float %77, %78
  call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %76, float noundef %79)
  %80 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  %81 = load i32, ptr %80, align 8, !tbaa !18
  %82 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 25
  %83 = load i32, ptr %82, align 4, !tbaa !25
  %84 = sub nsw i32 %81, %83
  store i32 %84, ptr %5, align 4, !tbaa !9
  %85 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 21
  %86 = load i32, ptr %85, align 4, !tbaa !27
  %87 = load i32, ptr %5, align 4, !tbaa !9
  %88 = icmp sgt i32 %86, %87
  br i1 %88, label %89, label %92

89:                                               ; preds = %62
  %90 = load i32, ptr %5, align 4, !tbaa !9
  %91 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 21
  store i32 %90, ptr %91, align 4, !tbaa !27
  br label %92

92:                                               ; preds = %89, %62
  %93 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 32
  %94 = load i32, ptr %93, align 8, !tbaa !28
  %95 = icmp sge i32 %94, 0
  br i1 %95, label %96, label %100

96:                                               ; preds = %92
  %97 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 21
  %98 = load i32, ptr %97, align 4, !tbaa !27
  %99 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 32
  store i32 %98, ptr %99, align 8, !tbaa !28
  br label %105

100:                                              ; preds = %92
  %101 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 21
  %102 = load i32, ptr %101, align 4, !tbaa !27
  %103 = sub nsw i32 0, %102
  %104 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 32
  store i32 %103, ptr %104, align 8, !tbaa !28
  br label %105

105:                                              ; preds = %100, %96
  %106 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  %107 = load i32, ptr %106, align 8, !tbaa !18
  %108 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 32
  %109 = load i32, ptr %108, align 8, !tbaa !28
  %110 = add nsw i32 %107, %109
  %111 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  store i32 %110, ptr %111, align 8, !tbaa !18
  %112 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 32
  %113 = load i32, ptr %112, align 8, !tbaa !28
  %114 = sub nsw i32 0, %113
  %115 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 32
  store i32 %114, ptr %115, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %123

116:                                              ; preds = %2
  %117 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  store i32 4, ptr %117, align 8, !tbaa !18
  %118 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 27
  store float 0.000000e+00, ptr %118, align 4, !tbaa !20
  %119 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  %120 = load i32, ptr %119, align 8, !tbaa !18
  %121 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 26
  store i32 %120, ptr %121, align 8, !tbaa !21
  %122 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 31
  store float 0.000000e+00, ptr %122, align 4, !tbaa !23
  br label %123

123:                                              ; preds = %116, %105
  %124 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 24
  %125 = load i32, ptr %124, align 8, !tbaa !18
  %126 = icmp ne i32 %125, 4
  br i1 %126, label %130, label %127

127:                                              ; preds = %123
  %128 = load i32, ptr %4, align 4, !tbaa !9
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %148

130:                                              ; preds = %127, %123
  %131 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 42
  %132 = getelementptr inbounds %class.klatt_frame, ptr %131, i32 0, i32 21
  %133 = load i32, ptr %132, align 4, !tbaa !29
  %134 = sitofp i32 %133 to float
  %135 = fmul float 0x3FA0E56040000000, %134
  %136 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 36
  store float %135, ptr %136, align 8, !tbaa !30
  %137 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 36
  %138 = load float, ptr %137, align 8, !tbaa !30
  %139 = fcmp ogt float %138, 0.000000e+00
  br i1 %139, label %140, label %145

140:                                              ; preds = %130
  %141 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 36
  %142 = load float, ptr %141, align 8, !tbaa !30
  %143 = fsub float 1.000000e+00, %142
  %144 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 37
  store float %143, ptr %144, align 4, !tbaa !31
  br label %147

145:                                              ; preds = %130
  %146 = getelementptr inbounds %class.klatt, ptr %7, i32 0, i32 37
  store float 1.000000e+00, ptr %146, align 4, !tbaa !31
  br label %147

147:                                              ; preds = %145, %140
  br label %148

148:                                              ; preds = %147, %127
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL7DBtoLINi(i32 noundef) #2

declare void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef, i32 noundef, i32 noundef) #3

declare void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 268}
!12 = !{!"_ZTS5klatt", !13, i64 0, !13, i64 20, !13, i64 40, !13, i64 60, !13, i64 80, !13, i64 100, !13, i64 120, !13, i64 140, !13, i64 160, !13, i64 180, !13, i64 200, !13, i64 220, !10, i64 240, !14, i64 244, !14, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !14, i64 300, !14, i64 304, !14, i64 308, !14, i64 312, !14, i64 316, !10, i64 320, !14, i64 324, !14, i64 328, !14, i64 332, !14, i64 336, !14, i64 340, !10, i64 344, !10, i64 348, !6, i64 352, !10, i64 360, !15, i64 364, !6, i64 528, !10, i64 536, !10, i64 540, !16, i64 544, !16, i64 552, !14, i64 560}
!13 = !{!"_ZTS9resonator", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTS11klatt_frame", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156}
!16 = !{!"_ZTS5Slope", !14, i64 0, !10, i64 4}
!17 = !{!12, !10, i64 260}
!18 = !{!12, !10, i64 288}
!19 = !{!12, !10, i64 272}
!20 = !{!12, !14, i64 300}
!21 = !{!12, !10, i64 296}
!22 = !{!12, !10, i64 444}
!23 = !{!12, !14, i64 316}
!24 = !{!12, !10, i64 440}
!25 = !{!12, !10, i64 292}
!26 = !{!14, !14, i64 0}
!27 = !{!12, !10, i64 276}
!28 = !{!12, !10, i64 320}
!29 = !{!12, !10, i64 448}
!30 = !{!12, !14, i64 336}
!31 = !{!12, !14, i64 340}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5klatt21pitch_synch_par_resetEi(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 268
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %6, label %64

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 260
  %8 = load i32, ptr %7, align 4, !tbaa !15
  %9 = mul nsw i32 %8, 40
  %10 = sdiv i32 %9, %4
  %11 = getelementptr inbounds i8, ptr %0, i64 288
  store i32 %10, ptr %11, align 8, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %0, i64 272
  %13 = load i32, ptr %12, align 8, !tbaa !17
  %14 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %13)
  %15 = getelementptr inbounds i8, ptr %0, i64 300
  store float %14, ptr %15, align 4, !tbaa !18
  %16 = load i32, ptr %11, align 8, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %0, i64 296
  store i32 %16, ptr %17, align 8, !tbaa !19
  %18 = load i32, ptr %12, align 8, !tbaa !17
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %6
  %21 = ashr i32 %16, 1
  store i32 %21, ptr %17, align 8, !tbaa !19
  br label %22

22:                                               ; preds = %20, %6
  %23 = getelementptr inbounds i8, ptr %0, i64 444
  %24 = load i32, ptr %23, align 4, !tbaa !20
  %25 = tail call noundef float @_ZL7DBtoLINi(i32 noundef %24)
  %26 = fmul float %25, 0x3FB99999A0000000
  %27 = getelementptr inbounds i8, ptr %0, i64 316
  store float %26, ptr %27, align 4, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %0, i64 440
  %29 = load i32, ptr %28, align 8, !tbaa !22
  %30 = shl nsw i32 %29, 2
  %31 = getelementptr inbounds i8, ptr %0, i64 292
  store i32 %30, ptr %31, align 4, !tbaa !23
  %32 = load i32, ptr %11, align 8, !tbaa !16
  %33 = add nsw i32 %32, -1
  %.not = icmp sge i32 %30, %33
  %34 = add nsw i32 %32, -2
  %35 = select i1 %.not, i32 %34, i32 %30
  %36 = icmp slt i32 %35, 40
  %37 = or i1 %.not, %36
  br i1 %37, label %38, label %39

38:                                               ; preds = %22
  %simplifycfg.merge = tail call i32 @llvm.smax.i32(i32 %35, i32 40)
  store i32 %simplifycfg.merge, ptr %31, align 4, !tbaa !23
  br label %39

39:                                               ; preds = %22, %38
  %40 = phi i32 [ %30, %22 ], [ %simplifycfg.merge, %38 ]
  %41 = load i32, ptr %7, align 4, !tbaa !15
  %42 = sdiv i32 %41, %40
  %43 = getelementptr inbounds i8, ptr %0, i64 180
  tail call void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20) %43, i32 noundef 0, i32 noundef %42, i32 noundef %41)
  %44 = load i32, ptr %31, align 4, !tbaa !23
  %45 = sitofp i32 %44 to float
  %46 = fmul float %45, 0x3F810F51A0000000
  %47 = fmul float %46, %46
  tail call void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20) %43, float noundef %47)
  %48 = load i32, ptr %11, align 8, !tbaa !16
  %49 = load i32, ptr %31, align 4, !tbaa !23
  %50 = sub nsw i32 %48, %49
  %51 = getelementptr inbounds i8, ptr %0, i64 276
  %52 = load i32, ptr %51, align 4
  %53 = icmp sgt i32 %52, %50
  br i1 %53, label %54, label %55

54:                                               ; preds = %39
  store i32 %50, ptr %51, align 4, !tbaa !24
  br label %55

55:                                               ; preds = %54, %39
  %56 = phi i32 [ %50, %54 ], [ %52, %39 ]
  %57 = getelementptr inbounds i8, ptr %0, i64 320
  %58 = load i32, ptr %57, align 8, !tbaa !25
  %59 = sub nsw i32 0, %56
  %60 = icmp slt i32 %58, 0
  %storemerge = select i1 %60, i32 %59, i32 %56
  %61 = add nsw i32 %storemerge, %48
  store i32 %61, ptr %11, align 8, !tbaa !16
  %62 = sub nsw i32 0, %storemerge
  store i32 %62, ptr %57, align 8, !tbaa !25
  %63 = icmp ne i32 %61, 4
  br label %69

64:                                               ; preds = %2
  %65 = getelementptr inbounds i8, ptr %0, i64 288
  store i32 4, ptr %65, align 8, !tbaa !16
  %66 = getelementptr inbounds i8, ptr %0, i64 300
  store float 0.000000e+00, ptr %66, align 4, !tbaa !18
  %67 = getelementptr inbounds i8, ptr %0, i64 296
  store i32 4, ptr %67, align 8, !tbaa !19
  %68 = getelementptr inbounds i8, ptr %0, i64 316
  store float 0.000000e+00, ptr %68, align 4, !tbaa !21
  br label %69

69:                                               ; preds = %64, %55
  %70 = phi i1 [ false, %64 ], [ %63, %55 ]
  %71 = icmp eq i32 %1, 0
  %or.cond = or i1 %71, %70
  br i1 %or.cond, label %.sink.split, label %80

.sink.split:                                      ; preds = %69
  %72 = getelementptr inbounds i8, ptr %0, i64 448
  %73 = load i32, ptr %72, align 8, !tbaa !26
  %74 = sitofp i32 %73 to float
  %75 = fmul float %74, 0x3FA0E56040000000
  %76 = getelementptr inbounds i8, ptr %0, i64 336
  store float %75, ptr %76, align 8, !tbaa !27
  %77 = fcmp ogt float %75, 0.000000e+00
  %78 = fsub float 1.000000e+00, %75
  %.sink = select i1 %77, float %78, float 1.000000e+00
  %79 = getelementptr inbounds i8, ptr %0, i64 340
  store float %.sink, ptr %79, align 4, !tbaa !28
  br label %80

80:                                               ; preds = %.sink.split, %69
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL7DBtoLINi(i32 noundef) local_unnamed_addr #1

declare void @_ZN9resonator13initResonatorEiii(ptr noundef nonnull align 4 dereferenceable(20), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN9resonator7setGainEf(ptr noundef nonnull align 4 dereferenceable(20), float noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !11, i64 268}
!6 = !{!"_ZTS5klatt", !7, i64 0, !7, i64 20, !7, i64 40, !7, i64 60, !7, i64 80, !7, i64 100, !7, i64 120, !7, i64 140, !7, i64 160, !7, i64 180, !7, i64 200, !7, i64 220, !11, i64 240, !8, i64 244, !8, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !8, i64 300, !8, i64 304, !8, i64 308, !8, i64 312, !8, i64 316, !11, i64 320, !8, i64 324, !8, i64 328, !8, i64 332, !8, i64 336, !8, i64 340, !11, i64 344, !11, i64 348, !12, i64 352, !11, i64 360, !13, i64 364, !12, i64 528, !11, i64 536, !11, i64 540, !14, i64 544, !14, i64 552, !8, i64 560}
!7 = !{!"_ZTS9resonator", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTS11klatt_frame", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156}
!14 = !{!"_ZTS5Slope", !8, i64 0, !11, i64 4}
!15 = !{!6, !11, i64 260}
!16 = !{!6, !11, i64 288}
!17 = !{!6, !11, i64 272}
!18 = !{!6, !8, i64 300}
!19 = !{!6, !11, i64 296}
!20 = !{!6, !11, i64 444}
!21 = !{!6, !8, i64 316}
!22 = !{!6, !11, i64 440}
!23 = !{!6, !11, i64 292}
!24 = !{!6, !11, i64 276}
!25 = !{!6, !11, i64 320}
!26 = !{!6, !11, i64 448}
!27 = !{!6, !8, i64 336}
!28 = !{!6, !8, i64 340}


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass