; LLVM IR from jzimmerman/langcc :: gen/data/gen.ll (ZN4lang4data6parser17_parse_proc_9_6_0EPN6langcc15ParserProcStateE)

; 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.langcc::rc_ptr.27" = type { ptr, ptr }
%"struct.langcc::rc_ptr.81" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::StrSlice" = type { %"struct.langcc::rc_ptr.80", i64, i64 }
%"struct.langcc::rc_ptr.80" = type { ptr, ptr }
%"struct.langcc::SymItem" = type { i64, i64, %"struct.langcc::ParserAttrMask", i64, i64, i64, %"struct.langcc::Result_T", %"struct.langcc::ParserLookahead" }
%"struct.langcc::Result_T" = type { ptr, %"struct.langcc::TokenBounds" }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.langcc::ParserProcState" = type { %"struct.langcc::rc_ptr.16", ptr, ptr, i64, ptr, i64, ptr, i64, ptr, i64, %"struct.langcc::SymItem", ptr, ptr }
%"struct.langcc::rc_ptr.16" = type { ptr, ptr }
%"struct.langcc::ParserVertexStackItem" = type { i64, i64 }

declare i32 @__gxx_personality_v0(...)

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4data4Node4Expr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.27") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc8StrSliceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang4data4Node5Entry5Field8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_8StrSliceEbbNS4_6rc_ptrINS1_4Expr2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.81") align 8, ptr noundef, i64 noundef, i64, i1 noundef zeroext, i64 noundef, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i64 noundef) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr, i64) #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind noalias writable sret(%"struct.langcc::StrSlice") align 8, ptr noundef nonnull align 8 dereferenceable(192), i64 noundef) #7 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang4data6parser17_parse_proc_9_6_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) #8 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.langcc::SymItem", align 8
  %10 = alloca %"struct.langcc::SymItem", align 8
  %11 = alloca %"struct.langcc::SymItem", align 8
  %12 = alloca %"struct.langcc::SymItem", align 8
  %13 = alloca %"struct.langcc::SymItem", align 8
  %14 = alloca %"struct.langcc::SymItem", align 8
  %15 = alloca %"struct.langcc::Result_T", align 8
  %16 = alloca %"struct.langcc::Result_T", align 8
  %17 = alloca %"struct.langcc::Result_T", align 8
  %18 = alloca %"struct.langcc::Result_T", align 8
  %19 = alloca %"struct.langcc::Result_T", align 8
  %20 = alloca %"struct.langcc::Result_T", align 8
  %21 = alloca %"struct.langcc::TokenBounds", align 4
  %22 = alloca %"struct.langcc::Result_T", align 8
  %23 = alloca %"struct.langcc::StrSlice", align 8
  %24 = alloca i8, align 1
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i8, align 1
  %28 = alloca %"struct.langcc::rc_ptr.27", align 8
  %29 = alloca %"struct.langcc::rc_ptr.81", align 8
  %30 = alloca %"struct.langcc::TokenBounds", align 4
  %31 = alloca %"struct.langcc::ParserAttrMask", align 8
  %32 = alloca %"struct.langcc::ParserLookahead", align 8
  %33 = alloca %"struct.langcc::StrSlice", align 8
  %34 = alloca %"struct.langcc::rc_ptr.27", align 8
  %35 = alloca %"struct.langcc::Result_T", align 8
  %36 = alloca %"struct.langcc::TokenBounds", align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %37, i32 0, i32 5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  store i64 %39, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %40, i32 0, i32 7
  %42 = load i64, ptr %41, align 8, !tbaa !20
  store i64 %42, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %43, i32 0, i32 9
  %45 = load i64, ptr %44, align 8, !tbaa !21
  store i64 %45, ptr %6, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %46, i32 0, i32 3
  %48 = load i64, ptr %47, align 8, !tbaa !22
  store i64 %48, ptr %7, align 8, !tbaa !19
  %49 = load i64, ptr %7, align 8, !tbaa !19
  %50 = sub nsw i64 %49, 6
  store i64 %50, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %51, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !23
  %54 = load i64, ptr %7, align 8, !tbaa !19
  %55 = sub nsw i64 %54, 1
  %56 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %53, i64 %55
  %57 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %56, i32 0, i32 1
  %58 = load i64, ptr %57, align 8, !tbaa !24
  store i64 %58, ptr %8, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #9
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %59, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !26
  %62 = load i64, ptr %4, align 8, !tbaa !19
  %63 = sub nsw i64 %62, 1
  %64 = getelementptr inbounds %"struct.langcc::SymItem", ptr %61, i64 %63
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %64, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #9
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %65, i32 0, i32 4
  %67 = load ptr, ptr %66, align 8, !tbaa !26
  %68 = load i64, ptr %4, align 8, !tbaa !19
  %69 = sub nsw i64 %68, 2
  %70 = getelementptr inbounds %"struct.langcc::SymItem", ptr %67, i64 %69
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %70, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #9
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !26
  %74 = load i64, ptr %4, align 8, !tbaa !19
  %75 = sub nsw i64 %74, 3
  %76 = getelementptr inbounds %"struct.langcc::SymItem", ptr %73, i64 %75
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %76, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %12) #9
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %77, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !26
  %80 = load i64, ptr %4, align 8, !tbaa !19
  %81 = sub nsw i64 %80, 4
  %82 = getelementptr inbounds %"struct.langcc::SymItem", ptr %79, i64 %81
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %82, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %13) #9
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !26
  %86 = load i64, ptr %4, align 8, !tbaa !19
  %87 = sub nsw i64 %86, 5
  %88 = getelementptr inbounds %"struct.langcc::SymItem", ptr %85, i64 %87
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %88, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %14) #9
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %89, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !26
  %92 = load i64, ptr %4, align 8, !tbaa !19
  %93 = sub nsw i64 %92, 6
  %94 = getelementptr inbounds %"struct.langcc::SymItem", ptr %91, i64 %93
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %94, i64 88, i1 false), !tbaa.struct !27
  %95 = load i64, ptr %4, align 8, !tbaa !19
  %96 = sub nsw i64 %95, 6
  store i64 %96, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %97, i32 0, i32 6
  %99 = load ptr, ptr %98, align 8, !tbaa !30
  %100 = load i64, ptr %5, align 8, !tbaa !19
  %101 = sub nsw i64 %100, 1
  %102 = getelementptr inbounds %"struct.langcc::Result_T", ptr %99, i64 %101
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %102, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #9
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %103, i32 0, i32 6
  %105 = load ptr, ptr %104, align 8, !tbaa !30
  %106 = load i64, ptr %5, align 8, !tbaa !19
  %107 = sub nsw i64 %106, 2
  %108 = getelementptr inbounds %"struct.langcc::Result_T", ptr %105, i64 %107
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %108, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %109, i32 0, i32 6
  %111 = load ptr, ptr %110, align 8, !tbaa !30
  %112 = load i64, ptr %5, align 8, !tbaa !19
  %113 = sub nsw i64 %112, 3
  %114 = getelementptr inbounds %"struct.langcc::Result_T", ptr %111, i64 %113
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %114, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #9
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %115, i32 0, i32 6
  %117 = load ptr, ptr %116, align 8, !tbaa !30
  %118 = load i64, ptr %5, align 8, !tbaa !19
  %119 = sub nsw i64 %118, 4
  %120 = getelementptr inbounds %"struct.langcc::Result_T", ptr %117, i64 %119
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %120, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %121, i32 0, i32 6
  %123 = load ptr, ptr %122, align 8, !tbaa !30
  %124 = load i64, ptr %5, align 8, !tbaa !19
  %125 = sub nsw i64 %124, 5
  %126 = getelementptr inbounds %"struct.langcc::Result_T", ptr %123, i64 %125
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %126, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #9
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %127, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !30
  %130 = load i64, ptr %5, align 8, !tbaa !19
  %131 = sub nsw i64 %130, 6
  %132 = getelementptr inbounds %"struct.langcc::Result_T", ptr %129, i64 %131
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %132, i64 16, i1 false), !tbaa.struct !31
  %133 = load i64, ptr %5, align 8, !tbaa !19
  %134 = sub nsw i64 %133, 6
  store i64 %134, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !31
  %135 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8
  %137 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %138 = load i64, ptr %137, align 8
  %139 = call i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr %136, i64 %138)
  store i64 %139, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #9
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %21, i32 0, i32 0
  %142 = load i32, ptr %141, align 4, !tbaa !32
  %143 = sext i32 %142 to i64
  call void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind writable sret(%"struct.langcc::StrSlice") align 8 %23, ptr noundef nonnull align 8 dereferenceable(192) %140, i64 noundef %143)
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #9
  %144 = getelementptr inbounds %"struct.langcc::Result_T", ptr %19, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !33
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %146, i32 0, i32 12
  %148 = load ptr, ptr %147, align 8, !tbaa !34
  %149 = invoke noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef %145, ptr noundef %148)
          to label %150 unwind label %221

150:                                              ; preds = %2
  %151 = zext i1 %149 to i8
  store i8 %151, ptr %24, align 1, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #9
  %152 = getelementptr inbounds %"struct.langcc::Result_T", ptr %18, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8, !tbaa !33
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %154, i32 0, i32 12
  %156 = load ptr, ptr %155, align 8, !tbaa !34
  %157 = invoke noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef %153, ptr noundef %156)
          to label %158 unwind label %225

158:                                              ; preds = %150
  %159 = zext i1 %157 to i8
  store i8 %159, ptr %27, align 1, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  %160 = getelementptr inbounds %"struct.langcc::Result_T", ptr %16, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !33
  %162 = getelementptr inbounds i8, ptr %161, i64 48
  invoke void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4data4Node4Expr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.27") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %162)
          to label %163 unwind label %229

163:                                              ; preds = %158
  invoke void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %164 unwind label %233

164:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #9
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %165, i32 0, i32 12
  %167 = load ptr, ptr %166, align 8, !tbaa !34
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = invoke noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %168)
          to label %170 unwind label %237

170:                                              ; preds = %164
  %171 = invoke noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %169)
          to label %172 unwind label %237

172:                                              ; preds = %170
  %173 = load i64, ptr %8, align 8, !tbaa !19
  %174 = trunc i64 %173 to i32
  %175 = getelementptr inbounds %"struct.langcc::Result_T", ptr %15, i32 0, i32 1
  %176 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %175, i32 0, i32 1
  %177 = load i32, ptr %176, align 4, !tbaa !37
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %30, i32 noundef %174, i32 noundef %177)
          to label %178 unwind label %237

178:                                              ; preds = %172
  invoke void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %31)
          to label %179 unwind label %237

179:                                              ; preds = %178
  invoke void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %32)
          to label %180 unwind label %237

180:                                              ; preds = %179
  invoke void @_ZN6langcc8StrSliceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %181 unwind label %237

181:                                              ; preds = %180
  %182 = load i8, ptr %24, align 1, !tbaa !35, !range !38, !noundef !39
  %183 = trunc i8 %182 to i1
  %184 = load i8, ptr %27, align 1, !tbaa !35, !range !38, !noundef !39
  %185 = trunc i8 %184 to i1
  invoke void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %186 unwind label %241

186:                                              ; preds = %181
  %187 = load i64, ptr %30, align 4
  invoke void @_ZN4lang4data4Node5Entry5Field8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_8StrSliceEbbNS4_6rc_ptrINS1_4Expr2_TEEE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.81") align 8 %29, ptr noundef %167, i64 noundef %171, i64 %187, i1 noundef zeroext false, i64 noundef -1, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %31, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %32, ptr noundef %33, i1 noundef zeroext %183, i1 noundef zeroext %185, ptr noundef %34)
          to label %188 unwind label %245

188:                                              ; preds = %186
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  invoke void @_ZNK6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %189 unwind label %250

189:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #9
  %190 = invoke noundef ptr @_ZNK6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %191 unwind label %254

191:                                              ; preds = %189
  %192 = load i64, ptr %8, align 8, !tbaa !19
  %193 = trunc i64 %192 to i32
  %194 = getelementptr inbounds %"struct.langcc::Result_T", ptr %15, i32 0, i32 1
  %195 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 4, !tbaa !37
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %36, i32 noundef %193, i32 noundef %196)
          to label %197 unwind label %254

197:                                              ; preds = %191
  %198 = load i64, ptr %36, align 4
  invoke void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef %190, i64 %198)
          to label %199 unwind label %254

199:                                              ; preds = %197
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %200, i32 0, i32 6
  %202 = load ptr, ptr %201, align 8, !tbaa !30
  %203 = load i64, ptr %5, align 8, !tbaa !19
  %204 = getelementptr inbounds %"struct.langcc::Result_T", ptr %202, i64 %203
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %204, ptr align 8 %35, i64 16, i1 false), !tbaa.struct !31
  %205 = load i64, ptr %5, align 8, !tbaa !19
  %206 = add nsw i64 %205, 1
  store i64 %206, ptr %5, align 8, !tbaa !19
  %207 = load i64, ptr %8, align 8, !tbaa !19
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 40, i64 noundef %207)
          to label %208 unwind label %254

208:                                              ; preds = %199
  %209 = load i64, ptr %4, align 8, !tbaa !19
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %210, i32 0, i32 5
  store i64 %209, ptr %211, align 8, !tbaa !9
  %212 = load i64, ptr %5, align 8, !tbaa !19
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %213, i32 0, i32 7
  store i64 %212, ptr %214, align 8, !tbaa !20
  %215 = load i64, ptr %6, align 8, !tbaa !19
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %216, i32 0, i32 9
  store i64 %215, ptr %217, align 8, !tbaa !21
  %218 = load i64, ptr %7, align 8, !tbaa !19
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %219, i32 0, i32 3
  store i64 %218, ptr %220, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #9
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  ret void

221:                                              ; preds = %2
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %25, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %26, align 4
  br label %263

225:                                              ; preds = %150
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %25, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %26, align 4
  br label %262

229:                                              ; preds = %158
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %25, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %26, align 4
  br label %261

233:                                              ; preds = %163
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %25, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %26, align 4
  br label %260

237:                                              ; preds = %180, %179, %178, %172, %170, %164
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %25, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %26, align 4
  br label %259

241:                                              ; preds = %181
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %25, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %26, align 4
  br label %249

245:                                              ; preds = %186
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %25, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %26, align 4
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #9
  br label %249

249:                                              ; preds = %245, %241
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  br label %259

250:                                              ; preds = %188
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %25, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %26, align 4
  br label %258

254:                                              ; preds = %199, %197, %191, %189
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %25, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #9
  br label %258

258:                                              ; preds = %254, %250
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #9
  br label %259

259:                                              ; preds = %258, %249, %237
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  br label %260

260:                                              ; preds = %259, %233
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #9
  br label %261

261:                                              ; preds = %260, %229
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  br label %262

262:                                              ; preds = %261, %225
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #9
  br label %263

263:                                              ; preds = %262, %221
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  br label %264

264:                                              ; preds = %263
  %265 = load ptr, ptr %25, align 8
  %266 = load i32, ptr %26, align 4
  %267 = insertvalue { ptr, i32 } poison, ptr %265, 0
  %268 = insertvalue { ptr, i32 } %267, i32 %266, 1
  resume { ptr, i32 } %268
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef, ptr noundef) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { alwaysinline mustprogress 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 #4 = { mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { alwaysinline mustprogress 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 #8 = { mustprogress noinline 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 #9 = { 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++ TBAA"}
!9 = !{!10, !12, i64 48}
!10 = !{!"_ZTSN6langcc15ParserProcStateE", !11, i64 0, !6, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !12, i64 48, !6, i64 56, !12, i64 64, !6, i64 72, !12, i64 80, !13, i64 88, !6, i64 176, !6, i64 184}
!11 = !{!"_ZTSN6langcc6rc_ptrINS_9LexOutputEEE", !6, i64 0, !6, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN6langcc7SymItemE", !12, i64 0, !12, i64 8, !14, i64 16, !12, i64 32, !12, i64 40, !12, i64 48, !15, i64 56, !18, i64 72}
!14 = !{!"_ZTSN6langcc14ParserAttrMaskE", !7, i64 0}
!15 = !{!"_ZTSN6langcc8Result_TE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSN6langcc11TokenBoundsE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN6langcc15ParserLookaheadE", !7, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!10, !12, i64 64}
!21 = !{!10, !12, i64 80}
!22 = !{!10, !12, i64 32}
!23 = !{!10, !6, i64 24}
!24 = !{!25, !12, i64 8}
!25 = !{!"_ZTSN6langcc21ParserVertexStackItemE", !12, i64 0, !12, i64 8}
!26 = !{!10, !6, i64 40}
!27 = !{i64 0, i64 8, !19, i64 8, i64 8, !19, i64 16, i64 16, !28, i64 32, i64 8, !19, i64 40, i64 8, !19, i64 48, i64 8, !19, i64 56, i64 8, !5, i64 64, i64 4, !29, i64 68, i64 4, !29, i64 72, i64 16, !28}
!28 = !{!7, !7, i64 0}
!29 = !{!17, !17, i64 0}
!30 = !{!10, !6, i64 56}
!31 = !{i64 0, i64 8, !5, i64 8, i64 4, !29, i64 12, i64 4, !29}
!32 = !{!16, !17, i64 0}
!33 = !{!15, !6, i64 0}
!34 = !{!10, !6, i64 184}
!35 = !{!36, !36, i64 0}
!36 = !{!"bool", !7, i64 0}
!37 = !{!15, !17, i64 12}
!38 = !{i8 0, i8 2}
!39 = !{}


; 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.langcc::rc_ptr.27" = type { ptr, ptr }
%"struct.langcc::rc_ptr.81" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::StrSlice" = type { %"struct.langcc::rc_ptr.80", i64, i64 }
%"struct.langcc::rc_ptr.80" = type { ptr, ptr }
%"struct.langcc::SymItem" = type { i64, i64, %"struct.langcc::ParserAttrMask", i64, i64, i64, %"struct.langcc::Result_T", %"struct.langcc::ParserLookahead" }
%"struct.langcc::Result_T" = type { ptr, %"struct.langcc::TokenBounds" }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.langcc::ParserVertexStackItem" = type { i64, i64 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4data4Node4Expr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.27") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc8StrSliceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang4data4Node5Entry5Field8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_8StrSliceEbbNS4_6rc_ptrINS1_4Expr2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.81") align 8, ptr noundef, i64 noundef, i64, i1 noundef zeroext, i64 noundef, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i64 noundef) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr, i64) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind noalias writable sret(%"struct.langcc::StrSlice") align 8, ptr noundef nonnull align 8 dereferenceable(192), i64 noundef) local_unnamed_addr #7 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang4data6parser17_parse_proc_9_6_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.langcc::StrSlice", align 8
  %4 = alloca %"struct.langcc::rc_ptr.27", align 8
  %5 = alloca %"struct.langcc::rc_ptr.81", align 8
  %6 = alloca %"struct.langcc::TokenBounds", align 8
  %7 = alloca %"struct.langcc::ParserAttrMask", align 8
  %8 = alloca %"struct.langcc::ParserLookahead", align 8
  %9 = alloca %"struct.langcc::StrSlice", align 8
  %10 = alloca %"struct.langcc::rc_ptr.27", align 8
  %11 = alloca %"struct.langcc::Result_T", align 8
  %12 = alloca %"struct.langcc::TokenBounds", align 8
  %13 = getelementptr inbounds i8, ptr %1, i64 48
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 64
  %16 = load i64, ptr %15, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %1, i64 80
  %18 = load i64, ptr %17, align 8, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %1, i64 32
  %20 = load i64, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %1, i64 24
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %23 = getelementptr %"struct.langcc::ParserVertexStackItem", ptr %22, i64 %20
  %24 = getelementptr i8, ptr %23, i64 -104
  %25 = load i64, ptr %24, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %1, i64 56
  %27 = load ptr, ptr %26, align 8, !tbaa !24
  %28 = getelementptr %"struct.langcc::Result_T", ptr %27, i64 %16
  %.sroa.4.0..sroa_idx = getelementptr i8, ptr %28, i64 -4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !25
  %29 = getelementptr i8, ptr %28, i64 -32
  %.sroa.010.0.copyload = load ptr, ptr %29, align 8, !tbaa !26
  %30 = getelementptr i8, ptr %28, i64 -64
  %.sroa.08.0.copyload = load ptr, ptr %30, align 8, !tbaa !26
  %31 = getelementptr i8, ptr %28, i64 -80
  %.sroa.06.0.copyload = load ptr, ptr %31, align 8, !tbaa !26
  %32 = add nsw i64 %16, -6
  %33 = getelementptr inbounds %"struct.langcc::Result_T", ptr %27, i64 %32
  %.sroa.04.0.copyload = load ptr, ptr %33, align 8, !tbaa !26
  %.sroa.55.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 8
  %.sroa.55.0.copyload = load i64, ptr %.sroa.55.0..sroa_idx, align 8
  %34 = tail call i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr %.sroa.04.0.copyload, i64 %.sroa.55.0.copyload)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #9
  %sext = shl i64 %34, 32
  %35 = ashr exact i64 %sext, 32
  call void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::StrSlice") align 8 %3, ptr noundef nonnull align 8 dereferenceable(192) %1, i64 noundef %35)
  %36 = getelementptr inbounds i8, ptr %1, i64 184
  %37 = load ptr, ptr %36, align 8, !tbaa !27
  %38 = invoke noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef %.sroa.06.0.copyload, ptr noundef %37)
          to label %39 unwind label %60

39:                                               ; preds = %2
  %40 = load ptr, ptr %36, align 8, !tbaa !27
  %41 = invoke noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef %.sroa.08.0.copyload, ptr noundef %40)
          to label %42 unwind label %62

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  %43 = getelementptr inbounds i8, ptr %.sroa.010.0.copyload, i64 48
  invoke void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4data4Node4Expr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.27") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %44 unwind label %64

44:                                               ; preds = %42
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %45 = load ptr, ptr %36, align 8, !tbaa !27
  %46 = call noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %47 = call noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
  %48 = trunc i64 %25 to i32
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %48, i32 noundef %.sroa.4.0.copyload)
  call void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %7)
  call void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %8)
  invoke void @_ZN6langcc8StrSliceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %49 unwind label %66

49:                                               ; preds = %44
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %50 = load i64, ptr %6, align 8
  invoke void @_ZN4lang4data4Node5Entry5Field8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_8StrSliceEbbNS4_6rc_ptrINS1_4Expr2_TEEE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.81") align 8 %5, ptr noundef %45, i64 noundef %47, i64 %50, i1 noundef zeroext false, i64 noundef -1, ptr noundef nonnull byval(%"struct.langcc::ParserAttrMask") align 8 %7, ptr noundef nonnull byval(%"struct.langcc::ParserLookahead") align 8 %8, ptr noundef nonnull %9, i1 noundef zeroext %38, i1 noundef zeroext %41, ptr noundef nonnull %10)
          to label %51 unwind label %68

51:                                               ; preds = %49
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @_ZNK6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  %52 = call noundef ptr @_ZNK6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %48, i32 noundef %.sroa.4.0.copyload)
  %53 = load i64, ptr %12, align 8
  call void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %52, i64 %53)
  %54 = load ptr, ptr %26, align 8, !tbaa !24
  %55 = getelementptr inbounds %"struct.langcc::Result_T", ptr %54, i64 %32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(16) %11, i64 16, i1 false), !tbaa.struct !28
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 40, i64 noundef %25)
          to label %56 unwind label %70

56:                                               ; preds = %51
  %57 = add nsw i64 %16, -5
  %58 = add nsw i64 %14, -6
  %59 = add nsw i64 %20, -6
  store i64 %58, ptr %13, align 8, !tbaa !5
  store i64 %57, ptr %15, align 8, !tbaa !18
  store i64 %18, ptr %17, align 8, !tbaa !19
  store i64 %59, ptr %19, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  ret void

60:                                               ; preds = %2
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %74

62:                                               ; preds = %39
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %74

64:                                               ; preds = %42
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %73

66:                                               ; preds = %44
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %72

68:                                               ; preds = %49
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  br label %72

70:                                               ; preds = %51
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  br label %72

72:                                               ; preds = %70, %68, %66
  %.pn = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #9
  br label %73

73:                                               ; preds = %72, %64
  %.pn.pn = phi { ptr, i32 } [ %.pn, %72 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  br label %74

74:                                               ; preds = %62, %73, %60
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %61, %60 ], [ %.pn.pn, %73 ], [ %63, %62 ]
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6langcc6rc_ptrIN4lang4data4Node5Entry5Field2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { alwaysinline mustprogress 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 #4 = { mustprogress 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 #5 = { inlinehint mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { alwaysinline mustprogress 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 #8 = { mustprogress noinline 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 #9 = { 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, !11, i64 48}
!6 = !{!"_ZTSN6langcc15ParserProcStateE", !7, i64 0, !8, i64 16, !8, i64 24, !11, i64 32, !8, i64 40, !11, i64 48, !8, i64 56, !11, i64 64, !8, i64 72, !11, i64 80, !12, i64 88, !8, i64 176, !8, i64 184}
!7 = !{!"_ZTSN6langcc6rc_ptrINS_9LexOutputEEE", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"_ZTSN6langcc7SymItemE", !11, i64 0, !11, i64 8, !13, i64 16, !11, i64 32, !11, i64 40, !11, i64 48, !14, i64 56, !17, i64 72}
!13 = !{!"_ZTSN6langcc14ParserAttrMaskE", !9, i64 0}
!14 = !{!"_ZTSN6langcc8Result_TE", !8, i64 0, !15, i64 8}
!15 = !{!"_ZTSN6langcc11TokenBoundsE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !9, i64 0}
!17 = !{!"_ZTSN6langcc15ParserLookaheadE", !9, i64 0}
!18 = !{!6, !11, i64 64}
!19 = !{!6, !11, i64 80}
!20 = !{!6, !11, i64 32}
!21 = !{!6, !8, i64 24}
!22 = !{!23, !11, i64 8}
!23 = !{!"_ZTSN6langcc21ParserVertexStackItemE", !11, i64 0, !11, i64 8}
!24 = !{!6, !8, i64 56}
!25 = !{!16, !16, i64 0}
!26 = !{!8, !8, i64 0}
!27 = !{!6, !8, i64 184}
!28 = !{i64 0, i64 8, !26, i64 8, i64 4, !25, i64 12, i64 4, !25}


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