; LLVM IR from dynexcoin/Dynex :: src/Transfers (TransfersConsumer)

; 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.std::vector.113" = type { %"struct.std::_Vector_base.114" }
%"struct.std::_Vector_base.114" = type { %"struct.std::_Vector_base<PreprocessedTx, std::allocator<PreprocessedTx>>::_Vector_impl" }
%"struct.std::_Vector_base<PreprocessedTx, std::allocator<PreprocessedTx>>::_Vector_impl" = type { %"struct.std::_Vector_base<PreprocessedTx, std::allocator<PreprocessedTx>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PreprocessedTx, std::allocator<PreprocessedTx>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%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.BlockingQueue = type { i64, %"class.std::deque", i8, %"class.std::mutex", %"class.std::condition_variable", %"class.std::condition_variable" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<Tx, std::allocator<Tx>>::_Deque_impl" }
%"struct.std::_Deque_base<Tx, std::allocator<Tx>>::_Deque_impl" = type { %"struct.std::_Deque_base<Tx, std::allocator<Tx>>::_Deque_impl_data" }
%"struct.std::_Deque_base<Tx, std::allocator<Tx>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.std::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon = type { ptr, ptr, ptr, ptr, ptr, ptr }
%class.anon.121 = type { ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.122" = type { %"struct.std::_Vector_base.123" }
%"struct.std::_Vector_base.123" = type { %"struct.std::_Vector_base<std::future<std::error_code>, std::allocator<std::future<std::error_code>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::future<std::error_code>, std::allocator<std::future<std::error_code>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::future<std::error_code>, std::allocator<std::future<std::error_code>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::future<std::error_code>, std::allocator<std::future<std::error_code>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::future.127" = type { %"class.std::__basic_future.128" }
%"class.std::__basic_future.128" = type { %"class.std::shared_ptr" }
%"class.std::error_code" = type { i32, ptr }
%"class.__gnu_cxx::__normal_iterator.129" = type { ptr }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.130" = type { ptr }
%class.anon.131 = type { i8 }
%class.anon.151 = type { ptr, ptr }
%class.anon.152 = type { i32 }
%"class.DynexCN::IObservableImpl" = type { %"class.DynexCN::IBlockchainConsumer", %"class.Tools::ObserverManager" }
%"class.DynexCN::IBlockchainConsumer" = type { %"class.DynexCN::IObservable" }
%"class.DynexCN::IObservable" = type { ptr }
%"class.Tools::ObserverManager" = type { %"class.std::vector", %"class.std::mutex" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DynexCN::IBlockchainConsumerObserver *, std::allocator<DynexCN::IBlockchainConsumerObserver *>>::_Vector_impl" }
%"struct.std::_Vector_base<DynexCN::IBlockchainConsumerObserver *, std::allocator<DynexCN::IBlockchainConsumerObserver *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DynexCN::IBlockchainConsumerObserver *, std::allocator<DynexCN::IBlockchainConsumerObserver *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DynexCN::IBlockchainConsumerObserver *, std::allocator<DynexCN::IBlockchainConsumerObserver *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Tx = type { %"struct.DynexCN::TransactionBlockInfo", ptr }
%"struct.DynexCN::TransactionBlockInfo" = type { i32, i64, i32 }

@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjj = external hidden unnamed_addr constant [96 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@_ZTISt12system_error = external constant ptr
@_ZTISt9exception = external constant ptr

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjj(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector.113", align 8
  %11 = alloca %"class.std::mutex", align 8
  %12 = alloca i64, align 8
  %13 = alloca %class.BlockingQueue, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::atomic", align 1
  %17 = alloca %"class.std::future", align 8
  %18 = alloca %class.anon, align 8
  %19 = alloca %class.anon.121, align 8
  %20 = alloca %"class.std::vector.122", align 8
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::future.127", align 8
  %23 = alloca %"class.std::error_code", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.129", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.129", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.std::error_code", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"class.std::error_code", align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.std::vector.44", align 8
  %33 = alloca %"class.std::vector.44", align 8
  %34 = alloca { i64, i64 }, align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.130", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.130", align 8
  %37 = alloca %class.anon.131, align 1
  %38 = alloca ptr, align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.130", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.130", align 8
  %41 = alloca ptr, align 8
  %42 = alloca %class.anon.151, align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca %class.anon.152, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %46 = load ptr, ptr %6, align 8
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %4
  br label %52

50:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.11, i32 noundef 226, ptr noundef @__PRETTY_FUNCTION__._ZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjj) #10
  unreachable

51:                                               ; No predecessors!
  br label %52

52:                                               ; preds = %51, %49
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = icmp ugt i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  br label %58

56:                                               ; preds = %52
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.11, i32 noundef 227, ptr noundef @__PRETTY_FUNCTION__._ZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjj) #10
  unreachable

57:                                               ; No predecessors!
  br label %58

58:                                               ; preds = %57, %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #11
  call void @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #11
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #11
  call void @_ZNSt5mutexC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #11
  %59 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #11
  %60 = zext i32 %59 to i64
  store i64 %60, ptr %12, align 8, !tbaa !11
  %61 = load i64, ptr %12, align 8, !tbaa !11
  %62 = icmp eq i64 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %58
  store i64 2, ptr %12, align 8, !tbaa !11
  br label %64

64:                                               ; preds = %63, %58
  call void @llvm.lifetime.start.p0(i64 232, ptr %13) #11
  %65 = load i64, ptr %12, align 8, !tbaa !11
  %66 = mul i64 %65, 2
  invoke void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEEC2Em(ptr noundef nonnull align 8 dereferenceable(232) %13, i64 noundef %66)
          to label %67 unwind label %85

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #11
  call void @llvm.memset.p0.i64(ptr align 1 %16, i8 0, i64 1, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #11
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #11
  %68 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 0
  store ptr %9, ptr %68, align 8, !tbaa !5
  %69 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 1
  store ptr %16, ptr %69, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 2
  store ptr %7, ptr %70, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 3
  store ptr %46, ptr %71, align 8, !tbaa !13
  %72 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 4
  store ptr %8, ptr %72, align 8, !tbaa !5
  %73 = getelementptr inbounds %class.anon, ptr %18, i32 0, i32 5
  store ptr %13, ptr %73, align 8, !tbaa !5
  invoke void @"_ZSt5asyncIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE3$_0JEESt6futureINSt15__invoke_resultINSt5decayIT_E4typeEJDpNS8_IT0_E4typeEEE4typeEESt6launchOS9_DpOSC_"(ptr dead_on_unwind writable sret(%"class.std::future") align 8 %17, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %74 unwind label %89

74:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #11
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #11
  %75 = getelementptr inbounds %class.anon.121, ptr %19, i32 0, i32 0
  store ptr %16, ptr %75, align 8, !tbaa !5
  %76 = getelementptr inbounds %class.anon.121, ptr %19, i32 0, i32 1
  store ptr %13, ptr %76, align 8, !tbaa !5
  %77 = getelementptr inbounds %class.anon.121, ptr %19, i32 0, i32 2
  store ptr %46, ptr %77, align 8, !tbaa !15
  %78 = getelementptr inbounds %class.anon.121, ptr %19, i32 0, i32 3
  store ptr %11, ptr %78, align 8, !tbaa !5
  %79 = getelementptr inbounds %class.anon.121, ptr %19, i32 0, i32 4
  store ptr %10, ptr %79, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #11
  call void @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #11
  store i64 0, ptr %21, align 8, !tbaa !11
  br label %80

80:                                               ; preds = %96, %74
  %81 = load i64, ptr %21, align 8, !tbaa !11
  %82 = load i64, ptr %12, align 8, !tbaa !11
  %83 = icmp ult i64 %81, %82
  br i1 %83, label %93, label %84

84:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  br label %108

85:                                               ; preds = %64
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %14, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %15, align 4
  br label %260

89:                                               ; preds = %67
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %14, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #11
  br label %259

93:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #11
  invoke void @"_ZSt5asyncIRZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE3$_1JEESt6futureINSt15__invoke_resultINSt5decayIT_E4typeEJDpNS9_IT0_E4typeEEE4typeEESt6launchOSA_DpOSD_"(ptr dead_on_unwind writable sret(%"class.std::future.127") align 8 %22, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %94 unwind label %99

94:                                               ; preds = %93
  invoke void @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %95 unwind label %103

95:                                               ; preds = %94
  call void @_ZNSt14__basic_futureISt10error_codeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #11
  br label %96

96:                                               ; preds = %95
  %97 = load i64, ptr %21, align 8, !tbaa !11
  %98 = add i64 %97, 1
  store i64 %98, ptr %21, align 8, !tbaa !11
  br label %80, !llvm.loop !17

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %14, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %15, align 4
  br label %107

103:                                              ; preds = %94
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %14, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %15, align 4
  call void @_ZNSt14__basic_futureISt10error_codeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #11
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  br label %258

108:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #11
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #11
  store ptr %20, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #11
  %109 = load ptr, ptr %24, align 8, !tbaa !5
  %110 = call ptr @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #11
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.129", ptr %25, i32 0, i32 0
  store ptr %110, ptr %111, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #11
  %112 = load ptr, ptr %24, align 8, !tbaa !5
  %113 = call ptr @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #11
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.129", ptr %26, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  br label %115

115:                                              ; preds = %146, %108
  %116 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6futureISt10error_codeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #11
  br i1 %116, label %118, label %117

117:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  br label %170

118:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #11
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6futureISt10error_codeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #11
  store ptr %119, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #11
  %120 = load ptr, ptr %27, align 8, !tbaa !5
  %121 = invoke { i32, ptr } @_ZNSt6futureISt10error_codeE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %120)
          to label %122 unwind label %131

122:                                              ; preds = %118
  %123 = getelementptr inbounds { i32, ptr }, ptr %28, i32 0, i32 0
  %124 = extractvalue { i32, ptr } %121, 0
  store i32 %124, ptr %123, align 8
  %125 = getelementptr inbounds { i32, ptr }, ptr %28, i32 0, i32 1
  %126 = extractvalue { i32, ptr } %121, 1
  store ptr %126, ptr %125, align 8
  %127 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #11
  br i1 %127, label %160, label %128

128:                                              ; preds = %122
  %129 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #11
  br i1 %129, label %130, label %160

130:                                              ; preds = %128
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !19
  br label %160

131:                                              ; preds = %118
  %132 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %14, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #11
  br label %135

135:                                              ; preds = %131
  %136 = load i32, ptr %15, align 4
  %137 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt12system_error) #11
  %138 = icmp eq i32 %136, %137
  br i1 %138, label %139, label %148

139:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #11
  %140 = load ptr, ptr %14, align 8
  %141 = call ptr @__cxa_begin_catch(ptr %140) #11
  store ptr %141, ptr %31, align 8
  %142 = load ptr, ptr %31, align 8, !tbaa !5
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32) %142) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %143, i64 16, i1 false), !tbaa.struct !19
  invoke void @__cxa_end_catch()
          to label %144 unwind label %165

144:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #11
  br label %145

145:                                              ; preds = %160, %159, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  br label %146

146:                                              ; preds = %145
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6futureISt10error_codeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #11
  br label %115

148:                                              ; preds = %135
  %149 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #11
  %150 = icmp eq i32 %136, %149
  br i1 %150, label %151, label %169

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  %152 = load ptr, ptr %14, align 8
  %153 = call ptr @__cxa_begin_catch(ptr %152) #11
  store ptr %153, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #11
  %154 = call { i32, ptr } @_ZSt15make_error_codeSt4errc(i32 noundef 125) #11
  %155 = getelementptr inbounds { i32, ptr }, ptr %30, i32 0, i32 0
  %156 = extractvalue { i32, ptr } %154, 0
  store i32 %156, ptr %155, align 8
  %157 = getelementptr inbounds { i32, ptr }, ptr %30, i32 0, i32 1
  %158 = extractvalue { i32, ptr } %154, 1
  store ptr %158, ptr %157, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #11
  invoke void @__cxa_end_catch()
          to label %159 unwind label %161

159:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  br label %145

160:                                              ; preds = %130, %128, %122
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #11
  br label %145

161:                                              ; preds = %151
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %14, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  br label %169

165:                                              ; preds = %139
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %14, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #11
  br label %169

169:                                              ; preds = %165, %161, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  br label %257

170:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #11
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  invoke void @_ZN12_GLOBAL__N_114getBlockHashesEPKN7DynexCN13CompleteBlockEm(ptr dead_on_unwind writable sret(%"class.std::vector.44") align 8 %32, ptr noundef %171, i64 noundef %173)
          to label %174 unwind label %202

174:                                              ; preds = %170
  %175 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #11
  br i1 %175, label %231, label %176

176:                                              ; preds = %174
  %177 = getelementptr inbounds %"class.DynexCN::IObservableImpl", ptr %46, i32 0, i32 1
  invoke void @_ZNSt6vectorIN6Crypto4HashESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %178 unwind label %206

178:                                              ; preds = %176
  store { i64, i64 } { i64 1, i64 0 }, ptr %34, align 8, !tbaa !20
  %179 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 0
  %180 = load i64, ptr %179, align 8
  %181 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 1
  %182 = load i64, ptr %181, align 8
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN27IBlockchainConsumerObserverEE6notifyIMS2_FvPNS1_19IBlockchainConsumerERKSt6vectorIN6Crypto4HashESaIS9_EEEJPNS1_17TransfersConsumerESB_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %177, i64 %180, i64 %182, ptr noundef %46, ptr noundef %33)
          to label %183 unwind label %210

183:                                              ; preds = %178
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #11
  %184 = call ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #11
  %185 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.130", ptr %35, i32 0, i32 0
  store ptr %184, ptr %185, align 8
  %186 = call ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #11
  %187 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.130", ptr %36, i32 0, i32 0
  store ptr %186, ptr %187, align 8
  %188 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.130", ptr %35, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8
  %190 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.130", ptr %36, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS2_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS7_SaIS7_EEEEZNS3_11onNewBlocksES6_jjE3$_2EvT_SE_T0_"(ptr %189, ptr %191)
          to label %192 unwind label %206

192:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #11
  store ptr %10, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #11
  %193 = load ptr, ptr %38, align 8, !tbaa !5
  %194 = call ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %193) #11
  %195 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.130", ptr %39, i32 0, i32 0
  store ptr %194, ptr %195, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #11
  %196 = load ptr, ptr %38, align 8, !tbaa !5
  %197 = call ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %196) #11
  %198 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.130", ptr %40, i32 0, i32 0
  store ptr %197, ptr %198, align 8
  br label %199

199:                                              ; preds = %224, %192
  %200 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #11
  br i1 %200, label %214, label %201

201:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #11
  br label %230

202:                                              ; preds = %170
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %14, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %15, align 4
  br label %256

206:                                              ; preds = %231, %183, %176
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %14, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %15, align 4
  br label %255

210:                                              ; preds = %178
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %14, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %15, align 4
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #11
  br label %255

214:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #11
  %215 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #11
  store ptr %215, ptr %41, align 8, !tbaa !5
  %216 = load ptr, ptr %41, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.Tx, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %41, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.Tx, ptr %218, i32 0, i32 1
  %220 = load ptr, ptr %219, align 8, !tbaa !21
  %221 = load ptr, ptr %41, align 8, !tbaa !5
  %222 = getelementptr inbounds i8, ptr %221, i64 32
  invoke void @_ZN7DynexCN17TransfersConsumer18processTransactionERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderERKNS0_14PreprocessInfoE(ptr noundef nonnull align 8 dereferenceable(344) %46, ptr noundef nonnull align 8 dereferenceable(24) %217, ptr noundef nonnull align 8 dereferenceable(8) %220, ptr noundef nonnull align 8 dereferenceable(80) %222)
          to label %223 unwind label %226

223:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  br label %224

224:                                              ; preds = %223
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #11
  br label %199

226:                                              ; preds = %214
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %14, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #11
  br label %255

230:                                              ; preds = %201
  br label %239

231:                                              ; preds = %174
  %232 = getelementptr inbounds %class.anon.151, ptr %42, i32 0, i32 0
  store ptr %23, ptr %232, align 8, !tbaa !5
  %233 = getelementptr inbounds %class.anon.151, ptr %42, i32 0, i32 1
  store ptr %8, ptr %233, align 8, !tbaa !5
  %234 = getelementptr inbounds { ptr, ptr }, ptr %42, i32 0, i32 0
  %235 = load ptr, ptr %234, align 8
  %236 = getelementptr inbounds { ptr, ptr }, ptr %42, i32 0, i32 1
  %237 = load ptr, ptr %236, align 8
  invoke void @"_ZN7DynexCN17TransfersConsumer19forEachSubscriptionIZNS0_11onNewBlocksEPKNS_13CompleteBlockEjjE3$_3EEvT_"(ptr noundef nonnull align 8 dereferenceable(344) %46, ptr %235, ptr %237)
          to label %238 unwind label %206

238:                                              ; preds = %231
  store i1 false, ptr %5, align 1
  store i32 1, ptr %43, align 4
  br label %253

239:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #11
  %240 = load i32, ptr %8, align 4, !tbaa !9
  %241 = load i32, ptr %9, align 4, !tbaa !9
  %242 = add i32 %240, %241
  %243 = sub i32 %242, 1
  store i32 %243, ptr %44, align 4, !tbaa !9
  %244 = getelementptr inbounds %class.anon.152, ptr %45, i32 0, i32 0
  %245 = load i32, ptr %44, align 4, !tbaa !9
  store i32 %245, ptr %244, align 4, !tbaa !24
  %246 = getelementptr inbounds %class.anon.152, ptr %45, i32 0, i32 0
  %247 = load i32, ptr %246, align 4
  invoke void @"_ZN7DynexCN17TransfersConsumer19forEachSubscriptionIZNS0_11onNewBlocksEPKNS_13CompleteBlockEjjE3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(344) %46, i32 %247)
          to label %248 unwind label %249

248:                                              ; preds = %239
  store i1 true, ptr %5, align 1
  store i32 1, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #11
  br label %253

249:                                              ; preds = %239
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %14, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #11
  br label %255

253:                                              ; preds = %248, %238
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #11
  call void @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #11
  call void @_ZNSt14__basic_futureIvED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #11
  call void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(232) %13) #11
  call void @llvm.lifetime.end.p0(i64 232, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #11
  call void @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #11
  %254 = load i1, ptr %5, align 1
  ret i1 %254

255:                                              ; preds = %249, %226, %210, %206
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #11
  br label %256

256:                                              ; preds = %255, %202
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #11
  br label %257

257:                                              ; preds = %256, %169
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #11
  br label %258

258:                                              ; preds = %257, %107
  call void @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #11
  call void @_ZNSt14__basic_futureIvED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #11
  br label %259

259:                                              ; preds = %258, %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #11
  call void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(232) %13) #11
  br label %260

260:                                              ; preds = %259, %85
  call void @llvm.lifetime.end.p0(i64 232, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #11
  call void @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #11
  br label %261

261:                                              ; preds = %260
  %262 = load ptr, ptr %14, align 8
  %263 = load i32, ptr %15, align 4
  %264 = insertvalue { ptr, i32 } poison, ptr %262, 0
  %265 = insertvalue { ptr, i32 } %264, i32 %263, 1
  resume { ptr, i32 } %265
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEEC2Em(ptr noundef nonnull align 8 dereferenceable(232), i64 noundef) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt5asyncIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE3$_0JEESt6futureINSt15__invoke_resultINSt5decayIT_E4typeEJDpNS8_IT0_E4typeEEE4typeEESt6launchOS9_DpOSC_"(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(48)) #3

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt5asyncIRZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE3$_1JEESt6futureINSt15__invoke_resultINSt5decayIT_E4typeEJDpNS9_IT0_E4typeEEE4typeEESt6launchOSA_DpOSD_"(ptr dead_on_unwind noalias writable sret(%"class.std::future.127") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(40)) #3

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6futureISt10error_codeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZNSt6futureISt10error_codeE3getEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #8

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_ZSt15make_error_codeSt4errc(i32 noundef) #7

declare void @__cxa_end_catch()

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_114getBlockHashesEPKN7DynexCN13CompleteBlockEm(ptr dead_on_unwind noalias writable sret(%"class.std::vector.44") align 8, ptr noundef, i64 noundef) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS2_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS7_SaIS7_EEEEZNS3_11onNewBlocksES6_jjE3$_2EvT_SE_T0_"(ptr, ptr) #9

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN9__gnu_cxxneIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN17TransfersConsumer18processTransactionERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderERKNS0_14PreprocessInfoE(ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN7DynexCN17TransfersConsumer19forEachSubscriptionIZNS0_11onNewBlocksEPKNS_13CompleteBlockEjjE3$_3EEvT_"(ptr noundef nonnull align 8 dereferenceable(344), ptr, ptr) #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN7DynexCN17TransfersConsumer19forEachSubscriptionIZNS0_11onNewBlocksEPKNS_13CompleteBlockEjjE3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(344), i32) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(232)) unnamed_addr #7 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { noreturn 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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { nounwind memory(none) }
attributes #9 = { 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 #10 = { noreturn nounwind }
attributes #11 = { 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 = !{!14, !6, i64 24}
!14 = !{!"_ZTSZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjjE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!15 = !{!16, !6, i64 16}
!16 = !{!"_ZTSZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjjE3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{i64 0, i64 4, !9, i64 8, i64 8, !5}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !6, i64 24}
!22 = !{!"_ZTSZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjjE2Tx", !23, i64 0, !6, i64 24}
!23 = !{!"_ZTSN7DynexCN20TransactionBlockInfoE", !10, i64 0, !12, i64 8, !10, i64 16}
!24 = !{!25, !10, i64 0}
!25 = !{!"_ZTSZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjjE3$_4", !10, i64 0}


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

%"class.std::vector.113" = type { %"struct.std::_Vector_base.114" }
%"struct.std::_Vector_base.114" = type { %"struct.std::_Vector_base<PreprocessedTx, std::allocator<PreprocessedTx>>::_Vector_impl" }
%"struct.std::_Vector_base<PreprocessedTx, std::allocator<PreprocessedTx>>::_Vector_impl" = type { %"struct.std::_Vector_base<PreprocessedTx, std::allocator<PreprocessedTx>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PreprocessedTx, std::allocator<PreprocessedTx>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%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.BlockingQueue = type { i64, %"class.std::deque", i8, %"class.std::mutex", %"class.std::condition_variable", %"class.std::condition_variable" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<Tx, std::allocator<Tx>>::_Deque_impl" }
%"struct.std::_Deque_base<Tx, std::allocator<Tx>>::_Deque_impl" = type { %"struct.std::_Deque_base<Tx, std::allocator<Tx>>::_Deque_impl_data" }
%"struct.std::_Deque_base<Tx, std::allocator<Tx>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.std::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon = type { ptr, ptr, ptr, ptr, ptr, ptr }
%class.anon.121 = type { ptr, ptr, ptr, ptr, ptr }
%"class.std::vector.122" = type { %"struct.std::_Vector_base.123" }
%"struct.std::_Vector_base.123" = type { %"struct.std::_Vector_base<std::future<std::error_code>, std::allocator<std::future<std::error_code>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::future<std::error_code>, std::allocator<std::future<std::error_code>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::future<std::error_code>, std::allocator<std::future<std::error_code>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::future<std::error_code>, std::allocator<std::future<std::error_code>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::future.127" = type { %"class.std::__basic_future.128" }
%"class.std::__basic_future.128" = type { %"class.std::shared_ptr" }
%"class.std::error_code" = type { i32, ptr }
%"class.__gnu_cxx::__normal_iterator.129" = type { ptr }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl" = type { %"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Crypto::Hash, std::allocator<Crypto::Hash>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.130" = type { ptr }

@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__._ZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjj = external hidden unnamed_addr constant [96 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@_ZTISt12system_error = external constant ptr
@_ZTISt9exception = external constant ptr

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjj(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector.113", align 8
  %9 = alloca %"class.std::mutex", align 8
  %10 = alloca %class.BlockingQueue, align 8
  %11 = alloca %"struct.std::atomic", align 1
  %12 = alloca %"class.std::future", align 8
  %13 = alloca %class.anon, align 8
  %14 = alloca %class.anon.121, align 8
  %15 = alloca %"class.std::vector.122", align 8
  %16 = alloca %"class.std::future.127", align 8
  %17 = alloca %"class.std::error_code", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.129", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.129", align 8
  %20 = alloca %"class.std::error_code", align 8
  %21 = alloca %"class.std::vector.44", align 8
  %22 = alloca %"class.std::vector.44", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.130", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.130", align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  store i32 %3, ptr %7, align 4, !tbaa !9
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %25, label %26

25:                                               ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11, i32 noundef 226, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjj) #9
  unreachable

26:                                               ; preds = %4
  %.not39 = icmp eq i32 %3, 0
  br i1 %.not39, label %27, label %28

27:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.11, i32 noundef 227, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjj) #9
  unreachable

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #10
  call void @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #10
  call void @_ZNSt5mutexC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #10
  %29 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #10
  %30 = icmp eq i32 %29, 0
  %narrow = select i1 %30, i32 2, i32 %29
  %spec.store.select = zext i32 %narrow to i64
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %10) #10
  %31 = shl nuw nsw i64 %spec.store.select, 1
  invoke void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEEC2Em(ptr noundef nonnull align 8 dereferenceable(232) %10, i64 noundef %31)
          to label %32 unwind label %48

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #10
  store i8 0, ptr %11, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #10
  store ptr %7, ptr %13, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %11, ptr %33, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %13, i64 16
  store ptr %5, ptr %34, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %13, i64 24
  store ptr %0, ptr %35, align 8, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %13, i64 32
  store ptr %6, ptr %36, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %13, i64 40
  store ptr %10, ptr %37, align 8, !tbaa !5
  invoke void @"_ZSt5asyncIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE3$_0JEESt6futureINSt15__invoke_resultINSt5decayIT_E4typeEJDpNS8_IT0_E4typeEEE4typeEESt6launchOS9_DpOSC_"(ptr dead_on_unwind nonnull writable sret(%"class.std::future") align 8 %12, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %38 unwind label %52

38:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #10
  store ptr %11, ptr %14, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %10, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %14, i64 16
  store ptr %0, ptr %40, align 8, !tbaa !13
  %41 = getelementptr inbounds i8, ptr %14, i64 24
  store ptr %9, ptr %41, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %14, i64 32
  store ptr %8, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #10
  call void @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  br label %56

43:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  %44 = call ptr @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  store ptr %44, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #10
  %45 = call ptr @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  store ptr %45, ptr %19, align 8
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6futureISt10error_codeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  br i1 %46, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %43
  %.sroa.412.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %47 = getelementptr inbounds i8, ptr %20, i64 8
  br label %68

48:                                               ; preds = %28
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  %51 = extractvalue { ptr, i32 } %49, 1
  br label %147

52:                                               ; preds = %32
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  %55 = extractvalue { ptr, i32 } %53, 1
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #10
  br label %146

56:                                               ; preds = %38, %58
  %.03749 = phi i64 [ 0, %38 ], [ %59, %58 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #10
  invoke void @"_ZSt5asyncIRZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE3$_1JEESt6futureINSt15__invoke_resultINSt5decayIT_E4typeEJDpNS9_IT0_E4typeEEE4typeEESt6launchOSA_DpOSD_"(ptr dead_on_unwind nonnull writable sret(%"class.std::future.127") align 8 %16, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %57 unwind label %60

57:                                               ; preds = %56
  invoke void @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %58 unwind label %62

58:                                               ; preds = %57
  call void @_ZNSt14__basic_futureISt10error_codeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  %59 = add nuw nsw i64 %.03749, 1
  %exitcond.not = icmp eq i64 %59, %spec.store.select
  br i1 %exitcond.not, label %43, label %56, !llvm.loop !15

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

62:                                               ; preds = %57
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14__basic_futureISt10error_codeED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #10
  br label %64

64:                                               ; preds = %62, %60
  %.pn42 = phi { ptr, i32 } [ %63, %62 ], [ %61, %60 ]
  %.028 = extractvalue { ptr, i32 } %.pn42, 0
  %.029 = extractvalue { ptr, i32 } %.pn42, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  br label %145

._crit_edge:                                      ; preds = %87, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #10
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  invoke void @_ZN12_GLOBAL__N_114getBlockHashesEPKN7DynexCN13CompleteBlockEm(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.44") align 8 %21, ptr noundef %65, i64 noundef %67)
          to label %107 unwind label %123

68:                                               ; preds = %.lr.ph, %87
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6futureISt10error_codeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #10
  %70 = invoke { i32, ptr } @_ZNSt6futureISt10error_codeE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %69)
          to label %71 unwind label %78

71:                                               ; preds = %68
  %72 = extractvalue { i32, ptr } %70, 0
  store i32 %72, ptr %20, align 8
  %73 = extractvalue { i32, ptr } %70, 1
  store ptr %73, ptr %47, align 8
  %74 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  br i1 %74, label %98, label %75

75:                                               ; preds = %71
  %76 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #10
  br i1 %76, label %77, label %98

77:                                               ; preds = %75
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %20, i64 16, i1 false), !tbaa.struct !17
  br label %98

78:                                               ; preds = %68
  %79 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt12system_error
          catch ptr @_ZTISt9exception
  %80 = extractvalue { ptr, i32 } %79, 0
  %81 = extractvalue { ptr, i32 } %79, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  %82 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt12system_error) #10
  %83 = icmp eq i32 %81, %82
  br i1 %83, label %84, label %90

84:                                               ; preds = %78
  %85 = call ptr @__cxa_begin_catch(ptr %80) #10
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt12system_error4codeEv(ptr noundef nonnull align 8 dereferenceable(32) %85) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %86, i64 16, i1 false), !tbaa.struct !17
  invoke void @__cxa_end_catch()
          to label %87 unwind label %103

87:                                               ; preds = %93, %84, %98
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6futureISt10error_codeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6futureISt10error_codeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #10
  br i1 %89, label %68, label %._crit_edge

90:                                               ; preds = %78
  %91 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #10
  %92 = icmp eq i32 %81, %91
  br i1 %92, label %93, label %.loopexit

93:                                               ; preds = %90
  %94 = call ptr @__cxa_begin_catch(ptr %80) #10
  %95 = call { i32, ptr } @_ZSt15make_error_codeSt4errc(i32 noundef 125) #10
  %96 = extractvalue { i32, ptr } %95, 0
  %97 = extractvalue { i32, ptr } %95, 1
  store i32 %96, ptr %17, align 8, !tbaa !9
  store ptr %97, ptr %.sroa.412.0..sroa_idx, align 8, !tbaa !5
  invoke void @__cxa_end_catch()
          to label %87 unwind label %99

98:                                               ; preds = %77, %75, %71
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  br label %87

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  %102 = extractvalue { ptr, i32 } %100, 1
  br label %.loopexit

103:                                              ; preds = %84
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  %106 = extractvalue { ptr, i32 } %104, 1
  br label %.loopexit

.loopexit:                                        ; preds = %90, %103, %99
  %.130 = phi i32 [ %106, %103 ], [ %102, %99 ], [ %81, %90 ]
  %.1 = phi ptr [ %105, %103 ], [ %101, %99 ], [ %80, %90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  br label %144

107:                                              ; preds = %._crit_edge
  %108 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #10
  br i1 %108, label %138, label %109

109:                                              ; preds = %107
  invoke void @_ZNSt6vectorIN6Crypto4HashESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %110 unwind label %125

110:                                              ; preds = %109
  %111 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_ZN5Tools15ObserverManagerIN7DynexCN27IBlockchainConsumerObserverEE6notifyIMS2_FvPNS1_19IBlockchainConsumerERKSt6vectorIN6Crypto4HashESaIS9_EEEJPNS1_17TransfersConsumerESB_EEEvT_DpT0_(ptr noundef nonnull align 8 dereferenceable(64) %111, i64 1, i64 0, ptr noundef nonnull %0, ptr noundef nonnull %22)
          to label %112 unwind label %127

112:                                              ; preds = %110
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #10
  %113 = call ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  %114 = call ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS2_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS7_SaIS7_EEEEZNS3_11onNewBlocksES6_jjE3$_2EvT_SE_T0_"(ptr %113, ptr %114)
          to label %115 unwind label %125

115:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #10
  %116 = call ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  store ptr %116, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #10
  %117 = call ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  store ptr %117, ptr %24, align 8
  %118 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #10
  br i1 %118, label %.lr.ph51, label %._crit_edge52

._crit_edge52:                                    ; preds = %133, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #10
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = load i32, ptr %7, align 4, !tbaa !9
  %121 = add i32 %119, -1
  %122 = add i32 %121, %120
  invoke void @"_ZN7DynexCN17TransfersConsumer19forEachSubscriptionIZNS0_11onNewBlocksEPKNS_13CompleteBlockEjjE3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(344) %0, i32 %122)
          to label %141 unwind label %139

123:                                              ; preds = %._crit_edge
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %143

125:                                              ; preds = %138, %112, %109
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %142

127:                                              ; preds = %110
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #10
  br label %142

.lr.ph51:                                         ; preds = %115, %133
  %129 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #10
  %130 = getelementptr inbounds i8, ptr %129, i64 24
  %131 = load ptr, ptr %130, align 8, !tbaa !18
  %132 = getelementptr inbounds i8, ptr %129, i64 32
  invoke void @_ZN7DynexCN17TransfersConsumer18processTransactionERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderERKNS0_14PreprocessInfoE(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr noundef nonnull align 8 dereferenceable(24) %129, ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef nonnull align 8 dereferenceable(80) %132)
          to label %133 unwind label %136

133:                                              ; preds = %.lr.ph51
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #10
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #10
  br i1 %135, label %.lr.ph51, label %._crit_edge52

136:                                              ; preds = %.lr.ph51
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #10
  br label %142

138:                                              ; preds = %107
  invoke void @"_ZN7DynexCN17TransfersConsumer19forEachSubscriptionIZNS0_11onNewBlocksEPKNS_13CompleteBlockEjjE3$_3EEvT_"(ptr noundef nonnull align 8 dereferenceable(344) %0, ptr nonnull %17, ptr nonnull %6)
          to label %141 unwind label %125

139:                                              ; preds = %._crit_edge52
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %142

141:                                              ; preds = %._crit_edge52, %138
  %.0 = xor i1 %108, true
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #10
  call void @_ZNSt14__basic_futureIvED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #10
  call void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(232) %10) #10
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #10
  call void @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #10
  ret i1 %.0

142:                                              ; preds = %139, %136, %127, %125
  %.pn = phi { ptr, i32 } [ %126, %125 ], [ %137, %136 ], [ %140, %139 ], [ %128, %127 ]
  call void @_ZNSt6vectorIN6Crypto4HashESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #10
  br label %143

143:                                              ; preds = %142, %123
  %.pn.pn = phi { ptr, i32 } [ %.pn, %142 ], [ %124, %123 ]
  %.3 = extractvalue { ptr, i32 } %.pn.pn, 0
  %.332 = extractvalue { ptr, i32 } %.pn.pn, 1
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #10
  br label %144

144:                                              ; preds = %143, %.loopexit
  %.433 = phi i32 [ %.130, %.loopexit ], [ %.332, %143 ]
  %.4 = phi ptr [ %.1, %.loopexit ], [ %.3, %143 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  br label %145

145:                                              ; preds = %144, %64
  %.534 = phi i32 [ %.029, %64 ], [ %.433, %144 ]
  %.5 = phi ptr [ %.028, %64 ], [ %.4, %144 ]
  call void @_ZNSt6vectorISt6futureISt10error_codeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #10
  call void @_ZNSt14__basic_futureIvED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  br label %146

146:                                              ; preds = %145, %52
  %.635 = phi i32 [ %.534, %145 ], [ %55, %52 ]
  %.6 = phi ptr [ %.5, %145 ], [ %54, %52 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #10
  call void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(232) %10) #10
  br label %147

147:                                              ; preds = %146, %48
  %.736 = phi i32 [ %.635, %146 ], [ %51, %48 ]
  %.7 = phi ptr [ %.6, %146 ], [ %50, %48 ]
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #10
  call void @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #10
  %148 = insertvalue { ptr, i32 } poison, ptr %.7, 0
  %149 = insertvalue { ptr, i32 } %148, i32 %.736, 1
  resume { ptr, i32 } %149
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEEC2Em(ptr noundef nonnull align 8 dereferenceable(232), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt5asyncIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE3$_0JEESt6futureINSt15__invoke_resultINSt5decayIT_E4typeEJDpNS8_IT0_E4typeEEE4typeEESt6launchOS9_DpOSC_"(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt5asyncIRZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE3$_1JEESt6futureINSt15__invoke_resultINSt5decayIT_E4typeEJDpNS9_IT0_E4typeEEE4typeEESt6launchOSA_DpOSD_"(ptr dead_on_unwind noalias writable sret(%"class.std::future.127") align 8, i32 noundef, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6futureISt10error_codeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, ptr } @_ZNSt6futureISt10error_codeE3getEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #7

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i32, ptr } @_ZSt15make_error_codeSt4errc(i32 noundef) local_unnamed_addr #6

declare void @__cxa_end_catch() local_unnamed_addr

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_114getBlockHashesEPKN7DynexCN13CompleteBlockEm(ptr dead_on_unwind noalias writable sret(%"class.std::vector.44") align 8, ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS2_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS7_SaIS7_EEEEZNS3_11onNewBlocksES6_jjE3$_2EvT_SE_T0_"(ptr, ptr) local_unnamed_addr #8

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNSt6vectorIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE14PreprocessedTxSaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN9__gnu_cxxneIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(112) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7DynexCN17TransfersConsumer18processTransactionERKNS_20TransactionBlockInfoERKNS_18ITransactionReaderERKNS0_14PreprocessInfoE(ptr noundef nonnull align 8 dereferenceable(344), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS1_13CompleteBlockEjjE14PreprocessedTxSt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN7DynexCN17TransfersConsumer19forEachSubscriptionIZNS0_11onNewBlocksEPKNS_13CompleteBlockEjjE3$_3EEvT_"(ptr noundef nonnull align 8 dereferenceable(344), ptr, ptr) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN7DynexCN17TransfersConsumer19forEachSubscriptionIZNS0_11onNewBlocksEPKNS_13CompleteBlockEjjE3$_4EEvT_"(ptr noundef nonnull align 8 dereferenceable(344), i32) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN13BlockingQueueIZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS0_13CompleteBlockEjjE2TxSt5dequeIS5_SaIS5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(232)) unnamed_addr #6 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { noreturn 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 = { 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 #6 = { 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 #7 = { nofree nosync nounwind memory(none) }
attributes #8 = { 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 #9 = { noreturn nounwind }
attributes #10 = { 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, !6, i64 24}
!12 = !{!"_ZTSZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjjE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!13 = !{!14, !6, i64 16}
!14 = !{!"_ZTSZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjjE3$_1", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i64 0, i64 4, !9, i64 8, i64 8, !5}
!18 = !{!19, !6, i64 24}
!19 = !{!"_ZTSZN7DynexCN17TransfersConsumer11onNewBlocksEPKNS_13CompleteBlockEjjE2Tx", !20, i64 0, !6, i64 24}
!20 = !{!"_ZTSN7DynexCN20TransactionBlockInfoE", !10, i64 0, !21, i64 8, !10, i64 16}
!21 = !{!"long", !7, i64 0}


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