; LLVM IR from reworks-org/galaxy :: deps/sfml_deps/vorbis-src/lib (vorbisenc)

; 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 %549

19:                                               ; preds = %1
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.vorbis_info, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 4, !tbaa !14
  %23 = icmp slt i32 %22, 1
  br i1 %23, label %29, label %24

24:                                               ; preds = %19
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.vorbis_info, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !14
  %28 = icmp sgt i32 %27, 255
  br i1 %28, label %29, label %30

29:                                               ; preds = %24, %19
  store i32 -131, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %549

30:                                               ; preds = %24
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %31, i32 0, i32 12
  %33 = load i32, ptr %32, align 8, !tbaa !15
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %36, label %35

35:                                               ; preds = %30
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %35, %30
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %37, i32 0, i32 18
  %39 = load double, ptr %38, align 8, !tbaa !19
  %40 = fcmp ogt double %39, -8.000000e+01
  br i1 %40, label %41, label %44

41:                                               ; preds = %36
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %42, i32 0, i32 18
  store double -8.000000e+01, ptr %43, align 8, !tbaa !19
  br label %44

44:                                               ; preds = %41, %36
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %45, i32 0, i32 18
  %47 = load double, ptr %46, align 8, !tbaa !19
  %48 = fcmp olt double %47, -2.000000e+02
  br i1 %48, label %49, label %52

49:                                               ; preds = %44
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %50, i32 0, i32 18
  store double -2.000000e+02, ptr %51, align 8, !tbaa !19
  br label %52

52:                                               ; preds = %49, %44
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %53, i32 0, i32 20
  %55 = load double, ptr %54, align 8, !tbaa !20
  %56 = fcmp ogt double %55, 0.000000e+00
  br i1 %56, label %57, label %60

57:                                               ; preds = %52
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %58, i32 0, i32 20
  store double 0.000000e+00, ptr %59, align 8, !tbaa !20
  br label %60

60:                                               ; preds = %57, %52
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %61, i32 0, i32 20
  %63 = load double, ptr %62, align 8, !tbaa !20
  %64 = fcmp olt double %63, -9.999900e+04
  br i1 %64, label %65, label %68

65:                                               ; preds = %60
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %66, i32 0, i32 20
  store double -9.999900e+04, ptr %67, align 8, !tbaa !20
  br label %68

68:                                               ; preds = %65, %60
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !21
  store ptr %71, ptr %8, align 8, !tbaa !5
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %75

74:                                               ; preds = %68
  store i32 -131, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %549

75:                                               ; preds = %68
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %76, i32 0, i32 0
  store i32 1, ptr %77, align 8, !tbaa !22
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %79, i32 0, i32 2
  %81 = load double, ptr %80, align 8, !tbaa !23
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ve_setup_data_template, ptr %82, i32 0, i32 6
  %84 = load ptr, ptr %83, align 8, !tbaa !24
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ve_setup_data_template, ptr %85, i32 0, i32 7
  %87 = load ptr, ptr %86, align 8, !tbaa !26
  call void @vorbis_encode_blocksize_setup(ptr noundef %78, double noundef %81, ptr noundef %84, ptr noundef %87)
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.codec_setup_info, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds [2 x i64], ptr %89, i64 0, i64 0
  %91 = load i64, ptr %90, align 8, !tbaa !27
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.codec_setup_info, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds [2 x i64], ptr %93, i64 0, i64 1
  %95 = load i64, ptr %94, align 8, !tbaa !27
  %96 = icmp eq i64 %91, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %75
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %97, %75
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %124, %98
  %100 = load i32, ptr %4, align 4, !tbaa !9
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ve_setup_data_template, ptr %101, i32 0, i32 34
  %103 = load i32, ptr %102, align 8, !tbaa !28
  %104 = icmp slt i32 %100, %103
  br i1 %104, label %105, label %127

105:                                              ; preds = %99
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %107, i32 0, i32 2
  %109 = load double, ptr %108, align 8, !tbaa !23
  %110 = fptosi double %109 to i32
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ve_setup_data_template, ptr %111, i32 0, i32 32
  %113 = load ptr, ptr %112, align 8, !tbaa !29
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ve_setup_data_template, ptr %114, i32 0, i32 33
  %116 = load ptr, ptr %115, align 8, !tbaa !30
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ve_setup_data_template, ptr %117, i32 0, i32 35
  %119 = load ptr, ptr %118, align 8, !tbaa !31
  %120 = load i32, ptr %4, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %119, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  call void @vorbis_encode_floor_setup(ptr noundef %106, i32 noundef %110, ptr noundef %113, ptr noundef %116, ptr noundef %123)
  br label %124

124:                                              ; preds = %105
  %125 = load i32, ptr %4, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %4, align 4, !tbaa !9
  br label %99, !llvm.loop !32

127:                                              ; preds = %99
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %129, i32 0, i32 21
  %131 = load double, ptr %130, align 8, !tbaa !34
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ve_setup_data_template, ptr %132, i32 0, i32 29
  %134 = load ptr, ptr %133, align 8, !tbaa !35
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.ve_setup_data_template, ptr %135, i32 0, i32 30
  %137 = load ptr, ptr %136, align 8, !tbaa !36
  call void @vorbis_encode_global_psych_setup(ptr noundef %128, double noundef %131, ptr noundef %134, ptr noundef %137)
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = load ptr, ptr %9, 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 31
  %142 = load ptr, ptr %141, align 8, !tbaa !37
  call void @vorbis_encode_global_stereo(ptr noundef %138, ptr noundef %139, ptr noundef %142)
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %144, i32 0, i32 2
  %146 = load double, ptr %145, align 8, !tbaa !23
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ve_setup_data_template, ptr %147, i32 0, i32 23
  %149 = getelementptr inbounds [2 x ptr], ptr %148, i64 0, i64 0
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ve_setup_data_template, ptr %151, i32 0, i32 24
  %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 25
  %157 = load ptr, ptr %156, align 8, !tbaa !38
  call void @vorbis_encode_psyset_setup(ptr noundef %143, double noundef %146, ptr noundef %150, ptr noundef %154, ptr noundef %157, i32 noundef 0)
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %159, i32 0, i32 2
  %161 = load double, ptr %160, align 8, !tbaa !23
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ve_setup_data_template, ptr %162, i32 0, i32 23
  %164 = getelementptr inbounds [2 x ptr], ptr %163, i64 0, i64 0
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ve_setup_data_template, ptr %166, i32 0, i32 24
  %168 = getelementptr inbounds [2 x ptr], ptr %167, i64 0, i64 0
  %169 = load ptr, ptr %168, align 8, !tbaa !5
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.ve_setup_data_template, ptr %170, i32 0, i32 25
  %172 = load ptr, ptr %171, align 8, !tbaa !38
  call void @vorbis_encode_psyset_setup(ptr noundef %158, double noundef %161, ptr noundef %165, ptr noundef %169, ptr noundef %172, i32 noundef 1)
  %173 = load i32, ptr %6, align 4, !tbaa !9
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %206, label %175

175:                                              ; preds = %127
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %177, i32 0, i32 2
  %179 = load double, ptr %178, align 8, !tbaa !23
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ve_setup_data_template, ptr %180, i32 0, i32 23
  %182 = getelementptr inbounds [2 x ptr], ptr %181, i64 0, i64 1
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.ve_setup_data_template, ptr %184, i32 0, i32 24
  %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 25
  %190 = load ptr, ptr %189, align 8, !tbaa !38
  call void @vorbis_encode_psyset_setup(ptr noundef %176, double noundef %179, ptr noundef %183, ptr noundef %187, ptr noundef %190, i32 noundef 2)
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %192, i32 0, i32 2
  %194 = load double, ptr %193, align 8, !tbaa !23
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.ve_setup_data_template, ptr %195, i32 0, i32 23
  %197 = getelementptr inbounds [2 x ptr], ptr %196, i64 0, i64 1
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.ve_setup_data_template, ptr %199, i32 0, i32 24
  %201 = getelementptr inbounds [2 x ptr], ptr %200, i64 0, i64 1
  %202 = load ptr, ptr %201, align 8, !tbaa !5
  %203 = load ptr, ptr %8, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.ve_setup_data_template, ptr %203, i32 0, i32 25
  %205 = load ptr, ptr %204, align 8, !tbaa !38
  call void @vorbis_encode_psyset_setup(ptr noundef %191, double noundef %194, ptr noundef %198, ptr noundef %202, ptr noundef %205, i32 noundef 3)
  br label %206

206:                                              ; preds = %175, %127
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %208, i32 0, i32 22
  %210 = load i32, ptr %5, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %209, i64 0, i64 %211
  %213 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %212, i32 0, i32 0
  %214 = load double, ptr %213, align 8, !tbaa !39
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.ve_setup_data_template, ptr %215, i32 0, i32 8
  %217 = load ptr, ptr %216, align 8, !tbaa !41
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.ve_setup_data_template, ptr %218, i32 0, i32 9
  %220 = load ptr, ptr %219, align 8, !tbaa !42
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.ve_setup_data_template, ptr %221, i32 0, i32 11
  %223 = load ptr, ptr %222, align 8, !tbaa !43
  call void @vorbis_encode_tonemask_setup(ptr noundef %207, double noundef %214, i32 noundef 0, ptr noundef %217, ptr noundef %220, ptr noundef %223)
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %225, i32 0, i32 22
  %227 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %226, i64 0, i64 1
  %228 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %227, i32 0, i32 0
  %229 = load double, ptr %228, align 8, !tbaa !39
  %230 = load ptr, ptr %8, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.ve_setup_data_template, ptr %230, i32 0, i32 8
  %232 = load ptr, ptr %231, align 8, !tbaa !41
  %233 = load ptr, ptr %8, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.ve_setup_data_template, ptr %233, i32 0, i32 9
  %235 = load ptr, ptr %234, align 8, !tbaa !42
  %236 = load ptr, ptr %8, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.ve_setup_data_template, ptr %236, i32 0, i32 13
  %238 = load ptr, ptr %237, align 8, !tbaa !44
  call void @vorbis_encode_tonemask_setup(ptr noundef %224, double noundef %229, i32 noundef 1, ptr noundef %232, ptr noundef %235, ptr noundef %238)
  %239 = load i32, ptr %6, align 4, !tbaa !9
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %272, label %241

241:                                              ; preds = %206
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %243, i32 0, i32 22
  %245 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %244, i64 0, i64 2
  %246 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %245, i32 0, i32 0
  %247 = load double, ptr %246, align 8, !tbaa !39
  %248 = load ptr, ptr %8, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.ve_setup_data_template, ptr %248, i32 0, i32 8
  %250 = load ptr, ptr %249, align 8, !tbaa !41
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.ve_setup_data_template, ptr %251, i32 0, i32 9
  %253 = load ptr, ptr %252, align 8, !tbaa !42
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.ve_setup_data_template, ptr %254, i32 0, i32 13
  %256 = load ptr, ptr %255, align 8, !tbaa !44
  call void @vorbis_encode_tonemask_setup(ptr noundef %242, double noundef %247, i32 noundef 2, ptr noundef %250, ptr noundef %253, ptr noundef %256)
  %257 = load ptr, ptr %3, align 8, !tbaa !5
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %258, i32 0, i32 22
  %260 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %259, i64 0, i64 3
  %261 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %260, i32 0, i32 0
  %262 = load double, ptr %261, align 8, !tbaa !39
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.ve_setup_data_template, ptr %263, i32 0, i32 8
  %265 = load ptr, ptr %264, align 8, !tbaa !41
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.ve_setup_data_template, ptr %266, i32 0, i32 9
  %268 = load ptr, ptr %267, align 8, !tbaa !42
  %269 = load ptr, ptr %8, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.ve_setup_data_template, ptr %269, i32 0, i32 12
  %271 = load ptr, ptr %270, align 8, !tbaa !45
  call void @vorbis_encode_tonemask_setup(ptr noundef %257, double noundef %262, i32 noundef 3, ptr noundef %265, ptr noundef %268, ptr noundef %271)
  br label %272

272:                                              ; preds = %241, %206
  %273 = load ptr, ptr %3, align 8, !tbaa !5
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %274, i32 0, i32 22
  %276 = load i32, ptr %5, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %275, i64 0, i64 %277
  %279 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %278, i32 0, i32 3
  %280 = load double, ptr %279, align 8, !tbaa !46
  %281 = load ptr, ptr %8, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.ve_setup_data_template, ptr %281, i32 0, i32 20
  %283 = load ptr, ptr %282, align 8, !tbaa !47
  %284 = load ptr, ptr %8, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.ve_setup_data_template, ptr %284, i32 0, i32 21
  %286 = load ptr, ptr %285, align 8, !tbaa !48
  call void @vorbis_encode_compand_setup(ptr noundef %273, double noundef %280, i32 noundef 0, ptr noundef %283, ptr noundef %286)
  %287 = load ptr, ptr %3, align 8, !tbaa !5
  %288 = load ptr, ptr %9, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %288, i32 0, i32 22
  %290 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %289, i64 0, i64 1
  %291 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %290, i32 0, i32 3
  %292 = load double, ptr %291, align 8, !tbaa !46
  %293 = load ptr, ptr %8, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.ve_setup_data_template, ptr %293, i32 0, i32 20
  %295 = load ptr, ptr %294, align 8, !tbaa !47
  %296 = load ptr, ptr %8, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.ve_setup_data_template, ptr %296, i32 0, i32 21
  %298 = load ptr, ptr %297, align 8, !tbaa !48
  call void @vorbis_encode_compand_setup(ptr noundef %287, double noundef %292, i32 noundef 1, ptr noundef %295, ptr noundef %298)
  %299 = load i32, ptr %6, align 4, !tbaa !9
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %326, label %301

301:                                              ; preds = %272
  %302 = load ptr, ptr %3, align 8, !tbaa !5
  %303 = load ptr, ptr %9, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %303, i32 0, i32 22
  %305 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %304, i64 0, i64 2
  %306 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %305, i32 0, i32 3
  %307 = load double, ptr %306, align 8, !tbaa !46
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.ve_setup_data_template, ptr %308, i32 0, i32 20
  %310 = load ptr, ptr %309, align 8, !tbaa !47
  %311 = load ptr, ptr %8, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.ve_setup_data_template, ptr %311, i32 0, i32 22
  %313 = load ptr, ptr %312, align 8, !tbaa !49
  call void @vorbis_encode_compand_setup(ptr noundef %302, double noundef %307, i32 noundef 2, ptr noundef %310, ptr noundef %313)
  %314 = load ptr, ptr %3, align 8, !tbaa !5
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %315, i32 0, i32 22
  %317 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %316, i64 0, i64 3
  %318 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %317, i32 0, i32 3
  %319 = load double, ptr %318, align 8, !tbaa !46
  %320 = load ptr, ptr %8, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.ve_setup_data_template, ptr %320, i32 0, i32 20
  %322 = load ptr, ptr %321, align 8, !tbaa !47
  %323 = load ptr, ptr %8, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.ve_setup_data_template, ptr %323, i32 0, i32 22
  %325 = load ptr, ptr %324, align 8, !tbaa !49
  call void @vorbis_encode_compand_setup(ptr noundef %314, double noundef %319, i32 noundef 3, ptr noundef %322, ptr noundef %325)
  br label %326

326:                                              ; preds = %301, %272
  %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 = load i32, ptr %5, align 4, !tbaa !9
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %329, i64 0, i64 %331
  %333 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %332, i32 0, i32 1
  %334 = load double, ptr %333, align 8, !tbaa !50
  %335 = load ptr, ptr %8, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.ve_setup_data_template, ptr %335, i32 0, i32 10
  %337 = load ptr, ptr %336, align 8, !tbaa !51
  call void @vorbis_encode_peak_setup(ptr noundef %327, double noundef %334, i32 noundef 0, ptr noundef %337)
  %338 = load ptr, ptr %3, align 8, !tbaa !5
  %339 = load ptr, ptr %9, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %339, i32 0, i32 22
  %341 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %340, i64 0, i64 1
  %342 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %341, i32 0, i32 1
  %343 = load double, ptr %342, align 8, !tbaa !50
  %344 = load ptr, ptr %8, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.ve_setup_data_template, ptr %344, i32 0, i32 10
  %346 = load ptr, ptr %345, align 8, !tbaa !51
  call void @vorbis_encode_peak_setup(ptr noundef %338, double noundef %343, i32 noundef 1, ptr noundef %346)
  %347 = load i32, ptr %6, align 4, !tbaa !9
  %348 = icmp ne i32 %347, 0
  br i1 %348, label %368, label %349

349:                                              ; preds = %326
  %350 = load ptr, ptr %3, align 8, !tbaa !5
  %351 = load ptr, ptr %9, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %351, i32 0, i32 22
  %353 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %352, i64 0, i64 2
  %354 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %353, i32 0, i32 1
  %355 = load double, ptr %354, align 8, !tbaa !50
  %356 = load ptr, ptr %8, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.ve_setup_data_template, ptr %356, i32 0, i32 10
  %358 = load ptr, ptr %357, align 8, !tbaa !51
  call void @vorbis_encode_peak_setup(ptr noundef %350, double noundef %355, i32 noundef 2, ptr noundef %358)
  %359 = load ptr, ptr %3, align 8, !tbaa !5
  %360 = load ptr, ptr %9, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %360, i32 0, i32 22
  %362 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %361, i64 0, i64 3
  %363 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %362, i32 0, i32 1
  %364 = load double, ptr %363, align 8, !tbaa !50
  %365 = load ptr, ptr %8, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.ve_setup_data_template, ptr %365, i32 0, i32 10
  %367 = load ptr, ptr %366, align 8, !tbaa !51
  call void @vorbis_encode_peak_setup(ptr noundef %359, double noundef %364, i32 noundef 3, ptr noundef %367)
  br label %368

368:                                              ; preds = %349, %326
  %369 = load ptr, ptr %3, align 8, !tbaa !5
  %370 = load ptr, ptr %9, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %370, i32 0, i32 22
  %372 = load i32, ptr %5, align 4, !tbaa !9
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %371, i64 0, i64 %373
  %375 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %374, i32 0, i32 2
  %376 = load double, ptr %375, align 8, !tbaa !52
  %377 = load ptr, ptr %8, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.ve_setup_data_template, ptr %377, i32 0, i32 19
  %379 = load ptr, ptr %378, align 8, !tbaa !53
  %380 = load ptr, ptr %8, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.ve_setup_data_template, ptr %380, i32 0, i32 15
  %382 = load ptr, ptr %381, align 8, !tbaa !54
  %383 = load ptr, ptr %8, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.ve_setup_data_template, ptr %383, i32 0, i32 14
  %385 = load ptr, ptr %384, align 8, !tbaa !55
  %386 = load i32, ptr %5, align 4, !tbaa !9
  %387 = icmp eq i32 %386, 0
  br i1 %387, label %388, label %392

388:                                              ; preds = %368
  %389 = load ptr, ptr %9, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %389, i32 0, i32 3
  %391 = load double, ptr %390, align 8, !tbaa !56
  br label %393

392:                                              ; preds = %368
  br label %393

393:                                              ; preds = %392, %388
  %394 = phi double [ %391, %388 ], [ 0.000000e+00, %392 ]
  call void @vorbis_encode_noisebias_setup(ptr noundef %369, double noundef %376, i32 noundef 0, ptr noundef %379, ptr noundef %382, ptr noundef %385, double noundef %394)
  %395 = load ptr, ptr %3, align 8, !tbaa !5
  %396 = load ptr, ptr %9, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %396, i32 0, i32 22
  %398 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %397, i64 0, i64 1
  %399 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %398, i32 0, i32 2
  %400 = load double, ptr %399, align 8, !tbaa !52
  %401 = load ptr, ptr %8, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.ve_setup_data_template, ptr %401, i32 0, i32 19
  %403 = load ptr, ptr %402, align 8, !tbaa !53
  %404 = load ptr, ptr %8, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.ve_setup_data_template, ptr %404, i32 0, i32 16
  %406 = load ptr, ptr %405, align 8, !tbaa !57
  %407 = load ptr, ptr %8, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.ve_setup_data_template, ptr %407, i32 0, i32 14
  %409 = load ptr, ptr %408, align 8, !tbaa !55
  call void @vorbis_encode_noisebias_setup(ptr noundef %395, double noundef %400, i32 noundef 1, ptr noundef %403, ptr noundef %406, ptr noundef %409, double noundef 0.000000e+00)
  %410 = load i32, ptr %6, align 4, !tbaa !9
  %411 = icmp ne i32 %410, 0
  br i1 %411, label %443, label %412

412:                                              ; preds = %393
  %413 = load ptr, ptr %3, align 8, !tbaa !5
  %414 = load ptr, ptr %9, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %414, i32 0, i32 22
  %416 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %415, i64 0, i64 2
  %417 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %416, i32 0, i32 2
  %418 = load double, ptr %417, align 8, !tbaa !52
  %419 = load ptr, ptr %8, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.ve_setup_data_template, ptr %419, i32 0, i32 19
  %421 = load ptr, ptr %420, align 8, !tbaa !53
  %422 = load ptr, ptr %8, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.ve_setup_data_template, ptr %422, i32 0, i32 17
  %424 = load ptr, ptr %423, align 8, !tbaa !58
  %425 = load ptr, ptr %8, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.ve_setup_data_template, ptr %425, i32 0, i32 14
  %427 = load ptr, ptr %426, align 8, !tbaa !55
  call void @vorbis_encode_noisebias_setup(ptr noundef %413, double noundef %418, i32 noundef 2, ptr noundef %421, ptr noundef %424, ptr noundef %427, double noundef 0.000000e+00)
  %428 = load ptr, ptr %3, align 8, !tbaa !5
  %429 = load ptr, ptr %9, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %429, i32 0, i32 22
  %431 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %430, i64 0, i64 3
  %432 = getelementptr inbounds %struct.highlevel_byblocktype, ptr %431, i32 0, i32 2
  %433 = load double, ptr %432, align 8, !tbaa !52
  %434 = load ptr, ptr %8, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.ve_setup_data_template, ptr %434, i32 0, i32 19
  %436 = load ptr, ptr %435, align 8, !tbaa !53
  %437 = load ptr, ptr %8, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.ve_setup_data_template, ptr %437, i32 0, i32 18
  %439 = load ptr, ptr %438, align 8, !tbaa !59
  %440 = load ptr, ptr %8, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.ve_setup_data_template, ptr %440, i32 0, i32 14
  %442 = load ptr, ptr %441, align 8, !tbaa !55
  call void @vorbis_encode_noisebias_setup(ptr noundef %428, double noundef %433, i32 noundef 3, ptr noundef %436, ptr noundef %439, ptr noundef %442, double noundef 0.000000e+00)
  br label %443

443:                                              ; preds = %412, %393
  %444 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vorbis_encode_ath_setup(ptr noundef %444, i32 noundef 0)
  %445 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vorbis_encode_ath_setup(ptr noundef %445, i32 noundef 1)
  %446 = load i32, ptr %6, align 4, !tbaa !9
  %447 = icmp ne i32 %446, 0
  br i1 %447, label %451, label %448

448:                                              ; preds = %443
  %449 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vorbis_encode_ath_setup(ptr noundef %449, i32 noundef 2)
  %450 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vorbis_encode_ath_setup(ptr noundef %450, i32 noundef 3)
  br label %451

451:                                              ; preds = %448, %443
  %452 = load ptr, ptr %3, align 8, !tbaa !5
  %453 = load ptr, ptr %9, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %453, i32 0, i32 2
  %455 = load double, ptr %454, align 8, !tbaa !23
  %456 = load ptr, ptr %8, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.ve_setup_data_template, ptr %456, i32 0, i32 36
  %458 = load ptr, ptr %457, align 8, !tbaa !60
  call void @vorbis_encode_map_n_res_setup(ptr noundef %452, double noundef %455, ptr noundef %458)
  %459 = load ptr, ptr %9, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %459, i32 0, i32 7
  %461 = load i64, ptr %460, align 8, !tbaa !61
  %462 = icmp sgt i64 %461, 0
  br i1 %462, label %463, label %469

463:                                              ; preds = %451
  %464 = load ptr, ptr %9, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %464, i32 0, i32 7
  %466 = load i64, ptr %465, align 8, !tbaa !61
  %467 = load ptr, ptr %3, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.vorbis_info, ptr %467, i32 0, i32 4
  store i64 %466, ptr %468, align 8, !tbaa !62
  br label %475

469:                                              ; preds = %451
  %470 = load ptr, ptr %3, align 8, !tbaa !5
  %471 = call double @setting_to_approx_bitrate(ptr noundef %470)
  %472 = fptosi double %471 to i64
  %473 = load ptr, ptr %3, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.vorbis_info, ptr %473, i32 0, i32 4
  store i64 %472, ptr %474, align 8, !tbaa !62
  br label %475

475:                                              ; preds = %469, %463
  %476 = load ptr, ptr %9, align 8, !tbaa !5
  %477 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %476, i32 0, i32 6
  %478 = load i64, ptr %477, align 8, !tbaa !63
  %479 = load ptr, ptr %3, align 8, !tbaa !5
  %480 = getelementptr inbounds %struct.vorbis_info, ptr %479, i32 0, i32 5
  store i64 %478, ptr %480, align 8, !tbaa !64
  %481 = load ptr, ptr %9, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %481, i32 0, i32 9
  %483 = load i64, ptr %482, align 8, !tbaa !65
  %484 = load ptr, ptr %3, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct.vorbis_info, ptr %484, i32 0, i32 3
  store i64 %483, ptr %485, align 8, !tbaa !66
  %486 = load ptr, ptr %9, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %486, i32 0, i32 7
  %488 = load i64, ptr %487, align 8, !tbaa !61
  %489 = icmp ne i64 %488, 0
  br i1 %489, label %490, label %503

490:                                              ; preds = %475
  %491 = load ptr, ptr %9, align 8, !tbaa !5
  %492 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %491, i32 0, i32 10
  %493 = load i64, ptr %492, align 8, !tbaa !67
  %494 = sitofp i64 %493 to double
  %495 = load ptr, ptr %9, align 8, !tbaa !5
  %496 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %495, i32 0, i32 7
  %497 = load i64, ptr %496, align 8, !tbaa !61
  %498 = sitofp i64 %497 to double
  %499 = fdiv double %494, %498
  %500 = fptosi double %499 to i64
  %501 = load ptr, ptr %3, align 8, !tbaa !5
  %502 = getelementptr inbounds %struct.vorbis_info, ptr %501, i32 0, i32 6
  store i64 %500, ptr %502, align 8, !tbaa !68
  br label %506

503:                                              ; preds = %475
  %504 = load ptr, ptr %3, align 8, !tbaa !5
  %505 = getelementptr inbounds %struct.vorbis_info, ptr %504, i32 0, i32 6
  store i64 0, ptr %505, align 8, !tbaa !68
  br label %506

506:                                              ; preds = %503, %490
  %507 = load ptr, ptr %9, align 8, !tbaa !5
  %508 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %507, i32 0, i32 5
  %509 = load i32, ptr %508, align 4, !tbaa !69
  %510 = icmp ne i32 %509, 0
  br i1 %510, label %511, label %548

511:                                              ; preds = %506
  %512 = load ptr, ptr %9, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %512, i32 0, i32 7
  %514 = load i64, ptr %513, align 8, !tbaa !61
  %515 = load ptr, ptr %7, align 8, !tbaa !5
  %516 = getelementptr inbounds %struct.codec_setup_info, ptr %515, i32 0, i32 18
  %517 = getelementptr inbounds %struct.bitrate_manager_info, ptr %516, i32 0, i32 0
  store i64 %514, ptr %517, align 8, !tbaa !70
  %518 = load ptr, ptr %9, align 8, !tbaa !5
  %519 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %518, i32 0, i32 6
  %520 = load i64, ptr %519, align 8, !tbaa !63
  %521 = load ptr, ptr %7, align 8, !tbaa !5
  %522 = getelementptr inbounds %struct.codec_setup_info, ptr %521, i32 0, i32 18
  %523 = getelementptr inbounds %struct.bitrate_manager_info, ptr %522, i32 0, i32 1
  store i64 %520, ptr %523, align 8, !tbaa !74
  %524 = load ptr, ptr %9, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %524, i32 0, i32 9
  %526 = load i64, ptr %525, align 8, !tbaa !65
  %527 = load ptr, ptr %7, align 8, !tbaa !5
  %528 = getelementptr inbounds %struct.codec_setup_info, ptr %527, i32 0, i32 18
  %529 = getelementptr inbounds %struct.bitrate_manager_info, ptr %528, i32 0, i32 2
  store i64 %526, ptr %529, align 8, !tbaa !75
  %530 = load ptr, ptr %9, align 8, !tbaa !5
  %531 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %530, i32 0, i32 10
  %532 = load i64, ptr %531, align 8, !tbaa !67
  %533 = load ptr, ptr %7, align 8, !tbaa !5
  %534 = getelementptr inbounds %struct.codec_setup_info, ptr %533, i32 0, i32 18
  %535 = getelementptr inbounds %struct.bitrate_manager_info, ptr %534, i32 0, i32 3
  store i64 %532, ptr %535, align 8, !tbaa !76
  %536 = load ptr, ptr %9, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %536, i32 0, i32 11
  %538 = load double, ptr %537, align 8, !tbaa !77
  %539 = load ptr, ptr %7, align 8, !tbaa !5
  %540 = getelementptr inbounds %struct.codec_setup_info, ptr %539, i32 0, i32 18
  %541 = getelementptr inbounds %struct.bitrate_manager_info, ptr %540, i32 0, i32 4
  store double %538, ptr %541, align 8, !tbaa !78
  %542 = load ptr, ptr %9, align 8, !tbaa !5
  %543 = getelementptr inbounds %struct.highlevel_encode_setup, ptr %542, i32 0, i32 8
  %544 = load double, ptr %543, align 8, !tbaa !79
  %545 = load ptr, ptr %7, align 8, !tbaa !5
  %546 = getelementptr inbounds %struct.codec_setup_info, ptr %545, i32 0, i32 18
  %547 = getelementptr inbounds %struct.bitrate_manager_info, ptr %546, i32 0, i32 5
  store double %544, ptr %547, align 8, !tbaa !80
  br label %548

548:                                              ; preds = %511, %506
  store i32 0, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %549

549:                                              ; preds = %548, %74, %29, %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
  %550 = load i32, ptr %2, align 4
  ret i32 %550
}

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

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !12
  %9 = add i32 %8, -256
  %or.cond = icmp ult i32 %9, -255
  br i1 %or.cond, label %224, label %10

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

16:                                               ; preds = %10
  %17 = fcmp olt double %14, -2.000000e+02
  br i1 %17, label %.sink.split, label %18

.sink.split:                                      ; preds = %16, %10
  %.sink188 = phi double [ -8.000000e+01, %10 ], [ -2.000000e+02, %16 ]
  store double %.sink188, ptr %13, align 8, !tbaa !17
  br label %18

18:                                               ; preds = %.sink.split, %16
  %19 = getelementptr inbounds i8, ptr %3, i64 5632
  %20 = load double, ptr %19, align 8, !tbaa !18
  %21 = fcmp ogt double %20, 0.000000e+00
  br i1 %21, label %.sink.split189, label %22

22:                                               ; preds = %18
  %23 = fcmp olt double %20, -9.999900e+04
  br i1 %23, label %.sink.split189, label %24

.sink.split189:                                   ; preds = %22, %18
  %.sink190 = phi double [ 0.000000e+00, %18 ], [ -9.999900e+04, %22 ]
  store double %.sink190, ptr %19, align 8, !tbaa !18
  br label %24

24:                                               ; preds = %.sink.split189, %22
  %25 = getelementptr inbounds i8, ptr %3, i64 5496
  %26 = load ptr, ptr %25, align 8, !tbaa !19
  %27 = icmp eq ptr %26, null
  br i1 %27, label %224, label %28

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

.lr.ph:                                           ; preds = %28
  %41 = getelementptr inbounds i8, ptr %26, i64 272
  %42 = getelementptr inbounds i8, ptr %26, i64 280
  %43 = getelementptr inbounds i8, ptr %26, i64 296
  br label %44

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

._crit_edge:                                      ; preds = %44, %28
  %55 = getelementptr inbounds i8, ptr %3, i64 5640
  %56 = load double, ptr %55, align 8, !tbaa !33
  %57 = getelementptr inbounds i8, ptr %26, i64 248
  %58 = load ptr, ptr %57, align 8, !tbaa !34
  %59 = getelementptr inbounds i8, ptr %26, i64 256
  %60 = load ptr, ptr %59, align 8, !tbaa !35
  tail call void @vorbis_encode_global_psych_setup(ptr noundef %0, double noundef %56, ptr noundef %58, ptr noundef %60)
  %61 = getelementptr inbounds i8, ptr %26, i64 264
  %62 = load ptr, ptr %61, align 8, !tbaa !36
  tail call void @vorbis_encode_global_stereo(ptr noundef %0, ptr noundef nonnull %4, ptr noundef %62)
  %63 = load double, ptr %29, align 8, !tbaa !21
  %64 = getelementptr inbounds i8, ptr %26, i64 184
  %65 = load ptr, ptr %64, align 8, !tbaa !30
  %66 = getelementptr inbounds i8, ptr %26, i64 200
  %67 = load ptr, ptr %66, align 8, !tbaa !30
  %68 = getelementptr inbounds i8, ptr %26, i64 216
  %69 = load ptr, ptr %68, align 8, !tbaa !37
  tail call void @vorbis_encode_psyset_setup(ptr noundef %0, double noundef %63, ptr noundef %65, ptr noundef %67, ptr noundef %69, i32 noundef 0)
  %70 = load double, ptr %29, align 8, !tbaa !21
  %71 = load ptr, ptr %64, align 8, !tbaa !30
  %72 = load ptr, ptr %66, align 8, !tbaa !30
  %73 = load ptr, ptr %68, align 8, !tbaa !37
  tail call void @vorbis_encode_psyset_setup(ptr noundef %0, double noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, i32 noundef 1)
  br i1 %.not182, label %85, label %74

74:                                               ; preds = %._crit_edge
  %75 = load double, ptr %29, align 8, !tbaa !21
  %76 = getelementptr inbounds i8, ptr %26, i64 192
  %77 = load ptr, ptr %76, align 8, !tbaa !30
  %78 = getelementptr inbounds i8, ptr %26, i64 208
  %79 = load ptr, ptr %78, align 8, !tbaa !30
  %80 = load ptr, ptr %68, align 8, !tbaa !37
  tail call void @vorbis_encode_psyset_setup(ptr noundef %0, double noundef %75, ptr noundef %77, ptr noundef %79, ptr noundef %80, i32 noundef 2)
  %81 = load double, ptr %29, align 8, !tbaa !21
  %82 = load ptr, ptr %76, align 8, !tbaa !30
  %83 = load ptr, ptr %78, align 8, !tbaa !30
  %84 = load ptr, ptr %68, align 8, !tbaa !37
  tail call void @vorbis_encode_psyset_setup(ptr noundef %0, double noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, i32 noundef 3)
  br label %85

85:                                               ; preds = %74, %._crit_edge
  %86 = getelementptr inbounds i8, ptr %3, i64 5648
  %87 = getelementptr inbounds [4 x %struct.highlevel_byblocktype], ptr %86, i64 0, i64 %spec.select
  %88 = load double, ptr %87, align 8, !tbaa !38
  %89 = getelementptr inbounds i8, ptr %26, i64 64
  %90 = load ptr, ptr %89, align 8, !tbaa !40
  %91 = getelementptr inbounds i8, ptr %26, i64 72
  %92 = load ptr, ptr %91, align 8, !tbaa !41
  %93 = getelementptr inbounds i8, ptr %26, i64 88
  %94 = load ptr, ptr %93, align 8, !tbaa !42
  tail call void @vorbis_encode_tonemask_setup(ptr noundef %0, double noundef %88, i32 noundef 0, ptr noundef %90, ptr noundef %92, ptr noundef %94)
  %95 = getelementptr inbounds i8, ptr %3, i64 5680
  %96 = load double, ptr %95, align 8, !tbaa !38
  %97 = load ptr, ptr %89, align 8, !tbaa !40
  %98 = load ptr, ptr %91, align 8, !tbaa !41
  %99 = getelementptr inbounds i8, ptr %26, i64 104
  %100 = load ptr, ptr %99, align 8, !tbaa !43
  tail call void @vorbis_encode_tonemask_setup(ptr noundef %0, double noundef %96, i32 noundef 1, ptr noundef %97, ptr noundef %98, ptr noundef %100)
  br i1 %.not182, label %113, label %101

101:                                              ; preds = %85
  %102 = getelementptr inbounds i8, ptr %3, i64 5712
  %103 = load double, ptr %102, align 8, !tbaa !38
  %104 = load ptr, ptr %89, align 8, !tbaa !40
  %105 = load ptr, ptr %91, align 8, !tbaa !41
  %106 = load ptr, ptr %99, align 8, !tbaa !43
  tail call void @vorbis_encode_tonemask_setup(ptr noundef %0, double noundef %103, i32 noundef 2, ptr noundef %104, ptr noundef %105, ptr noundef %106)
  %107 = getelementptr inbounds i8, ptr %3, i64 5744
  %108 = load double, ptr %107, align 8, !tbaa !38
  %109 = load ptr, ptr %89, align 8, !tbaa !40
  %110 = load ptr, ptr %91, align 8, !tbaa !41
  %111 = getelementptr inbounds i8, ptr %26, i64 96
  %112 = load ptr, ptr %111, align 8, !tbaa !44
  tail call void @vorbis_encode_tonemask_setup(ptr noundef %0, double noundef %108, i32 noundef 3, ptr noundef %109, ptr noundef %110, ptr noundef %112)
  br label %113

113:                                              ; preds = %101, %85
  %114 = getelementptr inbounds i8, ptr %87, i64 24
  %115 = load double, ptr %114, align 8, !tbaa !45
  %116 = getelementptr inbounds i8, ptr %26, i64 160
  %117 = load ptr, ptr %116, align 8, !tbaa !46
  %118 = getelementptr inbounds i8, ptr %26, i64 168
  %119 = load ptr, ptr %118, align 8, !tbaa !47
  tail call void @vorbis_encode_compand_setup(ptr noundef %0, double noundef %115, i32 noundef 0, ptr noundef %117, ptr noundef %119)
  %120 = getelementptr inbounds i8, ptr %3, i64 5704
  %121 = load double, ptr %120, align 8, !tbaa !45
  %122 = load ptr, ptr %116, align 8, !tbaa !46
  %123 = load ptr, ptr %118, align 8, !tbaa !47
  tail call void @vorbis_encode_compand_setup(ptr noundef %0, double noundef %121, i32 noundef 1, ptr noundef %122, ptr noundef %123)
  br i1 %.not182, label %134, label %124

124:                                              ; preds = %113
  %125 = getelementptr inbounds i8, ptr %3, i64 5736
  %126 = load double, ptr %125, align 8, !tbaa !45
  %127 = load ptr, ptr %116, align 8, !tbaa !46
  %128 = getelementptr inbounds i8, ptr %26, i64 176
  %129 = load ptr, ptr %128, align 8, !tbaa !48
  tail call void @vorbis_encode_compand_setup(ptr noundef %0, double noundef %126, i32 noundef 2, ptr noundef %127, ptr noundef %129)
  %130 = getelementptr inbounds i8, ptr %3, i64 5768
  %131 = load double, ptr %130, align 8, !tbaa !45
  %132 = load ptr, ptr %116, align 8, !tbaa !46
  %133 = load ptr, ptr %128, align 8, !tbaa !48
  tail call void @vorbis_encode_compand_setup(ptr noundef %0, double noundef %131, i32 noundef 3, ptr noundef %132, ptr noundef %133)
  br label %134

134:                                              ; preds = %124, %113
  %135 = getelementptr inbounds i8, ptr %87, i64 8
  %136 = load double, ptr %135, align 8, !tbaa !49
  %137 = getelementptr inbounds i8, ptr %26, i64 80
  %138 = load ptr, ptr %137, align 8, !tbaa !50
  tail call void @vorbis_encode_peak_setup(ptr noundef %0, double noundef %136, i32 noundef 0, ptr noundef %138)
  %139 = getelementptr inbounds i8, ptr %3, i64 5688
  %140 = load double, ptr %139, align 8, !tbaa !49
  %141 = load ptr, ptr %137, align 8, !tbaa !50
  tail call void @vorbis_encode_peak_setup(ptr noundef %0, double noundef %140, i32 noundef 1, ptr noundef %141)
  br i1 %.not182, label %149, label %142

142:                                              ; preds = %134
  %143 = getelementptr inbounds i8, ptr %3, i64 5720
  %144 = load double, ptr %143, align 8, !tbaa !49
  %145 = load ptr, ptr %137, align 8, !tbaa !50
  tail call void @vorbis_encode_peak_setup(ptr noundef %0, double noundef %144, i32 noundef 2, ptr noundef %145)
  %146 = getelementptr inbounds i8, ptr %3, i64 5752
  %147 = load double, ptr %146, align 8, !tbaa !49
  %148 = load ptr, ptr %137, align 8, !tbaa !50
  tail call void @vorbis_encode_peak_setup(ptr noundef %0, double noundef %147, i32 noundef 3, ptr noundef %148)
  br label %149

149:                                              ; preds = %142, %134
  %150 = getelementptr inbounds i8, ptr %87, i64 16
  %151 = load double, ptr %150, align 8, !tbaa !51
  %152 = getelementptr inbounds i8, ptr %26, i64 152
  %153 = load ptr, ptr %152, align 8, !tbaa !52
  %154 = getelementptr inbounds i8, ptr %26, i64 120
  %155 = load ptr, ptr %154, align 8, !tbaa !53
  %156 = getelementptr inbounds i8, ptr %26, i64 112
  %157 = load ptr, ptr %156, align 8, !tbaa !54
  br i1 %.not.not, label %161, label %158

158:                                              ; preds = %149
  %159 = getelementptr inbounds i8, ptr %3, i64 5512
  %160 = load double, ptr %159, align 8, !tbaa !55
  br label %161

161:                                              ; preds = %149, %158
  %162 = phi double [ %160, %158 ], [ 0.000000e+00, %149 ]
  tail call void @vorbis_encode_noisebias_setup(ptr noundef %0, double noundef %151, i32 noundef 0, ptr noundef %153, ptr noundef %155, ptr noundef %157, double noundef %162)
  %163 = getelementptr inbounds i8, ptr %3, i64 5696
  %164 = load double, ptr %163, align 8, !tbaa !51
  %165 = load ptr, ptr %152, align 8, !tbaa !52
  %166 = getelementptr inbounds i8, ptr %26, i64 128
  %167 = load ptr, ptr %166, align 8, !tbaa !56
  %168 = load ptr, ptr %156, align 8, !tbaa !54
  tail call void @vorbis_encode_noisebias_setup(ptr noundef %0, double noundef %164, i32 noundef 1, ptr noundef %165, ptr noundef %167, ptr noundef %168, double noundef 0.000000e+00)
  br i1 %.not182, label %.critedge, label %169

169:                                              ; preds = %161
  %170 = getelementptr inbounds i8, ptr %3, i64 5728
  %171 = load double, ptr %170, align 8, !tbaa !51
  %172 = load ptr, ptr %152, align 8, !tbaa !52
  %173 = getelementptr inbounds i8, ptr %26, i64 136
  %174 = load ptr, ptr %173, align 8, !tbaa !57
  %175 = load ptr, ptr %156, align 8, !tbaa !54
  tail call void @vorbis_encode_noisebias_setup(ptr noundef %0, double noundef %171, i32 noundef 2, ptr noundef %172, ptr noundef %174, ptr noundef %175, double noundef 0.000000e+00)
  %176 = getelementptr inbounds i8, ptr %3, i64 5760
  %177 = load double, ptr %176, align 8, !tbaa !51
  %178 = load ptr, ptr %152, align 8, !tbaa !52
  %179 = getelementptr inbounds i8, ptr %26, i64 144
  %180 = load ptr, ptr %179, align 8, !tbaa !58
  %181 = load ptr, ptr %156, align 8, !tbaa !54
  tail call void @vorbis_encode_noisebias_setup(ptr noundef %0, double noundef %177, i32 noundef 3, ptr noundef %178, ptr noundef %180, ptr noundef %181, 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 = %161, %169
  %.sink192 = phi i32 [ 2, %169 ], [ 0, %161 ]
  %.sink191 = phi i32 [ 3, %169 ], [ 1, %161 ]
  tail call void @vorbis_encode_ath_setup(ptr noundef %0, i32 noundef %.sink192)
  tail call void @vorbis_encode_ath_setup(ptr noundef %0, i32 noundef %.sink191)
  %182 = load double, ptr %29, align 8, !tbaa !21
  %183 = getelementptr inbounds i8, ptr %26, i64 304
  %184 = load ptr, ptr %183, align 8, !tbaa !59
  tail call void @vorbis_encode_map_n_res_setup(ptr noundef %0, double noundef %182, ptr noundef %184)
  %185 = getelementptr inbounds i8, ptr %3, i64 5536
  %186 = load i64, ptr %185, align 8, !tbaa !60
  %187 = icmp sgt i64 %186, 0
  br i1 %187, label %191, label %188

188:                                              ; preds = %.critedge
  %189 = tail call double @setting_to_approx_bitrate(ptr noundef %0)
  %190 = fptosi double %189 to i64
  br label %191

191:                                              ; preds = %.critedge, %188
  %.sink = phi i64 [ %190, %188 ], [ %186, %.critedge ]
  %192 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %.sink, ptr %192, align 8
  %193 = getelementptr inbounds i8, ptr %3, i64 5528
  %194 = load i64, ptr %193, align 8, !tbaa !61
  %195 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %194, ptr %195, align 8, !tbaa !62
  %196 = getelementptr inbounds i8, ptr %3, i64 5552
  %197 = load i64, ptr %196, align 8, !tbaa !63
  %198 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %197, ptr %198, align 8, !tbaa !64
  %199 = load i64, ptr %185, align 8, !tbaa !60
  %.not = icmp eq i64 %199, 0
  br i1 %.not, label %207, label %200

200:                                              ; preds = %191
  %201 = getelementptr inbounds i8, ptr %3, i64 5560
  %202 = load i64, ptr %201, align 8, !tbaa !65
  %203 = sitofp i64 %202 to double
  %204 = sitofp i64 %199 to double
  %205 = fdiv double %203, %204
  %206 = fptosi double %205 to i64
  br label %207

207:                                              ; preds = %191, %200
  %.sink187 = phi i64 [ %206, %200 ], [ 0, %191 ]
  %208 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 %.sink187, ptr %208, align 8
  %209 = getelementptr inbounds i8, ptr %3, i64 5524
  %210 = load i32, ptr %209, align 4, !tbaa !66
  %.not183 = icmp eq i32 %210, 0
  br i1 %.not183, label %224, label %211

211:                                              ; preds = %207
  %212 = getelementptr inbounds i8, ptr %3, i64 5440
  store i64 %199, ptr %212, align 8, !tbaa !67
  %213 = getelementptr inbounds i8, ptr %3, i64 5448
  store i64 %194, ptr %213, align 8, !tbaa !71
  %214 = getelementptr inbounds i8, ptr %3, i64 5456
  store i64 %197, ptr %214, align 8, !tbaa !72
  %215 = getelementptr inbounds i8, ptr %3, i64 5560
  %216 = load i64, ptr %215, align 8, !tbaa !65
  %217 = getelementptr inbounds i8, ptr %3, i64 5464
  store i64 %216, ptr %217, align 8, !tbaa !73
  %218 = getelementptr inbounds i8, ptr %3, i64 5568
  %219 = load double, ptr %218, align 8, !tbaa !74
  %220 = getelementptr inbounds i8, ptr %3, i64 5472
  store double %219, ptr %220, align 8, !tbaa !75
  %221 = getelementptr inbounds i8, ptr %3, i64 5544
  %222 = load double, ptr %221, align 8, !tbaa !76
  %223 = getelementptr inbounds i8, ptr %3, i64 5480
  store double %222, ptr %223, align 8, !tbaa !77
  br label %224

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


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