; LLVM IR from Koukyosyumei/AIJack :: aivalut/src/storage/data.pb/ZN7storage9TupleData14_InternalParseEPKcPN6google8_d1960976 (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::TupleData" = type { %"class.google::protobuf::Message", %"struct.google::protobuf::internal::ArenaStringPtr", i32, i32, float, %"class.google::protobuf::internal::CachedSize" }
%"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 }
%"struct.google::protobuf::internal::ArenaStringPtr" = type { ptr }
%"class.google::protobuf::internal::CachedSize" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }

@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1

; 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
define dso_local noundef ptr @_ZN7storage9TupleData14_InternalParseEPKcPN6google8protobuf8internal12ParseContextE(ptr noundef nonnull align 8 dereferenceable(40) %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 i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  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
  %13 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %14 = call noundef ptr @_ZNK6google8protobuf11MessageLite8GetArenaEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  store ptr %14, ptr %8, align 8, !tbaa !5
  br label %15

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

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

28:                                               ; preds = %19
  store i32 4, ptr %11, align 4
  br label %165

29:                                               ; preds = %19
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = lshr i32 %30, 3
  switch i32 %31, label %138 [
    i32 3, label %32
    i32 4, label %59
    i32 5, label %83
    i32 6, label %120
  ]

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

42:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %43 = call noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef %6)
  store i64 %43, ptr %10, align 8, !tbaa !11
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  %46 = xor i1 %45, true
  %47 = zext i1 %46 to i64
  %48 = call i64 @llvm.expect.i64(i64 %47, i64 0)
  %49 = icmp ne i64 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %42
  store i32 4, ptr %11, align 4
  br label %54

51:                                               ; preds = %42
  %52 = load i64, ptr %10, align 8, !tbaa !11
  %53 = trunc i64 %52 to i32
  call void @_ZN7storage9TupleData18_internal_set_typeENS_14TupleData_TypeE(ptr noundef nonnull align 8 dereferenceable(40) %13, i32 noundef %53)
  store i32 0, ptr %11, align 4
  br label %54

54:                                               ; preds = %51, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %55 = load i32, ptr %11, align 4
  switch i32 %55, label %165 [
    i32 0, label %56
  ]

56:                                               ; preds = %54
  br label %58

57:                                               ; preds = %32
  br label %139

58:                                               ; preds = %56
  store i32 2, ptr %11, align 4
  br label %165, !llvm.loop !13

59:                                               ; preds = %29
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = trunc i32 %60 to i8
  %62 = zext i8 %61 to i32
  %63 = icmp eq i32 %62, 32
  %64 = xor i1 %63, true
  %65 = xor i1 %64, true
  %66 = zext i1 %65 to i64
  %67 = call i64 @llvm.expect.i64(i64 %66, i64 1)
  %68 = icmp ne i64 %67, 0
  br i1 %68, label %69, label %81

69:                                               ; preds = %59
  %70 = call noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef %6)
  %71 = trunc i64 %70 to i32
  %72 = getelementptr inbounds %"class.storage::TupleData", ptr %13, i32 0, i32 3
  store i32 %71, ptr %72, align 4, !tbaa !15
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  %75 = xor i1 %74, true
  %76 = zext i1 %75 to i64
  %77 = call i64 @llvm.expect.i64(i64 %76, i64 0)
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %69
  store i32 4, ptr %11, align 4
  br label %165

80:                                               ; preds = %69
  br label %82

81:                                               ; preds = %59
  br label %139

82:                                               ; preds = %80
  store i32 2, ptr %11, align 4
  br label %165, !llvm.loop !13

83:                                               ; preds = %29
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = trunc i32 %84 to i8
  %86 = zext i8 %85 to i32
  %87 = icmp eq i32 %86, 42
  %88 = xor i1 %87, true
  %89 = xor i1 %88, true
  %90 = zext i1 %89 to i64
  %91 = call i64 @llvm.expect.i64(i64 %90, i64 1)
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %93, label %118

93:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %94 = call noundef ptr @_ZN7storage9TupleData21_internal_mutable_tosB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40) %13)
  store ptr %94, ptr %12, align 8, !tbaa !5
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = call noundef ptr @_ZN6google8protobuf8internal24InlineGreedyStringParserEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPNS1_12ParseContextE(ptr noundef %95, ptr noundef %96, ptr noundef %97)
  store ptr %98, ptr %6, align 8, !tbaa !5
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = call noundef zeroext i1 @_ZN6google8protobuf8internal10VerifyUTF8EPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef %99, ptr noundef @.str.3)
  %101 = xor i1 %100, true
  %102 = zext i1 %101 to i64
  %103 = call i64 @llvm.expect.i64(i64 %102, i64 0)
  %104 = icmp ne i64 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %93
  store i32 4, ptr %11, align 4
  br label %115

106:                                              ; preds = %93
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  %109 = xor i1 %108, true
  %110 = zext i1 %109 to i64
  %111 = call i64 @llvm.expect.i64(i64 %110, i64 0)
  %112 = icmp ne i64 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %106
  store i32 4, ptr %11, align 4
  br label %115

114:                                              ; preds = %106
  store i32 0, ptr %11, align 4
  br label %115

115:                                              ; preds = %114, %113, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %116 = load i32, ptr %11, align 4
  switch i32 %116, label %165 [
    i32 0, label %117
  ]

117:                                              ; preds = %115
  br label %119

118:                                              ; preds = %83
  br label %139

119:                                              ; preds = %117
  store i32 2, ptr %11, align 4
  br label %165, !llvm.loop !13

120:                                              ; preds = %29
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = trunc i32 %121 to i8
  %123 = zext i8 %122 to i32
  %124 = icmp eq i32 %123, 53
  %125 = xor i1 %124, true
  %126 = xor i1 %125, true
  %127 = zext i1 %126 to i64
  %128 = call i64 @llvm.expect.i64(i64 %127, i64 1)
  %129 = icmp ne i64 %128, 0
  br i1 %129, label %130, label %136

130:                                              ; preds = %120
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = call noundef float @_ZN6google8protobuf8internal13UnalignedLoadIfEET_PKc(ptr noundef %131)
  %133 = getelementptr inbounds %"class.storage::TupleData", ptr %13, i32 0, i32 4
  store float %132, ptr %133, align 8, !tbaa !25
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 4
  store ptr %135, ptr %6, align 8, !tbaa !5
  br label %137

136:                                              ; preds = %120
  br label %139

137:                                              ; preds = %130
  store i32 2, ptr %11, align 4
  br label %165, !llvm.loop !13

138:                                              ; preds = %29
  br label %139

139:                                              ; preds = %138, %136, %118, %81, %57
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = and i32 %140, 7
  %142 = icmp eq i32 %141, 4
  br i1 %142, label %146, label %143

143:                                              ; preds = %139
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %146, label %149

146:                                              ; preds = %143, %139
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj(ptr noundef nonnull align 8 dereferenceable(88) %147, i32 noundef %148)
  store i32 7, ptr %11, align 4
  br label %165

149:                                              ; preds = %143
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds %"class.google::protobuf::MessageLite", ptr %13, i32 0, i32 1
  %153 = call noundef ptr @_ZN6google8protobuf8internal16InternalMetadata22mutable_unknown_fieldsINS0_15UnknownFieldSetEEEPT_v(ptr noundef nonnull align 8 dereferenceable(8) %152)
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = call noundef ptr @_ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE(i64 noundef %151, ptr noundef %153, ptr noundef %154, ptr noundef %155)
  store ptr %156, ptr %6, align 8, !tbaa !5
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = icmp ne ptr %157, null
  %159 = xor i1 %158, true
  %160 = zext i1 %159 to i64
  %161 = call i64 @llvm.expect.i64(i64 %160, i64 0)
  %162 = icmp ne i64 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %149
  store i32 4, ptr %11, align 4
  br label %165

164:                                              ; preds = %149
  store i32 2, ptr %11, align 4
  br label %165, !llvm.loop !13

165:                                              ; preds = %164, %163, %146, %137, %119, %115, %82, %79, %58, %54, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  %166 = load i32, ptr %11, align 4
  switch i32 %166, label %171 [
    i32 2, label %15
    i32 7, label %168
    i32 4, label %170
  ]

167:                                              ; preds = %15
  br label %168

168:                                              ; preds = %170, %167, %165
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %169, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %171

170:                                              ; preds = %165
  store ptr null, ptr %6, align 8, !tbaa !5
  br label %168

171:                                              ; preds = %168, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  %172 = load ptr, ptr %4, align 8
  ret ptr %172
}

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7storage9TupleData18_internal_set_typeENS_14TupleData_TypeE(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #4 align 2

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

declare noundef ptr @_ZN6google8protobuf8internal24InlineGreedyStringParserEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPNS1_12ParseContextE(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6google8protobuf8internal10VerifyUTF8EPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6google8protobuf8internal13UnalignedLoadIfEET_PKc(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) #6 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)) #7 align 2

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 = { 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 #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 = { 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 #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 = { 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 28}
!16 = !{!"_ZTSN7storage9TupleDataE", !17, i64 0, !20, i64 16, !10, i64 24, !10, i64 28, !21, i64 32, !22, i64 36}
!17 = !{!"_ZTSN6google8protobuf7MessageE", !18, i64 0}
!18 = !{!"_ZTSN6google8protobuf11MessageLiteE", !19, i64 8}
!19 = !{!"_ZTSN6google8protobuf8internal16InternalMetadataE", !6, i64 0}
!20 = !{!"_ZTSN6google8protobuf8internal14ArenaStringPtrE", !6, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = !{!"_ZTSN6google8protobuf8internal10CachedSizeE", !23, i64 0}
!23 = !{!"_ZTSSt6atomicIiE", !24, i64 0}
!24 = !{!"_ZTSSt13__atomic_baseIiE", !10, i64 0}
!25 = !{!16, !21, i64 32}


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

@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1

; 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
define dso_local noundef ptr @_ZN7storage9TupleData14_InternalParseEPKcPN6google8protobuf8internal12ParseContextE(ptr noundef nonnull align 8 dereferenceable(40) %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 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = getelementptr inbounds i8, ptr %0, i64 28
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  br label %10

10:                                               ; preds = %select.unfold, %3
  %11 = call noundef zeroext i1 @_ZN6google8protobuf8internal12ParseContext4DoneEPPKc(ptr noundef nonnull align 8 dereferenceable(112) %2, ptr noundef nonnull %4)
  br i1 %11, label %.loopexit, label %12

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

15:                                               ; preds = %12
  %16 = load i32, ptr %5, align 4
  %17 = lshr i32 %16, 3
  switch i32 %17, label %49 [
    i32 3, label %18
    i32 4, label %26
    i32 5, label %33
    i32 6, label %42
  ]

18:                                               ; preds = %15
  %19 = and i32 %16, 255
  %20 = icmp eq i32 %19, 24
  br i1 %20, label %21, label %49, !prof !10

21:                                               ; preds = %18
  %22 = call noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef nonnull %4)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %.not18.not = icmp eq ptr %23, null
  br i1 %.not18.not, label %.thread, label %24, !prof !9

24:                                               ; preds = %21
  %25 = trunc i64 %22 to i32
  call void @_ZN7storage9TupleData18_internal_set_typeENS_14TupleData_TypeE(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %25)
  br label %select.unfold

26:                                               ; preds = %15
  %27 = and i32 %16, 255
  %28 = icmp eq i32 %27, 32
  br i1 %28, label %29, label %49, !prof !10

29:                                               ; preds = %26
  %30 = call noundef i64 @_ZN6google8protobuf8internal12ReadVarint64EPPKc(ptr noundef nonnull %4)
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %8, align 4, !tbaa !11
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %.not17 = icmp eq ptr %32, null
  br i1 %.not17, label %.thread, label %select.unfold, !prof !9

33:                                               ; preds = %15
  %34 = and i32 %16, 255
  %35 = icmp eq i32 %34, 42
  br i1 %35, label %36, label %49, !prof !10

36:                                               ; preds = %33
  %37 = call noundef ptr @_ZN7storage9TupleData21_internal_mutable_tosB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call noundef ptr @_ZN6google8protobuf8internal24InlineGreedyStringParserEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPNS1_12ParseContextE(ptr noundef %37, ptr noundef %38, ptr noundef nonnull %2)
  store ptr %39, ptr %4, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZN6google8protobuf8internal10VerifyUTF8EPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef %37, ptr noundef nonnull @.str.3)
  %41 = load ptr, ptr %4, align 8
  %.not16 = icmp eq ptr %41, null
  %.20 = select i1 %.not16, i32 4, i32 2
  br i1 %40, label %select.unfold, label %.thread, !prof !10

42:                                               ; preds = %15
  %43 = and i32 %16, 255
  %44 = icmp eq i32 %43, 53
  br i1 %44, label %45, label %49, !prof !10

45:                                               ; preds = %42
  %46 = call noundef float @_ZN6google8protobuf8internal13UnalignedLoadIfEET_PKc(ptr noundef nonnull %14)
  store float %46, ptr %7, align 8, !tbaa !22
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 4
  store ptr %48, ptr %4, align 8, !tbaa !5
  br label %select.unfold, !llvm.loop !23

49:                                               ; preds = %15, %42, %33, %26, %18
  %50 = and i32 %16, 7
  %51 = icmp eq i32 %50, 4
  %52 = icmp eq i32 %16, 0
  %or.cond = or i1 %52, %51
  br i1 %or.cond, label %.thread25, label %53

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

53:                                               ; preds = %49
  %54 = zext i32 %16 to i64
  %55 = call noundef ptr @_ZN6google8protobuf8internal16InternalMetadata22mutable_unknown_fieldsINS0_15UnknownFieldSetEEEPT_v(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = call noundef ptr @_ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE(i64 noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef nonnull %2)
  store ptr %57, ptr %4, align 8, !tbaa !5
  %.not19 = icmp eq ptr %57, null
  br i1 %.not19, label %.thread, label %select.unfold, !prof !9

.thread:                                          ; preds = %36, %12, %21, %29, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %.loopexit27

select.unfold:                                    ; preds = %36, %53, %29, %24, %45
  %.2 = phi i32 [ 2, %45 ], [ 2, %24 ], [ 2, %29 ], [ 2, %53 ], [ %.20, %36 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %switch = icmp eq i32 %.2, 2
  br i1 %switch, label %10, label %.loopexit27

.loopexit:                                        ; preds = %10, %.thread25, %.loopexit27
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  ret ptr %58

.loopexit27:                                      ; preds = %select.unfold, %.thread
  store ptr null, ptr %4, align 8, !tbaa !5
  br label %.loopexit
}

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7storage9TupleData18_internal_set_typeENS_14TupleData_TypeE(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #3 align 2

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

declare noundef ptr @_ZN6google8protobuf8internal24InlineGreedyStringParserEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPNS1_12ParseContextE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6google8protobuf8internal10VerifyUTF8EPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6google8protobuf8internal13UnalignedLoadIfEET_PKc(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef) local_unnamed_addr #5 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 #6 align 2

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 = { 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 #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 = { 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 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!10 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!11 = !{!12, !17, i64 28}
!12 = !{!"_ZTSN7storage9TupleDataE", !13, i64 0, !16, i64 16, !17, i64 24, !17, i64 28, !18, i64 32, !19, i64 36}
!13 = !{!"_ZTSN6google8protobuf7MessageE", !14, i64 0}
!14 = !{!"_ZTSN6google8protobuf11MessageLiteE", !15, i64 8}
!15 = !{!"_ZTSN6google8protobuf8internal16InternalMetadataE", !6, i64 0}
!16 = !{!"_ZTSN6google8protobuf8internal14ArenaStringPtrE", !6, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSN6google8protobuf8internal10CachedSizeE", !20, i64 0}
!20 = !{!"_ZTSSt6atomicIiE", !21, i64 0}
!21 = !{!"_ZTSSt13__atomic_baseIiE", !17, i64 0}
!22 = !{!12, !18, i64 32}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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