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

; 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_encoder_state_FLP = type { %struct.silk_encoder_state, %struct.silk_shape_state_FLP, [720 x float], float }
%struct.silk_encoder_state = type { [2 x i32], i32, i32, %struct.silk_LP_state, %struct.silk_VAD_state, %struct.silk_nsq_state, [16 x i16], i32, i32, i8, i8, 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, ptr, ptr, ptr, [4 x i32], i32, i32, [3 x i8], i8, [3 x i32], %struct.SideInfoIndices, [320 x i8], i32, [322 x i16], i32, i32, i32, i32, i32, i32, i32, i32, i16, %struct._silk_resampler_state_struct, i32, i32, i32, i32, i32, i32, [3 x %struct.SideInfoIndices], [3 x [320 x i8]] }
%struct.silk_LP_state = type { [2 x i32], i32, i32, i32 }
%struct.silk_VAD_state = type { [2 x i32], [2 x i32], [2 x i32], [4 x i32], [4 x i32], i16, [4 x i32], [4 x i32], [4 x i32], i32 }
%struct.silk_nsq_state = type { [640 x i16], [640 x i32], [96 x i32], [24 x i32], i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.SideInfoIndices = type { [4 x i8], [4 x i8], [17 x i8], i16, i8, i8, i8, i8, i8, i8, i8 }
%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.silk_shape_state_FLP = type { i8, float, float }

; Function Attrs: nounwind uwtable
define dso_local void @silk_HP_variable_cutoff(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %8, i64 0
  %10 = getelementptr inbounds %struct.silk_encoder_state_FLP, ptr %9, i32 0, i32 0
  store ptr %10, ptr %7, align 8, !tbaa !5
  %11 = load ptr, ptr %7, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.silk_encoder_state, ptr %11, i32 0, i32 10
  %13 = load i8, ptr %12, align 1, !tbaa !9
  %14 = sext i8 %13 to i32
  %15 = icmp eq i32 %14, 2
  br i1 %15, label %16, label %166

16:                                               ; preds = %1
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.silk_encoder_state, ptr %17, i32 0, i32 19
  %19 = load i32, ptr %18, align 8, !tbaa !18
  %20 = mul nsw i32 %19, 1000
  %21 = shl i32 %20, 16
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.silk_encoder_state, ptr %22, i32 0, i32 11
  %24 = load i32, ptr %23, align 8, !tbaa !19
  %25 = sdiv i32 %21, %24
  store i32 %25, ptr %4, align 4, !tbaa !20
  %26 = load i32, ptr %4, align 4, !tbaa !20
  %27 = call i32 @silk_lin2log(i32 noundef %26)
  %28 = sub nsw i32 %27, 2048
  store i32 %28, ptr %5, align 4, !tbaa !20
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.silk_encoder_state, ptr %29, i32 0, i32 49
  %31 = getelementptr inbounds [4 x i32], ptr %30, i64 0, i64 0
  %32 = load i32, ptr %31, align 8, !tbaa !20
  store i32 %32, ptr %3, align 4, !tbaa !20
  %33 = load i32, ptr %5, align 4, !tbaa !20
  %34 = sext i32 %33 to i64
  %35 = load i32, ptr %3, align 4, !tbaa !20
  %36 = sub nsw i32 0, %35
  %37 = shl i32 %36, 2
  %38 = sext i32 %37 to i64
  %39 = load i32, ptr %3, align 4, !tbaa !20
  %40 = trunc i32 %39 to i16
  %41 = sext i16 %40 to i64
  %42 = mul nsw i64 %38, %41
  %43 = ashr i64 %42, 16
  %44 = trunc i64 %43 to i32
  %45 = sext i32 %44 to i64
  %46 = load i32, ptr %5, align 4, !tbaa !20
  %47 = call i32 @silk_lin2log(i32 noundef 3932160)
  %48 = sub nsw i32 %47, 2048
  %49 = sub nsw i32 %46, %48
  %50 = trunc i32 %49 to i16
  %51 = sext i16 %50 to i64
  %52 = mul nsw i64 %45, %51
  %53 = ashr i64 %52, 16
  %54 = add nsw i64 %34, %53
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr %5, align 4, !tbaa !20
  %56 = load i32, ptr %5, align 4, !tbaa !20
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.silk_encoder_state, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 8, !tbaa !21
  %60 = ashr i32 %59, 8
  %61 = sub nsw i32 %56, %60
  store i32 %61, ptr %6, align 4, !tbaa !20
  %62 = load i32, ptr %6, align 4, !tbaa !20
  %63 = icmp slt i32 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %16
  %65 = load i32, ptr %6, align 4, !tbaa !20
  %66 = mul nsw i32 %65, 3
  store i32 %66, ptr %6, align 4, !tbaa !20
  br label %67

67:                                               ; preds = %64, %16
  %68 = load i32, ptr %6, align 4, !tbaa !20
  %69 = icmp sgt i32 %68, 51
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  br label %79

71:                                               ; preds = %67
  %72 = load i32, ptr %6, align 4, !tbaa !20
  %73 = icmp slt i32 %72, -51
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  br label %77

75:                                               ; preds = %71
  %76 = load i32, ptr %6, align 4, !tbaa !20
  br label %77

77:                                               ; preds = %75, %74
  %78 = phi i32 [ -51, %74 ], [ %76, %75 ]
  br label %79

79:                                               ; preds = %77, %70
  %80 = phi i32 [ 51, %70 ], [ %78, %77 ]
  store i32 %80, ptr %6, align 4, !tbaa !20
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.silk_encoder_state, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !21
  %84 = sext i32 %83 to i64
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.silk_encoder_state, ptr %85, i32 0, i32 7
  %87 = load i32, ptr %86, align 4, !tbaa !22
  %88 = trunc i32 %87 to i16
  %89 = sext i16 %88 to i32
  %90 = load i32, ptr %6, align 4, !tbaa !20
  %91 = trunc i32 %90 to i16
  %92 = sext i16 %91 to i32
  %93 = mul nsw i32 %89, %92
  %94 = sext i32 %93 to i64
  %95 = mul nsw i64 %94, 6554
  %96 = ashr i64 %95, 16
  %97 = add nsw i64 %84, %96
  %98 = trunc i64 %97 to i32
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.silk_encoder_state, ptr %99, i32 0, i32 1
  store i32 %98, ptr %100, align 8, !tbaa !21
  %101 = call i32 @silk_lin2log(i32 noundef 60)
  %102 = shl i32 %101, 8
  %103 = call i32 @silk_lin2log(i32 noundef 100)
  %104 = shl i32 %103, 8
  %105 = icmp sgt i32 %102, %104
  br i1 %105, label %106, label %134

106:                                              ; preds = %79
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.silk_encoder_state, ptr %107, i32 0, i32 1
  %109 = load i32, ptr %108, align 8, !tbaa !21
  %110 = call i32 @silk_lin2log(i32 noundef 60)
  %111 = shl i32 %110, 8
  %112 = icmp sgt i32 %109, %111
  br i1 %112, label %113, label %116

113:                                              ; preds = %106
  %114 = call i32 @silk_lin2log(i32 noundef 60)
  %115 = shl i32 %114, 8
  br label %132

116:                                              ; preds = %106
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.silk_encoder_state, ptr %117, i32 0, i32 1
  %119 = load i32, ptr %118, align 8, !tbaa !21
  %120 = call i32 @silk_lin2log(i32 noundef 100)
  %121 = shl i32 %120, 8
  %122 = icmp slt i32 %119, %121
  br i1 %122, label %123, label %126

123:                                              ; preds = %116
  %124 = call i32 @silk_lin2log(i32 noundef 100)
  %125 = shl i32 %124, 8
  br label %130

126:                                              ; preds = %116
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.silk_encoder_state, ptr %127, i32 0, i32 1
  %129 = load i32, ptr %128, align 8, !tbaa !21
  br label %130

130:                                              ; preds = %126, %123
  %131 = phi i32 [ %125, %123 ], [ %129, %126 ]
  br label %132

132:                                              ; preds = %130, %113
  %133 = phi i32 [ %115, %113 ], [ %131, %130 ]
  br label %162

134:                                              ; preds = %79
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.silk_encoder_state, ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !21
  %138 = call i32 @silk_lin2log(i32 noundef 100)
  %139 = shl i32 %138, 8
  %140 = icmp sgt i32 %137, %139
  br i1 %140, label %141, label %144

141:                                              ; preds = %134
  %142 = call i32 @silk_lin2log(i32 noundef 100)
  %143 = shl i32 %142, 8
  br label %160

144:                                              ; preds = %134
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.silk_encoder_state, ptr %145, i32 0, i32 1
  %147 = load i32, ptr %146, align 8, !tbaa !21
  %148 = call i32 @silk_lin2log(i32 noundef 60)
  %149 = shl i32 %148, 8
  %150 = icmp slt i32 %147, %149
  br i1 %150, label %151, label %154

151:                                              ; preds = %144
  %152 = call i32 @silk_lin2log(i32 noundef 60)
  %153 = shl i32 %152, 8
  br label %158

154:                                              ; preds = %144
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.silk_encoder_state, ptr %155, i32 0, i32 1
  %157 = load i32, ptr %156, align 8, !tbaa !21
  br label %158

158:                                              ; preds = %154, %151
  %159 = phi i32 [ %153, %151 ], [ %157, %154 ]
  br label %160

160:                                              ; preds = %158, %141
  %161 = phi i32 [ %143, %141 ], [ %159, %158 ]
  br label %162

162:                                              ; preds = %160, %132
  %163 = phi i32 [ %133, %132 ], [ %161, %160 ]
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.silk_encoder_state, ptr %164, i32 0, i32 1
  store i32 %163, ptr %165, align 8, !tbaa !21
  br label %166

166:                                              ; preds = %162, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

declare i32 @silk_lin2log(i32 noundef) #2

; 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 = { 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, !7, i64 4541}
!10 = !{!"", !7, i64 0, !11, i64 8, !11, i64 12, !12, i64 16, !13, i64 36, !15, i64 148, !7, i64 4500, !11, i64 4532, !11, i64 4536, !7, i64 4540, !7, i64 4541, !11, i64 4544, !11, i64 4548, !11, i64 4552, !11, i64 4556, !11, i64 4560, !11, i64 4564, !11, i64 4568, !11, i64 4572, !11, i64 4576, !11, i64 4580, !11, i64 4584, !11, i64 4588, !11, i64 4592, !11, i64 4596, !11, i64 4600, !11, i64 4604, !11, i64 4608, !11, i64 4612, !11, i64 4616, !11, i64 4620, !11, i64 4624, !11, i64 4628, !11, i64 4632, !11, i64 4636, !11, i64 4640, !11, i64 4644, !11, i64 4648, !11, i64 4652, !11, i64 4656, !11, i64 4660, !11, i64 4664, !11, i64 4668, !11, i64 4672, !11, i64 4676, !11, i64 4680, !6, i64 4688, !6, i64 4696, !6, i64 4704, !7, i64 4712, !11, i64 4728, !11, i64 4732, !7, i64 4736, !7, i64 4739, !7, i64 4740, !16, i64 4752, !7, i64 4788, !11, i64 5108, !7, i64 5112, !11, i64 5756, !11, i64 5760, !11, i64 5764, !11, i64 5768, !11, i64 5772, !11, i64 5776, !11, i64 5780, !11, i64 5784, !14, i64 5788, !17, i64 5792, !11, i64 6096, !11, i64 6100, !11, i64 6104, !11, i64 6108, !11, i64 6112, !11, i64 6116, !7, i64 6120, !7, i64 6228}
!11 = !{!"int", !7, i64 0}
!12 = !{!"", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!13 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 40, !14, i64 56, !7, i64 60, !7, i64 76, !7, i64 92, !11, i64 108}
!14 = !{!"short", !7, i64 0}
!15 = !{!"", !7, i64 0, !7, i64 1280, !7, i64 3840, !7, i64 4224, !11, i64 4320, !11, i64 4324, !11, i64 4328, !11, i64 4332, !11, i64 4336, !11, i64 4340, !11, i64 4344, !11, i64 4348}
!16 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !14, i64 26, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !7, i64 33, !7, i64 34}
!17 = !{!"_silk_resampler_state_struct", !7, i64 0, !7, i64 24, !7, i64 168, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !6, i64 296}
!18 = !{!10, !11, i64 4576}
!19 = !{!10, !11, i64 4544}
!20 = !{!11, !11, i64 0}
!21 = !{!10, !11, i64 8}
!22 = !{!10, !11, i64 4532}


; 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: nounwind uwtable
define dso_local void @silk_HP_variable_cutoff(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 4541
  %3 = load i8, ptr %2, align 1, !tbaa !5
  %4 = icmp eq i8 %3, 2
  br i1 %4, label %5, label %88

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 4576
  %7 = load i32, ptr %6, align 8, !tbaa !17
  %8 = mul i32 %7, 65536000
  %9 = getelementptr inbounds i8, ptr %0, i64 4544
  %10 = load i32, ptr %9, align 8, !tbaa !18
  %11 = sdiv i32 %8, %10
  %12 = tail call i32 @silk_lin2log(i32 noundef %11) #3
  %13 = add nsw i32 %12, -2048
  %14 = getelementptr inbounds i8, ptr %0, i64 4712
  %15 = load i32, ptr %14, align 8, !tbaa !19
  %.neg = mul i32 %15, -4
  %16 = sext i32 %.neg to i64
  %17 = zext i32 %15 to i64
  %sext = shl i64 %17, 48
  %18 = ashr exact i64 %sext, 48
  %19 = mul nsw i64 %18, %16
  %20 = lshr i64 %19, 16
  %21 = tail call i32 @silk_lin2log(i32 noundef 3932160) #3
  %22 = sub i32 %12, %21
  %23 = zext i32 %22 to i64
  %sext29 = shl i64 %23, 48
  %24 = ashr exact i64 %sext29, 48
  %25 = mul nsw i64 %20, %24
  %26 = lshr i64 %25, 16
  %27 = trunc i64 %26 to i32
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !20
  %30 = ashr i32 %29, 8
  %31 = sub i32 %13, %30
  %32 = add i32 %31, %27
  %33 = icmp slt i32 %32, 0
  %34 = mul nsw i32 %32, 3
  %spec.select = select i1 %33, i32 %34, i32 %32
  %35 = tail call i32 @llvm.smax.i32(i32 %spec.select, i32 -51)
  %36 = tail call i32 @llvm.smin.i32(i32 %35, i32 51)
  %37 = getelementptr inbounds i8, ptr %0, i64 4532
  %38 = load i32, ptr %37, align 4, !tbaa !21
  %sext30 = shl i32 %38, 16
  %39 = ashr exact i32 %sext30, 16
  %40 = mul nsw i32 %36, %39
  %41 = sext i32 %40 to i64
  %42 = mul nsw i64 %41, 6554
  %43 = lshr i64 %42, 16
  %44 = trunc i64 %43 to i32
  %45 = add i32 %29, %44
  store i32 %45, ptr %28, align 8, !tbaa !20
  %46 = tail call i32 @silk_lin2log(i32 noundef 60) #3
  %47 = shl i32 %46, 8
  %48 = tail call i32 @silk_lin2log(i32 noundef 100) #3
  %49 = shl i32 %48, 8
  %50 = icmp sgt i32 %47, %49
  %51 = load i32, ptr %28, align 8, !tbaa !20
  br i1 %50, label %52, label %69

52:                                               ; preds = %5
  %53 = tail call i32 @silk_lin2log(i32 noundef 60) #3
  %54 = shl i32 %53, 8
  %55 = icmp sgt i32 %51, %54
  br i1 %55, label %56, label %59

56:                                               ; preds = %52
  %57 = tail call i32 @silk_lin2log(i32 noundef 60) #3
  %58 = shl i32 %57, 8
  br label %86

59:                                               ; preds = %52
  %60 = load i32, ptr %28, align 8, !tbaa !20
  %61 = tail call i32 @silk_lin2log(i32 noundef 100) #3
  %62 = shl i32 %61, 8
  %63 = icmp slt i32 %60, %62
  br i1 %63, label %64, label %67

64:                                               ; preds = %59
  %65 = tail call i32 @silk_lin2log(i32 noundef 100) #3
  %66 = shl i32 %65, 8
  br label %86

67:                                               ; preds = %59
  %68 = load i32, ptr %28, align 8, !tbaa !20
  br label %86

69:                                               ; preds = %5
  %70 = tail call i32 @silk_lin2log(i32 noundef 100) #3
  %71 = shl i32 %70, 8
  %72 = icmp sgt i32 %51, %71
  br i1 %72, label %73, label %76

73:                                               ; preds = %69
  %74 = tail call i32 @silk_lin2log(i32 noundef 100) #3
  %75 = shl i32 %74, 8
  br label %86

76:                                               ; preds = %69
  %77 = load i32, ptr %28, align 8, !tbaa !20
  %78 = tail call i32 @silk_lin2log(i32 noundef 60) #3
  %79 = shl i32 %78, 8
  %80 = icmp slt i32 %77, %79
  br i1 %80, label %81, label %84

81:                                               ; preds = %76
  %82 = tail call i32 @silk_lin2log(i32 noundef 60) #3
  %83 = shl i32 %82, 8
  br label %86

84:                                               ; preds = %76
  %85 = load i32, ptr %28, align 8, !tbaa !20
  br label %86

86:                                               ; preds = %73, %84, %81, %56, %67, %64
  %87 = phi i32 [ %58, %56 ], [ %66, %64 ], [ %68, %67 ], [ %75, %73 ], [ %83, %81 ], [ %85, %84 ]
  store i32 %87, ptr %28, align 8, !tbaa !20
  br label %88

88:                                               ; preds = %86, %1
  ret void
}

declare i32 @silk_lin2log(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 4541}
!6 = !{!"", !7, i64 0, !9, i64 8, !9, i64 12, !10, i64 16, !11, i64 36, !13, i64 148, !7, i64 4500, !9, i64 4532, !9, i64 4536, !7, i64 4540, !7, i64 4541, !9, i64 4544, !9, i64 4548, !9, i64 4552, !9, i64 4556, !9, i64 4560, !9, i64 4564, !9, i64 4568, !9, i64 4572, !9, i64 4576, !9, i64 4580, !9, i64 4584, !9, i64 4588, !9, i64 4592, !9, i64 4596, !9, i64 4600, !9, i64 4604, !9, i64 4608, !9, i64 4612, !9, i64 4616, !9, i64 4620, !9, i64 4624, !9, i64 4628, !9, i64 4632, !9, i64 4636, !9, i64 4640, !9, i64 4644, !9, i64 4648, !9, i64 4652, !9, i64 4656, !9, i64 4660, !9, i64 4664, !9, i64 4668, !9, i64 4672, !9, i64 4676, !9, i64 4680, !14, i64 4688, !14, i64 4696, !14, i64 4704, !7, i64 4712, !9, i64 4728, !9, i64 4732, !7, i64 4736, !7, i64 4739, !7, i64 4740, !15, i64 4752, !7, i64 4788, !9, i64 5108, !7, i64 5112, !9, i64 5756, !9, i64 5760, !9, i64 5764, !9, i64 5768, !9, i64 5772, !9, i64 5776, !9, i64 5780, !9, i64 5784, !12, i64 5788, !16, i64 5792, !9, i64 6096, !9, i64 6100, !9, i64 6104, !9, i64 6108, !9, i64 6112, !9, i64 6116, !7, i64 6120, !7, i64 6228}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"", !7, i64 0, !9, i64 8, !9, i64 12, !9, i64 16}
!11 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 40, !12, i64 56, !7, i64 60, !7, i64 76, !7, i64 92, !9, i64 108}
!12 = !{!"short", !7, i64 0}
!13 = !{!"", !7, i64 0, !7, i64 1280, !7, i64 3840, !7, i64 4224, !9, i64 4320, !9, i64 4324, !9, i64 4328, !9, i64 4332, !9, i64 4336, !9, i64 4340, !9, i64 4344, !9, i64 4348}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !12, i64 26, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !7, i64 33, !7, i64 34}
!16 = !{!"_silk_resampler_state_struct", !7, i64 0, !7, i64 24, !7, i64 168, !9, i64 264, !9, i64 268, !9, i64 272, !9, i64 276, !9, i64 280, !9, i64 284, !9, i64 288, !9, i64 292, !14, i64 296}
!17 = !{!6, !9, i64 4576}
!18 = !{!6, !9, i64 4544}
!19 = !{!9, !9, i64 0}
!20 = !{!6, !9, i64 8}
!21 = !{!6, !9, i64 4532}


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