; LLVM IR from ejoy/ejoy2d :: lua (ldo)

; 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.lua_State = type { ptr, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.CallInfo, ptr, i64, i32, i32, i32, i16, i16, i8, i8 }
%struct.CallInfo = type { ptr, ptr, ptr, ptr, %union.anon, i64, i16, i8 }
%union.anon = type { %struct.anon.0 }
%struct.anon.0 = type { ptr, i64, i64 }
%struct.lua_TValue = type { %union.Value, i32 }
%union.Value = type { ptr }
%struct.CClosure = type { ptr, i8, i8, i8, ptr, ptr, [1 x %struct.lua_TValue] }
%struct.global_State = type { ptr, ptr, i64, i64, i64, i64, %struct.stringtable, %struct.lua_TValue, i32, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Mbuffer, i32, i32, i32, ptr, ptr, ptr, ptr, [24 x ptr], [9 x ptr] }
%struct.stringtable = type { ptr, i32, i32 }
%struct.Mbuffer = type { ptr, i64, i64 }
%struct.LClosure = type { ptr, i8, i8, i8, ptr, ptr, [1 x ptr] }
%struct.Proto = type { ptr, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.anon = type { ptr, ptr }

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

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

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

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

; Function Attrs: nounwind uwtable
define hidden i32 @luaD_precall(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.lua_State, ptr %16, i32 0, i32 9
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = ptrtoint ptr %15 to i64
  %20 = ptrtoint ptr %18 to i64
  %21 = sub i64 %19, %20
  store i64 %21, ptr %11, align 8, !tbaa !16
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.lua_TValue, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !17
  %25 = and i32 %24, 63
  switch i32 %25, label %270 [
    i32 22, label %26
    i32 38, label %30
    i32 6, label %120
  ]

26:                                               ; preds = %3
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.lua_TValue, ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !19
  store ptr %29, ptr %8, align 8, !tbaa !5
  br label %36

30:                                               ; preds = %3
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.lua_TValue, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = getelementptr inbounds %struct.CClosure, ptr %33, i32 0, i32 5
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  store ptr %35, ptr %8, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %30, %26
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.lua_State, ptr %37, i32 0, i32 8
  %39 = load ptr, ptr %38, align 8, !tbaa !20
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.lua_State, ptr %40, i32 0, i32 4
  %42 = load ptr, ptr %41, align 8, !tbaa !21
  %43 = ptrtoint ptr %39 to i64
  %44 = ptrtoint ptr %42 to i64
  %45 = sub i64 %43, %44
  %46 = sdiv exact i64 %45, 16
  %47 = icmp sle i64 %46, 20
  br i1 %47, label %48, label %50

48:                                               ; preds = %36
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  call void @luaD_growstack(ptr noundef %49, i32 noundef 20)
  br label %51

50:                                               ; preds = %36
  br label %51

51:                                               ; preds = %50, %48
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.lua_State, ptr %52, i32 0, i32 6
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = getelementptr inbounds %struct.CallInfo, ptr %54, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !23
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %64

58:                                               ; preds = %51
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.lua_State, ptr %59, i32 0, i32 6
  %61 = load ptr, ptr %60, align 8, !tbaa !22
  %62 = getelementptr inbounds %struct.CallInfo, ptr %61, i32 0, i32 3
  %63 = load ptr, ptr %62, align 8, !tbaa !23
  br label %67

64:                                               ; preds = %51
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = call ptr @luaE_extendCI(ptr noundef %65)
  br label %67

67:                                               ; preds = %64, %58
  %68 = phi ptr [ %63, %58 ], [ %66, %64 ]
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.lua_State, ptr %69, i32 0, i32 6
  store ptr %68, ptr %70, align 8, !tbaa !22
  store ptr %68, ptr %9, align 8, !tbaa !5
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = trunc i32 %71 to i16
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.CallInfo, ptr %73, i32 0, i32 6
  store i16 %72, ptr %74, align 8, !tbaa !24
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.lua_State, ptr %75, i32 0, i32 9
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = load i64, ptr %11, align 8, !tbaa !16
  %79 = getelementptr inbounds i8, ptr %77, i64 %78
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.CallInfo, ptr %80, i32 0, i32 0
  store ptr %79, ptr %81, align 8, !tbaa !25
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.lua_State, ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !21
  %85 = getelementptr inbounds %struct.lua_TValue, ptr %84, i64 20
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.CallInfo, ptr %86, i32 0, i32 1
  store ptr %85, ptr %87, align 8, !tbaa !26
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.CallInfo, ptr %88, i32 0, i32 7
  store i8 0, ptr %89, align 2, !tbaa !27
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.lua_State, ptr %90, i32 0, i32 5
  %92 = load ptr, ptr %91, align 8, !tbaa !28
  %93 = getelementptr inbounds %struct.global_State, ptr %92, i32 0, i32 3
  %94 = load i64, ptr %93, align 8, !tbaa !29
  %95 = icmp sgt i64 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %67
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  call void @luaC_step(ptr noundef %97)
  br label %98

98:                                               ; preds = %96, %67
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.lua_State, ptr %99, i32 0, i32 22
  %101 = load i8, ptr %100, align 8, !tbaa !33
  %102 = zext i8 %101 to i32
  %103 = and i32 %102, 1
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %98
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  call void @luaD_hook(ptr noundef %106, i32 noundef 0, i32 noundef -1)
  br label %107

107:                                              ; preds = %105, %98
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = call i32 %108(ptr noundef %109)
  store i32 %110, ptr %10, align 4, !tbaa !9
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.lua_State, ptr %112, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !21
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = sub i64 0, %116
  %118 = getelementptr inbounds %struct.lua_TValue, ptr %114, i64 %117
  %119 = call i32 @luaD_poscall(ptr noundef %111, ptr noundef %118)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %297

120:                                              ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.lua_TValue, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !19
  %124 = getelementptr inbounds %struct.LClosure, ptr %123, i32 0, i32 5
  %125 = load ptr, ptr %124, align 8, !tbaa !19
  store ptr %125, ptr %14, align 8, !tbaa !5
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.lua_State, ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !21
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = ptrtoint ptr %128 to i64
  %131 = ptrtoint ptr %129 to i64
  %132 = sub i64 %130, %131
  %133 = sdiv exact i64 %132, 16
  %134 = trunc i64 %133 to i32
  %135 = sub nsw i32 %134, 1
  store i32 %135, ptr %10, align 4, !tbaa !9
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.lua_State, ptr %136, i32 0, i32 8
  %138 = load ptr, ptr %137, align 8, !tbaa !20
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.lua_State, ptr %139, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !21
  %142 = ptrtoint ptr %138 to i64
  %143 = ptrtoint ptr %141 to i64
  %144 = sub i64 %142, %143
  %145 = sdiv exact i64 %144, 16
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.Proto, ptr %146, i32 0, i32 5
  %148 = load i8, ptr %147, align 4, !tbaa !34
  %149 = zext i8 %148 to i64
  %150 = icmp sle i64 %145, %149
  br i1 %150, label %151, label %157

151:                                              ; preds = %120
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.Proto, ptr %153, i32 0, i32 5
  %155 = load i8, ptr %154, align 4, !tbaa !34
  %156 = zext i8 %155 to i32
  call void @luaD_growstack(ptr noundef %152, i32 noundef %156)
  br label %158

157:                                              ; preds = %120
  br label %158

158:                                              ; preds = %157, %151
  br label %159

159:                                              ; preds = %172, %158
  %160 = load i32, ptr %10, align 4, !tbaa !9
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.Proto, ptr %161, i32 0, i32 3
  %163 = load i8, ptr %162, align 2, !tbaa !36
  %164 = zext i8 %163 to i32
  %165 = icmp slt i32 %160, %164
  br i1 %165, label %166, label %175

166:                                              ; preds = %159
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.lua_State, ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !21
  %170 = getelementptr inbounds %struct.lua_TValue, ptr %169, i32 1
  store ptr %170, ptr %168, align 8, !tbaa !21
  %171 = getelementptr inbounds %struct.lua_TValue, ptr %169, i32 0, i32 1
  store i32 0, ptr %171, align 8, !tbaa !17
  br label %172

172:                                              ; preds = %166
  %173 = load i32, ptr %10, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %10, align 4, !tbaa !9
  br label %159, !llvm.loop !37

175:                                              ; preds = %159
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.Proto, ptr %176, i32 0, i32 4
  %178 = load i8, ptr %177, align 1, !tbaa !39
  %179 = icmp ne i8 %178, 0
  br i1 %179, label %188, label %180

180:                                              ; preds = %175
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.lua_State, ptr %181, i32 0, i32 9
  %183 = load ptr, ptr %182, align 8, !tbaa !11
  %184 = load i64, ptr %11, align 8, !tbaa !16
  %185 = getelementptr inbounds i8, ptr %183, i64 %184
  store ptr %185, ptr %6, align 8, !tbaa !5
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.lua_TValue, ptr %186, i64 1
  store ptr %187, ptr %13, align 8, !tbaa !5
  br label %198

188:                                              ; preds = %175
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = call ptr @adjust_varargs(ptr noundef %189, ptr noundef %190, i32 noundef %191)
  store ptr %192, ptr %13, align 8, !tbaa !5
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.lua_State, ptr %193, i32 0, i32 9
  %195 = load ptr, ptr %194, align 8, !tbaa !11
  %196 = load i64, ptr %11, align 8, !tbaa !16
  %197 = getelementptr inbounds i8, ptr %195, i64 %196
  store ptr %197, ptr %6, align 8, !tbaa !5
  br label %198

198:                                              ; preds = %188, %180
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.lua_State, ptr %199, i32 0, i32 6
  %201 = load ptr, ptr %200, align 8, !tbaa !22
  %202 = getelementptr inbounds %struct.CallInfo, ptr %201, i32 0, i32 3
  %203 = load ptr, ptr %202, align 8, !tbaa !23
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %211

205:                                              ; preds = %198
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.lua_State, ptr %206, i32 0, i32 6
  %208 = load ptr, ptr %207, align 8, !tbaa !22
  %209 = getelementptr inbounds %struct.CallInfo, ptr %208, i32 0, i32 3
  %210 = load ptr, ptr %209, align 8, !tbaa !23
  br label %214

211:                                              ; preds = %198
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = call ptr @luaE_extendCI(ptr noundef %212)
  br label %214

214:                                              ; preds = %211, %205
  %215 = phi ptr [ %210, %205 ], [ %213, %211 ]
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.lua_State, ptr %216, i32 0, i32 6
  store ptr %215, ptr %217, align 8, !tbaa !22
  store ptr %215, ptr %9, align 8, !tbaa !5
  %218 = load i32, ptr %7, align 4, !tbaa !9
  %219 = trunc i32 %218 to i16
  %220 = load ptr, ptr %9, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.CallInfo, ptr %220, i32 0, i32 6
  store i16 %219, ptr %221, align 8, !tbaa !24
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.CallInfo, ptr %223, i32 0, i32 0
  store ptr %222, ptr %224, align 8, !tbaa !25
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = load ptr, ptr %9, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.CallInfo, ptr %226, i32 0, i32 4
  %228 = getelementptr inbounds %struct.anon, ptr %227, i32 0, i32 0
  store ptr %225, ptr %228, align 8, !tbaa !19
  %229 = load ptr, ptr %13, align 8, !tbaa !5
  %230 = load ptr, ptr %14, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.Proto, ptr %230, i32 0, i32 5
  %232 = load i8, ptr %231, align 4, !tbaa !34
  %233 = zext i8 %232 to i32
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds %struct.lua_TValue, ptr %229, i64 %234
  %236 = load ptr, ptr %9, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.CallInfo, ptr %236, i32 0, i32 1
  store ptr %235, ptr %237, align 8, !tbaa !26
  %238 = load ptr, ptr %14, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.Proto, ptr %238, i32 0, i32 15
  %240 = load ptr, ptr %239, align 8, !tbaa !40
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.CallInfo, ptr %241, i32 0, i32 4
  %243 = getelementptr inbounds %struct.anon, ptr %242, i32 0, i32 1
  store ptr %240, ptr %243, align 8, !tbaa !19
  %244 = load ptr, ptr %9, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.CallInfo, ptr %244, i32 0, i32 7
  store i8 2, ptr %245, align 2, !tbaa !27
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.CallInfo, ptr %246, i32 0, i32 1
  %248 = load ptr, ptr %247, align 8, !tbaa !26
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.lua_State, ptr %249, i32 0, i32 4
  store ptr %248, ptr %250, align 8, !tbaa !21
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.lua_State, ptr %251, i32 0, i32 5
  %253 = load ptr, ptr %252, align 8, !tbaa !28
  %254 = getelementptr inbounds %struct.global_State, ptr %253, i32 0, i32 3
  %255 = load i64, ptr %254, align 8, !tbaa !29
  %256 = icmp sgt i64 %255, 0
  br i1 %256, label %257, label %259

257:                                              ; preds = %214
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  call void @luaC_step(ptr noundef %258)
  br label %259

259:                                              ; preds = %257, %214
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.lua_State, ptr %260, i32 0, i32 22
  %262 = load i8, ptr %261, align 8, !tbaa !33
  %263 = zext i8 %262 to i32
  %264 = and i32 %263, 1
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %269

266:                                              ; preds = %259
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = load ptr, ptr %9, align 8, !tbaa !5
  call void @callhook(ptr noundef %267, ptr noundef %268)
  br label %269

269:                                              ; preds = %266, %259
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %297

270:                                              ; preds = %3
  %271 = load ptr, ptr %5, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.lua_State, ptr %271, i32 0, i32 8
  %273 = load ptr, ptr %272, align 8, !tbaa !20
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.lua_State, ptr %274, i32 0, i32 4
  %276 = load ptr, ptr %275, align 8, !tbaa !21
  %277 = ptrtoint ptr %273 to i64
  %278 = ptrtoint ptr %276 to i64
  %279 = sub i64 %277, %278
  %280 = sdiv exact i64 %279, 16
  %281 = icmp sle i64 %280, 1
  br i1 %281, label %282, label %284

282:                                              ; preds = %270
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  call void @luaD_growstack(ptr noundef %283, i32 noundef 1)
  br label %285

284:                                              ; preds = %270
  br label %285

285:                                              ; preds = %284, %282
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.lua_State, ptr %286, i32 0, i32 9
  %288 = load ptr, ptr %287, align 8, !tbaa !11
  %289 = load i64, ptr %11, align 8, !tbaa !16
  %290 = getelementptr inbounds i8, ptr %288, i64 %289
  store ptr %290, ptr %6, align 8, !tbaa !5
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = load ptr, ptr %6, align 8, !tbaa !5
  call void @tryfuncTM(ptr noundef %291, ptr noundef %292)
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = load i32, ptr %7, align 4, !tbaa !9
  %296 = call i32 @luaD_precall(ptr noundef %293, ptr noundef %294, i32 noundef %295)
  store i32 %296, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %297

297:                                              ; preds = %285, %269, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %298 = load i32, ptr %4, align 4
  ret i32 %298
}

declare hidden ptr @luaE_extendCI(ptr noundef) #2

declare hidden void @luaC_step(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @luaD_poscall(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @adjust_varargs(ptr noundef, ptr noundef, i32 noundef) #1

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 56}
!12 = !{!"lua_State", !6, i64 0, !7, i64 8, !7, i64 9, !7, i64 10, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !13, i64 96, !6, i64 168, !14, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !15, i64 196, !15, i64 198, !7, i64 200, !7, i64 201}
!13 = !{!"CallInfo", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !14, i64 56, !15, i64 64, !7, i64 66}
!14 = !{!"long", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"lua_TValue", !7, i64 0, !10, i64 8}
!19 = !{!7, !7, i64 0}
!20 = !{!12, !6, i64 48}
!21 = !{!12, !6, i64 16}
!22 = !{!12, !6, i64 32}
!23 = !{!13, !6, i64 24}
!24 = !{!13, !15, i64 64}
!25 = !{!13, !6, i64 0}
!26 = !{!13, !6, i64 8}
!27 = !{!13, !7, i64 66}
!28 = !{!12, !6, i64 24}
!29 = !{!30, !14, i64 24}
!30 = !{!"global_State", !6, i64 0, !6, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !31, i64 48, !18, i64 64, !10, i64 80, !7, i64 84, !7, i64 85, !7, i64 86, !7, i64 87, !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, !32, i64 176, !10, i64 200, !10, i64 204, !10, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !7, i64 248, !7, i64 440}
!31 = !{!"stringtable", !6, i64 0, !10, i64 8, !10, i64 12}
!32 = !{!"Mbuffer", !6, i64 0, !14, i64 8, !14, i64 16}
!33 = !{!12, !7, i64 200}
!34 = !{!35, !7, i64 12}
!35 = !{!"Proto", !6, i64 0, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !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}
!36 = !{!35, !7, i64 10}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!35, !7, i64 11}
!40 = !{!35, !6, i64 56}


; 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.lua_TValue = type { %union.Value, i32 }
%union.Value = type { ptr }

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

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

; Function Attrs: nounwind uwtable
define hidden range(i32 0, 2) i32 @luaD_precall(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 56
  %5 = getelementptr inbounds i8, ptr %0, i64 48
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  br label %tailrecurse

tailrecurse:                                      ; preds = %151, %3
  %.tr94 = phi ptr [ %1, %3 ], [ %153, %151 ]
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = ptrtoint ptr %.tr94 to i64
  %9 = ptrtoint ptr %7 to i64
  %10 = sub i64 %8, %9
  %11 = getelementptr inbounds i8, ptr %.tr94, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !14
  %13 = and i32 %12, 63
  switch i32 %13, label %143 [
    i32 22, label %.loopexit
    i32 38, label %14
    i32 6, label %59
  ]

14:                                               ; preds = %tailrecurse
  %15 = load ptr, ptr %.tr94, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %15, i64 24
  br label %.loopexit

.loopexit:                                        ; preds = %tailrecurse, %14
  %.086.in = phi ptr [ %16, %14 ], [ %.tr94, %tailrecurse ]
  %.086 = load ptr, ptr %.086.in, align 8, !tbaa !16
  %17 = load ptr, ptr %5, align 8, !tbaa !17
  %18 = load ptr, ptr %6, align 8, !tbaa !18
  %19 = ptrtoint ptr %17 to i64
  %20 = ptrtoint ptr %18 to i64
  %21 = sub i64 %19, %20
  %22 = icmp slt i64 %21, 336
  br i1 %22, label %23, label %24

23:                                               ; preds = %.loopexit
  tail call void @luaD_growstack(ptr noundef nonnull %0, i32 noundef 20)
  br label %24

24:                                               ; preds = %.loopexit, %23
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = load ptr, ptr %25, align 8, !tbaa !19
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  %28 = load ptr, ptr %27, align 8, !tbaa !20
  %.not92 = icmp eq ptr %28, null
  br i1 %.not92, label %29, label %31

29:                                               ; preds = %24
  %30 = tail call ptr @luaE_extendCI(ptr noundef nonnull %0) #2
  br label %31

31:                                               ; preds = %24, %29
  %32 = phi ptr [ %30, %29 ], [ %28, %24 ]
  store ptr %32, ptr %25, align 8, !tbaa !19
  %33 = trunc i32 %2 to i16
  %34 = getelementptr inbounds i8, ptr %32, i64 64
  store i16 %33, ptr %34, align 8, !tbaa !21
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 %10
  store ptr %36, ptr %32, align 8, !tbaa !22
  %37 = load ptr, ptr %6, align 8, !tbaa !18
  %38 = getelementptr inbounds i8, ptr %37, i64 320
  %39 = getelementptr inbounds i8, ptr %32, i64 8
  store ptr %38, ptr %39, align 8, !tbaa !23
  %40 = getelementptr inbounds i8, ptr %32, i64 66
  store i8 0, ptr %40, align 2, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %0, i64 24
  %42 = load ptr, ptr %41, align 8, !tbaa !25
  %43 = getelementptr inbounds i8, ptr %42, i64 24
  %44 = load i64, ptr %43, align 8, !tbaa !26
  %45 = icmp sgt i64 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %31
  tail call void @luaC_step(ptr noundef nonnull %0) #2
  br label %47

47:                                               ; preds = %46, %31
  %48 = getelementptr inbounds i8, ptr %0, i64 200
  %49 = load i8, ptr %48, align 8, !tbaa !30
  %50 = and i8 %49, 1
  %.not93 = icmp eq i8 %50, 0
  br i1 %.not93, label %52, label %51

51:                                               ; preds = %47
  tail call void @luaD_hook(ptr noundef nonnull %0, i32 noundef 0, i32 noundef -1)
  br label %52

52:                                               ; preds = %51, %47
  %53 = tail call i32 %.086(ptr noundef nonnull %0) #2
  %54 = load ptr, ptr %6, align 8, !tbaa !18
  %55 = sext i32 %53 to i64
  %56 = sub nsw i64 0, %55
  %57 = getelementptr inbounds %struct.lua_TValue, ptr %54, i64 %56
  %58 = tail call i32 @luaD_poscall(ptr noundef nonnull %0, ptr noundef %57)
  br label %154

59:                                               ; preds = %tailrecurse
  %60 = load ptr, ptr %.tr94, align 8, !tbaa !16
  %61 = getelementptr inbounds i8, ptr %60, i64 24
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  %63 = load ptr, ptr %6, align 8, !tbaa !18
  %64 = ptrtoint ptr %63 to i64
  %65 = sub i64 %64, %8
  %66 = lshr i64 %65, 4
  %67 = trunc i64 %66 to i32
  %68 = add nsw i32 %67, -1
  %69 = load ptr, ptr %5, align 8, !tbaa !17
  %70 = ptrtoint ptr %69 to i64
  %71 = sub i64 %70, %64
  %72 = ashr exact i64 %71, 4
  %73 = getelementptr inbounds i8, ptr %62, i64 12
  %74 = load i8, ptr %73, align 4, !tbaa !31
  %75 = zext i8 %74 to i64
  %.not = icmp sgt i64 %72, %75
  br i1 %.not, label %78, label %76

76:                                               ; preds = %59
  %77 = zext i8 %74 to i32
  tail call void @luaD_growstack(ptr noundef nonnull %0, i32 noundef %77)
  br label %78

78:                                               ; preds = %59, %76
  %79 = getelementptr inbounds i8, ptr %62, i64 10
  %80 = load i8, ptr %79, align 2, !tbaa !33
  %81 = zext i8 %80 to i32
  %.not108 = icmp sgt i32 %67, %81
  br i1 %.not108, label %101, label %.lr.ph

.lr.ph:                                           ; preds = %78
  %.promoted = load ptr, ptr %6, align 8, !tbaa !18
  %82 = add nuw nsw i32 %81, 1
  %83 = sub i32 %82, %67
  %84 = sub i32 %81, %67
  %xtraiter = and i32 %83, 7
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph, %.prol.preheader
  %85 = phi ptr [ %86, %.prol.preheader ], [ %.promoted, %.lr.ph ]
  %.085106.prol = phi i32 [ %88, %.prol.preheader ], [ %68, %.lr.ph ]
  %prol.iter = phi i32 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph ]
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %87 = getelementptr inbounds i8, ptr %85, i64 8
  store i32 0, ptr %87, align 8, !tbaa !14
  %88 = add nsw i32 %.085106.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !34

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph
  %.lcssa.unr = phi ptr [ poison, %.lr.ph ], [ %86, %.prol.preheader ]
  %.unr = phi ptr [ %.promoted, %.lr.ph ], [ %86, %.prol.preheader ]
  %.085106.unr = phi i32 [ %68, %.lr.ph ], [ %88, %.prol.preheader ]
  %89 = icmp ult i32 %84, 7
  br i1 %89, label %._crit_edge, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.prol.loopexit, %.lr.ph.new
  %90 = phi ptr [ %98, %.lr.ph.new ], [ %.unr, %.prol.loopexit ]
  %.085106 = phi i32 [ %100, %.lr.ph.new ], [ %.085106.unr, %.prol.loopexit ]
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  store i32 0, ptr %91, align 8, !tbaa !14
  %92 = getelementptr inbounds i8, ptr %90, i64 24
  store i32 0, ptr %92, align 8, !tbaa !14
  %93 = getelementptr inbounds i8, ptr %90, i64 40
  store i32 0, ptr %93, align 8, !tbaa !14
  %94 = getelementptr inbounds i8, ptr %90, i64 56
  store i32 0, ptr %94, align 8, !tbaa !14
  %95 = getelementptr inbounds i8, ptr %90, i64 72
  store i32 0, ptr %95, align 8, !tbaa !14
  %96 = getelementptr inbounds i8, ptr %90, i64 88
  store i32 0, ptr %96, align 8, !tbaa !14
  %97 = getelementptr inbounds i8, ptr %90, i64 104
  store i32 0, ptr %97, align 8, !tbaa !14
  %98 = getelementptr inbounds i8, ptr %90, i64 128
  %99 = getelementptr inbounds i8, ptr %90, i64 120
  store i32 0, ptr %99, align 8, !tbaa !14
  %100 = add nsw i32 %.085106, 8
  %exitcond.not.7 = icmp eq i32 %100, %81
  br i1 %exitcond.not.7, label %._crit_edge, label %.lr.ph.new, !llvm.loop !36

._crit_edge:                                      ; preds = %.lr.ph.new, %.prol.loopexit
  %.lcssa = phi ptr [ %.lcssa.unr, %.prol.loopexit ], [ %98, %.lr.ph.new ]
  store ptr %.lcssa, ptr %6, align 8, !tbaa !18
  br label %101

101:                                              ; preds = %._crit_edge, %78
  %.085.lcssa = phi i32 [ %81, %._crit_edge ], [ %68, %78 ]
  %102 = getelementptr inbounds i8, ptr %62, i64 11
  %103 = load i8, ptr %102, align 1, !tbaa !38
  %.not89 = icmp eq i8 %103, 0
  br i1 %.not89, label %104, label %108

104:                                              ; preds = %101
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 %10
  %107 = getelementptr inbounds i8, ptr %106, i64 16
  br label %112

108:                                              ; preds = %101
  %109 = tail call ptr @adjust_varargs(ptr noundef nonnull %0, ptr noundef nonnull %62, i32 noundef %.085.lcssa)
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 %10
  br label %112

112:                                              ; preds = %108, %104
  %.084 = phi ptr [ %111, %108 ], [ %106, %104 ]
  %.083 = phi ptr [ %109, %108 ], [ %107, %104 ]
  %113 = getelementptr inbounds i8, ptr %0, i64 32
  %114 = load ptr, ptr %113, align 8, !tbaa !19
  %115 = getelementptr inbounds i8, ptr %114, i64 24
  %116 = load ptr, ptr %115, align 8, !tbaa !20
  %.not90 = icmp eq ptr %116, null
  br i1 %.not90, label %117, label %119

117:                                              ; preds = %112
  %118 = tail call ptr @luaE_extendCI(ptr noundef nonnull %0) #2
  br label %119

119:                                              ; preds = %112, %117
  %120 = phi ptr [ %118, %117 ], [ %116, %112 ]
  store ptr %120, ptr %113, align 8, !tbaa !19
  %121 = trunc i32 %2 to i16
  %122 = getelementptr inbounds i8, ptr %120, i64 64
  store i16 %121, ptr %122, align 8, !tbaa !21
  store ptr %.084, ptr %120, align 8, !tbaa !22
  %123 = getelementptr inbounds i8, ptr %120, i64 32
  store ptr %.083, ptr %123, align 8, !tbaa !16
  %124 = load i8, ptr %73, align 4, !tbaa !31
  %125 = zext i8 %124 to i64
  %126 = getelementptr inbounds %struct.lua_TValue, ptr %.083, i64 %125
  %127 = getelementptr inbounds i8, ptr %120, i64 8
  store ptr %126, ptr %127, align 8, !tbaa !23
  %128 = getelementptr inbounds i8, ptr %62, i64 56
  %129 = load ptr, ptr %128, align 8, !tbaa !39
  %130 = getelementptr inbounds i8, ptr %120, i64 40
  store ptr %129, ptr %130, align 8, !tbaa !16
  %131 = getelementptr inbounds i8, ptr %120, i64 66
  store i8 2, ptr %131, align 2, !tbaa !24
  store ptr %126, ptr %6, align 8, !tbaa !18
  %132 = getelementptr inbounds i8, ptr %0, i64 24
  %133 = load ptr, ptr %132, align 8, !tbaa !25
  %134 = getelementptr inbounds i8, ptr %133, i64 24
  %135 = load i64, ptr %134, align 8, !tbaa !26
  %136 = icmp sgt i64 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %119
  tail call void @luaC_step(ptr noundef nonnull %0) #2
  br label %138

138:                                              ; preds = %137, %119
  %139 = getelementptr inbounds i8, ptr %0, i64 200
  %140 = load i8, ptr %139, align 8, !tbaa !30
  %141 = and i8 %140, 1
  %.not91 = icmp eq i8 %141, 0
  br i1 %.not91, label %154, label %142

142:                                              ; preds = %138
  tail call void @callhook(ptr noundef nonnull %0, ptr noundef nonnull %120)
  br label %154

143:                                              ; preds = %tailrecurse
  %144 = load ptr, ptr %5, align 8, !tbaa !17
  %145 = load ptr, ptr %6, align 8, !tbaa !18
  %146 = ptrtoint ptr %144 to i64
  %147 = ptrtoint ptr %145 to i64
  %148 = sub i64 %146, %147
  %149 = icmp slt i64 %148, 17
  br i1 %149, label %150, label %151

150:                                              ; preds = %143
  tail call void @luaD_growstack(ptr noundef nonnull %0, i32 noundef 1)
  %.pre = load ptr, ptr %4, align 8, !tbaa !5
  br label %151

151:                                              ; preds = %143, %150
  %152 = phi ptr [ %7, %143 ], [ %.pre, %150 ]
  %153 = getelementptr inbounds i8, ptr %152, i64 %10
  tail call void @tryfuncTM(ptr noundef nonnull %0, ptr noundef %153)
  br label %tailrecurse

154:                                              ; preds = %138, %142, %52
  %.0 = phi i32 [ 1, %52 ], [ 0, %142 ], [ 0, %138 ]
  ret i32 %.0
}

declare hidden ptr @luaE_extendCI(ptr noundef) local_unnamed_addr #1

declare hidden void @luaC_step(ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @tryfuncTM(ptr noundef, 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" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 56}
!6 = !{!"lua_State", !7, i64 0, !8, i64 8, !8, i64 9, !8, i64 10, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !10, i64 96, !7, i64 168, !11, i64 176, !13, i64 184, !13, i64 188, !13, i64 192, !12, i64 196, !12, i64 198, !8, i64 200, !8, i64 201}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"CallInfo", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !8, i64 32, !11, i64 56, !12, i64 64, !8, i64 66}
!11 = !{!"long", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"lua_TValue", !8, i64 0, !13, i64 8}
!16 = !{!8, !8, i64 0}
!17 = !{!6, !7, i64 48}
!18 = !{!6, !7, i64 16}
!19 = !{!6, !7, i64 32}
!20 = !{!10, !7, i64 24}
!21 = !{!10, !12, i64 64}
!22 = !{!10, !7, i64 0}
!23 = !{!10, !7, i64 8}
!24 = !{!10, !8, i64 66}
!25 = !{!6, !7, i64 24}
!26 = !{!27, !11, i64 24}
!27 = !{!"global_State", !7, i64 0, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !28, i64 48, !15, i64 64, !13, i64 80, !8, i64 84, !8, i64 85, !8, i64 86, !8, i64 87, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !29, i64 176, !13, i64 200, !13, i64 204, !13, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !8, i64 248, !8, i64 440}
!28 = !{!"stringtable", !7, i64 0, !13, i64 8, !13, i64 12}
!29 = !{!"Mbuffer", !7, i64 0, !11, i64 8, !11, i64 16}
!30 = !{!6, !8, i64 200}
!31 = !{!32, !8, i64 12}
!32 = !{!"Proto", !7, i64 0, !8, i64 8, !8, i64 9, !8, i64 10, !8, i64 11, !8, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112}
!33 = !{!32, !8, i64 10}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.unroll.disable"}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!32, !8, i64 11}
!39 = !{!32, !7, i64 56}


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