; LLVM IR from glaretechnologies/substrata :: opus/opus-1.3.1/silk (decoder_set_fs)

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

%struct.silk_NLSF_CB_struct = type { i16, i16, i16, i16, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.silk_decoder_state = type { i32, [320 x i32], [16 x i32], [480 x i16], i32, i8, i32, i32, i32, i32, i32, i32, i32, [16 x i16], i32, ptr, ptr, i32, i32, i32, i16, [3 x i32], i32, [3 x i32], %struct._silk_resampler_state_struct, ptr, %struct.SideInfoIndices, %struct.silk_CNG_struct, i32, i32, i32, %struct.silk_PLC_struct }
%struct._silk_resampler_state_struct = type { [6 x i32], %union.anon, [48 x i16], i32, i32, i32, i32, i32, i32, i32, i32, ptr }
%union.anon = type { [36 x i32] }
%struct.SideInfoIndices = type { [4 x i8], [4 x i8], [17 x i8], i16, i8, i8, i8, i8, i8, i8, i8 }
%struct.silk_CNG_struct = type { [320 x i32], [16 x i16], [16 x i32], i32, i32, i32 }
%struct.silk_PLC_struct = type { i32, [5 x i16], [16 x i16], i32, i32, i16, i32, i32, i16, [2 x i32], i32, i32, i32 }

@silk_pitch_contour_NB_iCDF = external constant [11 x i8], align 1
@silk_pitch_contour_10_ms_NB_iCDF = external constant [3 x i8], align 1
@silk_pitch_contour_iCDF = external constant [34 x i8], align 16
@silk_pitch_contour_10_ms_iCDF = external constant [12 x i8], align 1
@silk_NLSF_CB_NB_MB = external constant %struct.silk_NLSF_CB_struct, align 8
@silk_NLSF_CB_WB = external constant %struct.silk_NLSF_CB_struct, align 8
@silk_uniform8_iCDF = external constant [8 x i8], align 1
@silk_uniform6_iCDF = external constant [6 x i8], align 1
@silk_uniform4_iCDF = external constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @silk_decoder_set_fs(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  %9 = load i32, ptr %5, align 4, !tbaa !9
  %10 = trunc i32 %9 to i16
  %11 = sext i16 %10 to i32
  %12 = mul nsw i32 5, %11
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.silk_decoder_state, ptr %13, i32 0, i32 10
  store i32 %12, ptr %14, align 4, !tbaa !11
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.silk_decoder_state, ptr %15, i32 0, i32 8
  %17 = load i32, ptr %16, align 4, !tbaa !18
  %18 = trunc i32 %17 to i16
  %19 = sext i16 %18 to i32
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.silk_decoder_state, ptr %20, i32 0, i32 10
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = trunc i32 %22 to i16
  %24 = sext i16 %23 to i32
  %25 = mul nsw i32 %19, %24
  store i32 %25, ptr %7, align 4, !tbaa !9
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.silk_decoder_state, ptr %26, i32 0, i32 6
  %28 = load i32, ptr %27, align 4, !tbaa !19
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = icmp ne i32 %28, %29
  br i1 %30, label %37, label %31

31:                                               ; preds = %3
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.silk_decoder_state, ptr %32, i32 0, i32 7
  %34 = load i32, ptr %33, align 8, !tbaa !20
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = icmp ne i32 %34, %35
  br i1 %36, label %37, label %51

37:                                               ; preds = %31, %3
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.silk_decoder_state, ptr %38, i32 0, i32 24
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = trunc i32 %40 to i16
  %42 = sext i16 %41 to i32
  %43 = mul nsw i32 %42, 1000
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = call i32 @silk_resampler_init(ptr noundef %39, i32 noundef %43, i32 noundef %44, i32 noundef 0)
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = add nsw i32 %46, %45
  store i32 %47, ptr %8, align 4, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.silk_decoder_state, ptr %49, i32 0, i32 7
  store i32 %48, ptr %50, align 8, !tbaa !20
  br label %51

51:                                               ; preds = %37, %31
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.silk_decoder_state, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %53, align 4, !tbaa !19
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = icmp ne i32 %54, %55
  br i1 %56, label %63, label %57

57:                                               ; preds = %51
  %58 = load i32, ptr %7, align 4, !tbaa !9
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.silk_decoder_state, ptr %59, i32 0, i32 9
  %61 = load i32, ptr %60, align 8, !tbaa !21
  %62 = icmp ne i32 %58, %61
  br i1 %62, label %63, label %161

63:                                               ; preds = %57, %51
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 8
  br i1 %65, label %66, label %78

66:                                               ; preds = %63
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.silk_decoder_state, ptr %67, i32 0, i32 8
  %69 = load i32, ptr %68, align 4, !tbaa !18
  %70 = icmp eq i32 %69, 4
  br i1 %70, label %71, label %74

71:                                               ; preds = %66
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.silk_decoder_state, ptr %72, i32 0, i32 16
  store ptr @silk_pitch_contour_NB_iCDF, ptr %73, align 8, !tbaa !22
  br label %77

74:                                               ; preds = %66
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.silk_decoder_state, ptr %75, i32 0, i32 16
  store ptr @silk_pitch_contour_10_ms_NB_iCDF, ptr %76, align 8, !tbaa !22
  br label %77

77:                                               ; preds = %74, %71
  br label %90

78:                                               ; preds = %63
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.silk_decoder_state, ptr %79, i32 0, i32 8
  %81 = load i32, ptr %80, align 4, !tbaa !18
  %82 = icmp eq i32 %81, 4
  br i1 %82, label %83, label %86

83:                                               ; preds = %78
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.silk_decoder_state, ptr %84, i32 0, i32 16
  store ptr @silk_pitch_contour_iCDF, ptr %85, align 8, !tbaa !22
  br label %89

86:                                               ; preds = %78
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.silk_decoder_state, ptr %87, i32 0, i32 16
  store ptr @silk_pitch_contour_10_ms_iCDF, ptr %88, align 8, !tbaa !22
  br label %89

89:                                               ; preds = %86, %83
  br label %90

90:                                               ; preds = %89, %77
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.silk_decoder_state, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %92, align 4, !tbaa !19
  %94 = load i32, ptr %5, align 4, !tbaa !9
  %95 = icmp ne i32 %93, %94
  br i1 %95, label %96, label %154

96:                                               ; preds = %90
  %97 = load i32, ptr %5, align 4, !tbaa !9
  %98 = trunc i32 %97 to i16
  %99 = sext i16 %98 to i32
  %100 = mul nsw i32 20, %99
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.silk_decoder_state, ptr %101, i32 0, i32 11
  store i32 %100, ptr %102, align 8, !tbaa !23
  %103 = load i32, ptr %5, align 4, !tbaa !9
  %104 = icmp eq i32 %103, 8
  br i1 %104, label %108, label %105

105:                                              ; preds = %96
  %106 = load i32, ptr %5, align 4, !tbaa !9
  %107 = icmp eq i32 %106, 12
  br i1 %107, label %108, label %113

108:                                              ; preds = %105, %96
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.silk_decoder_state, ptr %109, i32 0, i32 12
  store i32 10, ptr %110, align 4, !tbaa !24
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.silk_decoder_state, ptr %111, i32 0, i32 25
  store ptr @silk_NLSF_CB_NB_MB, ptr %112, align 8, !tbaa !25
  br label %118

113:                                              ; preds = %105
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.silk_decoder_state, ptr %114, i32 0, i32 12
  store i32 16, ptr %115, align 4, !tbaa !24
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.silk_decoder_state, ptr %116, i32 0, i32 25
  store ptr @silk_NLSF_CB_WB, ptr %117, align 8, !tbaa !25
  br label %118

118:                                              ; preds = %113, %108
  %119 = load i32, ptr %5, align 4, !tbaa !9
  %120 = icmp eq i32 %119, 16
  br i1 %120, label %121, label %124

121:                                              ; preds = %118
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.silk_decoder_state, ptr %122, i32 0, i32 15
  store ptr @silk_uniform8_iCDF, ptr %123, align 8, !tbaa !26
  br label %139

124:                                              ; preds = %118
  %125 = load i32, ptr %5, align 4, !tbaa !9
  %126 = icmp eq i32 %125, 12
  br i1 %126, label %127, label %130

127:                                              ; preds = %124
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.silk_decoder_state, ptr %128, i32 0, i32 15
  store ptr @silk_uniform6_iCDF, ptr %129, align 8, !tbaa !26
  br label %138

130:                                              ; preds = %124
  %131 = load i32, ptr %5, align 4, !tbaa !9
  %132 = icmp eq i32 %131, 8
  br i1 %132, label %133, label %136

133:                                              ; preds = %130
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.silk_decoder_state, ptr %134, i32 0, i32 15
  store ptr @silk_uniform4_iCDF, ptr %135, align 8, !tbaa !26
  br label %137

136:                                              ; preds = %130
  br label %137

137:                                              ; preds = %136, %133
  br label %138

138:                                              ; preds = %137, %127
  br label %139

139:                                              ; preds = %138, %121
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.silk_decoder_state, ptr %140, i32 0, i32 14
  store i32 1, ptr %141, align 8, !tbaa !27
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.silk_decoder_state, ptr %142, i32 0, i32 4
  store i32 100, ptr %143, align 4, !tbaa !28
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.silk_decoder_state, ptr %144, i32 0, i32 5
  store i8 10, ptr %145, align 8, !tbaa !29
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.silk_decoder_state, ptr %146, i32 0, i32 29
  store i32 0, ptr %147, align 4, !tbaa !30
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.silk_decoder_state, ptr %148, i32 0, i32 3
  %150 = getelementptr inbounds [480 x i16], ptr %149, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %150, i8 0, i64 960, i1 false)
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.silk_decoder_state, ptr %151, i32 0, i32 2
  %153 = getelementptr inbounds [16 x i32], ptr %152, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %153, i8 0, i64 64, i1 false)
  br label %154

154:                                              ; preds = %139, %90
  %155 = load i32, ptr %5, align 4, !tbaa !9
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.silk_decoder_state, ptr %156, i32 0, i32 6
  store i32 %155, ptr %157, align 4, !tbaa !19
  %158 = load i32, ptr %7, align 4, !tbaa !9
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.silk_decoder_state, ptr %159, i32 0, i32 9
  store i32 %158, ptr %160, align 8, !tbaa !21
  br label %161

161:                                              ; preds = %154, %57
  %162 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %162
}

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

declare i32 @silk_resampler_init(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn memory(argmem: write) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 2332}
!12 = !{!"", !10, i64 0, !7, i64 4, !7, i64 1284, !7, i64 1348, !10, i64 2308, !7, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !10, i64 2336, !10, i64 2340, !7, i64 2344, !10, i64 2376, !6, i64 2384, !6, i64 2392, !10, i64 2400, !10, i64 2404, !10, i64 2408, !13, i64 2412, !7, i64 2416, !10, i64 2428, !7, i64 2432, !14, i64 2448, !6, i64 2752, !15, i64 2760, !16, i64 2796, !10, i64 4184, !10, i64 4188, !10, i64 4192, !17, i64 4196}
!13 = !{!"short", !7, i64 0}
!14 = !{!"_silk_resampler_state_struct", !7, i64 0, !7, i64 24, !7, i64 168, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !6, i64 296}
!15 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !13, i64 26, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !7, i64 33, !7, i64 34}
!16 = !{!"", !7, i64 0, !7, i64 1280, !7, i64 1312, !10, i64 1376, !10, i64 1380, !10, i64 1384}
!17 = !{!"", !10, i64 0, !7, i64 4, !7, i64 14, !10, i64 48, !10, i64 52, !13, i64 56, !10, i64 60, !10, i64 64, !13, i64 68, !7, i64 72, !10, i64 80, !10, i64 84, !10, i64 88}
!18 = !{!12, !10, i64 2324}
!19 = !{!12, !10, i64 2316}
!20 = !{!12, !10, i64 2320}
!21 = !{!12, !10, i64 2328}
!22 = !{!12, !6, i64 2392}
!23 = !{!12, !10, i64 2336}
!24 = !{!12, !10, i64 2340}
!25 = !{!12, !6, i64 2752}
!26 = !{!12, !6, i64 2384}
!27 = !{!12, !10, i64 2376}
!28 = !{!12, !10, i64 2308}
!29 = !{!12, !7, i64 2312}
!30 = !{!12, !10, i64 4188}


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

%struct.silk_NLSF_CB_struct = type { i16, i16, i16, i16, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@silk_pitch_contour_NB_iCDF = external constant [11 x i8], align 1
@silk_pitch_contour_10_ms_NB_iCDF = external constant [3 x i8], align 1
@silk_pitch_contour_iCDF = external constant [34 x i8], align 16
@silk_pitch_contour_10_ms_iCDF = external constant [12 x i8], align 1
@silk_NLSF_CB_NB_MB = external constant %struct.silk_NLSF_CB_struct, align 8
@silk_NLSF_CB_WB = external constant %struct.silk_NLSF_CB_struct, align 8
@silk_uniform8_iCDF = external constant [8 x i8], align 1
@silk_uniform6_iCDF = external constant [6 x i8], align 1
@silk_uniform4_iCDF = external constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @silk_decoder_set_fs(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %sext = shl i32 %1, 16
  %4 = ashr exact i32 %sext, 16
  %5 = mul nsw i32 %4, 5
  %6 = getelementptr inbounds i8, ptr %0, i64 2332
  store i32 %5, ptr %6, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 2324
  %8 = load i32, ptr %7, align 4, !tbaa !16
  %sext53 = shl i32 %8, 16
  %9 = ashr exact i32 %sext53, 16
  %sext54 = mul i32 %4, 327680
  %10 = ashr exact i32 %sext54, 16
  %11 = mul nsw i32 %9, %10
  %12 = getelementptr inbounds i8, ptr %0, i64 2316
  %13 = load i32, ptr %12, align 4, !tbaa !17
  %.not = icmp eq i32 %13, %1
  br i1 %.not, label %14, label %17

14:                                               ; preds = %3
  %15 = getelementptr inbounds i8, ptr %0, i64 2320
  %16 = load i32, ptr %15, align 8, !tbaa !18
  %.not55 = icmp eq i32 %16, %2
  br i1 %.not55, label %.thread, label %17

17:                                               ; preds = %3, %14
  %18 = getelementptr inbounds i8, ptr %0, i64 2448
  %19 = mul nsw i32 %4, 1000
  %20 = tail call i32 @silk_resampler_init(ptr noundef nonnull %18, i32 noundef %19, i32 noundef %2, i32 noundef 0) #3
  %21 = getelementptr inbounds i8, ptr %0, i64 2320
  store i32 %2, ptr %21, align 8, !tbaa !18
  %.pre = load i32, ptr %12, align 4, !tbaa !17
  %.not56 = icmp eq i32 %.pre, %1
  br i1 %.not56, label %.thread, label %24

.thread:                                          ; preds = %14, %17
  %.063 = phi i32 [ %20, %17 ], [ 0, %14 ]
  %22 = getelementptr inbounds i8, ptr %0, i64 2328
  %23 = load i32, ptr %22, align 8, !tbaa !19
  %.not57 = icmp eq i32 %11, %23
  br i1 %.not57, label %47, label %24

24:                                               ; preds = %.thread, %17
  %.not5664 = phi i1 [ true, %.thread ], [ false, %17 ]
  %.061 = phi i32 [ %.063, %.thread ], [ %20, %17 ]
  %25 = icmp eq i32 %1, 8
  %26 = load i32, ptr %7, align 4, !tbaa !16
  %27 = icmp eq i32 %26, 4
  %28 = getelementptr inbounds i8, ptr %0, i64 2392
  %silk_pitch_contour_NB_iCDF.silk_pitch_contour_10_ms_NB_iCDF = select i1 %27, ptr @silk_pitch_contour_NB_iCDF, ptr @silk_pitch_contour_10_ms_NB_iCDF
  %silk_pitch_contour_iCDF.silk_pitch_contour_10_ms_iCDF = select i1 %27, ptr @silk_pitch_contour_iCDF, ptr @silk_pitch_contour_10_ms_iCDF
  %silk_pitch_contour_iCDF.sink = select i1 %25, ptr %silk_pitch_contour_NB_iCDF.silk_pitch_contour_10_ms_NB_iCDF, ptr %silk_pitch_contour_iCDF.silk_pitch_contour_10_ms_iCDF
  store ptr %silk_pitch_contour_iCDF.sink, ptr %28, align 8, !tbaa !20
  br i1 %.not5664, label %45, label %29

29:                                               ; preds = %24
  %30 = mul nsw i32 %4, 20
  %31 = getelementptr inbounds i8, ptr %0, i64 2336
  store i32 %30, ptr %31, align 8, !tbaa !21
  switch i32 %1, label %32 [
    i32 12, label %33
    i32 8, label %33
  ]

32:                                               ; preds = %29
  br label %33

33:                                               ; preds = %29, %29, %32
  %.sink = phi i32 [ 16, %32 ], [ 10, %29 ], [ 10, %29 ]
  %silk_NLSF_CB_WB.sink = phi ptr [ @silk_NLSF_CB_WB, %32 ], [ @silk_NLSF_CB_NB_MB, %29 ], [ @silk_NLSF_CB_NB_MB, %29 ]
  %34 = getelementptr inbounds i8, ptr %0, i64 2340
  store i32 %.sink, ptr %34, align 4, !tbaa !22
  %35 = getelementptr inbounds i8, ptr %0, i64 2752
  store ptr %silk_NLSF_CB_WB.sink, ptr %35, align 8, !tbaa !23
  switch i32 %1, label %37 [
    i32 16, label %.sink.split
    i32 12, label %36
  ]

36:                                               ; preds = %33
  br label %.sink.split

37:                                               ; preds = %33
  br i1 %25, label %.sink.split, label %39

.sink.split:                                      ; preds = %37, %33, %36
  %silk_uniform6_iCDF.sink = phi ptr [ @silk_uniform6_iCDF, %36 ], [ @silk_uniform8_iCDF, %33 ], [ @silk_uniform4_iCDF, %37 ]
  %38 = getelementptr inbounds i8, ptr %0, i64 2384
  store ptr %silk_uniform6_iCDF.sink, ptr %38, align 8, !tbaa !24
  br label %39

39:                                               ; preds = %.sink.split, %37
  %40 = getelementptr inbounds i8, ptr %0, i64 2376
  store i32 1, ptr %40, align 8, !tbaa !25
  %41 = getelementptr inbounds i8, ptr %0, i64 2308
  store i32 100, ptr %41, align 4, !tbaa !26
  %42 = getelementptr inbounds i8, ptr %0, i64 2312
  store i8 10, ptr %42, align 8, !tbaa !27
  %43 = getelementptr inbounds i8, ptr %0, i64 4188
  store i32 0, ptr %43, align 4, !tbaa !28
  %44 = getelementptr inbounds i8, ptr %0, i64 1284
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1024) %44, i8 0, i64 1024, i1 false)
  br label %45

45:                                               ; preds = %39, %24
  store i32 %1, ptr %12, align 4, !tbaa !17
  %46 = getelementptr inbounds i8, ptr %0, i64 2328
  store i32 %11, ptr %46, align 8, !tbaa !19
  br label %47

47:                                               ; preds = %45, %.thread
  %.062 = phi i32 [ %.061, %45 ], [ %.063, %.thread ]
  ret i32 %.062
}

declare i32 @silk_resampler_init(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

attributes #0 = { 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 = { "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 nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 2332}
!6 = !{!"", !7, i64 0, !8, i64 4, !8, i64 1284, !8, i64 1348, !7, i64 2308, !8, i64 2312, !7, i64 2316, !7, i64 2320, !7, i64 2324, !7, i64 2328, !7, i64 2332, !7, i64 2336, !7, i64 2340, !8, i64 2344, !7, i64 2376, !10, i64 2384, !10, i64 2392, !7, i64 2400, !7, i64 2404, !7, i64 2408, !11, i64 2412, !8, i64 2416, !7, i64 2428, !8, i64 2432, !12, i64 2448, !10, i64 2752, !13, i64 2760, !14, i64 2796, !7, i64 4184, !7, i64 4188, !7, i64 4192, !15, i64 4196}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"_silk_resampler_state_struct", !8, i64 0, !8, i64 24, !8, i64 168, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !10, i64 296}
!13 = !{!"", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 26, !8, i64 28, !8, i64 29, !8, i64 30, !8, i64 31, !8, i64 32, !8, i64 33, !8, i64 34}
!14 = !{!"", !8, i64 0, !8, i64 1280, !8, i64 1312, !7, i64 1376, !7, i64 1380, !7, i64 1384}
!15 = !{!"", !7, i64 0, !8, i64 4, !8, i64 14, !7, i64 48, !7, i64 52, !11, i64 56, !7, i64 60, !7, i64 64, !11, i64 68, !8, i64 72, !7, i64 80, !7, i64 84, !7, i64 88}
!16 = !{!6, !7, i64 2324}
!17 = !{!6, !7, i64 2316}
!18 = !{!6, !7, i64 2320}
!19 = !{!6, !7, i64 2328}
!20 = !{!6, !10, i64 2392}
!21 = !{!6, !7, i64 2336}
!22 = !{!6, !7, i64 2340}
!23 = !{!6, !10, i64 2752}
!24 = !{!6, !10, i64 2384}
!25 = !{!6, !7, i64 2376}
!26 = !{!6, !7, i64 2308}
!27 = !{!6, !8, i64 2312}
!28 = !{!6, !7, i64 4188}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass