; LLVM IR from dynexcoin/Dynex :: src/PaymentGate (PaymentServiceJsonRpcMessages)

; 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.Common::StringView" = type { ptr, i64 }
%"struct.PaymentService::SendTransaction::Request" = type { %"class.std::vector", %"class.std::vector.28", %"class.std::__cxx11::basic_string", i64, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<PaymentService::WalletRpcOrder, std::allocator<PaymentService::WalletRpcOrder>>::_Vector_impl" }
%"struct.std::_Vector_base<PaymentService::WalletRpcOrder, std::allocator<PaymentService::WalletRpcOrder>>::_Vector_impl" = type { %"struct.std::_Vector_base<PaymentService::WalletRpcOrder, std::allocator<PaymentService::WalletRpcOrder>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PaymentService::WalletRpcOrder, std::allocator<PaymentService::WalletRpcOrder>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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] }

@_ZTIN14PaymentService25RequestSerializationErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [10 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

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

declare ptr @__cxa_allocate_exception(i64)

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

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

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14PaymentService15SendTransaction7Request9serializeERN7DynexCN11ISerializerE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.Common::StringView", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.Common::StringView", align 8
  %9 = alloca %"class.Common::StringView", align 8
  %10 = alloca %"class.Common::StringView", align 8
  %11 = alloca %"class.Common::StringView", align 8
  %12 = alloca i8, align 1
  %13 = alloca %"class.Common::StringView", align 8
  %14 = alloca i8, align 1
  %15 = alloca %"class.Common::StringView", align 8
  %16 = alloca %"class.Common::StringView", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.PaymentService::SendTransaction::Request", ptr %17, i32 0, i32 0
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(10) @.str.15)
  %20 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef %5)
          to label %21 unwind label %29

21:                                               ; preds = %2
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.PaymentService::SendTransaction::Request", ptr %17, i32 0, i32 1
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 1 dereferenceable(10) @.str.38)
  %24 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclISt6vectorIN14PaymentService14WalletRpcOrderESaIS4_EEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef %8)
          to label %25 unwind label %33

25:                                               ; preds = %21
  %26 = xor i1 %24, true
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br i1 %26, label %27, label %37

27:                                               ; preds = %25
  %28 = call ptr @__cxa_allocate_exception(i64 8) #6
  call void @llvm.memset.p0.i64(ptr align 16 %28, i8 0, i64 8, i1 false)
  call void @_ZN14PaymentService25RequestSerializationErrorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  call void @__cxa_throw(ptr %28, ptr @_ZTIN14PaymentService25RequestSerializationErrorE, ptr @_ZNSt9exceptionD2Ev) #7
  unreachable

29:                                               ; preds = %2
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %6, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  br label %124

33:                                               ; preds = %21
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %6, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br label %124

37:                                               ; preds = %25
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.PaymentService::SendTransaction::Request", ptr %17, i32 0, i32 2
  call void @_ZN6Common10StringViewC2ILm14EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 1 dereferenceable(14) @.str.47)
  %40 = load ptr, ptr %38, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 16
  %42 = load ptr, ptr %41, align 8
  %43 = invoke noundef zeroext i1 %42(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef %9)
          to label %44 unwind label %55

44:                                               ; preds = %37
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.PaymentService::SendTransaction::Request", ptr %17, i32 0, i32 3
  call void @_ZN6Common10StringViewC2ILm4EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 1 dereferenceable(4) @.str.37)
  %47 = load ptr, ptr %45, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 13
  %49 = load ptr, ptr %48, align 8
  %50 = invoke noundef zeroext i1 %49(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef %10)
          to label %51 unwind label %59

51:                                               ; preds = %44
  %52 = xor i1 %50, true
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br i1 %52, label %53, label %63

53:                                               ; preds = %51
  %54 = call ptr @__cxa_allocate_exception(i64 8) #6
  call void @llvm.memset.p0.i64(ptr align 16 %54, i8 0, i64 8, i1 false)
  call void @_ZN14PaymentService25RequestSerializationErrorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #6
  call void @__cxa_throw(ptr %54, ptr @_ZTIN14PaymentService25RequestSerializationErrorE, ptr @_ZNSt9exceptionD2Ev) #7
  unreachable

55:                                               ; preds = %37
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %6, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %124

59:                                               ; preds = %44
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %124

63:                                               ; preds = %51
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.PaymentService::SendTransaction::Request", ptr %17, i32 0, i32 4
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 1 dereferenceable(10) @.str.48)
  %66 = load ptr, ptr %64, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %66, i64 11
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef zeroext i1 %68(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef %11)
          to label %70 unwind label %74

70:                                               ; preds = %63
  %71 = xor i1 %69, true
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br i1 %71, label %72, label %78

72:                                               ; preds = %70
  %73 = call ptr @__cxa_allocate_exception(i64 8) #6
  call void @llvm.memset.p0.i64(ptr align 16 %73, i8 0, i64 8, i1 false)
  call void @_ZN14PaymentService25RequestSerializationErrorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %73) #6
  call void @__cxa_throw(ptr %73, ptr @_ZTIN14PaymentService25RequestSerializationErrorE, ptr @_ZNSt9exceptionD2Ev) #7
  unreachable

74:                                               ; preds = %63
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %6, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %124

78:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.PaymentService::SendTransaction::Request", ptr %17, i32 0, i32 5
  call void @_ZN6Common10StringViewC2ILm6EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(6) @.str.39)
  %81 = load ptr, ptr %79, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %81, i64 16
  %83 = load ptr, ptr %82, align 8
  %84 = invoke noundef zeroext i1 %83(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull align 8 dereferenceable(32) %80, ptr noundef %13)
          to label %85 unwind label %102

85:                                               ; preds = %78
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  %86 = zext i1 %84 to i8
  store i8 %86, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.PaymentService::SendTransaction::Request", ptr %17, i32 0, i32 6
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 1 dereferenceable(10) @.str.26)
  %89 = load ptr, ptr %87, align 8, !tbaa !9
  %90 = getelementptr inbounds ptr, ptr %89, i64 16
  %91 = load ptr, ptr %90, align 8
  %92 = invoke noundef zeroext i1 %91(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull align 8 dereferenceable(32) %88, ptr noundef %15)
          to label %93 unwind label %106

93:                                               ; preds = %85
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  %94 = zext i1 %92 to i8
  store i8 %94, ptr %14, align 1, !tbaa !11
  %95 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %96 = trunc i8 %95 to i1
  br i1 %96, label %97, label %110

97:                                               ; preds = %93
  %98 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %99 = trunc i8 %98 to i1
  br i1 %99, label %100, label %110

100:                                              ; preds = %97
  %101 = call ptr @__cxa_allocate_exception(i64 8) #6
  call void @llvm.memset.p0.i64(ptr align 16 %101, i8 0, i64 8, i1 false)
  call void @_ZN14PaymentService25RequestSerializationErrorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %101) #6
  call void @__cxa_throw(ptr %101, ptr @_ZTIN14PaymentService25RequestSerializationErrorE, ptr @_ZNSt9exceptionD2Ev) #7
  unreachable

102:                                              ; preds = %78
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %6, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %123

106:                                              ; preds = %85
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %6, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %122

110:                                              ; preds = %97, %93
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.PaymentService::SendTransaction::Request", ptr %17, i32 0, i32 7
  call void @_ZN6Common10StringViewC2ILm11EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 1 dereferenceable(11) @.str.36)
  %113 = load ptr, ptr %111, align 8, !tbaa !9
  %114 = getelementptr inbounds ptr, ptr %113, i64 13
  %115 = load ptr, ptr %114, align 8
  %116 = invoke noundef zeroext i1 %115(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef %16)
          to label %117 unwind label %118

117:                                              ; preds = %110
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  ret void

118:                                              ; preds = %110
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %6, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %7, align 4
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %122

122:                                              ; preds = %118, %106
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %123

123:                                              ; preds = %122, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %124

124:                                              ; preds = %123, %74, %59, %55, %33, %29
  %125 = load ptr, ptr %6, align 8
  %126 = load i32, ptr %7, align 4
  %127 = insertvalue { ptr, i32 } poison, ptr %125, 0
  %128 = insertvalue { ptr, i32 } %127, i32 %126, 1
  resume { ptr, i32 } %128
}

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; 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.Common::StringView" = type { ptr, i64 }

@_ZTIN14PaymentService25RequestSerializationErrorE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [10 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14PaymentService15SendTransaction7Request9serializeERN7DynexCN11ISerializerE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.Common::StringView", align 8
  %4 = alloca %"class.Common::StringView", align 8
  %5 = alloca %"class.Common::StringView", align 8
  %6 = alloca %"class.Common::StringView", align 8
  %7 = alloca %"class.Common::StringView", align 8
  %8 = alloca %"class.Common::StringView", align 8
  %9 = alloca %"class.Common::StringView", align 8
  %10 = alloca %"class.Common::StringView", align 8
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 1 dereferenceable(10) @.str.15)
  %11 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %3)
          to label %12 unwind label %18

12:                                               ; preds = %2
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 1 dereferenceable(10) @.str.38)
  %14 = invoke noundef zeroext i1 @_ZN7DynexCN11ISerializerclISt6vectorIN14PaymentService14WalletRpcOrderESaIS4_EEEEbRT_N6Common10StringViewE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull %4)
          to label %15 unwind label %20

15:                                               ; preds = %12
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  br i1 %14, label %22, label %16

16:                                               ; preds = %15
  %17 = call ptr @__cxa_allocate_exception(i64 8) #4
  store i64 0, ptr %17, align 16
  call void @_ZN14PaymentService25RequestSerializationErrorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  call void @__cxa_throw(ptr nonnull %17, ptr nonnull @_ZTIN14PaymentService25RequestSerializationErrorE, ptr nonnull @_ZNSt9exceptionD2Ev) #5
  unreachable

18:                                               ; preds = %2
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %80

20:                                               ; preds = %12
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %80

22:                                               ; preds = %15
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  call void @_ZN6Common10StringViewC2ILm14EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(14) @.str.47)
  %24 = load ptr, ptr %1, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 128
  %26 = load ptr, ptr %25, align 8
  %27 = invoke noundef zeroext i1 %26(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull %5)
          to label %28 unwind label %37

28:                                               ; preds = %22
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  %29 = getelementptr inbounds i8, ptr %0, i64 80
  call void @_ZN6Common10StringViewC2ILm4EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 1 dereferenceable(4) @.str.37)
  %30 = load ptr, ptr %1, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 104
  %32 = load ptr, ptr %31, align 8
  %33 = invoke noundef zeroext i1 %32(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull %6)
          to label %34 unwind label %39

34:                                               ; preds = %28
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  br i1 %33, label %41, label %35

35:                                               ; preds = %34
  %36 = call ptr @__cxa_allocate_exception(i64 8) #4
  store i64 0, ptr %36, align 16
  call void @_ZN14PaymentService25RequestSerializationErrorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %36) #4
  call void @__cxa_throw(ptr nonnull %36, ptr nonnull @_ZTIN14PaymentService25RequestSerializationErrorE, ptr nonnull @_ZNSt9exceptionD2Ev) #5
  unreachable

37:                                               ; preds = %22
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %80

39:                                               ; preds = %28
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %80

41:                                               ; preds = %34
  %42 = getelementptr inbounds i8, ptr %0, i64 88
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 1 dereferenceable(10) @.str.48)
  %43 = load ptr, ptr %1, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 88
  %45 = load ptr, ptr %44, align 8
  %46 = invoke noundef zeroext i1 %45(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull %7)
          to label %47 unwind label %50

47:                                               ; preds = %41
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  br i1 %46, label %52, label %48

48:                                               ; preds = %47
  %49 = call ptr @__cxa_allocate_exception(i64 8) #4
  store i64 0, ptr %49, align 16
  call void @_ZN14PaymentService25RequestSerializationErrorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %49) #4
  call void @__cxa_throw(ptr nonnull %49, ptr nonnull @_ZTIN14PaymentService25RequestSerializationErrorE, ptr nonnull @_ZNSt9exceptionD2Ev) #5
  unreachable

50:                                               ; preds = %41
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %80

52:                                               ; preds = %47
  %53 = getelementptr inbounds i8, ptr %0, i64 96
  call void @_ZN6Common10StringViewC2ILm6EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 1 dereferenceable(6) @.str.39)
  %54 = load ptr, ptr %1, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 128
  %56 = load ptr, ptr %55, align 8
  %57 = invoke noundef zeroext i1 %56(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull %8)
          to label %58 unwind label %67

58:                                               ; preds = %52
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  %59 = getelementptr inbounds i8, ptr %0, i64 128
  call void @_ZN6Common10StringViewC2ILm10EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 1 dereferenceable(10) @.str.26)
  %60 = load ptr, ptr %1, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 128
  %62 = load ptr, ptr %61, align 8
  %63 = invoke noundef zeroext i1 %62(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef nonnull %9)
          to label %64 unwind label %69

64:                                               ; preds = %58
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  %brmerge.demorgan = and i1 %57, %63
  br i1 %brmerge.demorgan, label %65, label %71

65:                                               ; preds = %64
  %66 = call ptr @__cxa_allocate_exception(i64 8) #4
  store i64 0, ptr %66, align 16
  call void @_ZN14PaymentService25RequestSerializationErrorC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %66) #4
  call void @__cxa_throw(ptr nonnull %66, ptr nonnull @_ZTIN14PaymentService25RequestSerializationErrorE, ptr nonnull @_ZNSt9exceptionD2Ev) #5
  unreachable

67:                                               ; preds = %52
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %80

69:                                               ; preds = %58
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %80

71:                                               ; preds = %64
  %72 = getelementptr inbounds i8, ptr %0, i64 160
  call void @_ZN6Common10StringViewC2ILm11EEERAT__Kc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 1 dereferenceable(11) @.str.36)
  %73 = load ptr, ptr %1, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 104
  %75 = load ptr, ptr %74, align 8
  %76 = invoke noundef zeroext i1 %75(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull %10)
          to label %77 unwind label %78

77:                                               ; preds = %71
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  ret void

78:                                               ; preds = %71
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %80

80:                                               ; preds = %67, %78, %69, %50, %39, %37, %20, %18
  %.sink = phi ptr [ %8, %67 ], [ %10, %78 ], [ %9, %69 ], [ %7, %50 ], [ %6, %39 ], [ %5, %37 ], [ %4, %20 ], [ %3, %18 ]
  %.pn.pn.pn = phi { ptr, i32 } [ %68, %67 ], [ %79, %78 ], [ %70, %69 ], [ %51, %50 ], [ %40, %39 ], [ %38, %37 ], [ %21, %20 ], [ %19, %18 ]
  call void @_ZN6Common10StringViewD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %.sink) #4
  resume { ptr, i32 } %.pn.pn.pn
}

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 #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 = { nounwind }
attributes #5 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass