; LLVM IR from dynexcoin/Dynex :: src/Wallet (WalletSerializationV1)

; 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.Crypto::SecretKey" = type { [32 x i8] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.(anonymous namespace)::WalletRecordDto" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::SecretKey", i64, i64, i64 }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"class.std::error_code" = type { i32, ptr }
%"struct.DynexCN::WalletRecord" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::SecretKey", ptr, i64, i64, i64 }
%"struct.std::pair" = type <{ %"class.boost::multi_index::detail::rnd_node_iterator", i8, [7 x i8] }>
%"class.boost::multi_index::detail::rnd_node_iterator" = type { ptr }
%"class.DynexCN::WalletSerializerV1" = type <{ ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, [4 x i8] }>

@_ZN7DynexCNL15NULL_SECRET_KEYE = external hidden global %"struct.Crypto::SecretKey", align 1
@_ZTISt12system_error = external constant ptr
@.str.18 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree 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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt12system_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN18WalletSerializerV111loadWalletsERN6Common12IInputStreamERNS0_13CryptoContextE(ptr noundef nonnull align 8 dereferenceable(92) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(40) %2) #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i64, align 8
  %15 = alloca %"struct.(anonymous namespace)::WalletRecordDto", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.std::error_code", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"class.std::error_code", align 8
  %22 = alloca %"struct.DynexCN::WalletRecord", align 8
  %23 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %25 = getelementptr inbounds %"class.DynexCN::WalletSerializerV1", ptr %24, i32 0, i32 5
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZN5boost11multi_index21multi_index_containerIN7DynexCN12WalletRecordENS0_10indexed_byINS0_13random_accessINS0_3tagINS2_17RandomAccessIndexEN4mpl_2naES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEENS0_13hashed_uniqueINS6_INS2_9KeysIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENS0_6memberIS3_N6Crypto9PublicKeyEXadL_ZNS3_14spendPublicKeyEEEEES9_S9_EENSC_INS6_INS2_23TransfersContainerIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENSF_IS3_PNS2_19ITransfersContainerEXadL_ZNS3_9containerEEEEES9_S9_EES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EESaIS3_EE3getIS7_EERNSS_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(176) %26) #8
  store ptr %27, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store i64 0, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.21, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %28 unwind label %38

28:                                               ; preds = %3
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_120deserializeEncryptedImEEvRT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN7DynexCN18WalletSerializerV113CryptoContextERN6Common12IInputStreamE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 1 dereferenceable(40) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %31 unwind label %42

31:                                               ; preds = %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN7DynexCN18WalletSerializerV113CryptoContext5incIvEv(ptr noundef nonnull align 1 dereferenceable(40) %32)
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #8
  store i8 0, ptr %13, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 0, ptr %14, align 8, !tbaa !12
  br label %33

33:                                               ; preds = %159, %31
  %34 = load i64, ptr %14, align 8, !tbaa !12
  %35 = load i64, ptr %8, align 8, !tbaa !12
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %47, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %163

38:                                               ; preds = %3
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %11, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %12, align 4
  br label %46

42:                                               ; preds = %28
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %11, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %46

46:                                               ; preds = %42, %38
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  br label %164

47:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 88, ptr %15) #8
  call void @_ZN12_GLOBAL__N_115WalletRecordDtoC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %15) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.18, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %48 unwind label %59

48:                                               ; preds = %47
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_120deserializeEncryptedINS_15WalletRecordDtoEEEvRT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN7DynexCN18WalletSerializerV113CryptoContextERN6Common12IInputStreamE(ptr noundef nonnull align 8 dereferenceable(88) %15, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 1 dereferenceable(40) %49, ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %51 unwind label %63

51:                                               ; preds = %48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN7DynexCN18WalletSerializerV113CryptoContext5incIvEv(ptr noundef nonnull align 1 dereferenceable(40) %52)
  %53 = load i64, ptr %14, align 8, !tbaa !12
  %54 = icmp eq i64 %53, 0
  br i1 %54, label %55, label %68

55:                                               ; preds = %51
  %56 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 1
  %57 = call noundef zeroext i1 @_ZN6CryptoeqERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32) %56, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %13, align 1, !tbaa !14
  br label %98

59:                                               ; preds = %47
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %11, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %12, align 4
  br label %67

63:                                               ; preds = %48
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %11, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br label %67

67:                                               ; preds = %63, %59
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  br label %162

68:                                               ; preds = %51
  %69 = load i8, ptr %13, align 1, !tbaa !14, !range !16, !noundef !17
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %74

71:                                               ; preds = %68
  %72 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 1
  %73 = call noundef zeroext i1 @_ZN6CryptoneERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32) %72, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
  br i1 %73, label %80, label %74

74:                                               ; preds = %71, %68
  %75 = load i8, ptr %13, align 1, !tbaa !14, !range !16, !noundef !17
  %76 = trunc i8 %75 to i1
  br i1 %76, label %97, label %77

77:                                               ; preds = %74
  %78 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 1
  %79 = call noundef zeroext i1 @_ZN6CryptoeqERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32) %78, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
  br i1 %79, label %80, label %97

80:                                               ; preds = %77, %71
  %81 = call ptr @__cxa_allocate_exception(i64 32) #8
  %82 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error16WalletErrorCodesE(i32 noundef 7)
          to label %83 unwind label %93

83:                                               ; preds = %80
  %84 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 0
  %85 = extractvalue { i32, ptr } %82, 0
  store i32 %85, ptr %84, align 8
  %86 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 1
  %87 = extractvalue { i32, ptr } %82, 1
  store ptr %87, ptr %86, align 8
  %88 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 0
  %89 = load i32, ptr %88, align 8
  %90 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8
  invoke void @_ZNSt12system_errorC2ESt10error_codePKc(ptr noundef nonnull align 8 dereferenceable(32) %81, i32 %89, ptr %91, ptr noundef @.str.22)
          to label %92 unwind label %93

92:                                               ; preds = %83
  call void @__cxa_throw(ptr %81, ptr @_ZTISt12system_error, ptr @_ZNSt12system_errorD1Ev) #9
  unreachable

93:                                               ; preds = %83, %80
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %11, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %12, align 4
  call void @__cxa_free_exception(ptr %81) #8
  br label %162

97:                                               ; preds = %77, %74
  br label %98

98:                                               ; preds = %97, %55
  %99 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 1
  %100 = call noundef zeroext i1 @_ZN6CryptoneERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32) %99, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
  br i1 %100, label %101, label %115

101:                                              ; preds = %98
  %102 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 1
  %103 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %104 unwind label %106

104:                                              ; preds = %101
  invoke void @_ZN7DynexCN20throwIfKeysMissmatchERKN6Crypto9SecretKeyERKNS0_9PublicKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 1 dereferenceable(32) %102, ptr noundef nonnull align 1 dereferenceable(32) %103, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %105 unwind label %110

105:                                              ; preds = %104
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  br label %136

106:                                              ; preds = %101
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %11, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %12, align 4
  br label %114

110:                                              ; preds = %104
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %11, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  br label %114

114:                                              ; preds = %110, %106
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  br label %162

115:                                              ; preds = %98
  %116 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 0
  %117 = call noundef zeroext i1 @_ZN6Crypto9check_keyERKNS_9PublicKeyE(ptr noundef nonnull align 1 dereferenceable(32) %116)
  br i1 %117, label %135, label %118

118:                                              ; preds = %115
  %119 = call ptr @__cxa_allocate_exception(i64 32) #8
  %120 = invoke { i32, ptr } @_Z15make_error_codeN7DynexCN5error16WalletErrorCodesE(i32 noundef 4)
          to label %121 unwind label %131

121:                                              ; preds = %118
  %122 = getelementptr inbounds { i32, ptr }, ptr %21, i32 0, i32 0
  %123 = extractvalue { i32, ptr } %120, 0
  store i32 %123, ptr %122, align 8
  %124 = getelementptr inbounds { i32, ptr }, ptr %21, i32 0, i32 1
  %125 = extractvalue { i32, ptr } %120, 1
  store ptr %125, ptr %124, align 8
  %126 = getelementptr inbounds { i32, ptr }, ptr %21, i32 0, i32 0
  %127 = load i32, ptr %126, align 8
  %128 = getelementptr inbounds { i32, ptr }, ptr %21, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8
  invoke void @_ZNSt12system_errorC2ESt10error_codePKc(ptr noundef nonnull align 8 dereferenceable(32) %119, i32 %127, ptr %129, ptr noundef @.str.24)
          to label %130 unwind label %131

130:                                              ; preds = %121
  call void @__cxa_throw(ptr %119, ptr @_ZTISt12system_error, ptr @_ZNSt12system_errorD1Ev) #9
  unreachable

131:                                              ; preds = %121, %118
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %11, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %12, align 4
  call void @__cxa_free_exception(ptr %119) #8
  br label %162

135:                                              ; preds = %115
  br label %136

136:                                              ; preds = %135, %105
  call void @llvm.lifetime.start.p0(i64 96, ptr %22) #8
  call void @_ZN7DynexCN12WalletRecordC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %22) #8
  %137 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 0
  %138 = getelementptr inbounds %"struct.DynexCN::WalletRecord", ptr %22, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %138, ptr align 8 %137, i64 32, i1 false), !tbaa.struct !18
  %139 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 1
  %140 = getelementptr inbounds %"struct.DynexCN::WalletRecord", ptr %22, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %140, ptr align 8 %139, i64 32, i1 false), !tbaa.struct !18
  %141 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 3
  %142 = load i64, ptr %141, align 8, !tbaa !20
  %143 = getelementptr inbounds %"struct.DynexCN::WalletRecord", ptr %22, i32 0, i32 4
  store i64 %142, ptr %143, align 8, !tbaa !24
  %144 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 2
  %145 = load i64, ptr %144, align 8, !tbaa !26
  %146 = getelementptr inbounds %"struct.DynexCN::WalletRecord", ptr %22, i32 0, i32 3
  store i64 %145, ptr %146, align 8, !tbaa !27
  %147 = getelementptr inbounds %"struct.(anonymous namespace)::WalletRecordDto", ptr %15, i32 0, i32 4
  %148 = load i64, ptr %147, align 8, !tbaa !28
  %149 = getelementptr inbounds %"struct.DynexCN::WalletRecord", ptr %22, i32 0, i32 5
  store i64 %148, ptr %149, align 8, !tbaa !29
  %150 = load i64, ptr %14, align 8, !tbaa !12
  %151 = inttoptr i64 %150 to ptr
  %152 = getelementptr inbounds %"struct.DynexCN::WalletRecord", ptr %22, i32 0, i32 2
  store ptr %151, ptr %152, align 8, !tbaa !30
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = call { ptr, i8 } @_ZN5boost11multi_index6detail19random_access_indexINS1_9nth_layerILi1EN7DynexCN12WalletRecordENS0_10indexed_byINS0_13random_accessINS0_3tagINS4_17RandomAccessIndexEN4mpl_2naESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS0_13hashed_uniqueINS8_INS4_9KeysIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENS0_6memberIS5_N6Crypto9PublicKeyEXadL_ZNS5_14spendPublicKeyEEEEESB_SB_EENSE_INS8_INS4_23TransfersContainerIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENSH_IS5_PNS4_19ITransfersContainerEXadL_ZNS5_9containerEEEEESB_SB_EESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EESaIS5_EEENS_3mpl6v_itemIS9_NSV_7vector0ISB_EELi0EEEE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(152) %153, ptr noundef nonnull align 8 dereferenceable(96) %22)
  %155 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 0
  %156 = extractvalue { ptr, i8 } %154, 0
  store ptr %156, ptr %155, align 8
  %157 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 1
  %158 = extractvalue { ptr, i8 } %154, 1
  store i8 %158, ptr %157, align 8
  call void @llvm.lifetime.end.p0(i64 96, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #8
  br label %159

159:                                              ; preds = %136
  %160 = load i64, ptr %14, align 8, !tbaa !12
  %161 = add i64 %160, 1
  store i64 %161, ptr %14, align 8, !tbaa !12
  br label %33, !llvm.loop !31

162:                                              ; preds = %131, %114, %93, %67
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  br label %164

163:                                              ; preds = %37
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  ret void

164:                                              ; preds = %162, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %165

165:                                              ; preds = %164
  %166 = load ptr, ptr %11, align 8
  %167 = load i32, ptr %12, align 4
  %168 = insertvalue { ptr, i32 } poison, ptr %166, 0
  %169 = insertvalue { ptr, i32 } %168, i32 %167, 1
  resume { ptr, i32 } %169
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN5boost11multi_index6detail19random_access_indexINS1_9nth_layerILi1EN7DynexCN12WalletRecordENS0_10indexed_byINS0_13random_accessINS0_3tagINS4_17RandomAccessIndexEN4mpl_2naESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS0_13hashed_uniqueINS8_INS4_9KeysIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENS0_6memberIS5_N6Crypto9PublicKeyEXadL_ZNS5_14spendPublicKeyEEEEESB_SB_EENSE_INS8_INS4_23TransfersContainerIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENSH_IS5_PNS4_19ITransfersContainerEXadL_ZNS5_9containerEEEEESB_SB_EESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EESaIS5_EEENS_3mpl6v_itemIS9_NSV_7vector0ISB_EELi0EEEE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(96)) #5 align 2

declare void @_ZN7DynexCN20throwIfKeysMissmatchERKN6Crypto9SecretKeyERKNS0_9PublicKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_120deserializeEncryptedImEEvRT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN7DynexCN18WalletSerializerV113CryptoContextERN6Common12IInputStreamE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_115WalletRecordDtoC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_120deserializeEncryptedINS_15WalletRecordDtoEEEvRT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN7DynexCN18WalletSerializerV113CryptoContextERN6Common12IInputStreamE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6CryptoeqERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6CryptoneERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Crypto9check_keyERKNS_9PublicKeyE(ptr noundef nonnull align 1 dereferenceable(32)) #7

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { "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 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }

!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, !6, i64 40}
!10 = !{!"_ZTSN7DynexCN18WalletSerializerV1E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{i64 0, i64 32, !19}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !13, i64 72}
!21 = !{!"_ZTSN12_GLOBAL__N_115WalletRecordDtoE", !22, i64 0, !23, i64 32, !13, i64 64, !13, i64 72, !13, i64 80}
!22 = !{!"_ZTSN6Crypto9PublicKeyE", !7, i64 0}
!23 = !{!"_ZTSN6Crypto9SecretKeyE", !7, i64 0}
!24 = !{!25, !13, i64 80}
!25 = !{!"_ZTSN7DynexCN12WalletRecordE", !22, i64 0, !23, i64 32, !6, i64 64, !13, i64 72, !13, i64 80, !13, i64 88}
!26 = !{!21, !13, i64 64}
!27 = !{!25, !13, i64 72}
!28 = !{!21, !13, i64 80}
!29 = !{!25, !13, i64 88}
!30 = !{!25, !6, i64 64}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


; 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.Crypto::SecretKey" = type { [32 x i8] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.(anonymous namespace)::WalletRecordDto" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::SecretKey", i64, i64, i64 }
%"struct.Crypto::PublicKey" = type { [32 x i8] }
%"struct.DynexCN::WalletRecord" = type { %"struct.Crypto::PublicKey", %"struct.Crypto::SecretKey", ptr, i64, i64, i64 }

@_ZN7DynexCNL15NULL_SECRET_KEYE = external hidden global %"struct.Crypto::SecretKey", align 1
@_ZTISt12system_error = external constant ptr
@.str.18 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nocallback nofree 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

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt12system_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7DynexCN18WalletSerializerV111loadWalletsERN6Common12IInputStreamERNS0_13CryptoContextE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(92) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(40) %2) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"struct.(anonymous namespace)::WalletRecordDto", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"struct.DynexCN::WalletRecord", align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = tail call noundef nonnull align 8 dereferenceable(152) ptr @_ZN5boost11multi_index21multi_index_containerIN7DynexCN12WalletRecordENS0_10indexed_byINS0_13random_accessINS0_3tagINS2_17RandomAccessIndexEN4mpl_2naES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EEEENS0_13hashed_uniqueINS6_INS2_9KeysIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENS0_6memberIS3_N6Crypto9PublicKeyEXadL_ZNS3_14spendPublicKeyEEEEES9_S9_EENSC_INS6_INS2_23TransfersContainerIndexES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EENSF_IS3_PNS2_19ITransfersContainerEXadL_ZNS3_9containerEEEEES9_S9_EES9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_S9_EESaIS3_EE3getIS7_EERNSS_5indexIT_E4typeEv(ptr noundef nonnull align 8 dereferenceable(176) %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store i64 0, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.21, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %16 unwind label %41

16:                                               ; preds = %3
  invoke void @_ZN12_GLOBAL__N_120deserializeEncryptedImEEvRT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN7DynexCN18WalletSerializerV113CryptoContextERN6Common12IInputStreamE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 1 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %17 unwind label %43

17:                                               ; preds = %16
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZN7DynexCN18WalletSerializerV113CryptoContext5incIvEv(ptr noundef nonnull align 1 dereferenceable(40) %2)
  %18 = load i64, ptr %4, align 8, !tbaa !11
  %.not = icmp eq i64 %18, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %17
  %19 = getelementptr inbounds i8, ptr %7, i64 32
  %20 = getelementptr inbounds i8, ptr %12, i64 32
  %21 = getelementptr inbounds i8, ptr %7, i64 64
  %22 = getelementptr inbounds i8, ptr %12, i64 72
  %23 = getelementptr inbounds i8, ptr %7, i64 80
  %24 = getelementptr inbounds i8, ptr %12, i64 88
  %25 = getelementptr inbounds i8, ptr %12, i64 64
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %7) #8
  call void @_ZN12_GLOBAL__N_115WalletRecordDtoC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.18, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %26 unwind label %.loopexit.split-lp

26:                                               ; preds = %.lr.ph
  invoke void @_ZN12_GLOBAL__N_120deserializeEncryptedINS_15WalletRecordDtoEEEvRT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN7DynexCN18WalletSerializerV113CryptoContextERN6Common12IInputStreamE(ptr noundef nonnull align 8 dereferenceable(88) %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 1 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %27 unwind label %.loopexit.split-lp37

27:                                               ; preds = %26
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZN7DynexCN18WalletSerializerV113CryptoContext5incIvEv(ptr noundef nonnull align 1 dereferenceable(40) %2)
  %28 = call noundef zeroext i1 @_ZN6CryptoeqERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
  %29 = call noundef zeroext i1 @_ZN6CryptoneERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
  br i1 %29, label %32, label %30

30:                                               ; preds = %27
  %31 = call noundef zeroext i1 @_ZN6Crypto9check_keyERKNS_9PublicKeyE(ptr noundef nonnull align 1 dereferenceable(32) %7)
  br i1 %31, label %35, label %.loopexit42

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %33 unwind label %.loopexit.split-lp44

33:                                               ; preds = %32
  invoke void @_ZN7DynexCN20throwIfKeysMissmatchERKN6Crypto9SecretKeyERKNS0_9PublicKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 1 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %34 unwind label %.loopexit.split-lp49

34:                                               ; preds = %33
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %35

35:                                               ; preds = %34, %30
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %12) #8
  call void @_ZN7DynexCN12WalletRecordC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %19, i64 32, i1 false), !tbaa.struct !13
  %36 = load <2 x i64>, ptr %21, align 8, !tbaa !11
  store <2 x i64> %36, ptr %22, align 8, !tbaa !11
  %37 = load i64, ptr %23, align 8, !tbaa !15
  store i64 %37, ptr %24, align 8, !tbaa !19
  store ptr null, ptr %25, align 8, !tbaa !21
  %38 = call { ptr, i8 } @_ZN5boost11multi_index6detail19random_access_indexINS1_9nth_layerILi1EN7DynexCN12WalletRecordENS0_10indexed_byINS0_13random_accessINS0_3tagINS4_17RandomAccessIndexEN4mpl_2naESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS0_13hashed_uniqueINS8_INS4_9KeysIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENS0_6memberIS5_N6Crypto9PublicKeyEXadL_ZNS5_14spendPublicKeyEEEEESB_SB_EENSE_INS8_INS4_23TransfersContainerIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENSH_IS5_PNS4_19ITransfersContainerEXadL_ZNS5_9containerEEEEESB_SB_EESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EESaIS5_EEENS_3mpl6v_itemIS9_NSV_7vector0ISB_EELi0EEEE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(152) %15, ptr noundef nonnull align 8 dereferenceable(96) %12)
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #8
  %39 = load i64, ptr %4, align 8, !tbaa !11
  %40 = icmp ugt i64 %39, 1
  br i1 %40, label %.peel.next, label %._crit_edge

._crit_edge:                                      ; preds = %76, %35, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  ret void

41:                                               ; preds = %3
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %16
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  br label %45

45:                                               ; preds = %43, %41
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %85

.peel.next:                                       ; preds = %35, %76
  %.02533 = phi i64 [ %81, %76 ], [ 1, %35 ]
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %7) #8
  call void @_ZN12_GLOBAL__N_115WalletRecordDtoC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.18, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %46 unwind label %.loopexit

46:                                               ; preds = %.peel.next
  invoke void @_ZN12_GLOBAL__N_120deserializeEncryptedINS_15WalletRecordDtoEEEvRT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN7DynexCN18WalletSerializerV113CryptoContextERN6Common12IInputStreamE(ptr noundef nonnull align 8 dereferenceable(88) %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 1 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %49 unwind label %.loopexit36

.loopexit:                                        ; preds = %.peel.next
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %48

.loopexit.split-lp:                               ; preds = %.lr.ph
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %48

.loopexit36:                                      ; preds = %46
  %lpad.loopexit38 = landingpad { ptr, i32 }
          cleanup
  br label %47

.loopexit.split-lp37:                             ; preds = %26
  %lpad.loopexit.split-lp39 = landingpad { ptr, i32 }
          cleanup
  br label %47

47:                                               ; preds = %.loopexit.split-lp37, %.loopexit36
  %lpad.phi40 = phi { ptr, i32 } [ %lpad.loopexit38, %.loopexit36 ], [ %lpad.loopexit.split-lp39, %.loopexit.split-lp37 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %48

48:                                               ; preds = %.loopexit, %.loopexit.split-lp, %47
  %.pn27 = phi { ptr, i32 } [ %lpad.phi40, %47 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %84

49:                                               ; preds = %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @_ZN7DynexCN18WalletSerializerV113CryptoContext5incIvEv(ptr noundef nonnull align 1 dereferenceable(40) %2)
  br i1 %28, label %50, label %.critedge

50:                                               ; preds = %49
  %51 = call noundef zeroext i1 @_ZN6CryptoneERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
  br i1 %51, label %.loopexit41, label %60

.critedge:                                        ; preds = %49
  %52 = call noundef zeroext i1 @_ZN6CryptoeqERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
  br i1 %52, label %.loopexit41, label %60

.loopexit41:                                      ; preds = %.critedge, %50
  %53 = call ptr @__cxa_allocate_exception(i64 32) #8
  %54 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error16WalletErrorCodesE(i32 noundef 7)
  %55 = extractvalue { i32, ptr } %54, 0
  %56 = extractvalue { i32, ptr } %54, 1
  invoke void @_ZNSt12system_errorC2ESt10error_codePKc(ptr noundef nonnull align 8 dereferenceable(32) %53, i32 %55, ptr %56, ptr noundef nonnull @.str.22)
          to label %57 unwind label %58

57:                                               ; preds = %.loopexit41
  call void @__cxa_throw(ptr nonnull %53, ptr nonnull @_ZTISt12system_error, ptr nonnull @_ZNSt12system_errorD1Ev) #9
  unreachable

58:                                               ; preds = %.loopexit41
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %53) #8
  br label %84

60:                                               ; preds = %50, %.critedge
  %61 = call noundef zeroext i1 @_ZN6CryptoneERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(32) @_ZN7DynexCNL15NULL_SECRET_KEYE)
  br i1 %61, label %62, label %67

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %63 unwind label %.loopexit43

63:                                               ; preds = %62
  invoke void @_ZN7DynexCN20throwIfKeysMissmatchERKN6Crypto9SecretKeyERKNS0_9PublicKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 1 dereferenceable(32) %19, ptr noundef nonnull align 1 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %64 unwind label %.loopexit48

64:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %76

.loopexit43:                                      ; preds = %62
  %lpad.loopexit45 = landingpad { ptr, i32 }
          cleanup
  br label %66

.loopexit.split-lp44:                             ; preds = %32
  %lpad.loopexit.split-lp46 = landingpad { ptr, i32 }
          cleanup
  br label %66

.loopexit48:                                      ; preds = %63
  %lpad.loopexit50 = landingpad { ptr, i32 }
          cleanup
  br label %65

.loopexit.split-lp49:                             ; preds = %33
  %lpad.loopexit.split-lp51 = landingpad { ptr, i32 }
          cleanup
  br label %65

65:                                               ; preds = %.loopexit.split-lp49, %.loopexit48
  %lpad.phi52 = phi { ptr, i32 } [ %lpad.loopexit50, %.loopexit48 ], [ %lpad.loopexit.split-lp51, %.loopexit.split-lp49 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  br label %66

66:                                               ; preds = %.loopexit43, %.loopexit.split-lp44, %65
  %.pn29 = phi { ptr, i32 } [ %lpad.phi52, %65 ], [ %lpad.loopexit45, %.loopexit43 ], [ %lpad.loopexit.split-lp46, %.loopexit.split-lp44 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %84

67:                                               ; preds = %60
  %68 = call noundef zeroext i1 @_ZN6Crypto9check_keyERKNS_9PublicKeyE(ptr noundef nonnull align 1 dereferenceable(32) %7)
  br i1 %68, label %76, label %.loopexit42

.loopexit42:                                      ; preds = %67, %30
  %69 = call ptr @__cxa_allocate_exception(i64 32) #8
  %70 = call { i32, ptr } @_Z15make_error_codeN7DynexCN5error16WalletErrorCodesE(i32 noundef 4)
  %71 = extractvalue { i32, ptr } %70, 0
  %72 = extractvalue { i32, ptr } %70, 1
  invoke void @_ZNSt12system_errorC2ESt10error_codePKc(ptr noundef nonnull align 8 dereferenceable(32) %69, i32 %71, ptr %72, ptr noundef nonnull @.str.24)
          to label %73 unwind label %74

73:                                               ; preds = %.loopexit42
  call void @__cxa_throw(ptr nonnull %69, ptr nonnull @_ZTISt12system_error, ptr nonnull @_ZNSt12system_errorD1Ev) #9
  unreachable

74:                                               ; preds = %.loopexit42
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %69) #8
  br label %84

76:                                               ; preds = %67, %64
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %12) #8
  call void @_ZN7DynexCN12WalletRecordC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %19, i64 32, i1 false), !tbaa.struct !13
  %77 = load <2 x i64>, ptr %21, align 8, !tbaa !11
  store <2 x i64> %77, ptr %22, align 8, !tbaa !11
  %78 = load i64, ptr %23, align 8, !tbaa !15
  store i64 %78, ptr %24, align 8, !tbaa !19
  %79 = inttoptr i64 %.02533 to ptr
  store ptr %79, ptr %25, align 8, !tbaa !21
  %80 = call { ptr, i8 } @_ZN5boost11multi_index6detail19random_access_indexINS1_9nth_layerILi1EN7DynexCN12WalletRecordENS0_10indexed_byINS0_13random_accessINS0_3tagINS4_17RandomAccessIndexEN4mpl_2naESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS0_13hashed_uniqueINS8_INS4_9KeysIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENS0_6memberIS5_N6Crypto9PublicKeyEXadL_ZNS5_14spendPublicKeyEEEEESB_SB_EENSE_INS8_INS4_23TransfersContainerIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENSH_IS5_PNS4_19ITransfersContainerEXadL_ZNS5_9containerEEEEESB_SB_EESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EESaIS5_EEENS_3mpl6v_itemIS9_NSV_7vector0ISB_EELi0EEEE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(152) %15, ptr noundef nonnull align 8 dereferenceable(96) %12)
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #8
  %81 = add nuw i64 %.02533, 1
  %82 = load i64, ptr %4, align 8, !tbaa !11
  %83 = icmp ult i64 %81, %82
  br i1 %83, label %.peel.next, label %._crit_edge, !llvm.loop !22

84:                                               ; preds = %74, %66, %58, %48
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %66 ], [ %75, %74 ], [ %59, %58 ], [ %.pn27, %48 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #8
  br label %85

85:                                               ; preds = %84, %45
  %.pn29.pn.pn = phi { ptr, i32 } [ %.pn29.pn, %84 ], [ %.pn, %45 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  resume { ptr, i32 } %.pn29.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN5boost11multi_index6detail19random_access_indexINS1_9nth_layerILi1EN7DynexCN12WalletRecordENS0_10indexed_byINS0_13random_accessINS0_3tagINS4_17RandomAccessIndexEN4mpl_2naESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS0_13hashed_uniqueINS8_INS4_9KeysIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENS0_6memberIS5_N6Crypto9PublicKeyEXadL_ZNS5_14spendPublicKeyEEEEESB_SB_EENSE_INS8_INS4_23TransfersContainerIndexESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EENSH_IS5_PNS4_19ITransfersContainerEXadL_ZNS5_9containerEEEEESB_SB_EESB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_SB_EESaIS5_EEENS_3mpl6v_itemIS9_NSV_7vector0ISB_EELi0EEEE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #5 align 2

declare void @_ZN7DynexCN20throwIfKeysMissmatchERKN6Crypto9SecretKeyERKNS0_9PublicKeyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_120deserializeEncryptedImEEvRT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN7DynexCN18WalletSerializerV113CryptoContextERN6Common12IInputStreamE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_115WalletRecordDtoC2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_120deserializeEncryptedINS_15WalletRecordDtoEEEvRT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERN7DynexCN18WalletSerializerV113CryptoContextERN6Common12IInputStreamE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6CryptoeqERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6CryptoneERKNS_9SecretKeyES2_(ptr noundef nonnull align 1 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Crypto9check_keyERKNS_9PublicKeyE(ptr noundef nonnull align 1 dereferenceable(32)) local_unnamed_addr #7

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { "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 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }

!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, !7, i64 40}
!6 = !{!"_ZTSN7DynexCN18WalletSerializerV1E", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !10, i64 88}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{i64 0, i64 32, !14}
!14 = !{!8, !8, i64 0}
!15 = !{!16, !12, i64 80}
!16 = !{!"_ZTSN12_GLOBAL__N_115WalletRecordDtoE", !17, i64 0, !18, i64 32, !12, i64 64, !12, i64 72, !12, i64 80}
!17 = !{!"_ZTSN6Crypto9PublicKeyE", !8, i64 0}
!18 = !{!"_ZTSN6Crypto9SecretKeyE", !8, i64 0}
!19 = !{!20, !12, i64 88}
!20 = !{!"_ZTSN7DynexCN12WalletRecordE", !17, i64 0, !18, i64 32, !7, i64 64, !12, i64 72, !12, i64 80, !12, i64 88}
!21 = !{!20, !7, i64 64}
!22 = distinct !{!22, !23, !24}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass