; LLVM IR from Koukyosyumei/AIJack :: aivalut/src/storage/data.pb/ZN7storage5Tuple14_InternalParseEPKcPN6google8prot_28d51bf1 (InternalParseEPKcPN6google8protobuf8internal12ParseContextE)

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

%"class.storage::Tuple" = type <{ %"class.google::protobuf::Message", %"class.google::protobuf::RepeatedPtrField", i64, i64, %"class.google::protobuf::internal::CachedSize", [4 x i8] }>
%"class.google::protobuf::Message" = type { %"class.google::protobuf::MessageLite" }
%"class.google::protobuf::MessageLite" = type { ptr, %"class.google::protobuf::internal::InternalMetadata" }
%"class.google::protobuf::internal::InternalMetadata" = type { ptr }
%"class.google::protobuf::RepeatedPtrField" = type { %"class.google::protobuf::internal::RepeatedPtrFieldBase" }
%"class.google::protobuf::internal::RepeatedPtrFieldBase" = type { ptr, i32, i32, ptr }
%"class.google::protobuf::internal::CachedSize" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK6google8protobuf11MessageLite8GetArenaEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6google8protobuf8internal12ParseContext4DoneEPPKc(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN6google8protobuf8internal7ReadTagEPKcPjj(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef) #2

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

declare noundef ptr @_ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN6google8protobuf8internal16InternalMetadata22mutable_unknown_fieldsINS0_15UnknownFieldSetEEEPT_v(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7storage5Tuple14_InternalParseEPKcPN6google8protobuf8internal12ParseContextE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %12 = call noundef ptr @_ZNK6google8protobuf11MessageLite8GetArenaEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  store ptr %12, ptr %8, align 8, !tbaa !5
  br label %13

13:                                               ; preds = %142, %3
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = call noundef zeroext i1 @_ZN6google8protobuf8internal12ParseContext4DoneEPPKc(ptr noundef nonnull align 8 dereferenceable(112) %14, ptr noundef %6)
  %16 = xor i1 %15, true
  br i1 %16, label %17, label %144

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = call noundef ptr @_ZN6google8protobuf8internal7ReadTagEPKcPjj(ptr noundef %18, ptr noundef %9, i32 noundef 0)
  store ptr %19, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  %22 = xor i1 %21, true
  %23 = zext i1 %22 to i64
  %24 = call i64 @llvm.expect.i64(i64 %23, i64 0)
  %25 = icmp ne i64 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %17
  store i32 4, ptr %10, align 4
  br label %142

27:                                               ; preds = %17
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = lshr i32 %28, 3
  switch i32 %29, label %115 [
    i32 1, label %30
    i32 2, label %53
    i32 3, label %76
  ]

30:                                               ; preds = %27
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = trunc i32 %31 to i8
  %33 = zext i8 %32 to i32
  %34 = icmp eq i32 %33, 8
  %35 = xor i1 %34, true
  %36 = xor i1 %35, true
  %37 = zext i1 %36 to i64
  %38 = call i64 @llvm.expect.i64(i64 %37, i64 1)
  %39 = icmp ne i64 %38, 0
  br i1 %39, label %40, label %51

40:                                               ; preds = %30
  %41 = call noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef %6)
  %42 = getelementptr inbounds %"class.storage::Tuple", ptr %11, i32 0, i32 2
  store i64 %41, ptr %42, align 8, !tbaa !11
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  %45 = xor i1 %44, true
  %46 = zext i1 %45 to i64
  %47 = call i64 @llvm.expect.i64(i64 %46, i64 0)
  %48 = icmp ne i64 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %40
  store i32 4, ptr %10, align 4
  br label %142

50:                                               ; preds = %40
  br label %52

51:                                               ; preds = %30
  br label %116

52:                                               ; preds = %50
  store i32 2, ptr %10, align 4
  br label %142, !llvm.loop !22

53:                                               ; preds = %27
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = trunc i32 %54 to i8
  %56 = zext i8 %55 to i32
  %57 = icmp eq i32 %56, 16
  %58 = xor i1 %57, true
  %59 = xor i1 %58, true
  %60 = zext i1 %59 to i64
  %61 = call i64 @llvm.expect.i64(i64 %60, i64 1)
  %62 = icmp ne i64 %61, 0
  br i1 %62, label %63, label %74

63:                                               ; preds = %53
  %64 = call noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef %6)
  %65 = getelementptr inbounds %"class.storage::Tuple", ptr %11, i32 0, i32 3
  store i64 %64, ptr %65, align 8, !tbaa !24
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  %68 = xor i1 %67, true
  %69 = zext i1 %68 to i64
  %70 = call i64 @llvm.expect.i64(i64 %69, i64 0)
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %63
  store i32 4, ptr %10, align 4
  br label %142

73:                                               ; preds = %63
  br label %75

74:                                               ; preds = %53
  br label %116

75:                                               ; preds = %73
  store i32 2, ptr %10, align 4
  br label %142, !llvm.loop !22

76:                                               ; preds = %27
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = trunc i32 %77 to i8
  %79 = zext i8 %78 to i32
  %80 = icmp eq i32 %79, 26
  %81 = xor i1 %80, true
  %82 = xor i1 %81, true
  %83 = zext i1 %82 to i64
  %84 = call i64 @llvm.expect.i64(i64 %83, i64 1)
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %86, label %113

86:                                               ; preds = %76
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 -1
  store ptr %88, ptr %6, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %109, %86
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 1
  store ptr %91, ptr %6, align 8, !tbaa !5
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = call noundef ptr @_ZN7storage5Tuple18_internal_add_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %11)
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = call noundef ptr @_ZN6google8protobuf8internal12ParseContext12ParseMessageIN7storage9TupleDataEEEPKcPT_S7_(ptr noundef nonnull align 8 dereferenceable(112) %92, ptr noundef %93, ptr noundef %94)
  store ptr %95, ptr %6, align 8, !tbaa !5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  %98 = xor i1 %97, true
  %99 = zext i1 %98 to i64
  %100 = call i64 @llvm.expect.i64(i64 %99, i64 0)
  %101 = icmp ne i64 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %89
  store i32 4, ptr %10, align 4
  br label %142

103:                                              ; preds = %89
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = call noundef zeroext i1 @_ZN6google8protobuf8internal18EpsCopyInputStream13DataAvailableEPKc(ptr noundef nonnull align 8 dereferenceable(88) %104, ptr noundef %105)
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  br label %112

108:                                              ; preds = %103
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = call noundef zeroext i1 @_ZN6google8protobuf8internal9ExpectTagILj26EEEbPKc(ptr noundef %110)
  br i1 %111, label %89, label %112, !llvm.loop !25

112:                                              ; preds = %109, %107
  br label %114

113:                                              ; preds = %76
  br label %116

114:                                              ; preds = %112
  store i32 2, ptr %10, align 4
  br label %142, !llvm.loop !22

115:                                              ; preds = %27
  br label %116

116:                                              ; preds = %115, %113, %74, %51
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = and i32 %117, 7
  %119 = icmp eq i32 %118, 4
  br i1 %119, label %123, label %120

120:                                              ; preds = %116
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %126

123:                                              ; preds = %120, %116
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj(ptr noundef nonnull align 8 dereferenceable(88) %124, i32 noundef %125)
  store i32 9, ptr %10, align 4
  br label %142

126:                                              ; preds = %120
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds %"class.google::protobuf::MessageLite", ptr %11, i32 0, i32 1
  %130 = call noundef ptr @_ZN6google8protobuf8internal16InternalMetadata22mutable_unknown_fieldsINS0_15UnknownFieldSetEEEPT_v(ptr noundef nonnull align 8 dereferenceable(8) %129)
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = call noundef ptr @_ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE(i64 noundef %128, ptr noundef %130, ptr noundef %131, ptr noundef %132)
  store ptr %133, ptr %6, align 8, !tbaa !5
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = icmp ne ptr %134, null
  %136 = xor i1 %135, true
  %137 = zext i1 %136 to i64
  %138 = call i64 @llvm.expect.i64(i64 %137, i64 0)
  %139 = icmp ne i64 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %126
  store i32 4, ptr %10, align 4
  br label %142

141:                                              ; preds = %126
  store i32 2, ptr %10, align 4
  br label %142, !llvm.loop !22

142:                                              ; preds = %141, %140, %123, %114, %102, %75, %72, %52, %49, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  %143 = load i32, ptr %10, align 4
  switch i32 %143, label %148 [
    i32 2, label %13
    i32 9, label %145
    i32 4, label %147
  ]

144:                                              ; preds = %13
  br label %145

145:                                              ; preds = %147, %144, %142
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %146, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %148

147:                                              ; preds = %142
  store ptr null, ptr %6, align 8, !tbaa !5
  br label %145

148:                                              ; preds = %145, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %149 = load ptr, ptr %4, align 8
  ret ptr %149
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6google8protobuf8internal12ParseContext12ParseMessageIN7storage9TupleDataEEEPKcPT_S7_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN7storage5Tuple18_internal_add_dataEv(ptr noundef nonnull align 8 dereferenceable(64)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6google8protobuf8internal18EpsCopyInputStream13DataAvailableEPKc(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) #4 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #4 = { 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 #5 = { "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 = { 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 #7 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !18, i64 40}
!12 = !{!"_ZTSN7storage5TupleE", !13, i64 0, !16, i64 16, !18, i64 40, !18, i64 48, !19, i64 56}
!13 = !{!"_ZTSN6google8protobuf7MessageE", !14, i64 0}
!14 = !{!"_ZTSN6google8protobuf11MessageLiteE", !15, i64 8}
!15 = !{!"_ZTSN6google8protobuf8internal16InternalMetadataE", !6, i64 0}
!16 = !{!"_ZTSN6google8protobuf16RepeatedPtrFieldIN7storage9TupleDataEEE", !17, i64 0}
!17 = !{!"_ZTSN6google8protobuf8internal20RepeatedPtrFieldBaseE", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSN6google8protobuf8internal10CachedSizeE", !20, i64 0}
!20 = !{!"_ZTSSt6atomicIiE", !21, i64 0}
!21 = !{!"_ZTSSt13__atomic_baseIiE", !10, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !18, i64 48}
!25 = distinct !{!25, !23}


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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK6google8protobuf11MessageLite8GetArenaEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6google8protobuf8internal12ParseContext4DoneEPPKc(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN6google8protobuf8internal7ReadTagEPKcPjj(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) local_unnamed_addr #3 align 2

declare noundef ptr @_ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN6google8protobuf8internal16InternalMetadata22mutable_unknown_fieldsINS0_15UnknownFieldSetEEEPT_v(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7storage5Tuple14_InternalParseEPKcPN6google8protobuf8internal12ParseContextE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = tail call noundef ptr @_ZNK6google8protobuf11MessageLite8GetArenaEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %7 = call noundef zeroext i1 @_ZN6google8protobuf8internal12ParseContext4DoneEPPKc(ptr noundef nonnull align 8 dereferenceable(112) %2, ptr noundef nonnull %4)
  br i1 %7, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  br label %11

11:                                               ; preds = %.lr.ph, %55
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = call noundef ptr @_ZN6google8protobuf8internal7ReadTagEPKcPjj(ptr noundef %12, ptr noundef nonnull %5, i32 noundef 0)
  store ptr %13, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %select.unfold, label %14, !prof !9

14:                                               ; preds = %11
  %15 = load i32, ptr %5, align 4
  %16 = lshr i32 %15, 3
  switch i32 %16, label %46 [
    i32 1, label %17
    i32 2, label %23
    i32 3, label %29
  ]

17:                                               ; preds = %14
  %18 = and i32 %15, 255
  %19 = icmp eq i32 %18, 8
  br i1 %19, label %20, label %46, !prof !10

20:                                               ; preds = %17
  %21 = call noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef nonnull %4)
  store i64 %21, ptr %9, align 8, !tbaa !11
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %.not12 = icmp eq ptr %22, null
  br i1 %.not12, label %select.unfold, label %55, !prof !9

23:                                               ; preds = %14
  %24 = and i32 %15, 255
  %25 = icmp eq i32 %24, 16
  br i1 %25, label %26, label %46, !prof !10

26:                                               ; preds = %23
  %27 = call noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef nonnull %4)
  store i64 %27, ptr %8, align 8, !tbaa !23
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %.not11 = icmp eq ptr %28, null
  br i1 %.not11, label %select.unfold, label %55, !prof !9

29:                                               ; preds = %14
  %30 = and i32 %15, 255
  %31 = icmp eq i32 %30, 26
  br i1 %31, label %32, label %46, !prof !10

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %13, i64 -1
  store ptr %33, ptr %4, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %42, %32
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 1
  store ptr %36, ptr %4, align 8, !tbaa !5
  %37 = call noundef ptr @_ZN7storage5Tuple18_internal_add_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call noundef ptr @_ZN6google8protobuf8internal12ParseContext12ParseMessageIN7storage9TupleDataEEEPKcPT_S7_(ptr noundef nonnull align 8 dereferenceable(112) %2, ptr noundef %37, ptr noundef %38)
  store ptr %39, ptr %4, align 8, !tbaa !5
  %.not10 = icmp eq ptr %39, null
  br i1 %.not10, label %select.unfold, label %40, !prof !9

40:                                               ; preds = %34
  %41 = call noundef zeroext i1 @_ZN6google8protobuf8internal18EpsCopyInputStream13DataAvailableEPKc(ptr noundef nonnull align 8 dereferenceable(88) %2, ptr noundef nonnull %39)
  br i1 %41, label %42, label %45

42:                                               ; preds = %40
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call noundef zeroext i1 @_ZN6google8protobuf8internal9ExpectTagILj26EEEbPKc(ptr noundef %43)
  br i1 %44, label %34, label %45, !llvm.loop !24

45:                                               ; preds = %42, %40
  br label %55, !llvm.loop !26

46:                                               ; preds = %14, %29, %23, %17
  %47 = and i32 %15, 7
  %48 = icmp eq i32 %47, 4
  %49 = icmp eq i32 %15, 0
  %or.cond = or i1 %49, %48
  br i1 %or.cond, label %.thread19, label %50

.thread19:                                        ; preds = %46
  call void @_ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj(ptr noundef nonnull align 8 dereferenceable(88) %2, i32 noundef %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %.loopexit

50:                                               ; preds = %46
  %51 = zext i32 %15 to i64
  %52 = call noundef ptr @_ZN6google8protobuf8internal16InternalMetadata22mutable_unknown_fieldsINS0_15UnknownFieldSetEEEPT_v(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = call noundef ptr @_ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE(i64 noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef nonnull %2)
  store ptr %54, ptr %4, align 8, !tbaa !5
  %.not13 = icmp eq ptr %54, null
  br i1 %.not13, label %select.unfold, label %55, !prof !9

55:                                               ; preds = %50, %26, %20, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %56 = call noundef zeroext i1 @_ZN6google8protobuf8internal12ParseContext4DoneEPPKc(ptr noundef nonnull align 8 dereferenceable(112) %2, ptr noundef nonnull %4)
  br i1 %56, label %.loopexit, label %11

.loopexit:                                        ; preds = %55, %3, %.thread19, %select.unfold
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  ret ptr %57

select.unfold:                                    ; preds = %50, %26, %20, %11, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  store ptr null, ptr %4, align 8, !tbaa !5
  br label %.loopexit
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6google8protobuf8internal12ParseContext12ParseMessageIN7storage9TupleDataEEEPKcPT_S7_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN7storage5Tuple18_internal_add_dataEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6google8protobuf8internal18EpsCopyInputStream13DataAvailableEPKc(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6google8protobuf8internal9ExpectTagILj26EEEbPKc(ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { "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 = { 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 #6 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!10 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!11 = !{!12, !19, i64 40}
!12 = !{!"_ZTSN7storage5TupleE", !13, i64 0, !16, i64 16, !19, i64 40, !19, i64 48, !20, i64 56}
!13 = !{!"_ZTSN6google8protobuf7MessageE", !14, i64 0}
!14 = !{!"_ZTSN6google8protobuf11MessageLiteE", !15, i64 8}
!15 = !{!"_ZTSN6google8protobuf8internal16InternalMetadataE", !6, i64 0}
!16 = !{!"_ZTSN6google8protobuf16RepeatedPtrFieldIN7storage9TupleDataEEE", !17, i64 0}
!17 = !{!"_ZTSN6google8protobuf8internal20RepeatedPtrFieldBaseE", !6, i64 0, !18, i64 8, !18, i64 12, !6, i64 16}
!18 = !{!"int", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN6google8protobuf8internal10CachedSizeE", !21, i64 0}
!21 = !{!"_ZTSSt6atomicIiE", !22, i64 0}
!22 = !{!"_ZTSSt13__atomic_baseIiE", !18, i64 0}
!23 = !{!12, !19, i64 48}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


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