; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/modules/juce_audio_formats/codecs/oggvorbis (init)

; 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.vorbis_info = type { i32, i32, i64, i64, i64, i64, i64, ptr }
%struct.codec_setup_info = type { [2 x i64], i32, i32, i32, i32, i32, i32, [64 x ptr], [64 x i32], [64 x ptr], [64 x i32], [64 x ptr], [64 x i32], [64 x ptr], [256 x ptr], ptr, [4 x ptr], %struct.vorbis_info_psy_global, %struct.bitrate_manager_info, %struct.highlevel_encode_setup, i32 }
%struct.vorbis_info_psy_global = type { i32, [7 x float], [7 x float], float, float, float, [15 x i32], [2 x [15 x i32]], [15 x i32], [15 x i32], [2 x [15 x i32]] }
%struct.bitrate_manager_info = type { i64, i64, i64, i64, double, double }
%struct.highlevel_encode_setup = type { i32, ptr, double, double, float, i32, i64, i64, double, i64, i64, double, i32, i32, i32, double, double, i32, double, double, double, double, [4 x %struct.highlevel_byblocktype] }
%struct.highlevel_byblocktype = type { double, double, double, double }
%struct.ve_setup_data_template = type { i32, ptr, ptr, i32, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [2 x ptr], [2 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @vorbis_encode_setup_init(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.vorbis_info, ptr %11, i32 0, i32 7
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  store ptr %13, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.codec_setup_info, ptr %14, i32 0, i32 19
  store ptr %15, ptr %9, align 8, !tbaa !5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %1
  store i32 -131, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %538

19:                                               ; preds = %1
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %20, i32 0, i32 12
  %22 = load i32, ptr %21, align 8, !tbaa !14
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %25, label %24

24:                                               ; preds = %19
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %24, %19
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %26, i32 0, i32 18
  %28 = load double, ptr %27, align 8, !tbaa !18
  %29 = fcmp ogt double %28, -8.000000e+01
  br i1 %29, label %30, label %33

30:                                               ; preds = %25
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %31, i32 0, i32 18
  store double -8.000000e+01, ptr %32, align 8, !tbaa !18
  br label %33

33:                                               ; preds = %30, %25
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %34, i32 0, i32 18
  %36 = load double, ptr %35, align 8, !tbaa !18
  %37 = fcmp olt double %36, -2.000000e+02
  br i1 %37, label %38, label %41

38:                                               ; preds = %33
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %39, i32 0, i32 18
  store double -2.000000e+02, ptr %40, align 8, !tbaa !18
  br label %41

41:                                               ; preds = %38, %33
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %42, i32 0, i32 20
  %44 = load double, ptr %43, align 8, !tbaa !19
  %45 = fcmp ogt double %44, 0.000000e+00
  br i1 %45, label %46, label %49

46:                                               ; preds = %41
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %47, i32 0, i32 20
  store double 0.000000e+00, ptr %48, align 8, !tbaa !19
  br label %49

49:                                               ; preds = %46, %41
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %50, i32 0, i32 20
  %52 = load double, ptr %51, align 8, !tbaa !19
  %53 = fcmp olt double %52, -9.999900e+04
  br i1 %53, label %54, label %57

54:                                               ; preds = %49
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %55, i32 0, i32 20
  store double -9.999900e+04, ptr %56, align 8, !tbaa !19
  br label %57

57:                                               ; preds = %54, %49
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  store ptr %60, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %64

63:                                               ; preds = %57
  store i32 -131, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %538

64:                                               ; preds = %57
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %65, i32 0, i32 0
  store i32 1, ptr %66, align 8, !tbaa !21
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %68, i32 0, i32 2
  %70 = load double, ptr %69, align 8, !tbaa !22
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ve_setup_data_template, ptr %71, i32 0, i32 6
  %73 = load ptr, ptr %72, align 8, !tbaa !23
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ve_setup_data_template, ptr %74, i32 0, i32 7
  %76 = load ptr, ptr %75, align 8, !tbaa !25
  call void @vorbis_encode_blocksize_setup(ptr noundef %67, double noundef %70, ptr noundef %73, ptr noundef %76)
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.codec_setup_info, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds [2 x i64], ptr %78, i64 0, i64 0
  %80 = load i64, ptr %79, align 8, !tbaa !26
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.codec_setup_info, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds [2 x i64], ptr %82, i64 0, i64 1
  %84 = load i64, ptr %83, align 8, !tbaa !26
  %85 = icmp eq i64 %80, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %64
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %86, %64
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %113, %87
  %89 = load i32, ptr %4, align 4, !tbaa !9
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ve_setup_data_template, ptr %90, i32 0, i32 34
  %92 = load i32, ptr %91, align 8, !tbaa !27
  %93 = icmp slt i32 %89, %92
  br i1 %93, label %94, label %116

94:                                               ; preds = %88
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %96, i32 0, i32 2
  %98 = load double, ptr %97, align 8, !tbaa !22
  %99 = fptosi double %98 to i32
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ve_setup_data_template, ptr %100, i32 0, i32 32
  %102 = load ptr, ptr %101, align 8, !tbaa !28
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ve_setup_data_template, ptr %103, i32 0, i32 33
  %105 = load ptr, ptr %104, align 8, !tbaa !29
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ve_setup_data_template, ptr %106, i32 0, i32 35
  %108 = load ptr, ptr %107, align 8, !tbaa !30
  %109 = load i32, ptr %4, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds ptr, ptr %108, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  call void @vorbis_encode_floor_setup(ptr noundef %95, i32 noundef %99, ptr noundef %102, ptr noundef %105, ptr noundef %112)
  br label %113

113:                                              ; preds = %94
  %114 = load i32, ptr %4, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %4, align 4, !tbaa !9
  br label %88, !llvm.loop !31

116:                                              ; preds = %88
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %118, i32 0, i32 21
  %120 = load double, ptr %119, align 8, !tbaa !33
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ve_setup_data_template, ptr %121, i32 0, i32 29
  %123 = load ptr, ptr %122, align 8, !tbaa !34
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ve_setup_data_template, ptr %124, i32 0, i32 30
  %126 = load ptr, ptr %125, align 8, !tbaa !35
  call void @vorbis_encode_global_psych_setup(ptr noundef %117, double noundef %120, ptr noundef %123, ptr noundef %126)
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.ve_setup_data_template, ptr %129, i32 0, i32 31
  %131 = load ptr, ptr %130, align 8, !tbaa !36
  call void @vorbis_encode_global_stereo(ptr noundef %127, ptr noundef %128, ptr noundef %131)
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %133, i32 0, i32 2
  %135 = load double, ptr %134, align 8, !tbaa !22
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ve_setup_data_template, ptr %136, i32 0, i32 23
  %138 = getelementptr inbounds [2 x ptr], ptr %137, i64 0, i64 0
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ve_setup_data_template, ptr %140, i32 0, i32 24
  %142 = getelementptr inbounds [2 x ptr], ptr %141, i64 0, i64 0
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ve_setup_data_template, ptr %144, i32 0, i32 25
  %146 = load ptr, ptr %145, align 8, !tbaa !37
  call void @vorbis_encode_psyset_setup(ptr noundef %132, double noundef %135, ptr noundef %139, ptr noundef %143, ptr noundef %146, i32 noundef 0)
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %148, i32 0, i32 2
  %150 = load double, ptr %149, align 8, !tbaa !22
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ve_setup_data_template, ptr %151, i32 0, i32 23
  %153 = getelementptr inbounds [2 x ptr], ptr %152, i64 0, i64 0
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ve_setup_data_template, ptr %155, i32 0, i32 24
  %157 = getelementptr inbounds [2 x ptr], ptr %156, i64 0, i64 0
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ve_setup_data_template, ptr %159, i32 0, i32 25
  %161 = load ptr, ptr %160, align 8, !tbaa !37
  call void @vorbis_encode_psyset_setup(ptr noundef %147, double noundef %150, ptr noundef %154, ptr noundef %158, ptr noundef %161, i32 noundef 1)
  %162 = load i32, ptr %6, align 4, !tbaa !9
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %195, label %164

164:                                              ; preds = %116
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %166, i32 0, i32 2
  %168 = load double, ptr %167, align 8, !tbaa !22
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ve_setup_data_template, ptr %169, i32 0, i32 23
  %171 = getelementptr inbounds [2 x ptr], ptr %170, i64 0, i64 1
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.ve_setup_data_template, ptr %173, i32 0, i32 24
  %175 = getelementptr inbounds [2 x ptr], ptr %174, i64 0, i64 1
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ve_setup_data_template, ptr %177, i32 0, i32 25
  %179 = load ptr, ptr %178, align 8, !tbaa !37
  call void @vorbis_encode_psyset_setup(ptr noundef %165, double noundef %168, ptr noundef %172, ptr noundef %176, ptr noundef %179, i32 noundef 2)
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %181, i32 0, i32 2
  %183 = load double, ptr %182, align 8, !tbaa !22
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.ve_setup_data_template, ptr %184, i32 0, i32 23
  %186 = getelementptr inbounds [2 x ptr], ptr %185, i64 0, i64 1
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.ve_setup_data_template, ptr %188, i32 0, i32 24
  %190 = getelementptr inbounds [2 x ptr], ptr %189, i64 0, i64 1
  %191 = load ptr, ptr %190, align 8, !tbaa !5
  %192 = load ptr, ptr %8, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.ve_setup_data_template, ptr %192, i32 0, i32 25
  %194 = load ptr, ptr %193, align 8, !tbaa !37
  call void @vorbis_encode_psyset_setup(ptr noundef %180, double noundef %183, ptr noundef %187, ptr noundef %191, ptr noundef %194, i32 noundef 3)
  br label %195

195:                                              ; preds = %164, %116
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %197, i32 0, i32 22
  %199 = load i32, ptr %5, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %198, i64 0, i64 %200
  %202 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %201, i32 0, i32 0
  %203 = load double, ptr %202, align 8, !tbaa !38
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.ve_setup_data_template, ptr %204, i32 0, i32 8
  %206 = load ptr, ptr %205, align 8, !tbaa !40
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.ve_setup_data_template, ptr %207, i32 0, i32 9
  %209 = load ptr, ptr %208, align 8, !tbaa !41
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.ve_setup_data_template, ptr %210, i32 0, i32 11
  %212 = load ptr, ptr %211, align 8, !tbaa !42
  call void @vorbis_encode_tonemask_setup(ptr noundef %196, double noundef %203, i32 noundef 0, ptr noundef %206, ptr noundef %209, ptr noundef %212)
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %214, i32 0, i32 22
  %216 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %215, i64 0, i64 1
  %217 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %216, i32 0, i32 0
  %218 = load double, ptr %217, align 8, !tbaa !38
  %219 = load ptr, ptr %8, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ve_setup_data_template, ptr %219, i32 0, i32 8
  %221 = load ptr, ptr %220, align 8, !tbaa !40
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ve_setup_data_template, ptr %222, i32 0, i32 9
  %224 = load ptr, ptr %223, align 8, !tbaa !41
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.ve_setup_data_template, ptr %225, i32 0, i32 13
  %227 = load ptr, ptr %226, align 8, !tbaa !43
  call void @vorbis_encode_tonemask_setup(ptr noundef %213, double noundef %218, i32 noundef 1, ptr noundef %221, ptr noundef %224, ptr noundef %227)
  %228 = load i32, ptr %6, align 4, !tbaa !9
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %261, label %230

230:                                              ; preds = %195
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %232, i32 0, i32 22
  %234 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %233, i64 0, i64 2
  %235 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %234, i32 0, i32 0
  %236 = load double, ptr %235, align 8, !tbaa !38
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.ve_setup_data_template, ptr %237, i32 0, i32 8
  %239 = load ptr, ptr %238, align 8, !tbaa !40
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.ve_setup_data_template, ptr %240, i32 0, i32 9
  %242 = load ptr, ptr %241, align 8, !tbaa !41
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.ve_setup_data_template, ptr %243, i32 0, i32 13
  %245 = load ptr, ptr %244, align 8, !tbaa !43
  call void @vorbis_encode_tonemask_setup(ptr noundef %231, double noundef %236, i32 noundef 2, ptr noundef %239, ptr noundef %242, ptr noundef %245)
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %247, i32 0, i32 22
  %249 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %248, i64 0, i64 3
  %250 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %249, i32 0, i32 0
  %251 = load double, ptr %250, align 8, !tbaa !38
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.ve_setup_data_template, ptr %252, i32 0, i32 8
  %254 = load ptr, ptr %253, align 8, !tbaa !40
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.ve_setup_data_template, ptr %255, i32 0, i32 9
  %257 = load ptr, ptr %256, align 8, !tbaa !41
  %258 = load ptr, ptr %8, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.ve_setup_data_template, ptr %258, i32 0, i32 12
  %260 = load ptr, ptr %259, align 8, !tbaa !44
  call void @vorbis_encode_tonemask_setup(ptr noundef %246, double noundef %251, i32 noundef 3, ptr noundef %254, ptr noundef %257, ptr noundef %260)
  br label %261

261:                                              ; preds = %230, %195
  %262 = load ptr, ptr %3, align 8, !tbaa !5
  %263 = load ptr, ptr %9, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %263, i32 0, i32 22
  %265 = load i32, ptr %5, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %264, i64 0, i64 %266
  %268 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %267, i32 0, i32 3
  %269 = load double, ptr %268, align 8, !tbaa !45
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.ve_setup_data_template, ptr %270, i32 0, i32 20
  %272 = load ptr, ptr %271, align 8, !tbaa !46
  %273 = load ptr, ptr %8, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.ve_setup_data_template, ptr %273, i32 0, i32 21
  %275 = load ptr, ptr %274, align 8, !tbaa !47
  call void @vorbis_encode_compand_setup(ptr noundef %262, double noundef %269, i32 noundef 0, ptr noundef %272, ptr noundef %275)
  %276 = load ptr, ptr %3, align 8, !tbaa !5
  %277 = load ptr, ptr %9, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %277, i32 0, i32 22
  %279 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %278, i64 0, i64 1
  %280 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %279, i32 0, i32 3
  %281 = load double, ptr %280, align 8, !tbaa !45
  %282 = load ptr, ptr %8, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.ve_setup_data_template, ptr %282, i32 0, i32 20
  %284 = load ptr, ptr %283, align 8, !tbaa !46
  %285 = load ptr, ptr %8, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.ve_setup_data_template, ptr %285, i32 0, i32 21
  %287 = load ptr, ptr %286, align 8, !tbaa !47
  call void @vorbis_encode_compand_setup(ptr noundef %276, double noundef %281, i32 noundef 1, ptr noundef %284, ptr noundef %287)
  %288 = load i32, ptr %6, align 4, !tbaa !9
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %315, label %290

290:                                              ; preds = %261
  %291 = load ptr, ptr %3, align 8, !tbaa !5
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %292, i32 0, i32 22
  %294 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %293, i64 0, i64 2
  %295 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %294, i32 0, i32 3
  %296 = load double, ptr %295, align 8, !tbaa !45
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.ve_setup_data_template, ptr %297, i32 0, i32 20
  %299 = load ptr, ptr %298, align 8, !tbaa !46
  %300 = load ptr, ptr %8, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.ve_setup_data_template, ptr %300, i32 0, i32 22
  %302 = load ptr, ptr %301, align 8, !tbaa !48
  call void @vorbis_encode_compand_setup(ptr noundef %291, double noundef %296, i32 noundef 2, ptr noundef %299, ptr noundef %302)
  %303 = load ptr, ptr %3, align 8, !tbaa !5
  %304 = load ptr, ptr %9, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %304, i32 0, i32 22
  %306 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %305, i64 0, i64 3
  %307 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %306, i32 0, i32 3
  %308 = load double, ptr %307, align 8, !tbaa !45
  %309 = load ptr, ptr %8, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.ve_setup_data_template, ptr %309, i32 0, i32 20
  %311 = load ptr, ptr %310, align 8, !tbaa !46
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.ve_setup_data_template, ptr %312, i32 0, i32 22
  %314 = load ptr, ptr %313, align 8, !tbaa !48
  call void @vorbis_encode_compand_setup(ptr noundef %303, double noundef %308, i32 noundef 3, ptr noundef %311, ptr noundef %314)
  br label %315

315:                                              ; preds = %290, %261
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %317, i32 0, i32 22
  %319 = load i32, ptr %5, align 4, !tbaa !9
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %318, i64 0, i64 %320
  %322 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %321, i32 0, i32 1
  %323 = load double, ptr %322, align 8, !tbaa !49
  %324 = load ptr, ptr %8, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.ve_setup_data_template, ptr %324, i32 0, i32 10
  %326 = load ptr, ptr %325, align 8, !tbaa !50
  call void @vorbis_encode_peak_setup(ptr noundef %316, double noundef %323, i32 noundef 0, ptr noundef %326)
  %327 = load ptr, ptr %3, align 8, !tbaa !5
  %328 = load ptr, ptr %9, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %328, i32 0, i32 22
  %330 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %329, i64 0, i64 1
  %331 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %330, i32 0, i32 1
  %332 = load double, ptr %331, align 8, !tbaa !49
  %333 = load ptr, ptr %8, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.ve_setup_data_template, ptr %333, i32 0, i32 10
  %335 = load ptr, ptr %334, align 8, !tbaa !50
  call void @vorbis_encode_peak_setup(ptr noundef %327, double noundef %332, i32 noundef 1, ptr noundef %335)
  %336 = load i32, ptr %6, align 4, !tbaa !9
  %337 = icmp ne i32 %336, 0
  br i1 %337, label %357, label %338

338:                                              ; preds = %315
  %339 = load ptr, ptr %3, align 8, !tbaa !5
  %340 = load ptr, ptr %9, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %340, i32 0, i32 22
  %342 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %341, i64 0, i64 2
  %343 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %342, i32 0, i32 1
  %344 = load double, ptr %343, align 8, !tbaa !49
  %345 = load ptr, ptr %8, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.ve_setup_data_template, ptr %345, i32 0, i32 10
  %347 = load ptr, ptr %346, align 8, !tbaa !50
  call void @vorbis_encode_peak_setup(ptr noundef %339, double noundef %344, i32 noundef 2, ptr noundef %347)
  %348 = load ptr, ptr %3, align 8, !tbaa !5
  %349 = load ptr, ptr %9, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %349, i32 0, i32 22
  %351 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %350, i64 0, i64 3
  %352 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %351, i32 0, i32 1
  %353 = load double, ptr %352, align 8, !tbaa !49
  %354 = load ptr, ptr %8, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.ve_setup_data_template, ptr %354, i32 0, i32 10
  %356 = load ptr, ptr %355, align 8, !tbaa !50
  call void @vorbis_encode_peak_setup(ptr noundef %348, double noundef %353, i32 noundef 3, ptr noundef %356)
  br label %357

357:                                              ; preds = %338, %315
  %358 = load ptr, ptr %3, align 8, !tbaa !5
  %359 = load ptr, ptr %9, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %359, i32 0, i32 22
  %361 = load i32, ptr %5, align 4, !tbaa !9
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %360, i64 0, i64 %362
  %364 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %363, i32 0, i32 2
  %365 = load double, ptr %364, align 8, !tbaa !51
  %366 = load ptr, ptr %8, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.ve_setup_data_template, ptr %366, i32 0, i32 19
  %368 = load ptr, ptr %367, align 8, !tbaa !52
  %369 = load ptr, ptr %8, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.ve_setup_data_template, ptr %369, i32 0, i32 15
  %371 = load ptr, ptr %370, align 8, !tbaa !53
  %372 = load ptr, ptr %8, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.ve_setup_data_template, ptr %372, i32 0, i32 14
  %374 = load ptr, ptr %373, align 8, !tbaa !54
  %375 = load i32, ptr %5, align 4, !tbaa !9
  %376 = icmp eq i32 %375, 0
  br i1 %376, label %377, label %381

377:                                              ; preds = %357
  %378 = load ptr, ptr %9, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %378, i32 0, i32 3
  %380 = load double, ptr %379, align 8, !tbaa !55
  br label %382

381:                                              ; preds = %357
  br label %382

382:                                              ; preds = %381, %377
  %383 = phi double [ %380, %377 ], [ 0.000000e+00, %381 ]
  call void @vorbis_encode_noisebias_setup(ptr noundef %358, double noundef %365, i32 noundef 0, ptr noundef %368, ptr noundef %371, ptr noundef %374, double noundef %383)
  %384 = load ptr, ptr %3, align 8, !tbaa !5
  %385 = load ptr, ptr %9, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %385, i32 0, i32 22
  %387 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %386, i64 0, i64 1
  %388 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %387, i32 0, i32 2
  %389 = load double, ptr %388, align 8, !tbaa !51
  %390 = load ptr, ptr %8, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.ve_setup_data_template, ptr %390, i32 0, i32 19
  %392 = load ptr, ptr %391, align 8, !tbaa !52
  %393 = load ptr, ptr %8, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.ve_setup_data_template, ptr %393, i32 0, i32 16
  %395 = load ptr, ptr %394, align 8, !tbaa !56
  %396 = load ptr, ptr %8, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.ve_setup_data_template, ptr %396, i32 0, i32 14
  %398 = load ptr, ptr %397, align 8, !tbaa !54
  call void @vorbis_encode_noisebias_setup(ptr noundef %384, double noundef %389, i32 noundef 1, ptr noundef %392, ptr noundef %395, ptr noundef %398, double noundef 0.000000e+00)
  %399 = load i32, ptr %6, align 4, !tbaa !9
  %400 = icmp ne i32 %399, 0
  br i1 %400, label %432, label %401

401:                                              ; preds = %382
  %402 = load ptr, ptr %3, align 8, !tbaa !5
  %403 = load ptr, ptr %9, align 8, !tbaa !5
  %404 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %403, i32 0, i32 22
  %405 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %404, i64 0, i64 2
  %406 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %405, i32 0, i32 2
  %407 = load double, ptr %406, align 8, !tbaa !51
  %408 = load ptr, ptr %8, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.ve_setup_data_template, ptr %408, i32 0, i32 19
  %410 = load ptr, ptr %409, align 8, !tbaa !52
  %411 = load ptr, ptr %8, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.ve_setup_data_template, ptr %411, i32 0, i32 17
  %413 = load ptr, ptr %412, align 8, !tbaa !57
  %414 = load ptr, ptr %8, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.ve_setup_data_template, ptr %414, i32 0, i32 14
  %416 = load ptr, ptr %415, align 8, !tbaa !54
  call void @vorbis_encode_noisebias_setup(ptr noundef %402, double noundef %407, i32 noundef 2, ptr noundef %410, ptr noundef %413, ptr noundef %416, double noundef 0.000000e+00)
  %417 = load ptr, ptr %3, align 8, !tbaa !5
  %418 = load ptr, ptr %9, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %418, i32 0, i32 22
  %420 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %419, i64 0, i64 3
  %421 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %420, i32 0, i32 2
  %422 = load double, ptr %421, align 8, !tbaa !51
  %423 = load ptr, ptr %8, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.ve_setup_data_template, ptr %423, i32 0, i32 19
  %425 = load ptr, ptr %424, align 8, !tbaa !52
  %426 = load ptr, ptr %8, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.ve_setup_data_template, ptr %426, i32 0, i32 18
  %428 = load ptr, ptr %427, align 8, !tbaa !58
  %429 = load ptr, ptr %8, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.ve_setup_data_template, ptr %429, i32 0, i32 14
  %431 = load ptr, ptr %430, align 8, !tbaa !54
  call void @vorbis_encode_noisebias_setup(ptr noundef %417, double noundef %422, i32 noundef 3, ptr noundef %425, ptr noundef %428, ptr noundef %431, double noundef 0.000000e+00)
  br label %432

432:                                              ; preds = %401, %382
  %433 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vorbis_encode_ath_setup(ptr noundef %433, i32 noundef 0)
  %434 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vorbis_encode_ath_setup(ptr noundef %434, i32 noundef 1)
  %435 = load i32, ptr %6, align 4, !tbaa !9
  %436 = icmp ne i32 %435, 0
  br i1 %436, label %440, label %437

437:                                              ; preds = %432
  %438 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vorbis_encode_ath_setup(ptr noundef %438, i32 noundef 2)
  %439 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vorbis_encode_ath_setup(ptr noundef %439, i32 noundef 3)
  br label %440

440:                                              ; preds = %437, %432
  %441 = load ptr, ptr %3, align 8, !tbaa !5
  %442 = load ptr, ptr %9, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %442, i32 0, i32 2
  %444 = load double, ptr %443, align 8, !tbaa !22
  %445 = load ptr, ptr %8, align 8, !tbaa !5
  %446 = getelementptr inbounds %struct.ve_setup_data_template, ptr %445, i32 0, i32 36
  %447 = load ptr, ptr %446, align 8, !tbaa !59
  call void @vorbis_encode_map_n_res_setup(ptr noundef %441, double noundef %444, ptr noundef %447)
  %448 = load ptr, ptr %9, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %448, i32 0, i32 7
  %450 = load i64, ptr %449, align 8, !tbaa !60
  %451 = icmp sgt i64 %450, 0
  br i1 %451, label %452, label %458

452:                                              ; preds = %440
  %453 = load ptr, ptr %9, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %453, i32 0, i32 7
  %455 = load i64, ptr %454, align 8, !tbaa !60
  %456 = load ptr, ptr %3, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.vorbis_info, ptr %456, i32 0, i32 4
  store i64 %455, ptr %457, align 8, !tbaa !61
  br label %464

458:                                              ; preds = %440
  %459 = load ptr, ptr %3, align 8, !tbaa !5
  %460 = call double @setting_to_approx_bitrate(ptr noundef %459)
  %461 = fptosi double %460 to i64
  %462 = load ptr, ptr %3, align 8, !tbaa !5
  %463 = getelementptr inbounds %struct.vorbis_info, ptr %462, i32 0, i32 4
  store i64 %461, ptr %463, align 8, !tbaa !61
  br label %464

464:                                              ; preds = %458, %452
  %465 = load ptr, ptr %9, align 8, !tbaa !5
  %466 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %465, i32 0, i32 6
  %467 = load i64, ptr %466, align 8, !tbaa !62
  %468 = load ptr, ptr %3, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.vorbis_info, ptr %468, i32 0, i32 5
  store i64 %467, ptr %469, align 8, !tbaa !63
  %470 = load ptr, ptr %9, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %470, i32 0, i32 9
  %472 = load i64, ptr %471, align 8, !tbaa !64
  %473 = load ptr, ptr %3, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.vorbis_info, ptr %473, i32 0, i32 3
  store i64 %472, ptr %474, align 8, !tbaa !65
  %475 = load ptr, ptr %9, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %475, i32 0, i32 7
  %477 = load i64, ptr %476, align 8, !tbaa !60
  %478 = icmp ne i64 %477, 0
  br i1 %478, label %479, label %492

479:                                              ; preds = %464
  %480 = load ptr, ptr %9, align 8, !tbaa !5
  %481 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %480, i32 0, i32 10
  %482 = load i64, ptr %481, align 8, !tbaa !66
  %483 = sitofp i64 %482 to double
  %484 = load ptr, ptr %9, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %484, i32 0, i32 7
  %486 = load i64, ptr %485, align 8, !tbaa !60
  %487 = sitofp i64 %486 to double
  %488 = fdiv double %483, %487
  %489 = fptosi double %488 to i64
  %490 = load ptr, ptr %3, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.vorbis_info, ptr %490, i32 0, i32 6
  store i64 %489, ptr %491, align 8, !tbaa !67
  br label %495

492:                                              ; preds = %464
  %493 = load ptr, ptr %3, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.vorbis_info, ptr %493, i32 0, i32 6
  store i64 0, ptr %494, align 8, !tbaa !67
  br label %495

495:                                              ; preds = %492, %479
  %496 = load ptr, ptr %9, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %496, i32 0, i32 5
  %498 = load i32, ptr %497, align 4, !tbaa !68
  %499 = icmp ne i32 %498, 0
  br i1 %499, label %500, label %537

500:                                              ; preds = %495
  %501 = load ptr, ptr %9, align 8, !tbaa !5
  %502 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %501, i32 0, i32 7
  %503 = load i64, ptr %502, align 8, !tbaa !60
  %504 = load ptr, ptr %7, align 8, !tbaa !5
  %505 = getelementptr inbounds %struct.codec_setup_info, ptr %504, i32 0, i32 18
  %506 = getelementptr inbounds %struct.bitrate_manager_info, ptr %505, i32 0, i32 0
  store i64 %503, ptr %506, align 8, !tbaa !69
  %507 = load ptr, ptr %9, align 8, !tbaa !5
  %508 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %507, i32 0, i32 6
  %509 = load i64, ptr %508, align 8, !tbaa !62
  %510 = load ptr, ptr %7, align 8, !tbaa !5
  %511 = getelementptr inbounds %struct.codec_setup_info, ptr %510, i32 0, i32 18
  %512 = getelementptr inbounds %struct.bitrate_manager_info, ptr %511, i32 0, i32 1
  store i64 %509, ptr %512, align 8, !tbaa !73
  %513 = load ptr, ptr %9, align 8, !tbaa !5
  %514 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %513, i32 0, i32 9
  %515 = load i64, ptr %514, align 8, !tbaa !64
  %516 = load ptr, ptr %7, align 8, !tbaa !5
  %517 = getelementptr inbounds %struct.codec_setup_info, ptr %516, i32 0, i32 18
  %518 = getelementptr inbounds %struct.bitrate_manager_info, ptr %517, i32 0, i32 2
  store i64 %515, ptr %518, align 8, !tbaa !74
  %519 = load ptr, ptr %9, align 8, !tbaa !5
  %520 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %519, i32 0, i32 10
  %521 = load i64, ptr %520, align 8, !tbaa !66
  %522 = load ptr, ptr %7, align 8, !tbaa !5
  %523 = getelementptr inbounds %struct.codec_setup_info, ptr %522, i32 0, i32 18
  %524 = getelementptr inbounds %struct.bitrate_manager_info, ptr %523, i32 0, i32 3
  store i64 %521, ptr %524, align 8, !tbaa !75
  %525 = load ptr, ptr %9, align 8, !tbaa !5
  %526 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %525, i32 0, i32 11
  %527 = load double, ptr %526, align 8, !tbaa !76
  %528 = load ptr, ptr %7, align 8, !tbaa !5
  %529 = getelementptr inbounds %struct.codec_setup_info, ptr %528, i32 0, i32 18
  %530 = getelementptr inbounds %struct.bitrate_manager_info, ptr %529, i32 0, i32 4
  store double %527, ptr %530, align 8, !tbaa !77
  %531 = load ptr, ptr %9, align 8, !tbaa !5
  %532 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %531, i32 0, i32 8
  %533 = load double, ptr %532, align 8, !tbaa !78
  %534 = load ptr, ptr %7, align 8, !tbaa !5
  %535 = getelementptr inbounds %struct.codec_setup_info, ptr %534, i32 0, i32 18
  %536 = getelementptr inbounds %struct.bitrate_manager_info, ptr %535, i32 0, i32 5
  store double %533, ptr %536, align 8, !tbaa !79
  br label %537

537:                                              ; preds = %500, %495
  store i32 0, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %538

538:                                              ; preds = %537, %63, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  %539 = load i32, ptr %2, align 4
  ret i32 %539
}

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

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_blocksize_setup(ptr noundef, double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_floor_setup(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_global_psych_setup(ptr noundef, double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_global_stereo(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_psyset_setup(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_tonemask_setup(ptr noundef, double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_compand_setup(ptr noundef, double noundef, i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_peak_setup(ptr noundef, double noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_noisebias_setup(ptr noundef, double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_ath_setup(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_map_n_res_setup(ptr noundef, double noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden double @setting_to_approx_bitrate(ptr noundef) #0

; 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 = { 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, !6, i64 48}
!12 = !{!"vorbis_info", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !6, i64 48}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !10, i64 88}
!15 = !{!"highlevel_encode_setup", !10, i64 0, !6, i64 8, !16, i64 16, !16, i64 24, !17, i64 32, !10, i64 36, !13, i64 40, !13, i64 48, !16, i64 56, !13, i64 64, !13, i64 72, !16, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !16, i64 104, !16, i64 112, !10, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !7, i64 160}
!16 = !{!"double", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!15, !16, i64 128}
!19 = !{!15, !16, i64 144}
!20 = !{!15, !6, i64 8}
!21 = !{!15, !10, i64 0}
!22 = !{!15, !16, i64 16}
!23 = !{!24, !6, i64 48}
!24 = !{!"", !10, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !13, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !7, i64 184, !7, i64 200, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !6, i64 304}
!25 = !{!24, !6, i64 56}
!26 = !{!13, !13, i64 0}
!27 = !{!24, !10, i64 288}
!28 = !{!24, !6, i64 272}
!29 = !{!24, !6, i64 280}
!30 = !{!24, !6, i64 296}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!15, !16, i64 152}
!34 = !{!24, !6, i64 248}
!35 = !{!24, !6, i64 256}
!36 = !{!24, !6, i64 264}
!37 = !{!24, !6, i64 216}
!38 = !{!39, !16, i64 0}
!39 = !{!"highlevel_byblocktype", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!40 = !{!24, !6, i64 64}
!41 = !{!24, !6, i64 72}
!42 = !{!24, !6, i64 88}
!43 = !{!24, !6, i64 104}
!44 = !{!24, !6, i64 96}
!45 = !{!39, !16, i64 24}
!46 = !{!24, !6, i64 160}
!47 = !{!24, !6, i64 168}
!48 = !{!24, !6, i64 176}
!49 = !{!39, !16, i64 8}
!50 = !{!24, !6, i64 80}
!51 = !{!39, !16, i64 16}
!52 = !{!24, !6, i64 152}
!53 = !{!24, !6, i64 120}
!54 = !{!24, !6, i64 112}
!55 = !{!15, !16, i64 24}
!56 = !{!24, !6, i64 128}
!57 = !{!24, !6, i64 136}
!58 = !{!24, !6, i64 144}
!59 = !{!24, !6, i64 304}
!60 = !{!15, !13, i64 48}
!61 = !{!12, !13, i64 24}
!62 = !{!15, !13, i64 40}
!63 = !{!12, !13, i64 32}
!64 = !{!15, !13, i64 64}
!65 = !{!12, !13, i64 16}
!66 = !{!15, !13, i64 72}
!67 = !{!12, !13, i64 40}
!68 = !{!15, !10, i64 36}
!69 = !{!70, !13, i64 5440}
!70 = !{!"codec_setup_info", !7, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !7, i64 552, !7, i64 808, !7, i64 1320, !7, i64 1576, !7, i64 2088, !7, i64 2344, !7, i64 2856, !6, i64 4904, !7, i64 4912, !71, i64 4944, !72, i64 5440, !15, i64 5488, !10, i64 5776}
!71 = !{!"", !10, i64 0, !7, i64 4, !7, i64 32, !17, i64 60, !17, i64 64, !17, i64 68, !7, i64 72, !7, i64 132, !7, i64 252, !7, i64 312, !7, i64 372}
!72 = !{!"bitrate_manager_info", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !16, i64 32, !16, i64 40}
!73 = !{!70, !13, i64 5448}
!74 = !{!70, !13, i64 5456}
!75 = !{!70, !13, i64 5464}
!76 = !{!15, !16, i64 80}
!77 = !{!70, !16, i64 5472}
!78 = !{!15, !16, i64 56}
!79 = !{!70, !16, i64 5480}


; 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.highlevel_byblocktype = type { double, double, double, double }

; Function Attrs: nounwind uwtable
define dso_local range(i32 -131, 1) i32 @vorbis_encode_setup_init(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 48
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 5488
  %5 = icmp eq ptr %3, null
  br i1 %5, label %220, label %6

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %3, i64 5576
  %8 = load i32, ptr %7, align 8, !tbaa !12
  %.not.not = icmp eq i32 %8, 0
  %spec.select = zext i1 %.not.not to i64
  %9 = getelementptr inbounds i8, ptr %3, i64 5616
  %10 = load double, ptr %9, align 8, !tbaa !16
  %11 = fcmp ogt double %10, -8.000000e+01
  br i1 %11, label %.sink.split, label %12

12:                                               ; preds = %6
  %13 = fcmp olt double %10, -2.000000e+02
  br i1 %13, label %.sink.split, label %14

.sink.split:                                      ; preds = %12, %6
  %.sink185 = phi double [ -8.000000e+01, %6 ], [ -2.000000e+02, %12 ]
  store double %.sink185, ptr %9, align 8, !tbaa !16
  br label %14

14:                                               ; preds = %.sink.split, %12
  %15 = getelementptr inbounds i8, ptr %3, i64 5632
  %16 = load double, ptr %15, align 8, !tbaa !17
  %17 = fcmp ogt double %16, 0.000000e+00
  br i1 %17, label %.sink.split186, label %18

18:                                               ; preds = %14
  %19 = fcmp olt double %16, -9.999900e+04
  br i1 %19, label %.sink.split186, label %20

.sink.split186:                                   ; preds = %18, %14
  %.sink187 = phi double [ 0.000000e+00, %14 ], [ -9.999900e+04, %18 ]
  store double %.sink187, ptr %15, align 8, !tbaa !17
  br label %20

20:                                               ; preds = %.sink.split186, %18
  %21 = getelementptr inbounds i8, ptr %3, i64 5496
  %22 = load ptr, ptr %21, align 8, !tbaa !18
  %23 = icmp eq ptr %22, null
  br i1 %23, label %220, label %24

24:                                               ; preds = %20
  store i32 1, ptr %4, align 8, !tbaa !19
  %25 = getelementptr inbounds i8, ptr %3, i64 5504
  %26 = load double, ptr %25, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %22, i64 48
  %28 = load ptr, ptr %27, align 8, !tbaa !21
  %29 = getelementptr inbounds i8, ptr %22, i64 56
  %30 = load ptr, ptr %29, align 8, !tbaa !23
  tail call void @vorbis_encode_blocksize_setup(ptr noundef nonnull %0, double noundef %26, ptr noundef %28, ptr noundef %30)
  %31 = load i64, ptr %3, align 8, !tbaa !24
  %32 = getelementptr inbounds i8, ptr %3, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !24
  %.not179 = icmp eq i64 %31, %33
  %34 = getelementptr inbounds i8, ptr %22, i64 288
  %35 = load i32, ptr %34, align 8, !tbaa !25
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %24
  %37 = getelementptr inbounds i8, ptr %22, i64 272
  %38 = getelementptr inbounds i8, ptr %22, i64 280
  %39 = getelementptr inbounds i8, ptr %22, i64 296
  br label %40

40:                                               ; preds = %.lr.ph, %40
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %40 ]
  %41 = load double, ptr %25, align 8, !tbaa !20
  %42 = fptosi double %41 to i32
  %43 = load ptr, ptr %37, align 8, !tbaa !26
  %44 = load ptr, ptr %38, align 8, !tbaa !27
  %45 = load ptr, ptr %39, align 8, !tbaa !28
  %46 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv
  %47 = load ptr, ptr %46, align 8, !tbaa !29
  tail call void @vorbis_encode_floor_setup(ptr noundef %0, i32 noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %47)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i32, ptr %34, align 8, !tbaa !25
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next, %49
  br i1 %50, label %40, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %40, %24
  %51 = getelementptr inbounds i8, ptr %3, i64 5640
  %52 = load double, ptr %51, align 8, !tbaa !32
  %53 = getelementptr inbounds i8, ptr %22, i64 248
  %54 = load ptr, ptr %53, align 8, !tbaa !33
  %55 = getelementptr inbounds i8, ptr %22, i64 256
  %56 = load ptr, ptr %55, align 8, !tbaa !34
  tail call void @vorbis_encode_global_psych_setup(ptr noundef %0, double noundef %52, ptr noundef %54, ptr noundef %56)
  %57 = getelementptr inbounds i8, ptr %22, i64 264
  %58 = load ptr, ptr %57, align 8, !tbaa !35
  tail call void @vorbis_encode_global_stereo(ptr noundef %0, ptr noundef nonnull %4, ptr noundef %58)
  %59 = load double, ptr %25, align 8, !tbaa !20
  %60 = getelementptr inbounds i8, ptr %22, i64 184
  %61 = load ptr, ptr %60, align 8, !tbaa !29
  %62 = getelementptr inbounds i8, ptr %22, i64 200
  %63 = load ptr, ptr %62, align 8, !tbaa !29
  %64 = getelementptr inbounds i8, ptr %22, i64 216
  %65 = load ptr, ptr %64, align 8, !tbaa !36
  tail call void @vorbis_encode_psyset_setup(ptr noundef %0, double noundef %59, ptr noundef %61, ptr noundef %63, ptr noundef %65, i32 noundef 0)
  %66 = load double, ptr %25, align 8, !tbaa !20
  %67 = load ptr, ptr %60, align 8, !tbaa !29
  %68 = load ptr, ptr %62, align 8, !tbaa !29
  %69 = load ptr, ptr %64, align 8, !tbaa !36
  tail call void @vorbis_encode_psyset_setup(ptr noundef %0, double noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, i32 noundef 1)
  br i1 %.not179, label %81, label %70

70:                                               ; preds = %._crit_edge
  %71 = load double, ptr %25, align 8, !tbaa !20
  %72 = getelementptr inbounds i8, ptr %22, i64 192
  %73 = load ptr, ptr %72, align 8, !tbaa !29
  %74 = getelementptr inbounds i8, ptr %22, i64 208
  %75 = load ptr, ptr %74, align 8, !tbaa !29
  %76 = load ptr, ptr %64, align 8, !tbaa !36
  tail call void @vorbis_encode_psyset_setup(ptr noundef %0, double noundef %71, ptr noundef %73, ptr noundef %75, ptr noundef %76, i32 noundef 2)
  %77 = load double, ptr %25, align 8, !tbaa !20
  %78 = load ptr, ptr %72, align 8, !tbaa !29
  %79 = load ptr, ptr %74, align 8, !tbaa !29
  %80 = load ptr, ptr %64, align 8, !tbaa !36
  tail call void @vorbis_encode_psyset_setup(ptr noundef %0, double noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, i32 noundef 3)
  br label %81

81:                                               ; preds = %70, %._crit_edge
  %82 = getelementptr inbounds i8, ptr %3, i64 5648
  %83 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %82, i64 0, i64 %spec.select
  %84 = load double, ptr %83, align 8, !tbaa !37
  %85 = getelementptr inbounds i8, ptr %22, i64 64
  %86 = load ptr, ptr %85, align 8, !tbaa !39
  %87 = getelementptr inbounds i8, ptr %22, i64 72
  %88 = load ptr, ptr %87, align 8, !tbaa !40
  %89 = getelementptr inbounds i8, ptr %22, i64 88
  %90 = load ptr, ptr %89, align 8, !tbaa !41
  tail call void @vorbis_encode_tonemask_setup(ptr noundef %0, double noundef %84, i32 noundef 0, ptr noundef %86, ptr noundef %88, ptr noundef %90)
  %91 = getelementptr inbounds i8, ptr %3, i64 5680
  %92 = load double, ptr %91, align 8, !tbaa !37
  %93 = load ptr, ptr %85, align 8, !tbaa !39
  %94 = load ptr, ptr %87, align 8, !tbaa !40
  %95 = getelementptr inbounds i8, ptr %22, i64 104
  %96 = load ptr, ptr %95, align 8, !tbaa !42
  tail call void @vorbis_encode_tonemask_setup(ptr noundef %0, double noundef %92, i32 noundef 1, ptr noundef %93, ptr noundef %94, ptr noundef %96)
  br i1 %.not179, label %109, label %97

97:                                               ; preds = %81
  %98 = getelementptr inbounds i8, ptr %3, i64 5712
  %99 = load double, ptr %98, align 8, !tbaa !37
  %100 = load ptr, ptr %85, align 8, !tbaa !39
  %101 = load ptr, ptr %87, align 8, !tbaa !40
  %102 = load ptr, ptr %95, align 8, !tbaa !42
  tail call void @vorbis_encode_tonemask_setup(ptr noundef %0, double noundef %99, i32 noundef 2, ptr noundef %100, ptr noundef %101, ptr noundef %102)
  %103 = getelementptr inbounds i8, ptr %3, i64 5744
  %104 = load double, ptr %103, align 8, !tbaa !37
  %105 = load ptr, ptr %85, align 8, !tbaa !39
  %106 = load ptr, ptr %87, align 8, !tbaa !40
  %107 = getelementptr inbounds i8, ptr %22, i64 96
  %108 = load ptr, ptr %107, align 8, !tbaa !43
  tail call void @vorbis_encode_tonemask_setup(ptr noundef %0, double noundef %104, i32 noundef 3, ptr noundef %105, ptr noundef %106, ptr noundef %108)
  br label %109

109:                                              ; preds = %97, %81
  %110 = getelementptr inbounds i8, ptr %83, i64 24
  %111 = load double, ptr %110, align 8, !tbaa !44
  %112 = getelementptr inbounds i8, ptr %22, i64 160
  %113 = load ptr, ptr %112, align 8, !tbaa !45
  %114 = getelementptr inbounds i8, ptr %22, i64 168
  %115 = load ptr, ptr %114, align 8, !tbaa !46
  tail call void @vorbis_encode_compand_setup(ptr noundef %0, double noundef %111, i32 noundef 0, ptr noundef %113, ptr noundef %115)
  %116 = getelementptr inbounds i8, ptr %3, i64 5704
  %117 = load double, ptr %116, align 8, !tbaa !44
  %118 = load ptr, ptr %112, align 8, !tbaa !45
  %119 = load ptr, ptr %114, align 8, !tbaa !46
  tail call void @vorbis_encode_compand_setup(ptr noundef %0, double noundef %117, i32 noundef 1, ptr noundef %118, ptr noundef %119)
  br i1 %.not179, label %130, label %120

120:                                              ; preds = %109
  %121 = getelementptr inbounds i8, ptr %3, i64 5736
  %122 = load double, ptr %121, align 8, !tbaa !44
  %123 = load ptr, ptr %112, align 8, !tbaa !45
  %124 = getelementptr inbounds i8, ptr %22, i64 176
  %125 = load ptr, ptr %124, align 8, !tbaa !47
  tail call void @vorbis_encode_compand_setup(ptr noundef %0, double noundef %122, i32 noundef 2, ptr noundef %123, ptr noundef %125)
  %126 = getelementptr inbounds i8, ptr %3, i64 5768
  %127 = load double, ptr %126, align 8, !tbaa !44
  %128 = load ptr, ptr %112, align 8, !tbaa !45
  %129 = load ptr, ptr %124, align 8, !tbaa !47
  tail call void @vorbis_encode_compand_setup(ptr noundef %0, double noundef %127, i32 noundef 3, ptr noundef %128, ptr noundef %129)
  br label %130

130:                                              ; preds = %120, %109
  %131 = getelementptr inbounds i8, ptr %83, i64 8
  %132 = load double, ptr %131, align 8, !tbaa !48
  %133 = getelementptr inbounds i8, ptr %22, i64 80
  %134 = load ptr, ptr %133, align 8, !tbaa !49
  tail call void @vorbis_encode_peak_setup(ptr noundef %0, double noundef %132, i32 noundef 0, ptr noundef %134)
  %135 = getelementptr inbounds i8, ptr %3, i64 5688
  %136 = load double, ptr %135, align 8, !tbaa !48
  %137 = load ptr, ptr %133, align 8, !tbaa !49
  tail call void @vorbis_encode_peak_setup(ptr noundef %0, double noundef %136, i32 noundef 1, ptr noundef %137)
  br i1 %.not179, label %145, label %138

138:                                              ; preds = %130
  %139 = getelementptr inbounds i8, ptr %3, i64 5720
  %140 = load double, ptr %139, align 8, !tbaa !48
  %141 = load ptr, ptr %133, align 8, !tbaa !49
  tail call void @vorbis_encode_peak_setup(ptr noundef %0, double noundef %140, i32 noundef 2, ptr noundef %141)
  %142 = getelementptr inbounds i8, ptr %3, i64 5752
  %143 = load double, ptr %142, align 8, !tbaa !48
  %144 = load ptr, ptr %133, align 8, !tbaa !49
  tail call void @vorbis_encode_peak_setup(ptr noundef %0, double noundef %143, i32 noundef 3, ptr noundef %144)
  br label %145

145:                                              ; preds = %138, %130
  %146 = getelementptr inbounds i8, ptr %83, i64 16
  %147 = load double, ptr %146, align 8, !tbaa !50
  %148 = getelementptr inbounds i8, ptr %22, i64 152
  %149 = load ptr, ptr %148, align 8, !tbaa !51
  %150 = getelementptr inbounds i8, ptr %22, i64 120
  %151 = load ptr, ptr %150, align 8, !tbaa !52
  %152 = getelementptr inbounds i8, ptr %22, i64 112
  %153 = load ptr, ptr %152, align 8, !tbaa !53
  br i1 %.not.not, label %157, label %154

154:                                              ; preds = %145
  %155 = getelementptr inbounds i8, ptr %3, i64 5512
  %156 = load double, ptr %155, align 8, !tbaa !54
  br label %157

157:                                              ; preds = %145, %154
  %158 = phi double [ %156, %154 ], [ 0.000000e+00, %145 ]
  tail call void @vorbis_encode_noisebias_setup(ptr noundef %0, double noundef %147, i32 noundef 0, ptr noundef %149, ptr noundef %151, ptr noundef %153, double noundef %158)
  %159 = getelementptr inbounds i8, ptr %3, i64 5696
  %160 = load double, ptr %159, align 8, !tbaa !50
  %161 = load ptr, ptr %148, align 8, !tbaa !51
  %162 = getelementptr inbounds i8, ptr %22, i64 128
  %163 = load ptr, ptr %162, align 8, !tbaa !55
  %164 = load ptr, ptr %152, align 8, !tbaa !53
  tail call void @vorbis_encode_noisebias_setup(ptr noundef %0, double noundef %160, i32 noundef 1, ptr noundef %161, ptr noundef %163, ptr noundef %164, double noundef 0.000000e+00)
  br i1 %.not179, label %.critedge, label %165

165:                                              ; preds = %157
  %166 = getelementptr inbounds i8, ptr %3, i64 5728
  %167 = load double, ptr %166, align 8, !tbaa !50
  %168 = load ptr, ptr %148, align 8, !tbaa !51
  %169 = getelementptr inbounds i8, ptr %22, i64 136
  %170 = load ptr, ptr %169, align 8, !tbaa !56
  %171 = load ptr, ptr %152, align 8, !tbaa !53
  tail call void @vorbis_encode_noisebias_setup(ptr noundef %0, double noundef %167, i32 noundef 2, ptr noundef %168, ptr noundef %170, ptr noundef %171, double noundef 0.000000e+00)
  %172 = getelementptr inbounds i8, ptr %3, i64 5760
  %173 = load double, ptr %172, align 8, !tbaa !50
  %174 = load ptr, ptr %148, align 8, !tbaa !51
  %175 = getelementptr inbounds i8, ptr %22, i64 144
  %176 = load ptr, ptr %175, align 8, !tbaa !57
  %177 = load ptr, ptr %152, align 8, !tbaa !53
  tail call void @vorbis_encode_noisebias_setup(ptr noundef %0, double noundef %173, i32 noundef 3, ptr noundef %174, ptr noundef %176, ptr noundef %177, double noundef 0.000000e+00)
  tail call void @vorbis_encode_ath_setup(ptr noundef %0, i32 noundef 0)
  tail call void @vorbis_encode_ath_setup(ptr noundef %0, i32 noundef 1)
  br label %.critedge

.critedge:                                        ; preds = %157, %165
  %.sink189 = phi i32 [ 2, %165 ], [ 0, %157 ]
  %.sink188 = phi i32 [ 3, %165 ], [ 1, %157 ]
  tail call void @vorbis_encode_ath_setup(ptr noundef %0, i32 noundef %.sink189)
  tail call void @vorbis_encode_ath_setup(ptr noundef %0, i32 noundef %.sink188)
  %178 = load double, ptr %25, align 8, !tbaa !20
  %179 = getelementptr inbounds i8, ptr %22, i64 304
  %180 = load ptr, ptr %179, align 8, !tbaa !58
  tail call void @vorbis_encode_map_n_res_setup(ptr noundef %0, double noundef %178, ptr noundef %180)
  %181 = getelementptr inbounds i8, ptr %3, i64 5536
  %182 = load i64, ptr %181, align 8, !tbaa !59
  %183 = icmp sgt i64 %182, 0
  br i1 %183, label %187, label %184

184:                                              ; preds = %.critedge
  %185 = tail call double @setting_to_approx_bitrate(ptr noundef %0)
  %186 = fptosi double %185 to i64
  br label %187

187:                                              ; preds = %.critedge, %184
  %.sink = phi i64 [ %186, %184 ], [ %182, %.critedge ]
  %188 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %.sink, ptr %188, align 8
  %189 = getelementptr inbounds i8, ptr %3, i64 5528
  %190 = load i64, ptr %189, align 8, !tbaa !60
  %191 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %190, ptr %191, align 8, !tbaa !61
  %192 = getelementptr inbounds i8, ptr %3, i64 5552
  %193 = load i64, ptr %192, align 8, !tbaa !62
  %194 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %193, ptr %194, align 8, !tbaa !63
  %195 = load i64, ptr %181, align 8, !tbaa !59
  %.not = icmp eq i64 %195, 0
  br i1 %.not, label %203, label %196

196:                                              ; preds = %187
  %197 = getelementptr inbounds i8, ptr %3, i64 5560
  %198 = load i64, ptr %197, align 8, !tbaa !64
  %199 = sitofp i64 %198 to double
  %200 = sitofp i64 %195 to double
  %201 = fdiv double %199, %200
  %202 = fptosi double %201 to i64
  br label %203

203:                                              ; preds = %187, %196
  %.sink184 = phi i64 [ %202, %196 ], [ 0, %187 ]
  %204 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 %.sink184, ptr %204, align 8
  %205 = getelementptr inbounds i8, ptr %3, i64 5524
  %206 = load i32, ptr %205, align 4, !tbaa !65
  %.not180 = icmp eq i32 %206, 0
  br i1 %.not180, label %220, label %207

207:                                              ; preds = %203
  %208 = getelementptr inbounds i8, ptr %3, i64 5440
  store i64 %195, ptr %208, align 8, !tbaa !66
  %209 = getelementptr inbounds i8, ptr %3, i64 5448
  store i64 %190, ptr %209, align 8, !tbaa !70
  %210 = getelementptr inbounds i8, ptr %3, i64 5456
  store i64 %193, ptr %210, align 8, !tbaa !71
  %211 = getelementptr inbounds i8, ptr %3, i64 5560
  %212 = load i64, ptr %211, align 8, !tbaa !64
  %213 = getelementptr inbounds i8, ptr %3, i64 5464
  store i64 %212, ptr %213, align 8, !tbaa !72
  %214 = getelementptr inbounds i8, ptr %3, i64 5568
  %215 = load double, ptr %214, align 8, !tbaa !73
  %216 = getelementptr inbounds i8, ptr %3, i64 5472
  store double %215, ptr %216, align 8, !tbaa !74
  %217 = getelementptr inbounds i8, ptr %3, i64 5544
  %218 = load double, ptr %217, align 8, !tbaa !75
  %219 = getelementptr inbounds i8, ptr %3, i64 5480
  store double %218, ptr %219, align 8, !tbaa !76
  br label %220

220:                                              ; preds = %203, %207, %20, %1
  %.0 = phi i32 [ -131, %1 ], [ -131, %20 ], [ 0, %207 ], [ 0, %203 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_blocksize_setup(ptr noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_floor_setup(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_global_psych_setup(ptr noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_global_stereo(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_psyset_setup(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_tonemask_setup(ptr noundef, double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_compand_setup(ptr noundef, double noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_peak_setup(ptr noundef, double noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_noisebias_setup(ptr noundef, double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_ath_setup(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @vorbis_encode_map_n_res_setup(ptr noundef, double noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden double @setting_to_approx_bitrate(ptr noundef) local_unnamed_addr #0

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

!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 48}
!6 = !{!"vorbis_info", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !11, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !7, i64 88}
!13 = !{!"highlevel_encode_setup", !7, i64 0, !11, i64 8, !14, i64 16, !14, i64 24, !15, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !14, i64 56, !10, i64 64, !10, i64 72, !14, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !14, i64 104, !14, i64 112, !7, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !8, i64 160}
!14 = !{!"double", !8, i64 0}
!15 = !{!"float", !8, i64 0}
!16 = !{!13, !14, i64 128}
!17 = !{!13, !14, i64 144}
!18 = !{!13, !11, i64 8}
!19 = !{!13, !7, i64 0}
!20 = !{!13, !14, i64 16}
!21 = !{!22, !11, i64 48}
!22 = !{!"", !7, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !8, i64 184, !8, i64 200, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !7, i64 288, !11, i64 296, !11, i64 304}
!23 = !{!22, !11, i64 56}
!24 = !{!10, !10, i64 0}
!25 = !{!22, !7, i64 288}
!26 = !{!22, !11, i64 272}
!27 = !{!22, !11, i64 280}
!28 = !{!22, !11, i64 296}
!29 = !{!11, !11, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!13, !14, i64 152}
!33 = !{!22, !11, i64 248}
!34 = !{!22, !11, i64 256}
!35 = !{!22, !11, i64 264}
!36 = !{!22, !11, i64 216}
!37 = !{!38, !14, i64 0}
!38 = !{!"highlevel_byblocktype", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!39 = !{!22, !11, i64 64}
!40 = !{!22, !11, i64 72}
!41 = !{!22, !11, i64 88}
!42 = !{!22, !11, i64 104}
!43 = !{!22, !11, i64 96}
!44 = !{!38, !14, i64 24}
!45 = !{!22, !11, i64 160}
!46 = !{!22, !11, i64 168}
!47 = !{!22, !11, i64 176}
!48 = !{!38, !14, i64 8}
!49 = !{!22, !11, i64 80}
!50 = !{!38, !14, i64 16}
!51 = !{!22, !11, i64 152}
!52 = !{!22, !11, i64 120}
!53 = !{!22, !11, i64 112}
!54 = !{!13, !14, i64 24}
!55 = !{!22, !11, i64 128}
!56 = !{!22, !11, i64 136}
!57 = !{!22, !11, i64 144}
!58 = !{!22, !11, i64 304}
!59 = !{!13, !10, i64 48}
!60 = !{!13, !10, i64 40}
!61 = !{!6, !10, i64 32}
!62 = !{!13, !10, i64 64}
!63 = !{!6, !10, i64 16}
!64 = !{!13, !10, i64 72}
!65 = !{!13, !7, i64 36}
!66 = !{!67, !10, i64 5440}
!67 = !{!"codec_setup_info", !8, i64 0, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !8, i64 40, !8, i64 552, !8, i64 808, !8, i64 1320, !8, i64 1576, !8, i64 2088, !8, i64 2344, !8, i64 2856, !11, i64 4904, !8, i64 4912, !68, i64 4944, !69, i64 5440, !13, i64 5488, !7, i64 5776}
!68 = !{!"", !7, i64 0, !8, i64 4, !8, i64 32, !15, i64 60, !15, i64 64, !15, i64 68, !8, i64 72, !8, i64 132, !8, i64 252, !8, i64 312, !8, i64 372}
!69 = !{!"bitrate_manager_info", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !14, i64 40}
!70 = !{!67, !10, i64 5448}
!71 = !{!67, !10, i64 5456}
!72 = !{!67, !10, i64 5464}
!73 = !{!13, !14, i64 80}
!74 = !{!67, !14, i64 5472}
!75 = !{!13, !14, i64 56}
!76 = !{!67, !14, i64 5480}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass