; LLVM IR from UBIC-repo/core :: Network (NetworkMessageHandler)

; 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.AskForBlocks = type { i8, i64, i64 }
%class.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.4 }
%union.anon.4 = type { i32 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.CDataStream = type <{ %"class.std::vector", i32, i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.NetworkMessage = type { i32, ptr }
%struct.TransmitBlocks = type { i8, %"class.std::vector.15" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.TransmitBlock = type { i8, %"class.std::vector.5" }

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

; 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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256), i8 noundef zeroext) unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #1

; Function Attrs: nounwind
declare void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN21NetworkMessageHandler18handleAskForBlocksE12AskForBlocksSt10shared_ptrI13PeerInterfaceE(ptr noundef byval(%struct.AskForBlocks) align 8 %0, ptr noundef %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %class.Log, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::vector.5", align 8
  %16 = alloca %"class.std::vector.5", align 8
  %17 = alloca %"class.std::vector.5", align 8
  %18 = alloca %class.CDataStream, align 8
  %19 = alloca %class.NetworkMessage, align 8
  %20 = alloca %class.NetworkMessage, align 8
  %21 = alloca %class.CDataStream, align 8
  %22 = alloca %class.NetworkMessage, align 8
  %23 = alloca %class.NetworkMessage, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.std::vector.5", align 8
  %28 = alloca %"class.std::vector.5", align 8
  %29 = alloca %"class.std::vector.5", align 8
  %30 = alloca %class.CDataStream, align 8
  %31 = alloca %class.NetworkMessage, align 8
  %32 = alloca %class.NetworkMessage, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  %33 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Chain8InstanceEv()
  store ptr %33, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  %34 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 1) #11
  store ptr %34, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %35 = getelementptr inbounds %struct.AskForBlocks, ptr %0, i32 0, i32 1
  %36 = load i64, ptr %35, align 8, !tbaa !9
  store i64 %36, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %37 = load i64, ptr %6, align 8, !tbaa !12
  %38 = getelementptr inbounds %struct.AskForBlocks, ptr %0, i32 0, i32 2
  %39 = load i64, ptr %38, align 8, !tbaa !13
  %40 = sub i64 %39, 1
  %41 = add i64 %37, %40
  store i64 %41, ptr %7, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 256, ptr %8) #10
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %8, i8 noundef zeroext 0)
  %42 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %8, ptr noundef @.str.21)
          to label %43 unwind label %69

43:                                               ; preds = %2
  %44 = getelementptr inbounds %struct.AskForBlocks, ptr %0, i32 0, i32 2
  %45 = load i64, ptr %44, align 8, !tbaa !13
  %46 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %42, i64 noundef %45)
          to label %47 unwind label %69

47:                                               ; preds = %43
  %48 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %46, ptr noundef @.str.22)
          to label %49 unwind label %69

49:                                               ; preds = %47
  %50 = getelementptr inbounds %struct.AskForBlocks, ptr %0, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %48, i64 noundef %51)
          to label %53 unwind label %69

53:                                               ; preds = %49
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %8) #10
  %54 = call noundef ptr @_ZNKSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %1) #10
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  %56 = getelementptr inbounds ptr, ptr %55, i64 11
  %57 = load ptr, ptr %56, align 8
  %58 = call noundef zeroext i16 %57(ptr noundef nonnull align 8 dereferenceable(8) %54)
  %59 = zext i16 %58 to i32
  %60 = icmp sge i32 %59, 32
  br i1 %60, label %61, label %219

61:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  store i64 1000, ptr %11, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %62 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #11
  call void @llvm.memset.p0.i64(ptr align 16 %62, i8 0, i64 32, i1 false)
  call void @_ZN14TransmitBlocksC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #10
  store ptr %62, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %63 = load i64, ptr %6, align 8, !tbaa !12
  store i64 %63, ptr %13, align 8, !tbaa !12
  br label %64

64:                                               ; preds = %170, %61
  %65 = load i64, ptr %13, align 8, !tbaa !12
  %66 = load i64, ptr %7, align 8, !tbaa !12
  %67 = icmp ule i64 %65, %66
  br i1 %67, label %73, label %68

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %173

69:                                               ; preds = %49, %47, %43, %2
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %8) #10
  br label %311

73:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load i64, ptr %13, align 8, !tbaa !12
  %76 = call noundef ptr @_ZN5Chain14getBlockHeaderEm(ptr noundef nonnull align 8 dereferenceable(32) %74, i64 noundef %75)
  store ptr %76, ptr %14, align 8, !tbaa !5
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %165

79:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #10
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11BlockHeader13getHeaderHashEv(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8 %15, ptr noundef nonnull align 8 dereferenceable(400) %80)
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #10
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %82 unwind label %119

82:                                               ; preds = %79
  invoke void @_ZN10BlockStore17getRawBlockVectorESt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8 %16, ptr noundef %17)
          to label %83 unwind label %123

83:                                               ; preds = %82
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  %84 = load i64, ptr %11, align 8, !tbaa !12
  %85 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  %86 = add i64 %84, %85
  %87 = icmp ugt i64 %86, 2000000
  br i1 %87, label %88, label %151

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #10
  invoke void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %18, i32 noundef 2, i32 noundef 1)
          to label %89 unwind label %127

89:                                               ; preds = %88
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI14TransmitBlocksEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %18, ptr noundef nonnull align 8 dereferenceable(32) %90)
          to label %92 unwind label %131

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #10
  invoke void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %93 unwind label %135

93:                                               ; preds = %92
  %94 = invoke noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %18)
          to label %95 unwind label %139

95:                                               ; preds = %93
  invoke void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %94)
          to label %96 unwind label %139

96:                                               ; preds = %95
  %97 = invoke noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %98 unwind label %139

98:                                               ; preds = %96
  %99 = invoke noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %18)
          to label %100 unwind label %139

100:                                              ; preds = %98
  %101 = invoke noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %18)
          to label %102 unwind label %139

102:                                              ; preds = %100
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %97, ptr align 1 %99, i64 %101, i1 false)
  invoke void @_ZN11CDataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(36) %18)
          to label %103 unwind label %139

103:                                              ; preds = %102
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %104 unwind label %139

104:                                              ; preds = %103
  %105 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #10
  invoke void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %106 unwind label %139

106:                                              ; preds = %104
  %107 = load ptr, ptr %105, align 8, !tbaa !14
  %108 = getelementptr inbounds ptr, ptr %107, i64 1
  %109 = load ptr, ptr %108, align 8
  invoke void %109(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef %20)
          to label %110 unwind label %143

110:                                              ; preds = %106
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  %111 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #11
          to label %112 unwind label %139

112:                                              ; preds = %110
  call void @llvm.memset.p0.i64(ptr align 16 %111, i8 0, i64 32, i1 false)
  call void @_ZN14TransmitBlocksC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %111) #10
  store ptr %111, ptr %12, align 8, !tbaa !5
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.TransmitBlocks, ptr %113, i32 0, i32 1
  invoke void @_ZNSt6vectorIS_IhSaIhEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %114, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %115 unwind label %139

115:                                              ; preds = %112
  %116 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  %117 = load i64, ptr %11, align 8, !tbaa !12
  %118 = add i64 %117, %116
  store i64 %118, ptr %11, align 8, !tbaa !12
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #10
  br label %162

119:                                              ; preds = %79
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %9, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %10, align 4
  br label %164

123:                                              ; preds = %82
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %9, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %10, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #10
  br label %164

127:                                              ; preds = %88
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %9, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %10, align 4
  br label %150

131:                                              ; preds = %89
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %9, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %10, align 4
  br label %149

135:                                              ; preds = %92
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  br label %148

139:                                              ; preds = %112, %110, %104, %103, %102, %100, %98, %96, %95, %93
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  br label %147

143:                                              ; preds = %106
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %9, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %10, align 4
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  br label %147

147:                                              ; preds = %143, %139
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #10
  br label %148

148:                                              ; preds = %147, %135
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  br label %149

149:                                              ; preds = %148, %131
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #10
  br label %150

150:                                              ; preds = %149, %127
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #10
  br label %163

151:                                              ; preds = %83
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.TransmitBlocks, ptr %152, i32 0, i32 1
  invoke void @_ZNSt6vectorIS_IhSaIhEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %153, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %154 unwind label %158

154:                                              ; preds = %151
  %155 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  %156 = load i64, ptr %11, align 8, !tbaa !12
  %157 = add i64 %156, %155
  store i64 %157, ptr %11, align 8, !tbaa !12
  br label %162

158:                                              ; preds = %151
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %9, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %10, align 4
  br label %163

162:                                              ; preds = %154, %115
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #10
  br label %165

163:                                              ; preds = %158, %150
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  br label %164

164:                                              ; preds = %163, %123, %119
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %218

165:                                              ; preds = %162, %73
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = icmp eq ptr %166, null
  br i1 %167, label %169, label %168

168:                                              ; preds = %165
  call void @_ZN11BlockHeaderD2Ev(ptr noundef nonnull align 8 dereferenceable(400) %166) #10
  call void @_ZdlPvm(ptr noundef %166, i64 noundef 400) #12
  br label %169

169:                                              ; preds = %168, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  br label %170

170:                                              ; preds = %169
  %171 = load i64, ptr %13, align 8, !tbaa !12
  %172 = add i64 %171, 1
  store i64 %172, ptr %13, align 8, !tbaa !12
  br label %64, !llvm.loop !16

173:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #10
  call void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %21, i32 noundef 2, i32 noundef 1)
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI14TransmitBlocksEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %21, ptr noundef nonnull align 8 dereferenceable(32) %174)
          to label %176 unwind label %199

176:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #10
  invoke void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %177 unwind label %203

177:                                              ; preds = %176
  %178 = invoke noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %21)
          to label %179 unwind label %207

179:                                              ; preds = %177
  invoke void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef %178)
          to label %180 unwind label %207

180:                                              ; preds = %179
  %181 = invoke noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %182 unwind label %207

182:                                              ; preds = %180
  %183 = invoke noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %21)
          to label %184 unwind label %207

184:                                              ; preds = %182
  %185 = invoke noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %21)
          to label %186 unwind label %207

186:                                              ; preds = %184
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %181, ptr align 1 %183, i64 %185, i1 false)
  invoke void @_ZN11CDataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(36) %21)
          to label %187 unwind label %207

187:                                              ; preds = %186
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %188 unwind label %207

188:                                              ; preds = %187
  %189 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #10
  invoke void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %190 unwind label %207

190:                                              ; preds = %188
  %191 = load ptr, ptr %189, align 8, !tbaa !14
  %192 = getelementptr inbounds ptr, ptr %191, i64 1
  %193 = load ptr, ptr %192, align 8
  invoke void %193(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef %23)
          to label %194 unwind label %211

194:                                              ; preds = %190
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #10
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = icmp eq ptr %195, null
  br i1 %196, label %198, label %197

197:                                              ; preds = %194
  call void @_ZN14TransmitBlocksD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %195) #10
  call void @_ZdlPvm(ptr noundef %195, i64 noundef 32) #12
  br label %198

198:                                              ; preds = %197, %194
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %310

199:                                              ; preds = %173
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %9, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %10, align 4
  br label %217

203:                                              ; preds = %176
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %9, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %10, align 4
  br label %216

207:                                              ; preds = %188, %187, %186, %184, %182, %180, %179, %177
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %9, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %10, align 4
  br label %215

211:                                              ; preds = %190
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %9, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %10, align 4
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #10
  br label %215

215:                                              ; preds = %211, %207
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #10
  br label %216

216:                                              ; preds = %215, %203
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  br label %217

217:                                              ; preds = %216, %199
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #10
  br label %218

218:                                              ; preds = %217, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %311

219:                                              ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %220 = load i64, ptr %6, align 8, !tbaa !12
  store i64 %220, ptr %24, align 8, !tbaa !12
  br label %221

221:                                              ; preds = %306, %219
  %222 = load i64, ptr %24, align 8, !tbaa !12
  %223 = load i64, ptr %7, align 8, !tbaa !12
  %224 = icmp ule i64 %222, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %309

226:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %227 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #11
  call void @llvm.memset.p0.i64(ptr align 16 %227, i8 0, i64 32, i1 false)
  call void @_ZN13TransmitBlockC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %227) #10
  store ptr %227, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = load i64, ptr %24, align 8, !tbaa !12
  %230 = call noundef ptr @_ZN5Chain14getBlockHeaderEm(ptr noundef nonnull align 8 dereferenceable(32) %228, i64 noundef %229)
  store ptr %230, ptr %26, align 8, !tbaa !5
  %231 = load ptr, ptr %26, align 8, !tbaa !5
  %232 = icmp ne ptr %231, null
  br i1 %232, label %233, label %297

233:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #10
  %234 = load ptr, ptr %26, align 8, !tbaa !5
  call void @_ZN11BlockHeader13getHeaderHashEv(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8 %27, ptr noundef nonnull align 8 dereferenceable(400) %234)
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #10
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %236 unwind label %263

236:                                              ; preds = %233
  invoke void @_ZN10BlockStore17getRawBlockVectorESt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8 %28, ptr noundef %29)
          to label %237 unwind label %267

237:                                              ; preds = %236
  %238 = load ptr, ptr %25, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.TransmitBlock, ptr %238, i32 0, i32 1
  %240 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIhSaIhEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %239, ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #10
  invoke void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %30, i32 noundef 2, i32 noundef 1)
          to label %241 unwind label %272

241:                                              ; preds = %237
  %242 = load ptr, ptr %25, align 8, !tbaa !5
  %243 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI13TransmitBlockEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %30, ptr noundef nonnull align 8 dereferenceable(32) %242)
          to label %244 unwind label %276

244:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #10
  invoke void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %245 unwind label %280

245:                                              ; preds = %244
  %246 = invoke noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %30)
          to label %247 unwind label %284

247:                                              ; preds = %245
  invoke void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %31, i64 noundef %246)
          to label %248 unwind label %284

248:                                              ; preds = %247
  %249 = invoke noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %250 unwind label %284

250:                                              ; preds = %248
  %251 = invoke noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %30)
          to label %252 unwind label %284

252:                                              ; preds = %250
  %253 = invoke noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %30)
          to label %254 unwind label %284

254:                                              ; preds = %252
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %249, ptr align 1 %251, i64 %253, i1 false)
  invoke void @_ZN11CDataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(36) %30)
          to label %255 unwind label %284

255:                                              ; preds = %254
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %256 unwind label %284

256:                                              ; preds = %255
  %257 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #10
  invoke void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %258 unwind label %284

258:                                              ; preds = %256
  %259 = load ptr, ptr %257, align 8, !tbaa !14
  %260 = getelementptr inbounds ptr, ptr %259, i64 1
  %261 = load ptr, ptr %260, align 8
  invoke void %261(ptr noundef nonnull align 8 dereferenceable(8) %257, ptr noundef %32)
          to label %262 unwind label %288

262:                                              ; preds = %258
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #10
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %30) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #10
  br label %297

263:                                              ; preds = %233
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %9, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %10, align 4
  br label %271

267:                                              ; preds = %236
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %9, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %10, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #10
  br label %271

271:                                              ; preds = %267, %263
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  br label %296

272:                                              ; preds = %237
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %9, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %10, align 4
  br label %295

276:                                              ; preds = %241
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %9, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %10, align 4
  br label %294

280:                                              ; preds = %244
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %9, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %10, align 4
  br label %293

284:                                              ; preds = %256, %255, %254, %252, %250, %248, %247, %245
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %9, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %10, align 4
  br label %292

288:                                              ; preds = %258
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %9, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %10, align 4
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #10
  br label %292

292:                                              ; preds = %288, %284
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #10
  br label %293

293:                                              ; preds = %292, %280
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  br label %294

294:                                              ; preds = %293, %276
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %30) #10
  br label %295

295:                                              ; preds = %294, %272
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #10
  br label %296

296:                                              ; preds = %295, %271
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %311

297:                                              ; preds = %262, %226
  %298 = load ptr, ptr %26, align 8, !tbaa !5
  %299 = icmp eq ptr %298, null
  br i1 %299, label %301, label %300

300:                                              ; preds = %297
  call void @_ZN11BlockHeaderD2Ev(ptr noundef nonnull align 8 dereferenceable(400) %298) #10
  call void @_ZdlPvm(ptr noundef %298, i64 noundef 400) #12
  br label %301

301:                                              ; preds = %300, %297
  %302 = load ptr, ptr %25, align 8, !tbaa !5
  %303 = icmp eq ptr %302, null
  br i1 %303, label %305, label %304

304:                                              ; preds = %301
  call void @_ZN13TransmitBlockD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %302) #10
  call void @_ZdlPvm(ptr noundef %302, i64 noundef 32) #12
  br label %305

305:                                              ; preds = %304, %301
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  br label %306

306:                                              ; preds = %305
  %307 = load i64, ptr %24, align 8, !tbaa !12
  %308 = add i64 %307, 1
  store i64 %308, ptr %24, align 8, !tbaa !12
  br label %221, !llvm.loop !18

309:                                              ; preds = %225
  br label %310

310:                                              ; preds = %309, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  ret void

311:                                              ; preds = %296, %218, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  br label %312

312:                                              ; preds = %311
  %313 = load ptr, ptr %9, align 8
  %314 = load i32, ptr %10, align 4
  %315 = insertvalue { ptr, i32 } poison, ptr %313, 0
  %316 = insertvalue { ptr, i32 } %315, i32 %314, 1
  resume { ptr, i32 } %316
}

; 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) #6

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #7

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #9 align 2

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef) #1

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

declare noundef ptr @_ZN5Chain14getBlockHeaderEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #1

declare void @_ZN11BlockHeader13getHeaderHashEv(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8, ptr noundef nonnull align 8 dereferenceable(400)) #1

declare void @_ZN10BlockStore17getRawBlockVectorESt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI14TransmitBlocksEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IhSaIhEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11BlockHeaderD2Ev(ptr noundef nonnull align 8 dereferenceable(400)) unnamed_addr #9 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIhSaIhEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI13TransmitBlockEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nobuiltin allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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, !11, i64 8}
!10 = !{!"_ZTS12AskForBlocks", !7, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; 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.AskForBlocks = type { i8, i64, i64 }
%class.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.4 }
%union.anon.4 = type { i32 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.CDataStream = type <{ %"class.std::vector", i32, i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, zero_after_free_allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.NetworkMessage = type { i32, ptr }

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

; 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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256), i8 noundef zeroext) unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN21NetworkMessageHandler18handleAskForBlocksE12AskForBlocksSt10shared_ptrI13PeerInterfaceE(ptr nocapture noundef readonly byval(%struct.AskForBlocks) align 8 %0, ptr noundef %1) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.Log, align 8
  %4 = alloca %"class.std::vector.5", align 8
  %5 = alloca %"class.std::vector.5", align 8
  %6 = alloca %"class.std::vector.5", align 8
  %7 = alloca %class.CDataStream, align 8
  %8 = alloca %class.NetworkMessage, align 8
  %9 = alloca %class.NetworkMessage, align 8
  %10 = alloca %class.CDataStream, align 8
  %11 = alloca %class.NetworkMessage, align 8
  %12 = alloca %class.NetworkMessage, align 8
  %13 = alloca %"class.std::vector.5", align 8
  %14 = alloca %"class.std::vector.5", align 8
  %15 = alloca %"class.std::vector.5", align 8
  %16 = alloca %class.CDataStream, align 8
  %17 = alloca %class.NetworkMessage, align 8
  %18 = alloca %class.NetworkMessage, align 8
  %19 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN5Chain8InstanceEv()
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = load i64, ptr %22, align 8, !tbaa !10
  %24 = add i64 %21, -1
  %25 = add i64 %24, %23
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #10
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %3, i8 noundef zeroext 0)
  %26 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %3, ptr noundef nonnull @.str.21)
          to label %27 unwind label %43

27:                                               ; preds = %2
  %28 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %26, i64 noundef %23)
          to label %29 unwind label %43

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %28, ptr noundef nonnull @.str.22)
          to label %31 unwind label %43

31:                                               ; preds = %29
  %32 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256) %30, i64 noundef %21)
          to label %33 unwind label %43

33:                                               ; preds = %31
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #10
  %34 = call noundef ptr @_ZNKSt12__shared_ptrI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %1) #10
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %35, i64 88
  %37 = load ptr, ptr %36, align 8
  %38 = call noundef zeroext i16 %37(ptr noundef nonnull align 8 dereferenceable(8) %34)
  %39 = icmp ugt i16 %38, 31
  br i1 %39, label %40, label %.preheader

.preheader:                                       ; preds = %33
  %.not91 = icmp ugt i64 %21, %25
  br i1 %.not91, label %.loopexit, label %.lr.ph

40:                                               ; preds = %33
  %41 = call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %41, i8 0, i64 32, i1 false)
  call void @_ZN14TransmitBlocksC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #10
  %.not6693 = icmp ugt i64 %21, %25
  br i1 %.not6693, label %._crit_edge, label %.lr.ph97

._crit_edge:                                      ; preds = %.thread, %40
  %.052.lcssa = phi ptr [ %41, %40 ], [ %.25482, %.thread ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #10
  call void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %10, i32 noundef 2, i32 noundef 1)
  %42 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI14TransmitBlocksEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %10, ptr noundef nonnull align 8 dereferenceable(32) %.052.lcssa)
          to label %96 unwind label %107

43:                                               ; preds = %31, %29, %27, %2
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #10
  br label %154

.lr.ph97:                                         ; preds = %40, %.thread
  %.04896 = phi i64 [ %.25083, %.thread ], [ 1000, %40 ]
  %.05195 = phi i64 [ %95, %.thread ], [ %21, %40 ]
  %.05294 = phi ptr [ %.25482, %.thread ], [ %41, %40 ]
  %45 = call noundef ptr @_ZN5Chain14getBlockHeaderEm(ptr noundef nonnull align 8 dereferenceable(32) %19, i64 noundef %.05195)
  %.not70 = icmp eq ptr %45, null
  br i1 %.not70, label %.thread, label %46

46:                                               ; preds = %.lr.ph97
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #10
  call void @_ZN11BlockHeader13getHeaderHashEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.5") align 8 %4, ptr noundef nonnull align 8 dereferenceable(400) %45)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #10
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %47 unwind label %71

47:                                               ; preds = %46
  invoke void @_ZN10BlockStore17getRawBlockVectorESt6vectorIhSaIhEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.5") align 8 %5, ptr noundef nonnull %6)
          to label %48 unwind label %73

48:                                               ; preds = %47
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  %49 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  %50 = add i64 %49, %.04896
  %51 = icmp ugt i64 %50, 2000000
  br i1 %51, label %52, label %86

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #10
  invoke void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %7, i32 noundef 2, i32 noundef 1)
          to label %53 unwind label %75

53:                                               ; preds = %52
  %54 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI14TransmitBlocksEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %7, ptr noundef nonnull align 8 dereferenceable(32) %.05294)
          to label %55 unwind label %77

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #10
  call void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %56 = call noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  call void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %56)
  %57 = call noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %58 = call noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  %59 = call noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %57, ptr align 1 %58, i64 %59, i1 false)
  call void @_ZN11CDataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %60 unwind label %79

60:                                               ; preds = %55
  %61 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #10
  call void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load ptr, ptr %63, align 8
  invoke void %64(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull %9)
          to label %65 unwind label %81

65:                                               ; preds = %60
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  %66 = invoke noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #11
          to label %67 unwind label %79

67:                                               ; preds = %65
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %66, i8 0, i64 32, i1 false)
  call void @_ZN14TransmitBlocksC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %66) #10
  %68 = getelementptr inbounds i8, ptr %66, i64 8
  invoke void @_ZNSt6vectorIS_IhSaIhEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %68, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %69 unwind label %79

69:                                               ; preds = %67
  %70 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #10
  br label %94

71:                                               ; preds = %46
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %93

73:                                               ; preds = %47
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  br label %93

75:                                               ; preds = %52
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %85

77:                                               ; preds = %53
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %84

79:                                               ; preds = %67, %65, %55
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %83

81:                                               ; preds = %60
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  br label %83

83:                                               ; preds = %81, %79
  %.pn71 = phi { ptr, i32 } [ %80, %79 ], [ %82, %81 ]
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  br label %84

84:                                               ; preds = %83, %77
  %.pn71.pn = phi { ptr, i32 } [ %.pn71, %83 ], [ %78, %77 ]
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #10
  br label %85

85:                                               ; preds = %84, %75
  %.pn71.pn.pn = phi { ptr, i32 } [ %.pn71.pn, %84 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #10
  br label %92

86:                                               ; preds = %48
  %87 = getelementptr inbounds i8, ptr %.05294, i64 8
  invoke void @_ZNSt6vectorIS_IhSaIhEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %88 unwind label %90

88:                                               ; preds = %86
  %89 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  br label %94

90:                                               ; preds = %86
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %92

92:                                               ; preds = %90, %85
  %.pn71.pn.pn.pn = phi { ptr, i32 } [ %.pn71.pn.pn, %85 ], [ %91, %90 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  br label %93

93:                                               ; preds = %92, %73, %71
  %.pn71.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn71.pn.pn.pn, %92 ], [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  br label %154

94:                                               ; preds = %88, %69
  %.153 = phi ptr [ %66, %69 ], [ %.05294, %88 ]
  %.pn79 = phi i64 [ %70, %69 ], [ %89, %88 ]
  %.149 = add i64 %.pn79, %.04896
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @_ZN11BlockHeaderD2Ev(ptr noundef nonnull align 8 dereferenceable(400) %45) #10
  call void @_ZdlPvm(ptr noundef nonnull %45, i64 noundef 400) #12
  br label %.thread

.thread:                                          ; preds = %.lr.ph97, %94
  %.25083 = phi i64 [ %.149, %94 ], [ %.04896, %.lr.ph97 ]
  %.25482 = phi ptr [ %.153, %94 ], [ %.05294, %.lr.ph97 ]
  %95 = add i64 %.05195, 1
  %.not66 = icmp ugt i64 %95, %25
  br i1 %.not66, label %._crit_edge, label %.lr.ph97, !llvm.loop !13

96:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #10
  call void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %97 = call noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %10)
  call void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %97)
  %98 = call noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %99 = call noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %10)
  %100 = call noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %10)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %98, ptr align 1 %99, i64 %100, i1 false)
  call void @_ZN11CDataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(36) %10)
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %101 unwind label %109

101:                                              ; preds = %96
  %102 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #10
  call void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %103 = load ptr, ptr %102, align 8, !tbaa !11
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = load ptr, ptr %104, align 8
  invoke void %105(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull %12)
          to label %106 unwind label %111

106:                                              ; preds = %101
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  call void @_ZN14TransmitBlocksD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.052.lcssa) #10
  call void @_ZdlPvm(ptr noundef %.052.lcssa, i64 noundef 32) #12
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #10
  br label %.loopexit

107:                                              ; preds = %._crit_edge
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %114

109:                                              ; preds = %96
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %113

111:                                              ; preds = %101
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  br label %113

113:                                              ; preds = %111, %109
  %.pn67 = phi { ptr, i32 } [ %112, %111 ], [ %110, %109 ]
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  br label %114

114:                                              ; preds = %113, %107
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %113 ], [ %108, %107 ]
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #10
  br label %154

.lr.ph:                                           ; preds = %.preheader, %152
  %.04792 = phi i64 [ %153, %152 ], [ %21, %.preheader ]
  %115 = call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %115, i8 0, i64 32, i1 false)
  call void @_ZN13TransmitBlockC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %115) #10
  %116 = call noundef ptr @_ZN5Chain14getBlockHeaderEm(ptr noundef nonnull align 8 dereferenceable(32) %19, i64 noundef %.04792)
  %cond = icmp eq ptr %116, null
  br i1 %cond, label %152, label %117

117:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #10
  call void @_ZN11BlockHeader13getHeaderHashEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.5") align 8 %13, ptr noundef nonnull align 8 dereferenceable(400) %116)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #10
  invoke void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %118 unwind label %134

118:                                              ; preds = %117
  invoke void @_ZN10BlockStore17getRawBlockVectorESt6vectorIhSaIhEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.5") align 8 %14, ptr noundef nonnull %15)
          to label %119 unwind label %136

119:                                              ; preds = %118
  %120 = getelementptr inbounds i8, ptr %115, i64 8
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIhSaIhEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #10
  invoke void @_ZN11CDataStreamC2Eii(ptr noundef nonnull align 8 dereferenceable(36) %16, i32 noundef 2, i32 noundef 1)
          to label %122 unwind label %139

122:                                              ; preds = %119
  %123 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI13TransmitBlockEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36) %16, ptr noundef nonnull align 8 dereferenceable(32) %115)
          to label %124 unwind label %141

124:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  call void @_ZN14NetworkMessageC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %125 = call noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %16)
  call void @_ZN14NetworkMessage11body_lengthEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %125)
  %126 = call noundef ptr @_ZN14NetworkMessage4bodyEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %127 = call noundef ptr @_ZN11CDataStream4dataEv(ptr noundef nonnull align 8 dereferenceable(36) %16)
  %128 = call noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36) %16)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %126, ptr align 1 %127, i64 %128, i1 false)
  call void @_ZN11CDataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(36) %16)
  invoke void @_ZN14NetworkMessage13encode_headerEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %129 unwind label %143

129:                                              ; preds = %124
  %130 = call noundef ptr @_ZNKSt19__shared_ptr_accessI13PeerInterfaceLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #10
  call void @_ZN14NetworkMessageC2ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %131 = load ptr, ptr %130, align 8, !tbaa !11
  %132 = getelementptr inbounds i8, ptr %131, i64 8
  %133 = load ptr, ptr %132, align 8
  invoke void %133(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull %18)
          to label %151 unwind label %145

134:                                              ; preds = %117
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %138

136:                                              ; preds = %118
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  br label %138

138:                                              ; preds = %136, %134
  %.pn = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #10
  br label %150

139:                                              ; preds = %119
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %149

141:                                              ; preds = %122
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %148

143:                                              ; preds = %124
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %147

145:                                              ; preds = %129
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #10
  br label %147

147:                                              ; preds = %145, %143
  %.pn61 = phi { ptr, i32 } [ %146, %145 ], [ %144, %143 ]
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  br label %148

148:                                              ; preds = %147, %141
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %147 ], [ %142, %141 ]
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %16) #10
  br label %149

149:                                              ; preds = %148, %139
  %.pn61.pn.pn = phi { ptr, i32 } [ %.pn61.pn, %148 ], [ %140, %139 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #10
  br label %150

150:                                              ; preds = %149, %138
  %.pn61.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn, %149 ], [ %.pn, %138 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #10
  br label %154

151:                                              ; preds = %129
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #10
  call void @_ZN14NetworkMessageD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %16) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #10
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #10
  call void @_ZN11BlockHeaderD2Ev(ptr noundef nonnull align 8 dereferenceable(400) %116) #10
  call void @_ZdlPvm(ptr noundef nonnull %116, i64 noundef 400) #12
  br label %152

152:                                              ; preds = %.lr.ph, %151
  call void @_ZN13TransmitBlockD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %115) #10
  call void @_ZdlPvm(ptr noundef nonnull %115, i64 noundef 32) #12
  %153 = add i64 %.04792, 1
  %.not = icmp ugt i64 %153, %25
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !15

.loopexit:                                        ; preds = %152, %.preheader, %106
  ret void

154:                                              ; preds = %93, %114, %150, %43
  %.pn71.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn.pn, %150 ], [ %44, %43 ], [ %.pn71.pn.pn.pn.pn, %93 ], [ %.pn67.pn, %114 ]
  resume { ptr, i32 } %.pn71.pn.pn.pn.pn.pn.pn
}

; 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) #6

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11CDataStreamD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #9 align 2

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEm(ptr noundef nonnull align 8 dereferenceable(256), i64 noundef) local_unnamed_addr #1

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

declare noundef ptr @_ZN5Chain14getBlockHeaderEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1

declare void @_ZN11BlockHeader13getHeaderHashEv(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8, ptr noundef nonnull align 8 dereferenceable(400)) local_unnamed_addr #1

declare void @_ZN10BlockStore17getRawBlockVectorESt6vectorIhSaIhEE(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI14TransmitBlocksEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11CDataStream4sizeEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IhSaIhEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11BlockHeaderD2Ev(ptr noundef nonnull align 8 dereferenceable(400)) unnamed_addr #9 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIhSaIhEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN11CDataStreamlsI13TransmitBlockEERS_RKT_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nobuiltin allocsize(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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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, !9, i64 8}
!6 = !{!"_ZTS12AskForBlocks", !7, i64 0, !9, i64 8, !9, i64 16}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"long", !7, i64 0}
!10 = !{!6, !9, i64 16}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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