; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/audiosource/tedsid/sid.ll (ZN8SIDsound5resetEv)

; 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.SIDsound = type <{ ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i8], [3 x %"class.SIDsound::SIDVoice"], i8, [3 x i8], i32, i8, [7 x i8], [2048 x double], i32, i32, i32, i32, i32, i8, [3 x i8], i32, i8, [3 x i8], i32, [4 x i8] }>
%"class.SIDsound::SIDVoice" = type { i32, i32, ptr, ptr, i32, i32, i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32 }

@_ZN8SIDsound15RateCountPeriodE = external dso_local constant [16 x i32], align 16

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8SIDsound15setFilterCutoffEv(ptr noundef nonnull align 8 dereferenceable(16796)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8SIDsound5resetEv(ptr noundef nonnull align 8 dereferenceable(16796) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %2, align 8
  %5 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 9
  %6 = load i32, ptr %5, align 8, !tbaa !9
  %7 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 1
  store i32 %6, ptr %7, align 8, !tbaa !13
  %8 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 23
  store i8 0, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !15
  br label %9

9:                                                ; preds = %120, %1
  %10 = load i32, ptr %3, align 4, !tbaa !15
  %11 = icmp slt i32 %10, 3
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %123

13:                                               ; preds = %9
  %14 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %15 = load i32, ptr %3, align 4, !tbaa !15
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %14, i64 0, i64 %16
  %18 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %17, i32 0, i32 0
  store i32 0, ptr %18, align 8, !tbaa !16
  %19 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %20 = load i32, ptr %3, align 4, !tbaa !15
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %19, i64 0, i64 %21
  %23 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %22, i32 0, i32 1
  store i32 0, ptr %23, align 4, !tbaa !19
  %24 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %25 = load i32, ptr %3, align 4, !tbaa !15
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %24, i64 0, i64 %26
  %28 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %27, i32 0, i32 6
  store i32 0, ptr %28, align 8, !tbaa !20
  %29 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %30 = load i32, ptr %3, align 4, !tbaa !15
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %29, i64 0, i64 %31
  %33 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %32, i32 0, i32 4
  store i32 0, ptr %33, align 8, !tbaa !21
  %34 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %35 = load i32, ptr %3, align 4, !tbaa !15
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %34, i64 0, i64 %36
  %38 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %37, i32 0, i32 9
  store i16 0, ptr %38, align 2, !tbaa !22
  %39 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %40 = load i32, ptr %3, align 4, !tbaa !15
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %39, i64 0, i64 %41
  %43 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %42, i32 0, i32 8
  store i16 0, ptr %43, align 8, !tbaa !23
  %44 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %45 = load i32, ptr %3, align 4, !tbaa !15
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %44, i64 0, i64 %46
  %48 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %47, i32 0, i32 12
  store i32 0, ptr %48, align 4, !tbaa !24
  %49 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %50 = load i32, ptr %3, align 4, !tbaa !15
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %49, i64 0, i64 %51
  %53 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %52, i32 0, i32 14
  store i32 0, ptr %53, align 4, !tbaa !25
  %54 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %55 = load i32, ptr %3, align 4, !tbaa !15
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %54, i64 0, i64 %56
  %58 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %57, i32 0, i32 20
  store i32 0, ptr %58, align 4, !tbaa !26
  %59 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %60 = load i32, ptr %3, align 4, !tbaa !15
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %59, i64 0, i64 %61
  %63 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %62, i32 0, i32 19
  store i32 0, ptr %63, align 8, !tbaa !27
  %64 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %65 = load i32, ptr %3, align 4, !tbaa !15
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %64, i64 0, i64 %66
  %68 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %67, i32 0, i32 18
  store i32 0, ptr %68, align 4, !tbaa !28
  %69 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %70 = load i32, ptr %3, align 4, !tbaa !15
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %69, i64 0, i64 %71
  %73 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %72, i32 0, i32 24
  store i32 0, ptr %73, align 4, !tbaa !29
  %74 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %75 = load i32, ptr %3, align 4, !tbaa !15
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %74, i64 0, i64 %76
  %78 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %77, i32 0, i32 21
  store i32 0, ptr %78, align 8, !tbaa !30
  %79 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %80 = load i32, ptr %3, align 4, !tbaa !15
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %79, i64 0, i64 %81
  %83 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %82, i32 0, i32 22
  store i32 0, ptr %83, align 4, !tbaa !31
  %84 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %85 = load i32, ptr %3, align 4, !tbaa !15
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %84, i64 0, i64 %86
  %88 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %87, i32 0, i32 7
  store i32 8388604, ptr %88, align 4, !tbaa !32
  %89 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %90 = load i32, ptr %3, align 4, !tbaa !15
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %89, i64 0, i64 %91
  %93 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %92, i32 0, i32 16
  store i32 0, ptr %93, align 4, !tbaa !33
  %94 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %95 = load i32, ptr %3, align 4, !tbaa !15
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %94, i64 0, i64 %96
  %98 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %97, i32 0, i32 13
  store i32 0, ptr %98, align 8, !tbaa !34
  %99 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %100 = load i32, ptr %3, align 4, !tbaa !15
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %99, i64 0, i64 %101
  %103 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %102, i32 0, i32 11
  store i32 0, ptr %103, align 8, !tbaa !35
  %104 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %105 = load i32, ptr %3, align 4, !tbaa !15
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %104, i64 0, i64 %106
  %108 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %107, i32 0, i32 10
  store i32 0, ptr %108, align 4, !tbaa !36
  %109 = load i32, ptr @_ZN8SIDsound15RateCountPeriodE, align 16, !tbaa !15
  %110 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %111 = load i32, ptr %3, align 4, !tbaa !15
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %110, i64 0, i64 %112
  %114 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %113, i32 0, i32 17
  store i32 %109, ptr %114, align 8, !tbaa !37
  %115 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 11
  %116 = load i32, ptr %3, align 4, !tbaa !15
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [3 x %"class.SIDsound::SIDVoice"], ptr %115, i64 0, i64 %117
  %119 = getelementptr inbounds %"class.SIDsound::SIDVoice", ptr %118, i32 0, i32 15
  store i32 32767, ptr %119, align 8, !tbaa !38
  br label %120

120:                                              ; preds = %13
  %121 = load i32, ptr %3, align 4, !tbaa !15
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %3, align 4, !tbaa !15
  br label %9, !llvm.loop !39

123:                                              ; preds = %12
  %124 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 12
  store i8 0, ptr %124, align 8, !tbaa !41
  %125 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 15
  store i8 0, ptr %125, align 8, !tbaa !42
  %126 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 14
  store i32 0, ptr %126, align 4, !tbaa !43
  %127 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 22
  store i32 0, ptr %127, align 8, !tbaa !44
  %128 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 21
  store i32 0, ptr %128, align 4, !tbaa !45
  %129 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 20
  store i32 0, ptr %129, align 8, !tbaa !46
  call void @_ZN8SIDsound15setFilterCutoffEv(ptr noundef nonnull align 8 dereferenceable(16796) %4)
  call void @_ZN8SIDsound12setResonanceEv(ptr noundef nonnull align 8 dereferenceable(16796) %4)
  %130 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 8
  store i32 0, ptr %130, align 4, !tbaa !47
  %131 = getelementptr inbounds %class.SIDsound, ptr %4, i32 0, i32 4
  store i32 0, ptr %131, align 4, !tbaa !48
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8SIDsound12setResonanceEv(ptr noundef nonnull align 8 dereferenceable(16796)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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, !11, i64 40}
!10 = !{!"_ZTS8SIDsound", !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, !7, i64 48, !7, i64 360, !11, i64 364, !7, i64 368, !7, i64 376, !11, i64 16760, !11, i64 16764, !11, i64 16768, !11, i64 16772, !11, i64 16776, !7, i64 16780, !11, i64 16784, !12, i64 16788, !11, i64 16792}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !7, i64 16780}
!15 = !{!11, !11, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"_ZTSN8SIDsound8SIDVoiceE", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !18, i64 40, !18, i64 42, !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, !12, i64 96, !11, i64 100}
!18 = !{!"short", !7, i64 0}
!19 = !{!17, !11, i64 4}
!20 = !{!17, !11, i64 32}
!21 = !{!17, !11, i64 24}
!22 = !{!17, !18, i64 42}
!23 = !{!17, !18, i64 40}
!24 = !{!17, !11, i64 52}
!25 = !{!17, !11, i64 60}
!26 = !{!17, !11, i64 84}
!27 = !{!17, !11, i64 80}
!28 = !{!17, !11, i64 76}
!29 = !{!17, !11, i64 100}
!30 = !{!17, !11, i64 88}
!31 = !{!17, !11, i64 92}
!32 = !{!17, !11, i64 36}
!33 = !{!17, !11, i64 68}
!34 = !{!17, !11, i64 56}
!35 = !{!17, !11, i64 48}
!36 = !{!17, !11, i64 44}
!37 = !{!17, !11, i64 72}
!38 = !{!17, !11, i64 64}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!10, !7, i64 360}
!42 = !{!10, !7, i64 368}
!43 = !{!10, !11, i64 364}
!44 = !{!10, !11, i64 16776}
!45 = !{!10, !11, i64 16772}
!46 = !{!10, !11, i64 16768}
!47 = !{!10, !11, i64 36}
!48 = !{!10, !11, i64 20}


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

@_ZN8SIDsound15RateCountPeriodE = external dso_local local_unnamed_addr constant [16 x i32], align 16

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8SIDsound15setFilterCutoffEv(ptr noundef nonnull align 8 dereferenceable(16796)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8SIDsound5resetEv(ptr noundef nonnull align 8 dereferenceable(16796) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 40
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %3, ptr %4, align 8, !tbaa !11
  %5 = getelementptr inbounds i8, ptr %0, i64 16780
  store i8 0, ptr %5, align 4, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = load i32, ptr @_ZN8SIDsound15RateCountPeriodE, align 16, !tbaa !13
  store i32 0, ptr %6, align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 0, ptr %8, align 4, !tbaa !18
  %9 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 0, ptr %9, align 8, !tbaa !19
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 0, ptr %10, align 8, !tbaa !20
  %11 = getelementptr inbounds i8, ptr %0, i64 90
  store i16 0, ptr %11, align 2, !tbaa !21
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  store i16 0, ptr %12, align 8, !tbaa !22
  %13 = getelementptr inbounds i8, ptr %0, i64 108
  store i32 0, ptr %13, align 4, !tbaa !23
  %14 = getelementptr inbounds i8, ptr %0, i64 124
  %15 = getelementptr inbounds i8, ptr %0, i64 148
  store i32 0, ptr %15, align 4, !tbaa !24
  %16 = getelementptr inbounds i8, ptr %0, i64 84
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %14, i8 0, i64 20, i1 false)
  store i32 8388604, ptr %16, align 4, !tbaa !25
  %17 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 0, ptr %17, align 4, !tbaa !26
  %18 = getelementptr inbounds i8, ptr %0, i64 92
  store <4 x i32> zeroinitializer, ptr %18, align 4, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 %7, ptr %19, align 8, !tbaa !27
  %20 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 32767, ptr %20, align 8, !tbaa !28
  %21 = getelementptr inbounds i8, ptr %0, i64 152
  store i32 0, ptr %21, align 8, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %0, i64 156
  store i32 0, ptr %22, align 4, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %0, i64 184
  store i32 0, ptr %23, align 8, !tbaa !19
  %24 = getelementptr inbounds i8, ptr %0, i64 176
  store i32 0, ptr %24, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %0, i64 194
  store i16 0, ptr %25, align 2, !tbaa !21
  %26 = getelementptr inbounds i8, ptr %0, i64 192
  store i16 0, ptr %26, align 8, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %0, i64 212
  store i32 0, ptr %27, align 4, !tbaa !23
  %28 = getelementptr inbounds i8, ptr %0, i64 228
  %29 = getelementptr inbounds i8, ptr %0, i64 252
  store i32 0, ptr %29, align 4, !tbaa !24
  %30 = getelementptr inbounds i8, ptr %0, i64 188
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %28, i8 0, i64 20, i1 false)
  store i32 8388604, ptr %30, align 4, !tbaa !25
  %31 = getelementptr inbounds i8, ptr %0, i64 220
  store i32 0, ptr %31, align 4, !tbaa !26
  %32 = getelementptr inbounds i8, ptr %0, i64 196
  store <4 x i32> zeroinitializer, ptr %32, align 4, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %0, i64 224
  store i32 %7, ptr %33, align 8, !tbaa !27
  %34 = getelementptr inbounds i8, ptr %0, i64 216
  store i32 32767, ptr %34, align 8, !tbaa !28
  %35 = getelementptr inbounds i8, ptr %0, i64 256
  store i32 0, ptr %35, align 8, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %0, i64 260
  store i32 0, ptr %36, align 4, !tbaa !18
  %37 = getelementptr inbounds i8, ptr %0, i64 288
  store i32 0, ptr %37, align 8, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %0, i64 280
  store i32 0, ptr %38, align 8, !tbaa !20
  %39 = getelementptr inbounds i8, ptr %0, i64 298
  store i16 0, ptr %39, align 2, !tbaa !21
  %40 = getelementptr inbounds i8, ptr %0, i64 296
  store i16 0, ptr %40, align 8, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %0, i64 316
  store i32 0, ptr %41, align 4, !tbaa !23
  %42 = getelementptr inbounds i8, ptr %0, i64 332
  %43 = getelementptr inbounds i8, ptr %0, i64 356
  store i32 0, ptr %43, align 4, !tbaa !24
  %44 = getelementptr inbounds i8, ptr %0, i64 292
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %42, i8 0, i64 20, i1 false)
  store i32 8388604, ptr %44, align 4, !tbaa !25
  %45 = getelementptr inbounds i8, ptr %0, i64 324
  store i32 0, ptr %45, align 4, !tbaa !26
  %46 = getelementptr inbounds i8, ptr %0, i64 300
  store <4 x i32> zeroinitializer, ptr %46, align 4, !tbaa !13
  %47 = getelementptr inbounds i8, ptr %0, i64 328
  store i32 %7, ptr %47, align 8, !tbaa !27
  %48 = getelementptr inbounds i8, ptr %0, i64 320
  store i32 32767, ptr %48, align 8, !tbaa !28
  %49 = getelementptr inbounds i8, ptr %0, i64 360
  store i8 0, ptr %49, align 8, !tbaa !29
  %50 = getelementptr inbounds i8, ptr %0, i64 368
  store i8 0, ptr %50, align 8, !tbaa !30
  %51 = getelementptr inbounds i8, ptr %0, i64 364
  store i32 0, ptr %51, align 4, !tbaa !31
  %52 = getelementptr inbounds i8, ptr %0, i64 16776
  store i32 0, ptr %52, align 8, !tbaa !32
  %53 = getelementptr inbounds i8, ptr %0, i64 16772
  store i32 0, ptr %53, align 4, !tbaa !33
  %54 = getelementptr inbounds i8, ptr %0, i64 16768
  store i32 0, ptr %54, align 8, !tbaa !34
  tail call void @_ZN8SIDsound15setFilterCutoffEv(ptr noundef nonnull align 8 dereferenceable(16796) %0)
  tail call void @_ZN8SIDsound12setResonanceEv(ptr noundef nonnull align 8 dereferenceable(16796) %0)
  %55 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 0, ptr %55, align 4, !tbaa !35
  %56 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 0, ptr %56, align 4, !tbaa !36
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8SIDsound12setResonanceEv(ptr noundef nonnull align 8 dereferenceable(16796)) local_unnamed_addr #0 align 2

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

attributes #0 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 40}
!6 = !{!"_ZTS8SIDsound", !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !8, i64 48, !8, i64 360, !7, i64 364, !8, i64 368, !8, i64 376, !7, i64 16760, !7, i64 16764, !7, i64 16768, !7, i64 16772, !7, i64 16776, !8, i64 16780, !7, i64 16784, !10, i64 16788, !7, i64 16792}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !8, i64 16780}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTSN8SIDsound8SIDVoiceE", !7, i64 0, !7, i64 4, !16, i64 8, !16, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !17, i64 40, !17, i64 42, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !10, i64 96, !7, i64 100}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"short", !8, i64 0}
!18 = !{!15, !7, i64 4}
!19 = !{!15, !7, i64 32}
!20 = !{!15, !7, i64 24}
!21 = !{!15, !17, i64 42}
!22 = !{!15, !17, i64 40}
!23 = !{!15, !7, i64 60}
!24 = !{!15, !7, i64 100}
!25 = !{!15, !7, i64 36}
!26 = !{!15, !7, i64 68}
!27 = !{!15, !7, i64 72}
!28 = !{!15, !7, i64 64}
!29 = !{!6, !8, i64 360}
!30 = !{!6, !8, i64 368}
!31 = !{!6, !7, i64 364}
!32 = !{!6, !7, i64 16776}
!33 = !{!6, !7, i64 16772}
!34 = !{!6, !7, i64 16768}
!35 = !{!6, !7, i64 36}
!36 = !{!6, !7, i64 20}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass