; LLVM IR from jzimmerman/langcc :: gen/meta/gen.ll (ZN4lang4meta6parser18_parse_proc_65_0_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.44" = type { ptr, ptr }
%"struct.langcc::rc_ptr.322" = 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.161", i64, i64 }
%"struct.langcc::rc_ptr.161" = 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_ptrIN4lang4meta4Node9ParseExpr2_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_polyIN4lang4meta4Node9ParseExpr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.44") 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_ptrIN4lang4meta4Node9ParseExpr2_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_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang4meta4Node9ParseExpr8RepCount8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS2_2_TEEENS4_8StrSliceE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.322") 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, 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_ptrIN4lang4meta4Node9ParseExpr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang4meta6parser18_parse_proc_65_0_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::Result_T", align 8
  %13 = alloca %"struct.langcc::Result_T", align 8
  %14 = alloca %"struct.langcc::Result_T", align 8
  %15 = alloca %"struct.langcc::rc_ptr.44", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"struct.langcc::TokenBounds", align 4
  %19 = alloca %"struct.langcc::Result_T", align 8
  %20 = alloca %"struct.langcc::StrSlice", align 8
  %21 = alloca %"struct.langcc::rc_ptr.322", align 8
  %22 = alloca %"struct.langcc::TokenBounds", align 4
  %23 = alloca %"struct.langcc::ParserAttrMask", align 8
  %24 = alloca %"struct.langcc::ParserLookahead", align 8
  %25 = alloca %"struct.langcc::rc_ptr.44", align 8
  %26 = alloca %"struct.langcc::StrSlice", align 8
  %27 = alloca %"struct.langcc::Result_T", align 8
  %28 = alloca %"struct.langcc::TokenBounds", align 4
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %33, i32 0, i32 5
  %35 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %35, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %36, i32 0, i32 7
  %38 = load i64, ptr %37, align 8, !tbaa !20
  store i64 %38, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %39, i32 0, i32 9
  %41 = load i64, ptr %40, align 8, !tbaa !21
  store i64 %41, ptr %6, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %42, i32 0, i32 3
  %44 = load i64, ptr %43, align 8, !tbaa !22
  store i64 %44, ptr %7, align 8, !tbaa !19
  %45 = load i64, ptr %7, align 8, !tbaa !19
  %46 = sub nsw i64 %45, 3
  store i64 %46, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !23
  %50 = load i64, ptr %7, align 8, !tbaa !19
  %51 = sub nsw i64 %50, 1
  %52 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %49, i64 %51
  %53 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !24
  store i64 %54, ptr %8, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #9
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %55, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !26
  %58 = load i64, ptr %4, align 8, !tbaa !19
  %59 = sub nsw i64 %58, 1
  %60 = getelementptr inbounds %"struct.langcc::SymItem", ptr %57, i64 %59
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %60, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #9
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !26
  %64 = load i64, ptr %4, align 8, !tbaa !19
  %65 = sub nsw i64 %64, 2
  %66 = getelementptr inbounds %"struct.langcc::SymItem", ptr %63, i64 %65
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %66, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #9
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %70 = load i64, ptr %4, align 8, !tbaa !19
  %71 = sub nsw i64 %70, 3
  %72 = getelementptr inbounds %"struct.langcc::SymItem", ptr %69, i64 %71
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %72, i64 88, i1 false), !tbaa.struct !27
  %73 = load i64, ptr %4, align 8, !tbaa !19
  %74 = sub nsw i64 %73, 3
  store i64 %74, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %75, i32 0, i32 6
  %77 = load ptr, ptr %76, align 8, !tbaa !30
  %78 = load i64, ptr %5, align 8, !tbaa !19
  %79 = sub nsw i64 %78, 1
  %80 = getelementptr inbounds %"struct.langcc::Result_T", ptr %77, i64 %79
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %80, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %81, i32 0, i32 6
  %83 = load ptr, ptr %82, align 8, !tbaa !30
  %84 = load i64, ptr %5, align 8, !tbaa !19
  %85 = sub nsw i64 %84, 2
  %86 = getelementptr inbounds %"struct.langcc::Result_T", ptr %83, i64 %85
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %86, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %87, i32 0, i32 6
  %89 = load ptr, ptr %88, align 8, !tbaa !30
  %90 = load i64, ptr %5, align 8, !tbaa !19
  %91 = sub nsw i64 %90, 3
  %92 = getelementptr inbounds %"struct.langcc::Result_T", ptr %89, i64 %91
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %92, i64 16, i1 false), !tbaa.struct !31
  %93 = load i64, ptr %5, align 8, !tbaa !19
  %94 = sub nsw i64 %93, 3
  store i64 %94, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  %95 = getelementptr inbounds %"struct.langcc::Result_T", ptr %14, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !32
  %97 = getelementptr inbounds i8, ptr %96, i64 48
  call void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4meta4Node9ParseExpr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.44") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %97)
  invoke void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %98 unwind label %197

98:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !31
  %99 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %102 = load i64, ptr %101, align 8
  %103 = invoke i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr %100, i64 %102)
          to label %104 unwind label %201

104:                                              ; preds = %98
  store i64 %103, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #9
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %18, i32 0, i32 0
  %107 = load i32, ptr %106, align 4, !tbaa !33
  %108 = sext i32 %107 to i64
  invoke void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind writable sret(%"struct.langcc::StrSlice") align 8 %20, ptr noundef nonnull align 8 dereferenceable(192) %105, i64 noundef %108)
          to label %109 unwind label %205

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %110, i32 0, i32 12
  %112 = load ptr, ptr %111, align 8, !tbaa !34
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = invoke noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %113)
          to label %115 unwind label %209

115:                                              ; preds = %109
  %116 = invoke noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %114)
          to label %117 unwind label %209

117:                                              ; preds = %115
  %118 = load i64, ptr %8, align 8, !tbaa !19
  %119 = trunc i64 %118 to i32
  %120 = getelementptr inbounds %"struct.langcc::Result_T", ptr %12, i32 0, i32 1
  %121 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 4, !tbaa !35
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %22, i32 noundef %119, i32 noundef %122)
          to label %123 unwind label %209

123:                                              ; preds = %117
  invoke void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %23)
          to label %124 unwind label %209

124:                                              ; preds = %123
  invoke void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %24)
          to label %125 unwind label %209

125:                                              ; preds = %124
  invoke void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %126 unwind label %209

126:                                              ; preds = %125
  invoke void @_ZN6langcc8StrSliceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %127 unwind label %213

127:                                              ; preds = %126
  %128 = load i64, ptr %22, align 4
  invoke void @_ZN4lang4meta4Node9ParseExpr8RepCount8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS2_2_TEEENS4_8StrSliceE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.322") align 8 %21, ptr noundef %112, i64 noundef %116, i64 %128, i1 noundef zeroext false, i64 noundef -1, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %23, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %24, ptr noundef %25, ptr noundef %26)
          to label %129 unwind label %217

129:                                              ; preds = %127
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #9
  invoke void @_ZNK6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %130 unwind label %222

130:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %131 = invoke noundef ptr @_ZNK6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %132 unwind label %226

132:                                              ; preds = %130
  %133 = load i64, ptr %8, align 8, !tbaa !19
  %134 = trunc i64 %133 to i32
  %135 = getelementptr inbounds %"struct.langcc::Result_T", ptr %12, i32 0, i32 1
  %136 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 4, !tbaa !35
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %28, i32 noundef %134, i32 noundef %137)
          to label %138 unwind label %226

138:                                              ; preds = %132
  %139 = load i64, ptr %28, align 4
  invoke void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef %131, i64 %139)
          to label %140 unwind label %226

140:                                              ; preds = %138
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %141, i32 0, i32 6
  %143 = load ptr, ptr %142, align 8, !tbaa !30
  %144 = load i64, ptr %5, align 8, !tbaa !19
  %145 = getelementptr inbounds %"struct.langcc::Result_T", ptr %143, i64 %144
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %145, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !31
  %146 = load i64, ptr %5, align 8, !tbaa !19
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %5, align 8, !tbaa !19
  %148 = load i64, ptr %8, align 8, !tbaa !19
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 114, i64 noundef %148)
          to label %149 unwind label %226

149:                                              ; preds = %140
  %150 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %151 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds [16 x i8], ptr %151, i64 0, i64 0
  store i8 8, ptr %152, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %153 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %154 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds [16 x i8], ptr %154, i64 0, i64 0
  %156 = load i8, ptr %155, align 8, !tbaa !28
  %157 = zext i8 %156 to i64
  store i64 %157, ptr %29, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  store i64 4, ptr %30, align 8, !tbaa !19
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %159 unwind label %230

159:                                              ; preds = %149
  %160 = load i64, ptr %158, align 8, !tbaa !19
  %161 = trunc i64 %160 to i8
  %162 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %163 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds [16 x i8], ptr %163, i64 0, i64 0
  store i8 %161, ptr %164, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %165 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %166 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds [16 x i8], ptr %166, i64 0, i64 0
  %168 = load i8, ptr %167, align 8, !tbaa !28
  %169 = zext i8 %168 to i64
  store i64 %169, ptr %31, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %170 = getelementptr inbounds %"struct.langcc::SymItem", ptr %11, i32 0, i32 2
  %171 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %170, i32 0, i32 0
  %172 = getelementptr inbounds [16 x i8], ptr %171, i64 0, i64 0
  %173 = load i8, ptr %172, align 8, !tbaa !28
  %174 = zext i8 %173 to i64
  store i64 %174, ptr %32, align 8, !tbaa !19
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %176 unwind label %234

176:                                              ; preds = %159
  %177 = load i64, ptr %175, align 8, !tbaa !19
  %178 = trunc i64 %177 to i8
  %179 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %180 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %179, i32 0, i32 0
  %181 = getelementptr inbounds [16 x i8], ptr %180, i64 0, i64 0
  store i8 %178, ptr %181, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  %182 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %183 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %182, i32 0, i32 0
  %184 = getelementptr inbounds [16 x i8], ptr %183, i64 0, i64 1
  store i8 8, ptr %184, align 1, !tbaa !28
  %185 = load i64, ptr %4, align 8, !tbaa !19
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %186, i32 0, i32 5
  store i64 %185, ptr %187, align 8, !tbaa !9
  %188 = load i64, ptr %5, align 8, !tbaa !19
  %189 = load ptr, ptr %3, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %189, i32 0, i32 7
  store i64 %188, ptr %190, align 8, !tbaa !20
  %191 = load i64, ptr %6, align 8, !tbaa !19
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %192, i32 0, i32 9
  store i64 %191, ptr %193, align 8, !tbaa !21
  %194 = load i64, ptr %7, align 8, !tbaa !19
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %195, i32 0, i32 3
  store i64 %194, ptr %196, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, 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

197:                                              ; preds = %2
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %16, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %17, align 4
  br label %243

201:                                              ; preds = %98
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %16, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %17, align 4
  br label %242

205:                                              ; preds = %104
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %16, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %17, align 4
  br label %241

209:                                              ; preds = %125, %124, %123, %117, %115, %109
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %16, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %17, align 4
  br label %240

213:                                              ; preds = %126
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %16, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %17, align 4
  br label %221

217:                                              ; preds = %127
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %16, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %17, align 4
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %221

221:                                              ; preds = %217, %213
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #9
  br label %240

222:                                              ; preds = %129
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %16, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %17, align 4
  br label %239

226:                                              ; preds = %140, %138, %132, %130
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %16, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %17, align 4
  br label %238

230:                                              ; preds = %149
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %16, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %238

234:                                              ; preds = %159
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %16, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %238

238:                                              ; preds = %234, %230, %226
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %239

239:                                              ; preds = %238, %222
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #9
  br label %240

240:                                              ; preds = %239, %221, %209
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  br label %241

241:                                              ; preds = %240, %205
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #9
  br label %242

242:                                              ; preds = %241, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %243

243:                                              ; preds = %242, %197
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, 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 %244

244:                                              ; preds = %243
  %245 = load ptr, ptr %16, align 8
  %246 = load i32, ptr %17, align 4
  %247 = insertvalue { ptr, i32 } poison, ptr %245, 0
  %248 = insertvalue { ptr, i32 } %247, i32 %246, 1
  resume { ptr, i32 } %248
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_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 = !{!15, !6, i64 0}
!33 = !{!16, !17, i64 0}
!34 = !{!10, !6, i64 184}
!35 = !{!15, !17, i64 12}


; 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.44" = type { ptr, ptr }
%"struct.langcc::rc_ptr.322" = 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.161", i64, i64 }
%"struct.langcc::rc_ptr.161" = 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_ptrIN4lang4meta4Node9ParseExpr2_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_polyIN4lang4meta4Node9ParseExpr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.44") 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_ptrIN4lang4meta4Node9ParseExpr2_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_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang4meta4Node9ParseExpr8RepCount8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS2_2_TEEENS4_8StrSliceE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.322") 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, 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_ptrIN4lang4meta4Node9ParseExpr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang4meta6parser18_parse_proc_65_0_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::rc_ptr.44", align 8
  %4 = alloca %"struct.langcc::StrSlice", align 8
  %5 = alloca %"struct.langcc::rc_ptr.322", 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::rc_ptr.44", align 8
  %10 = alloca %"struct.langcc::StrSlice", align 8
  %11 = alloca %"struct.langcc::Result_T", align 8
  %12 = alloca %"struct.langcc::TokenBounds", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = getelementptr inbounds i8, ptr %1, i64 48
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 64
  %20 = load i64, ptr %19, align 8, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %1, i64 80
  %22 = load i64, ptr %21, align 8, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %1, i64 32
  %24 = load i64, ptr %23, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %1, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !21
  %27 = getelementptr %"struct.langcc::ParserVertexStackItem", ptr %26, i64 %24
  %28 = getelementptr i8, ptr %27, i64 -56
  %29 = load i64, ptr %28, align 8, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %1, i64 40
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %32 = add nsw i64 %18, -3
  %.sroa.4.0..sroa_idx = getelementptr inbounds %"struct.langcc::SymItem", ptr %31, i64 %32, i32 2
  %.sroa.4.0.copyload = load i8, ptr %.sroa.4.0..sroa_idx, align 8
  %33 = getelementptr inbounds i8, ptr %1, i64 56
  %34 = load ptr, ptr %33, align 8, !tbaa !25
  %35 = getelementptr %"struct.langcc::Result_T", ptr %34, i64 %20
  %36 = getelementptr i8, ptr %35, i64 -16
  %.sroa.04.0.copyload = load ptr, ptr %36, align 8, !tbaa !26
  %.sroa.55.0..sroa_idx = getelementptr i8, ptr %35, i64 -8
  %.sroa.55.0.copyload = load i64, ptr %.sroa.55.0..sroa_idx, align 8
  %37 = add nsw i64 %20, -3
  %38 = getelementptr inbounds %"struct.langcc::Result_T", ptr %34, i64 %37
  %.sroa.02.0.copyload = load ptr, ptr %38, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  %39 = getelementptr inbounds i8, ptr %.sroa.02.0.copyload, i64 48
  call void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang4meta4Node9ParseExpr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.44") align 8 %3, ptr noundef nonnull align 8 dereferenceable(16) %39)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %40 = 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 %4) #9
  %sext = shl i64 %40, 32
  %41 = ashr exact i64 %sext, 32
  invoke void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::StrSlice") align 8 %4, ptr noundef nonnull align 8 dereferenceable(192) %1, i64 noundef %41)
          to label %42 unwind label %68

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %43 = getelementptr inbounds i8, ptr %1, i64 184
  %44 = load ptr, ptr %43, align 8, !tbaa !27
  %45 = call noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %46 = call noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %45)
  %47 = trunc i64 %29 to i32
  %.sroa.55.12.extract.shift = lshr i64 %.sroa.55.0.copyload, 32
  %.sroa.55.12.extract.trunc = trunc nuw i64 %.sroa.55.12.extract.shift to i32
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %47, i32 noundef %.sroa.55.12.extract.trunc)
  call void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %7)
  call void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %8)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %3)
  invoke void @_ZN6langcc8StrSliceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %48 unwind label %70

48:                                               ; preds = %42
  %49 = load i64, ptr %6, align 8
  invoke void @_ZN4lang4meta4Node9ParseExpr8RepCount8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS2_2_TEEENS4_8StrSliceE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.322") align 8 %5, ptr noundef %44, i64 noundef %46, i64 %49, 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, ptr noundef nonnull %10)
          to label %50 unwind label %72

50:                                               ; preds = %48
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  call void @_ZNK6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  %51 = call noundef ptr @_ZNK6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %47, i32 noundef %.sroa.55.12.extract.trunc)
  %52 = load i64, ptr %12, align 8
  call void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %51, i64 %52)
  %53 = load ptr, ptr %33, align 8, !tbaa !25
  %54 = getelementptr inbounds %"struct.langcc::Result_T", ptr %53, i64 %37
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %54, 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 114, i64 noundef %29)
          to label %55 unwind label %75

55:                                               ; preds = %50
  %56 = add nsw i64 %20, -2
  %57 = add nsw i64 %24, -3
  %58 = getelementptr inbounds i8, ptr %0, i64 16
  store i8 8, ptr %58, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  store i64 8, ptr %13, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  store i64 4, ptr %14, align 8, !tbaa !31
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %60 = load i64, ptr %59, align 8, !tbaa !31
  %61 = trunc i64 %60 to i8
  store i8 %61, ptr %58, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %62 = and i64 %60, 255
  store i64 %62, ptr %15, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %63 = zext i8 %.sroa.4.0.copyload to i64
  store i64 %63, ptr %16, align 8, !tbaa !31
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %65 = load i64, ptr %64, align 8, !tbaa !31
  %66 = trunc i64 %65 to i8
  store i8 %66, ptr %58, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  %67 = getelementptr inbounds i8, ptr %0, i64 17
  store i8 8, ptr %67, align 1, !tbaa !30
  store i64 %32, ptr %17, align 8, !tbaa !5
  store i64 %56, ptr %19, align 8, !tbaa !18
  store i64 %22, ptr %21, align 8, !tbaa !19
  store i64 %57, ptr %23, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  ret void

68:                                               ; preds = %2
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %78

70:                                               ; preds = %42
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %48
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  br label %74

74:                                               ; preds = %72, %70
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #9
  br label %77

75:                                               ; preds = %50
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  br label %77

77:                                               ; preds = %75, %74
  %.pn53 = phi { ptr, i32 } [ %76, %75 ], [ %.pn, %74 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  br label %78

78:                                               ; preds = %77, %68
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %77 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9ParseExpr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn53.pn
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK6langcc6rc_ptrIN4lang4meta4Node9ParseExpr8RepCount2_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_ptrIN4lang4meta4Node9ParseExpr8RepCount2_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 40}
!25 = !{!6, !8, i64 56}
!26 = !{!8, !8, i64 0}
!27 = !{!6, !8, i64 184}
!28 = !{i64 0, i64 8, !26, i64 8, i64 4, !29, i64 12, i64 4, !29}
!29 = !{!16, !16, i64 0}
!30 = !{!9, !9, i64 0}
!31 = !{!11, !11, i64 0}


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