; LLVM IR from paintdream/DontStarveLuaJIT :: src/luajit/src (lj_dispatch)

; 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 { %union.anon }
%union.anon = type { %struct.anon, [320 x i8] }
%struct.anon = type { %struct.GCRef, i8, i8, i8, i8, %struct.MRef, %struct.GCRef, ptr, ptr, %struct.MRef, %struct.MRef, %struct.GCRef, %struct.GCRef, ptr, i32 }
%struct.MRef = type { i32 }
%struct.GCRef = type { i32 }
%struct.GG_State = type { %struct.lua_State, %struct.global_State, %struct.jit_State, [64 x i16], [243 x ptr], [57 x i32] }
%struct.global_State = type { ptr, i32, i32, ptr, ptr, %struct.GCState, i32, %struct.SBuf, %struct.GCstr, i8, i8, i8, i8, %struct.GCRef, %union.TValue, %union.TValue, %union.TValue, %struct.Node, %struct.GCupval, i32, i32, ptr, ptr, ptr, i32, i32, %struct.GCRef, %struct.MRef, %struct.MRef, [38 x %struct.GCRef] }
%struct.GCState = type { i32, i32, i8, i8, i8, i8, i32, %struct.GCRef, %struct.MRef, %struct.GCRef, %struct.GCRef, %struct.GCRef, %struct.GCRef, i32, i32, i32, i32 }
%struct.SBuf = type { %struct.MRef, %struct.MRef, %struct.MRef, %struct.MRef }
%struct.GCstr = type { %struct.GCRef, i8, i8, i8, i8, i32, i32 }
%union.TValue = type { i64 }
%struct.Node = type { %union.TValue, %union.TValue, %struct.MRef, %struct.MRef }
%struct.GCupval = type { %struct.GCRef, i8, i8, i8, i8, %union.anon.4, %struct.MRef, i32 }
%union.anon.4 = type { %union.TValue }
%struct.jit_State = type { %struct.GCtrace, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i8, i8, %struct.IRType1, i8, %struct.FoldState, ptr, i32, i32, i32, i32, i32, i32, i32, %struct.MRef, [5 x %union.TValue], ptr, i32, i32, i32, i32, ptr, ptr, i32, i32, i8, ptr, i32, i32, ptr, [100 x i16], [255 x i32], [15 x i32], [16 x ptr], [64 x %struct.HotPenalty], i32, i32, [16 x %struct.BPropEntry], i32, %struct.ScEvEntry, ptr, i32, i32, ptr, i32, i32, ptr, ptr, ptr, i64, i64, %union.TValue, ptr, i32, i32 }
%struct.GCtrace = type { %struct.GCRef, i8, i8, i8, i8, i32, %struct.GCRef, ptr, i32, i16, i16, ptr, ptr, %struct.GCRef, %struct.MRef, i32, i32, ptr, i32, i16, i16, i16, i16, i16, i16, i16, i8, i8 }
%struct.IRType1 = type { i8 }
%struct.FoldState = type { %union.IRIns, %union.IRIns, %union.IRIns }
%union.IRIns = type { %struct.anon.7 }
%struct.anon.7 = type { i32, %struct.IRType1, i8, i8, i8 }
%struct.HotPenalty = type { %struct.MRef, i16, i16 }
%struct.BPropEntry = type { i16, i16, i32 }
%struct.ScEvEntry = type { %struct.MRef, i16, i16, i16, i16, %struct.IRType1, i8 }
%struct.anon.2 = type { %struct.GCRef, %union.FrameLink }
%union.FrameLink = type { i32 }
%struct.anon.0 = type { %union.anon.1, i32 }
%union.anon.1 = type { %struct.GCRef }
%struct.GCfuncC = type { %struct.GCRef, i8, i8, i8, i8, %struct.GCRef, %struct.GCRef, %struct.MRef, ptr, [1 x %union.TValue] }
%struct.GCfuncL = type { %struct.GCRef, i8, i8, i8, i8, %struct.GCRef, %struct.GCRef, %struct.MRef, [1 x %struct.GCRef] }

; 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 @lj_dispatch_update(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @luaJIT_setmode(ptr noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.lua_State, ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %struct.anon, ptr %15, i32 0, i32 5
  %17 = getelementptr inbounds %struct.MRef, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = zext i32 %18 to i64
  %20 = inttoptr i64 %19 to ptr
  store ptr %20, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = and i32 %21, 255
  store i32 %22, ptr %9, align 4, !tbaa !9
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 -384
  %25 = getelementptr inbounds %struct.GG_State, ptr %24, i32 0, i32 2
  %26 = getelementptr inbounds %struct.jit_State, ptr %25, i32 0, i32 16
  %27 = load i32, ptr %26, align 4, !tbaa !12
  %28 = and i32 %27, -17
  store i32 %28, ptr %26, align 4, !tbaa !12
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.global_State, ptr %29, i32 0, i32 10
  %31 = load i8, ptr %30, align 1, !tbaa !30
  %32 = zext i8 %31 to i32
  %33 = and i32 %32, 64
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %37

35:                                               ; preds = %3
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  call void @lj_err_caller(ptr noundef %36, i32 noundef 897) #5
  unreachable

37:                                               ; preds = %3
  %38 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %38, label %284 [
    i32 0, label %39
    i32 2, label %77
    i32 3, label %77
    i32 4, label %77
    i32 5, label %220
    i32 16, label %230
  ]

39:                                               ; preds = %37
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = and i32 %40, 512
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %46

43:                                               ; preds = %39
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = call i32 @lj_trace_flushall(ptr noundef %44)
  br label %76

46:                                               ; preds = %39
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = and i32 %47, 256
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %57, label %50

50:                                               ; preds = %46
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 -384
  %53 = getelementptr inbounds %struct.GG_State, ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds %struct.jit_State, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %54, align 8, !tbaa !31
  %56 = and i32 %55, -2
  store i32 %56, ptr %54, align 8, !tbaa !31
  br label %74

57:                                               ; preds = %46
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 -384
  %60 = getelementptr inbounds %struct.GG_State, ptr %59, i32 0, i32 2
  %61 = getelementptr inbounds %struct.jit_State, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %61, align 8, !tbaa !31
  %63 = and i32 %62, 16
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %72

65:                                               ; preds = %57
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 -384
  %68 = getelementptr inbounds %struct.GG_State, ptr %67, i32 0, i32 2
  %69 = getelementptr inbounds %struct.jit_State, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %69, align 8, !tbaa !31
  %71 = or i32 %70, 1
  store i32 %71, ptr %69, align 8, !tbaa !31
  br label %73

72:                                               ; preds = %57
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %286

73:                                               ; preds = %65
  br label %74

74:                                               ; preds = %73, %50
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  call void @lj_dispatch_update(ptr noundef %75)
  br label %76

76:                                               ; preds = %74, %43
  br label %285

77:                                               ; preds = %37, %37, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %78 = load i32, ptr %6, align 4, !tbaa !9
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %134

80:                                               ; preds = %77
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.lua_State, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %struct.anon, ptr %82, i32 0, i32 7
  %84 = load ptr, ptr %83, align 8, !tbaa !11
  %85 = getelementptr inbounds %union.TValue, ptr %84, i64 -1
  %86 = getelementptr inbounds %struct.anon.2, ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !11
  %88 = sext i32 %87 to i64
  %89 = and i64 %88, 3
  %90 = icmp eq i64 %89, 0
  br i1 %90, label %91, label %115

91:                                               ; preds = %80
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.lua_State, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.anon, ptr %93, i32 0, i32 7
  %95 = load ptr, ptr %94, align 8, !tbaa !11
  %96 = getelementptr inbounds %union.TValue, ptr %95, i64 -1
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.lua_State, ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %struct.anon, ptr %98, i32 0, i32 7
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = getelementptr inbounds %union.TValue, ptr %100, i64 -1
  %102 = getelementptr inbounds %struct.anon.2, ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds %struct.MRef, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %105 = zext i32 %104 to i64
  %106 = inttoptr i64 %105 to ptr
  %107 = getelementptr inbounds i32, ptr %106, i64 -1
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = lshr i32 %108, 8
  %110 = and i32 %109, 255
  %111 = add i32 1, %110
  %112 = zext i32 %111 to i64
  %113 = sub i64 0, %112
  %114 = getelementptr inbounds %union.TValue, ptr %96, i64 %113
  br label %132

115:                                              ; preds = %80
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.lua_State, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.anon, ptr %117, i32 0, i32 7
  %119 = load ptr, ptr %118, align 8, !tbaa !11
  %120 = getelementptr inbounds %union.TValue, ptr %119, i64 -1
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.lua_State, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %struct.anon, ptr %122, i32 0, i32 7
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = getelementptr inbounds %union.TValue, ptr %124, i64 -1
  %126 = getelementptr inbounds %struct.anon.2, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %126, align 4, !tbaa !11
  %128 = sext i32 %127 to i64
  %129 = and i64 %128, -8
  %130 = sub i64 0, %129
  %131 = getelementptr inbounds i8, ptr %120, i64 %130
  br label %132

132:                                              ; preds = %115, %91
  %133 = phi ptr [ %114, %91 ], [ %131, %115 ]
  br label %156

134:                                              ; preds = %77
  %135 = load i32, ptr %6, align 4, !tbaa !9
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %137, label %146

137:                                              ; preds = %134
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.lua_State, ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds %struct.anon, ptr %139, i32 0, i32 7
  %141 = load ptr, ptr %140, align 8, !tbaa !11
  %142 = load i32, ptr %6, align 4, !tbaa !9
  %143 = sub nsw i32 %142, 1
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds %union.TValue, ptr %141, i64 %144
  br label %154

146:                                              ; preds = %134
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.lua_State, ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds %struct.anon, ptr %148, i32 0, i32 8
  %150 = load ptr, ptr %149, align 8, !tbaa !11
  %151 = load i32, ptr %6, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds %union.TValue, ptr %150, i64 %152
  br label %154

154:                                              ; preds = %146, %137
  %155 = phi ptr [ %145, %137 ], [ %153, %146 ]
  br label %156

156:                                              ; preds = %154, %132
  %157 = phi ptr [ %133, %132 ], [ %155, %154 ]
  store ptr %157, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %158 = load i32, ptr %6, align 4, !tbaa !9
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %165, label %160

160:                                              ; preds = %156
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.anon.0, ptr %161, i32 0, i32 1
  %163 = load i32, ptr %162, align 4, !tbaa !11
  %164 = icmp eq i32 %163, -9
  br i1 %164, label %165, label %189

165:                                              ; preds = %160, %156
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.anon.0, ptr %166, i32 0, i32 0
  %168 = getelementptr inbounds %struct.GCRef, ptr %167, i32 0, i32 0
  %169 = load i32, ptr %168, align 8, !tbaa !11
  %170 = zext i32 %169 to i64
  %171 = inttoptr i64 %170 to ptr
  %172 = getelementptr inbounds %struct.GCfuncC, ptr %171, i32 0, i32 3
  %173 = load i8, ptr %172, align 2, !tbaa !11
  %174 = zext i8 %173 to i32
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %189

176:                                              ; preds = %165
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.anon.0, ptr %177, i32 0, i32 0
  %179 = getelementptr inbounds %struct.GCRef, ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 8, !tbaa !11
  %181 = zext i32 %180 to i64
  %182 = inttoptr i64 %181 to ptr
  %183 = getelementptr inbounds %struct.GCfuncL, ptr %182, i32 0, i32 7
  %184 = getelementptr inbounds %struct.MRef, ptr %183, i32 0, i32 0
  %185 = load i32, ptr %184, align 8, !tbaa !11
  %186 = zext i32 %185 to i64
  %187 = inttoptr i64 %186 to ptr
  %188 = getelementptr inbounds i8, ptr %187, i64 -64
  store ptr %188, ptr %12, align 8, !tbaa !5
  br label %203

189:                                              ; preds = %165, %160
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.anon.0, ptr %190, i32 0, i32 1
  %192 = load i32, ptr %191, align 4, !tbaa !11
  %193 = icmp eq i32 %192, -8
  br i1 %193, label %194, label %201

194:                                              ; preds = %189
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.anon.0, ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds %struct.GCRef, ptr %196, i32 0, i32 0
  %198 = load i32, ptr %197, align 8, !tbaa !11
  %199 = zext i32 %198 to i64
  %200 = inttoptr i64 %199 to ptr
  store ptr %200, ptr %12, align 8, !tbaa !5
  br label %202

201:                                              ; preds = %189
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %218

202:                                              ; preds = %194
  br label %203

203:                                              ; preds = %202, %176
  %204 = load i32, ptr %9, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 4
  br i1 %205, label %206, label %210

206:                                              ; preds = %203
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  %209 = load i32, ptr %7, align 4, !tbaa !9
  call void @setptmode(ptr noundef %207, ptr noundef %208, i32 noundef %209)
  br label %210

210:                                              ; preds = %206, %203
  %211 = load i32, ptr %9, align 4, !tbaa !9
  %212 = icmp ne i32 %211, 2
  br i1 %212, label %213, label %217

213:                                              ; preds = %210
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load ptr, ptr %12, align 8, !tbaa !5
  %216 = load i32, ptr %7, align 4, !tbaa !9
  call void @setptmode_all(ptr noundef %214, ptr noundef %215, i32 noundef %216)
  br label %217

217:                                              ; preds = %213, %210
  store i32 2, ptr %10, align 4
  br label %218

218:                                              ; preds = %217, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %219 = load i32, ptr %10, align 4
  switch i32 %219, label %286 [
    i32 2, label %285
  ]

220:                                              ; preds = %37
  %221 = load i32, ptr %7, align 4, !tbaa !9
  %222 = and i32 %221, 512
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %225, label %224

224:                                              ; preds = %220
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %286

225:                                              ; preds = %220
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = getelementptr inbounds i8, ptr %226, i64 -384
  %228 = getelementptr inbounds %struct.GG_State, ptr %227, i32 0, i32 2
  %229 = load i32, ptr %6, align 4, !tbaa !9
  call void @lj_trace_flush(ptr noundef %228, i32 noundef %229)
  br label %285

230:                                              ; preds = %37
  %231 = load i32, ptr %7, align 4, !tbaa !9
  %232 = and i32 %231, 256
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %234, label %280

234:                                              ; preds = %230
  %235 = load i32, ptr %6, align 4, !tbaa !9
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %276

237:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %238 = load i32, ptr %6, align 4, !tbaa !9
  %239 = icmp sgt i32 %238, 0
  br i1 %239, label %240, label %249

240:                                              ; preds = %237
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.lua_State, ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds %struct.anon, ptr %242, i32 0, i32 7
  %244 = load ptr, ptr %243, align 8, !tbaa !11
  %245 = load i32, ptr %6, align 4, !tbaa !9
  %246 = sub nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds %union.TValue, ptr %244, i64 %247
  br label %257

249:                                              ; preds = %237
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.lua_State, ptr %250, i32 0, i32 0
  %252 = getelementptr inbounds %struct.anon, ptr %251, i32 0, i32 8
  %253 = load ptr, ptr %252, align 8, !tbaa !11
  %254 = load i32, ptr %6, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds %union.TValue, ptr %253, i64 %255
  br label %257

257:                                              ; preds = %249, %240
  %258 = phi ptr [ %248, %240 ], [ %256, %249 ]
  store ptr %258, ptr %13, align 8, !tbaa !5
  %259 = load ptr, ptr %13, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.anon.0, ptr %259, i32 0, i32 1
  %261 = load i32, ptr %260, align 4, !tbaa !11
  %262 = ashr i32 %261, 15
  %263 = icmp eq i32 %262, -2
  br i1 %263, label %264, label %271

264:                                              ; preds = %257
  %265 = load ptr, ptr %13, align 8, !tbaa !5
  %266 = load i64, ptr %265, align 8, !tbaa !11
  %267 = and i64 %266, 140737488355327
  %268 = inttoptr i64 %267 to ptr
  %269 = load ptr, ptr %8, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.global_State, ptr %269, i32 0, i32 22
  store ptr %268, ptr %270, align 8, !tbaa !32
  br label %272

271:                                              ; preds = %257
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %273

272:                                              ; preds = %264
  store i32 0, ptr %10, align 4
  br label %273

273:                                              ; preds = %272, %271
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %274 = load i32, ptr %10, align 4
  switch i32 %274, label %286 [
    i32 0, label %275
  ]

275:                                              ; preds = %273
  br label %277

276:                                              ; preds = %234
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %286

277:                                              ; preds = %275
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.global_State, ptr %278, i32 0, i32 25
  store i32 96, ptr %279, align 4, !tbaa !33
  br label %283

280:                                              ; preds = %230
  %281 = load ptr, ptr %8, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.global_State, ptr %281, i32 0, i32 25
  store i32 95, ptr %282, align 4, !tbaa !33
  br label %283

283:                                              ; preds = %280, %277
  br label %285

284:                                              ; preds = %37
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %286

285:                                              ; preds = %283, %225, %218, %76
  store i32 1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %286

286:                                              ; preds = %285, %284, %276, %273, %224, %218, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %287 = load i32, ptr %4, align 4
  ret i32 %287
}

; Function Attrs: noreturn
declare hidden void @lj_err_caller(ptr noundef, i32 noundef) #2

declare hidden i32 @lj_trace_flushall(ptr noundef) #3

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

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

declare hidden void @lj_trace_flush(ptr noundef, i32 noundef) #3

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 = { noreturn "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 = { "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 #4 = { nounwind }
attributes #5 = { noreturn }

!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 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 988}
!13 = !{!"GG_State", !14, i64 0, !15, i64 384, !23, i64 800, !7, i64 3312, !7, i64 3440, !7, i64 5384}
!14 = !{!"lua_State", !7, i64 0}
!15 = !{!"global_State", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !16, i64 32, !10, i64 88, !19, i64 92, !20, i64 108, !7, i64 124, !7, i64 125, !7, i64 126, !7, i64 127, !17, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !21, i64 160, !22, i64 184, !10, i64 208, !10, i64 212, !6, i64 216, !6, i64 224, !6, i64 232, !10, i64 240, !10, i64 244, !17, i64 248, !18, i64 252, !18, i64 256, !7, i64 260}
!16 = !{!"GCState", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !10, i64 12, !17, i64 16, !18, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!17 = !{!"GCRef", !10, i64 0}
!18 = !{!"MRef", !10, i64 0}
!19 = !{!"SBuf", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!20 = !{!"GCstr", !17, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !10, i64 8, !10, i64 12}
!21 = !{!"Node", !7, i64 0, !7, i64 8, !18, i64 16, !18, i64 20}
!22 = !{!"GCupval", !17, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !18, i64 16, !10, i64 20}
!23 = !{!"jit_State", !24, i64 0, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !10, i64 136, !10, i64 140, !10, i64 144, !7, i64 148, !7, i64 149, !26, i64 150, !7, i64 151, !27, i64 152, !6, i64 176, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !18, i64 212, !7, i64 216, !6, i64 256, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !6, i64 280, !6, i64 288, !10, i64 296, !10, i64 300, !7, i64 304, !6, i64 312, !10, i64 320, !10, i64 324, !6, i64 328, !7, i64 336, !7, i64 536, !7, i64 1556, !7, i64 1616, !7, i64 1744, !10, i64 2256, !10, i64 2260, !7, i64 2264, !10, i64 2392, !28, i64 2396, !6, i64 2416, !10, i64 2424, !10, i64 2428, !6, i64 2432, !10, i64 2440, !10, i64 2444, !6, i64 2448, !6, i64 2456, !6, i64 2464, !29, i64 2472, !29, i64 2480, !7, i64 2488, !6, i64 2496, !10, i64 2504, !10, i64 2508}
!24 = !{!"GCtrace", !17, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !10, i64 8, !17, i64 12, !6, i64 16, !10, i64 24, !25, i64 28, !25, i64 30, !6, i64 32, !6, i64 40, !17, i64 48, !18, i64 52, !10, i64 56, !10, i64 60, !6, i64 64, !10, i64 72, !25, i64 76, !25, i64 78, !25, i64 80, !25, i64 82, !25, i64 84, !25, i64 86, !25, i64 88, !7, i64 90, !7, i64 91}
!25 = !{!"short", !7, i64 0}
!26 = !{!"IRType1", !7, i64 0}
!27 = !{!"FoldState", !7, i64 0, !7, i64 8, !7, i64 16}
!28 = !{!"ScEvEntry", !18, i64 0, !25, i64 4, !25, i64 6, !25, i64 8, !25, i64 10, !26, i64 12, !7, i64 13}
!29 = !{!"long", !7, i64 0}
!30 = !{!15, !7, i64 125}
!31 = !{!13, !10, i64 936}
!32 = !{!15, !6, i64 224}
!33 = !{!15, !10, i64 244}


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

%union.TValue = type { i64 }

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @luaJIT_setmode(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = zext i32 %5 to i64
  %7 = inttoptr i64 %6 to ptr
  %8 = and i32 %2, 255
  %9 = getelementptr inbounds i8, ptr %7, i64 416
  %10 = getelementptr inbounds i8, ptr %7, i64 604
  %11 = load i32, ptr %10, align 4, !tbaa !8
  %12 = and i32 %11, -17
  store i32 %12, ptr %10, align 4, !tbaa !8
  %13 = getelementptr inbounds i8, ptr %7, i64 125
  %14 = load i8, ptr %13, align 1, !tbaa !28
  %15 = and i8 %14, 64
  %.not = icmp eq i8 %15, 0
  br i1 %.not, label %17, label %16

16:                                               ; preds = %3
  tail call void @lj_err_caller(ptr noundef nonnull %0, i32 noundef 897) #3
  unreachable

17:                                               ; preds = %3
  %trunc = trunc i32 %2 to i8
  switch i8 %trunc, label %.critedge [
    i8 0, label %18
    i8 2, label %33
    i8 3, label %33
    i8 4, label %33
    i8 5, label %101
    i8 16, label %104
  ]

18:                                               ; preds = %17
  %19 = and i32 %2, 512
  %.not64 = icmp eq i32 %19, 0
  br i1 %.not64, label %22, label %20

20:                                               ; preds = %18
  %21 = tail call i32 @lj_trace_flushall(ptr noundef nonnull %0) #4
  br label %.critedge

22:                                               ; preds = %18
  %23 = and i32 %2, 256
  %.not65 = icmp eq i32 %23, 0
  %24 = getelementptr inbounds i8, ptr %7, i64 552
  %25 = load i32, ptr %24, align 8, !tbaa !29
  br i1 %.not65, label %26, label %28

26:                                               ; preds = %22
  %27 = and i32 %25, -2
  br label %32

28:                                               ; preds = %22
  %29 = and i32 %25, 16
  %.not66 = icmp eq i32 %29, 0
  br i1 %.not66, label %.critedge, label %30

30:                                               ; preds = %28
  %31 = or i32 %25, 1
  br label %32

32:                                               ; preds = %30, %26
  %.sink = phi i32 [ %31, %30 ], [ %27, %26 ]
  store i32 %.sink, ptr %24, align 8, !tbaa !29
  tail call void @lj_dispatch_update(ptr noundef nonnull %7)
  br label %.critedge

33:                                               ; preds = %17, %17, %17
  %34 = icmp eq i32 %1, 0
  br i1 %34, label %35, label %59

35:                                               ; preds = %33
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 -8
  %39 = getelementptr inbounds i8, ptr %37, i64 -4
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = and i64 %41, 3
  %43 = icmp eq i64 %42, 0
  br i1 %43, label %44, label %55

44:                                               ; preds = %35
  %45 = zext i32 %40 to i64
  %46 = inttoptr i64 %45 to ptr
  %47 = getelementptr inbounds i8, ptr %46, i64 -4
  %48 = load i32, ptr %47, align 4, !tbaa !30
  %49 = lshr i32 %48, 8
  %50 = and i32 %49, 255
  %51 = add nuw nsw i32 %50, 1
  %52 = zext nneg i32 %51 to i64
  %53 = sub nsw i64 0, %52
  %54 = getelementptr inbounds %union.TValue, ptr %38, i64 %53
  br label %.thread

55:                                               ; preds = %35
  %56 = and i64 %41, -8
  %57 = sub nsw i64 0, %56
  %58 = getelementptr inbounds i8, ptr %38, i64 %57
  br label %.thread

59:                                               ; preds = %33
  %60 = icmp sgt i32 %1, 0
  br i1 %60, label %61, label %67

61:                                               ; preds = %59
  %62 = getelementptr inbounds i8, ptr %0, i64 16
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = zext nneg i32 %1 to i64
  %65 = getelementptr %union.TValue, ptr %63, i64 %64
  %66 = getelementptr i8, ptr %65, i64 -8
  br label %72

67:                                               ; preds = %59
  %68 = getelementptr inbounds i8, ptr %0, i64 24
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = sext i32 %1 to i64
  %71 = getelementptr inbounds %union.TValue, ptr %69, i64 %70
  br label %72

72:                                               ; preds = %67, %61
  %73 = phi ptr [ %66, %61 ], [ %71, %67 ]
  %74 = getelementptr inbounds i8, ptr %73, i64 4
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = icmp eq i32 %75, -9
  br i1 %76, label %.thread, label %90

.thread:                                          ; preds = %55, %44, %72
  %77 = phi ptr [ %73, %72 ], [ %58, %55 ], [ %54, %44 ]
  %78 = load i32, ptr %77, align 8, !tbaa !5
  %79 = zext i32 %78 to i64
  %80 = inttoptr i64 %79 to ptr
  %81 = getelementptr inbounds i8, ptr %80, i64 6
  %82 = load i8, ptr %81, align 2, !tbaa !5
  %83 = icmp eq i8 %82, 0
  br i1 %83, label %84, label %.thread._crit_edge

.thread._crit_edge:                               ; preds = %.thread
  %.phi.trans.insert = getelementptr inbounds i8, ptr %77, i64 4
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br label %90

84:                                               ; preds = %.thread
  %85 = getelementptr inbounds i8, ptr %80, i64 16
  %86 = load i32, ptr %85, align 8, !tbaa !5
  %87 = zext i32 %86 to i64
  %88 = inttoptr i64 %87 to ptr
  %89 = getelementptr inbounds i8, ptr %88, i64 -64
  br label %98

90:                                               ; preds = %.thread._crit_edge, %72
  %91 = phi i32 [ %.pre, %.thread._crit_edge ], [ %75, %72 ]
  %92 = phi ptr [ %77, %.thread._crit_edge ], [ %73, %72 ]
  %93 = icmp eq i32 %91, -8
  br i1 %93, label %94, label %.critedge

94:                                               ; preds = %90
  %95 = load i32, ptr %92, align 8, !tbaa !5
  %96 = zext i32 %95 to i64
  %97 = inttoptr i64 %96 to ptr
  br label %98

98:                                               ; preds = %94, %84
  %.056 = phi ptr [ %89, %84 ], [ %97, %94 ]
  %cond = icmp eq i32 %8, 4
  br i1 %cond, label %100, label %99

99:                                               ; preds = %98
  tail call void @setptmode(ptr noundef nonnull %7, ptr noundef %.056, i32 noundef %2)
  %.not63 = icmp eq i32 %8, 2
  br i1 %.not63, label %.critedge, label %100

100:                                              ; preds = %98, %99
  tail call void @setptmode_all(ptr noundef nonnull %7, ptr noundef %.056, i32 noundef %2)
  br label %.critedge

101:                                              ; preds = %17
  %102 = and i32 %2, 512
  %.not61 = icmp eq i32 %102, 0
  br i1 %.not61, label %.critedge, label %103

103:                                              ; preds = %101
  tail call void @lj_trace_flush(ptr noundef nonnull %9, i32 noundef %1) #4
  br label %.critedge

104:                                              ; preds = %17
  %105 = and i32 %2, 256
  %.not59 = icmp eq i32 %105, 0
  br i1 %.not59, label %131, label %106

106:                                              ; preds = %104
  %.not60 = icmp eq i32 %1, 0
  br i1 %.not60, label %.critedge, label %107

107:                                              ; preds = %106
  %108 = icmp sgt i32 %1, 0
  br i1 %108, label %109, label %115

109:                                              ; preds = %107
  %110 = getelementptr inbounds i8, ptr %0, i64 16
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = zext nneg i32 %1 to i64
  %113 = getelementptr %union.TValue, ptr %111, i64 %112
  %114 = getelementptr i8, ptr %113, i64 -8
  br label %120

115:                                              ; preds = %107
  %116 = getelementptr inbounds i8, ptr %0, i64 24
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = sext i32 %1 to i64
  %119 = getelementptr inbounds %union.TValue, ptr %117, i64 %118
  br label %120

120:                                              ; preds = %115, %109
  %121 = phi ptr [ %114, %109 ], [ %119, %115 ]
  %122 = getelementptr inbounds i8, ptr %121, i64 4
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %.mask = and i32 %123, -32768
  %124 = icmp eq i32 %.mask, -65536
  br i1 %124, label %125, label %.critedge

125:                                              ; preds = %120
  %126 = load i64, ptr %121, align 8, !tbaa !5
  %127 = and i64 %126, 140737488355327
  %128 = inttoptr i64 %127 to ptr
  %129 = getelementptr inbounds i8, ptr %7, i64 224
  store ptr %128, ptr %129, align 8, !tbaa !31
  %130 = getelementptr inbounds i8, ptr %7, i64 244
  store i32 96, ptr %130, align 4, !tbaa !32
  br label %.critedge

131:                                              ; preds = %104
  %132 = getelementptr inbounds i8, ptr %7, i64 244
  store i32 95, ptr %132, align 4, !tbaa !32
  br label %.critedge

.critedge:                                        ; preds = %120, %90, %103, %32, %20, %131, %125, %99, %100, %17, %106, %101, %28
  %.2 = phi i32 [ 0, %28 ], [ 0, %101 ], [ 0, %106 ], [ 0, %17 ], [ 1, %100 ], [ 1, %99 ], [ 1, %125 ], [ 1, %131 ], [ 1, %20 ], [ 1, %32 ], [ 1, %103 ], [ 0, %90 ], [ 0, %120 ]
  ret i32 %.2
}

; Function Attrs: noreturn
declare hidden void @lj_err_caller(ptr noundef, i32 noundef) local_unnamed_addr #1

declare hidden i32 @lj_trace_flushall(ptr noundef) local_unnamed_addr #2

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

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

declare hidden void @lj_trace_flush(ptr noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "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 = { noreturn nounwind }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !13, i64 988}
!9 = !{!"GG_State", !10, i64 0, !11, i64 384, !21, i64 800, !6, i64 3312, !6, i64 3440, !6, i64 5384}
!10 = !{!"lua_State", !6, i64 0}
!11 = !{!"global_State", !12, i64 0, !13, i64 8, !13, i64 12, !12, i64 16, !12, i64 24, !14, i64 32, !13, i64 88, !17, i64 92, !18, i64 108, !6, i64 124, !6, i64 125, !6, i64 126, !6, i64 127, !15, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !19, i64 160, !20, i64 184, !13, i64 208, !13, i64 212, !12, i64 216, !12, i64 224, !12, i64 232, !13, i64 240, !13, i64 244, !15, i64 248, !16, i64 252, !16, i64 256, !6, i64 260}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = !{!"GCState", !13, i64 0, !13, i64 4, !6, i64 8, !6, i64 9, !6, i64 10, !6, i64 11, !13, i64 12, !15, i64 16, !16, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52}
!15 = !{!"GCRef", !13, i64 0}
!16 = !{!"MRef", !13, i64 0}
!17 = !{!"SBuf", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!18 = !{!"GCstr", !15, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !13, i64 8, !13, i64 12}
!19 = !{!"Node", !6, i64 0, !6, i64 8, !16, i64 16, !16, i64 20}
!20 = !{!"GCupval", !15, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !6, i64 8, !16, i64 16, !13, i64 20}
!21 = !{!"jit_State", !22, i64 0, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !13, i64 136, !13, i64 140, !13, i64 144, !6, i64 148, !6, i64 149, !24, i64 150, !6, i64 151, !25, i64 152, !12, i64 176, !13, i64 184, !13, i64 188, !13, i64 192, !13, i64 196, !13, i64 200, !13, i64 204, !13, i64 208, !16, i64 212, !6, i64 216, !12, i64 256, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !12, i64 280, !12, i64 288, !13, i64 296, !13, i64 300, !6, i64 304, !12, i64 312, !13, i64 320, !13, i64 324, !12, i64 328, !6, i64 336, !6, i64 536, !6, i64 1556, !6, i64 1616, !6, i64 1744, !13, i64 2256, !13, i64 2260, !6, i64 2264, !13, i64 2392, !26, i64 2396, !12, i64 2416, !13, i64 2424, !13, i64 2428, !12, i64 2432, !13, i64 2440, !13, i64 2444, !12, i64 2448, !12, i64 2456, !12, i64 2464, !27, i64 2472, !27, i64 2480, !6, i64 2488, !12, i64 2496, !13, i64 2504, !13, i64 2508}
!22 = !{!"GCtrace", !15, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !13, i64 8, !15, i64 12, !12, i64 16, !13, i64 24, !23, i64 28, !23, i64 30, !12, i64 32, !12, i64 40, !15, i64 48, !16, i64 52, !13, i64 56, !13, i64 60, !12, i64 64, !13, i64 72, !23, i64 76, !23, i64 78, !23, i64 80, !23, i64 82, !23, i64 84, !23, i64 86, !23, i64 88, !6, i64 90, !6, i64 91}
!23 = !{!"short", !6, i64 0}
!24 = !{!"IRType1", !6, i64 0}
!25 = !{!"FoldState", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"ScEvEntry", !16, i64 0, !23, i64 4, !23, i64 6, !23, i64 8, !23, i64 10, !24, i64 12, !6, i64 13}
!27 = !{!"long", !6, i64 0}
!28 = !{!11, !6, i64 125}
!29 = !{!9, !13, i64 936}
!30 = !{!13, !13, i64 0}
!31 = !{!11, !12, i64 224}
!32 = !{!11, !13, i64 244}


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