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

; 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.CTState = type { ptr, i32, i32, ptr, ptr, ptr, ptr, %struct.CCallback, [128 x i16] }
%struct.CCallback = type { [8 x %union.FPRCBArg], [8 x i64], ptr, ptr, ptr, i32, i32, i32 }
%union.FPRCBArg = type { double }
%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.2, %struct.MRef, i32 }
%union.anon.2 = type { %union.TValue }
%struct.GCRef = type { i32 }
%struct.MRef = type { i32 }
%struct.lua_State = type { %union.anon.4 }
%union.anon.4 = type { %struct.anon.5, [320 x i8] }
%struct.anon.5 = type { %struct.GCRef, i8, i8, i8, i8, %struct.MRef, %struct.GCRef, ptr, ptr, %struct.MRef, %struct.MRef, %struct.GCRef, %struct.GCRef, ptr, i32 }
%struct.GG_State = type { %struct.lua_State, %struct.global_State, %struct.jit_State, [64 x i16], [243 x ptr], [57 x i32] }
%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 }

; 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
define hidden ptr @lj_ccallback_enter(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.CTState, ptr %7, i32 0, i32 3
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %9, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.CTState, ptr %10, i32 0, i32 4
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  store ptr %12, ptr %6, align 8, !tbaa !5
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.global_State, ptr %13, i32 0, i32 27
  %15 = getelementptr inbounds %struct.MRef, ptr %14, i32 0, i32 0
  %16 = load i32, ptr %15, align 4, !tbaa !14
  %17 = zext i32 %16 to i64
  %18 = inttoptr i64 %17 to ptr
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %40

20:                                               ; preds = %2
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.lua_State, ptr %22, i32 0, i32 0
  %24 = getelementptr inbounds %struct.anon.5, ptr %23, i32 0, i32 8
  %25 = load ptr, ptr %24, align 8, !tbaa !23
  %26 = getelementptr inbounds %union.TValue, ptr %25, i32 1
  store ptr %26, ptr %24, align 8, !tbaa !23
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = call ptr @lj_err_str(ptr noundef %27, i32 noundef 3655)
  call void @setstrV(ptr noundef %21, ptr noundef %25, ptr noundef %28)
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.global_State, ptr %29, i32 0, i32 23
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %39

33:                                               ; preds = %20
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.global_State, ptr %34, i32 0, i32 23
  %36 = load ptr, ptr %35, align 8, !tbaa !24
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call i32 %36(ptr noundef %37)
  br label %39

39:                                               ; preds = %33, %20
  call void @exit(i32 noundef 1) #6
  unreachable

40:                                               ; preds = %2
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 -384
  %43 = getelementptr inbounds %struct.GG_State, ptr %42, i32 0, i32 2
  %44 = getelementptr inbounds %struct.jit_State, ptr %43, i32 0, i32 16
  %45 = load i32, ptr %44, align 4, !tbaa !25
  %46 = and i32 %45, -17
  store i32 %46, ptr %44, align 4, !tbaa !25
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.lua_State, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %struct.anon.5, ptr %48, i32 0, i32 13
  %50 = load ptr, ptr %49, align 8, !tbaa !23
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 32
  store ptr %50, ptr %52, align 8, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = ptrtoint ptr %53 to i64
  %55 = trunc i64 %54 to i32
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 24
  %58 = getelementptr inbounds %struct.MRef, ptr %57, i32 0, i32 0
  store i32 %55, ptr %58, align 4, !tbaa !35
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 20
  store i32 -1, ptr %60, align 4, !tbaa !36
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  store i32 0, ptr %62, align 4, !tbaa !36
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.lua_State, ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %struct.anon.5, ptr %65, i32 0, i32 13
  store ptr %63, ptr %66, align 8, !tbaa !23
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  call void @callback_conv_args(ptr noundef %67, ptr noundef %68)
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %69
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @setstrV(ptr noundef, ptr noundef, ptr noundef) #2

declare hidden ptr @lj_err_str(ptr noundef, i32 noundef) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define hidden ptr @lj_ccallback_enter(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load ptr, ptr %5, align 8, !tbaa !12
  %7 = getelementptr inbounds i8, ptr %6, i64 252
  %8 = load i32, ptr %7, align 4, !tbaa !13
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %19, label %9

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %4, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !22
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %12, ptr %10, align 8, !tbaa !22
  %13 = tail call ptr @lj_err_str(ptr noundef %4, i32 noundef 3655) #4
  tail call void @setstrV(ptr noundef %4, ptr noundef %11, ptr noundef %13)
  %14 = getelementptr inbounds i8, ptr %6, i64 232
  %15 = load ptr, ptr %14, align 8, !tbaa !23
  %.not21 = icmp eq ptr %15, null
  br i1 %.not21, label %18, label %16

16:                                               ; preds = %9
  %17 = tail call i32 %15(ptr noundef nonnull %4) #4
  br label %18

18:                                               ; preds = %16, %9
  tail call void @exit(i32 noundef 1) #5
  unreachable

19:                                               ; preds = %2
  %20 = getelementptr inbounds i8, ptr %6, i64 604
  %21 = load i32, ptr %20, align 4, !tbaa !24
  %22 = and i32 %21, -17
  store i32 %22, ptr %20, align 4, !tbaa !24
  %23 = getelementptr inbounds i8, ptr %4, i64 48
  %24 = load ptr, ptr %23, align 8, !tbaa !22
  %25 = getelementptr inbounds i8, ptr %1, i64 32
  store ptr %24, ptr %25, align 8, !tbaa !34
  %26 = ptrtoint ptr %4 to i64
  %27 = trunc i64 %26 to i32
  %28 = getelementptr inbounds i8, ptr %1, i64 24
  store i32 %27, ptr %28, align 4, !tbaa !35
  %29 = getelementptr inbounds i8, ptr %1, i64 20
  store i32 -1, ptr %29, align 4, !tbaa !36
  %30 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 0, ptr %30, align 4, !tbaa !36
  store ptr %1, ptr %23, align 8, !tbaa !22
  tail call void @callback_conv_args(ptr noundef nonnull %0, ptr noundef %4)
  ret ptr %4
}

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass