; LLVM IR from UBIC-repo/core :: Network/Peers.ll (ZN10PeerServer8do_writeEv)

; 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.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.1 }
%union.anon.1 = type { i32 }
%"class.boost::asio::mutable_buffers_1" = type { %"class.boost::asio::mutable_buffer" }
%"class.boost::asio::mutable_buffer" = type { ptr, i64 }
%"class.boost::asio::detail::wrapped_handler" = type { %"class.boost::asio::io_context::strand", %"class.boost::_bi::bind_t" }
%"class.boost::asio::io_context::strand" = type { ptr, ptr }
%"class.boost::_bi::bind_t" = type { %"class.boost::_mfi::mf2", %"class.boost::_bi::list3" }
%"class.boost::_mfi::mf2" = type { { i64, i64 } }
%"class.boost::_bi::list3" = type { %"struct.boost::_bi::storage3" }
%"struct.boost::_bi::storage3" = type { %"struct.boost::_bi::storage2" }
%"struct.boost::_bi::storage2" = type { %"struct.boost::_bi::storage1" }
%"struct.boost::_bi::storage1" = type { %"class.boost::_bi::value" }
%"class.boost::_bi::value" = type { 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] }
%class.PeerServer = type { %class.PeerInterface, %"class.std::enable_shared_from_this", %"class.std::__cxx11::basic_string", i16, %"class.std::vector.22", i8, i16, i32, i64, i8, %"class.std::__cxx11::basic_string", i64, %"class.boost::asio::basic_stream_socket", %"class.boost::asio::io_context::strand", %class.NetworkMessage, %"class.std::deque" }
%class.PeerInterface = type { ptr }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::asio::basic_stream_socket" = type { %"class.boost::asio::basic_socket" }
%"class.boost::asio::basic_socket" = type { %"class.boost::asio::detail::io_object_impl" }
%"class.boost::asio::detail::io_object_impl" = type { ptr, %"struct.boost::asio::detail::reactive_socket_service<boost::asio::ip::tcp>::implementation_type", %"class.boost::asio::execution::any_executor" }
%"struct.boost::asio::detail::reactive_socket_service<boost::asio::ip::tcp>::implementation_type" = type <{ %"struct.boost::asio::detail::reactive_socket_service_base::base_implementation_type", %"class.boost::asio::ip::tcp", [4 x i8] }>
%"struct.boost::asio::detail::reactive_socket_service_base::base_implementation_type" = type { i32, i8, ptr }
%"class.boost::asio::ip::tcp" = type { i32 }
%"class.boost::asio::execution::any_executor" = type { %"class.boost::asio::execution::detail::any_executor_base", ptr }
%"class.boost::asio::execution::detail::any_executor_base" = type { %"union.std::aligned_storage<16, 8>::type", ptr, ptr, ptr }
%"union.std::aligned_storage<16, 8>::type" = type { [16 x i8] }
%class.NetworkMessage = type { i32, ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<NetworkMessage, std::allocator<NetworkMessage>>::_Deque_impl" }
%"struct.std::_Deque_base<NetworkMessage, std::allocator<NetworkMessage>>::_Deque_impl" = type { %"struct.std::_Deque_base<NetworkMessage, std::allocator<NetworkMessage>>::_Deque_impl_data" }
%"struct.std::_Deque_base<NetworkMessage, std::allocator<NetworkMessage>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@_ZTISt9exception = external constant ptr
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1

declare ptr @__cxa_begin_catch(ptr)

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

declare void @__cxa_end_catch()

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

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #4

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10PeerServer8do_writeEv(ptr noundef nonnull align 8 dereferenceable(344) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.Log, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %class.Log, align 8
  %7 = alloca %class.Log, align 8
  %8 = alloca %"class.boost::asio::mutable_buffers_1", align 8
  %9 = alloca %"class.boost::asio::detail::wrapped_handler", align 8
  %10 = alloca %"class.boost::_bi::bind_t", align 8
  %11 = alloca { i64, i64 }, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %class.Log, align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  %18 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 15
  %19 = call noundef zeroext i1 @_ZNKSt5dequeI14NetworkMessageSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %18) #9
  br i1 %19, label %20, label %27

20:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 256, ptr %3) #9
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %3, i8 noundef zeroext 0)
  %21 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %3, ptr noundef @.str.17)
          to label %22 unwind label %23

22:                                               ; preds = %20
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %3) #9
  br label %125

23:                                               ; preds = %20
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %4, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %5, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %3) #9
  br label %151

27:                                               ; preds = %1
  %28 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 15
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeI14NetworkMessageSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %28) #9
  %30 = call noundef i64 @_ZNK14NetworkMessage6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  %31 = trunc i64 %30 to i32
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %40

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #9
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %6, i8 noundef zeroext 3)
  %34 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef @.str.18)
          to label %35 unwind label %36

35:                                               ; preds = %33
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #9
  br label %125

36:                                               ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %4, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %5, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #9
  br label %151

40:                                               ; preds = %27
  %41 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 9
  %42 = load i8, ptr %41, align 8, !tbaa !9, !range !41, !noundef !42
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  br label %125

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #9
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %7, i8 noundef zeroext 0)
  %46 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %7, ptr noundef @.str.19)
          to label %47 unwind label %78

47:                                               ; preds = %45
  %48 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 15
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeI14NetworkMessageSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %48) #9
  %50 = invoke noundef i64 @_ZNK14NetworkMessage6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %49)
          to label %51 unwind label %78

51:                                               ; preds = %47
  %52 = trunc i64 %50 to i32
  %53 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256) %46, i32 noundef %52)
          to label %54 unwind label %78

54:                                               ; preds = %51
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #9
  %55 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  %56 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 15
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeI14NetworkMessageSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %56) #9
  %58 = invoke noundef ptr @_ZN14NetworkMessage4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %57)
          to label %59 unwind label %82

59:                                               ; preds = %54
  %60 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 15
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeI14NetworkMessageSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %60) #9
  %62 = invoke noundef i64 @_ZNK14NetworkMessage6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %61)
          to label %63 unwind label %82

63:                                               ; preds = %59
  %64 = call { ptr, i64 } @_ZN5boost4asio6bufferEPvm(ptr noundef %58, i64 noundef %62) #9
  %65 = getelementptr inbounds %"class.boost::asio::mutable_buffers_1", ptr %8, i32 0, i32 0
  %66 = getelementptr inbounds { ptr, i64 }, ptr %65, i32 0, i32 0
  %67 = extractvalue { ptr, i64 } %64, 0
  store ptr %67, ptr %66, align 8
  %68 = getelementptr inbounds { ptr, i64 }, ptr %65, i32 0, i32 1
  %69 = extractvalue { ptr, i64 } %64, 1
  store i64 %69, ptr %68, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #9
  %70 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 13
  store { i64, i64 } { i64 ptrtoint (ptr @_ZN10PeerServer12writeHandlerERKN5boost6system10error_codeEm to i64), i64 0 }, ptr %11, align 8, !tbaa !43
  %71 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %72 = load i64, ptr %71, align 8
  %73 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %74 = load i64, ptr %73, align 8
  invoke void @_ZN5boost4bindIv10PeerServerRKNS_6system10error_codeEmPS1_PFNS_3argILi1EEEvEPFNS7_ILi2EEEvEEENS_3_bi6bind_tIT_NS_4_mfi3mf2ISG_T0_T1_T2_EENSE_9list_av_3IT3_T4_T5_E4typeEEEMSJ_FSG_SK_SL_ESO_SP_SQ_(ptr dead_on_unwind writable sret(%"class.boost::_bi::bind_t") align 8 %10, i64 %72, i64 %74, ptr noundef %17, ptr noundef @_ZN5boost4asio12placeholders5errorEv, ptr noundef @_ZN5boost4asio12placeholders17bytes_transferredEv)
          to label %75 unwind label %86

75:                                               ; preds = %63
  invoke void @_ZN5boost4asio10io_context6strand4wrapINS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS4_5list3INS4_5valueIPS8_EEPFNS_3argILi1EEEvEPFNSI_ILi2EEEvEEEEEEENS0_6detail15wrapped_handlerIS2_T_NSR_26is_continuation_if_runningEEEST_(ptr dead_on_unwind writable sret(%"class.boost::asio::detail::wrapped_handler") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef byval(%"class.boost::_bi::bind_t") align 8 %10)
          to label %76 unwind label %86

76:                                               ; preds = %75
  invoke void @_ZN5boost4asio11async_writeINS0_19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS5_12context_as_tIRNS0_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEENS0_17mutable_buffers_1ENS0_6detail15wrapped_handlerINS0_10io_context6strandENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS14_5list3INS14_5valueIPS18_EEPFNS_3argILi1EEEvEPFNS1I_ILi2EEEvEEEEENS10_26is_continuation_if_runningEEEEEDaRT_RKT0_OT1_PNSt9enable_ifIXsr24is_const_buffer_sequenceIS1V_EE5valueEvE4typeE(ptr noundef nonnull align 8 dereferenceable(80) %55, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef null)
          to label %77 unwind label %90

77:                                               ; preds = %76
  call void @_ZN5boost4asio6detail15wrapped_handlerINS0_10io_context6strandENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS5_5list3INS5_5valueIPS9_EEPFNS_3argILi1EEEvEPFNSJ_ILi2EEEvEEEEENS1_26is_continuation_if_runningEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  br label %125

78:                                               ; preds = %51, %47, %45
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %4, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %5, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #9
  br label %151

82:                                               ; preds = %59, %54
  %83 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %4, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %5, align 4
  br label %95

86:                                               ; preds = %75, %63
  %87 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %4, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %5, align 4
  br label %94

90:                                               ; preds = %76
  %91 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %4, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %5, align 4
  call void @_ZN5boost4asio6detail15wrapped_handlerINS0_10io_context6strandENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS5_5list3INS5_5valueIPS9_EEPFNS_3argILi1EEEvEPFNSJ_ILi2EEEvEEEEENS1_26is_continuation_if_runningEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #9
  br label %94

94:                                               ; preds = %90, %86
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #9
  br label %95

95:                                               ; preds = %94, %82
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %5, align 4
  %98 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %99 = icmp eq i32 %97, %98
  br i1 %99, label %100, label %151

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %101 = load ptr, ptr %4, align 8
  %102 = call ptr @__cxa_begin_catch(ptr %101) #9
  store ptr %102, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr %13) #9
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %13, i8 noundef zeroext 3)
          to label %103 unwind label %126

103:                                              ; preds = %100
  %104 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %13, ptr noundef @.str.15)
          to label %105 unwind label %130

105:                                              ; preds = %103
  %106 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 2
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %106)
          to label %107 unwind label %130

107:                                              ; preds = %105
  %108 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %104, ptr noundef %14)
          to label %109 unwind label %134

109:                                              ; preds = %107
  %110 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %108, ptr noundef @.str.16)
          to label %111 unwind label %134

111:                                              ; preds = %109
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = load ptr, ptr %112, align 8, !tbaa !44
  %114 = getelementptr inbounds ptr, ptr %113, i64 2
  %115 = load ptr, ptr %114, align 8
  %116 = call noundef ptr %115(ptr noundef nonnull align 8 dereferenceable(8) %112) #9
  %117 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %110, ptr noundef %116)
          to label %118 unwind label %134

118:                                              ; preds = %111
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %13) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %119 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5Peers8InstanceEv()
          to label %120 unwind label %140

120:                                              ; preds = %118
  store ptr %119, ptr %15, align 8, !tbaa !5
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.PeerServer, ptr %17, i32 0, i32 2
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %122)
          to label %123 unwind label %140

123:                                              ; preds = %120
  invoke void @_ZN5Peers10disconnectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %121, ptr noundef %16)
          to label %124 unwind label %144

124:                                              ; preds = %123
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %125

125:                                              ; preds = %124, %77, %44, %35, %22
  ret void

126:                                              ; preds = %100
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %4, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %5, align 4
  br label %139

130:                                              ; preds = %105, %103
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %4, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %5, align 4
  br label %138

134:                                              ; preds = %111, %109, %107
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %4, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  br label %138

138:                                              ; preds = %134, %130
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %13) #9
  br label %139

139:                                              ; preds = %138, %126
  call void @llvm.lifetime.end.p0(i64 256, ptr %13) #9
  br label %149

140:                                              ; preds = %120, %118
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %4, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %5, align 4
  br label %148

144:                                              ; preds = %123
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %4, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  br label %148

148:                                              ; preds = %144, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %149

149:                                              ; preds = %148, %139
  invoke void @__cxa_end_catch()
          to label %150 unwind label %156

150:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %151

151:                                              ; preds = %150, %96, %78, %36, %23
  %152 = load ptr, ptr %4, align 8
  %153 = load i32, ptr %5, align 4
  %154 = insertvalue { ptr, i32 } poison, ptr %152, 0
  %155 = insertvalue { ptr, i32 } %154, i32 %153, 1
  resume { ptr, i32 } %155

156:                                              ; preds = %149
  %157 = landingpad { ptr, i32 }
          catch ptr null
  %158 = extractvalue { ptr, i32 } %157, 0
  call void @__clang_call_terminate(ptr %158) #10
  unreachable
}

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

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost4asio11async_writeINS0_19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS5_12context_as_tIRNS0_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEENS0_17mutable_buffers_1ENS0_6detail15wrapped_handlerINS0_10io_context6strandENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS14_5list3INS14_5valueIPS18_EEPFNS_3argILi1EEEvEPFNS1I_ILi2EEEvEEEEENS10_26is_continuation_if_runningEEEEEDaRT_RKT0_OT1_PNSt9enable_ifIXsr24is_const_buffer_sequenceIS1V_EE5valueEvE4typeE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4asio10io_context6strand4wrapINS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS4_5list3INS4_5valueIPS8_EEPFNS_3argILi1EEEvEPFNSI_ILi2EEEvEEEEEEENS0_6detail15wrapped_handlerIS2_T_NSR_26is_continuation_if_runningEEEST_(ptr dead_on_unwind noalias writable sret(%"class.boost::asio::detail::wrapped_handler") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef byval(%"class.boost::_bi::bind_t") align 8) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4bindIv10PeerServerRKNS_6system10error_codeEmPS1_PFNS_3argILi1EEEvEPFNS7_ILi2EEEvEEENS_3_bi6bind_tIT_NS_4_mfi3mf2ISG_T0_T1_T2_EENSE_9list_av_3IT3_T4_T5_E4typeEEEMSJ_FSG_SK_SL_ESO_SP_SQ_(ptr dead_on_unwind noalias writable sret(%"class.boost::_bi::bind_t") align 8, i64, i64, ptr noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost4asio12placeholders5errorEv() #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost4asio12placeholders17bytes_transferredEv() #8

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind memory(none) }
attributes #8 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !25, i64 104}
!10 = !{!"_ZTS10PeerServer", !11, i64 0, !12, i64 8, !16, i64 24, !19, i64 56, !20, i64 64, !7, i64 88, !19, i64 90, !24, i64 92, !18, i64 96, !25, i64 104, !16, i64 112, !18, i64 144, !26, i64 152, !34, i64 232, !35, i64 248, !36, i64 264}
!11 = !{!"_ZTS13PeerInterface"}
!12 = !{!"_ZTSSt23enable_shared_from_thisI10PeerServerE", !13, i64 0}
!13 = !{!"_ZTSSt8weak_ptrI10PeerServerE", !14, i64 0}
!14 = !{!"_ZTSSt10__weak_ptrI10PeerServerLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIhSaIhEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"int", !7, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSN5boost4asio19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEE", !27, i64 0}
!27 = !{!"_ZTSN5boost4asio12basic_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEE", !28, i64 0}
!28 = !{!"_ZTSN5boost4asio6detail14io_object_implINS1_23reactive_socket_serviceINS0_2ip3tcpEEENS0_9execution12any_executorIJNS7_12context_as_tIRNS0_17execution_contextEEENS7_6detail8blocking7never_tILi0EEENS7_11prefer_onlyINSE_10possibly_tILi0EEEEENSH_INSD_16outstanding_work9tracked_tILi0EEEEENSH_INSL_11untracked_tILi0EEEEENSH_INSD_12relationship6fork_tILi0EEEEENSH_INSS_14continuation_tILi0EEEEEEEEEE", !6, i64 0, !29, i64 8, !32, i64 32}
!29 = !{!"_ZTSN5boost4asio6detail23reactive_socket_serviceINS0_2ip3tcpEE19implementation_typeE", !30, i64 0, !31, i64 16}
!30 = !{!"_ZTSN5boost4asio6detail28reactive_socket_service_base24base_implementation_typeE", !24, i64 0, !7, i64 4, !6, i64 8}
!31 = !{!"_ZTSN5boost4asio2ip3tcpE", !24, i64 0}
!32 = !{!"_ZTSN5boost4asio9execution12any_executorIJNS1_12context_as_tIRNS0_17execution_contextEEENS1_6detail8blocking7never_tILi0EEENS1_11prefer_onlyINS8_10possibly_tILi0EEEEENSB_INS7_16outstanding_work9tracked_tILi0EEEEENSB_INSF_11untracked_tILi0EEEEENSB_INS7_12relationship6fork_tILi0EEEEENSB_INSM_14continuation_tILi0EEEEEEEE", !33, i64 0, !6, i64 40}
!33 = !{!"_ZTSN5boost4asio9execution6detail17any_executor_baseE", !7, i64 0, !6, i64 16, !6, i64 24, !6, i64 32}
!34 = !{!"_ZTSN5boost4asio10io_context6strandE", !6, i64 0, !6, i64 8}
!35 = !{!"_ZTS14NetworkMessage", !24, i64 0, !6, i64 8}
!36 = !{!"_ZTSSt5dequeI14NetworkMessageSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSSt11_Deque_baseI14NetworkMessageSaIS0_EE", !38, i64 0}
!38 = !{!"_ZTSNSt11_Deque_baseI14NetworkMessageSaIS0_EE11_Deque_implE", !39, i64 0}
!39 = !{!"_ZTSNSt11_Deque_baseI14NetworkMessageSaIS0_EE16_Deque_impl_dataE", !6, i64 0, !18, i64 8, !40, i64 16, !40, i64 48}
!40 = !{!"_ZTSSt15_Deque_iteratorI14NetworkMessageRS0_PS0_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!7, !7, i64 0}
!44 = !{!45, !45, i64 0}
!45 = !{!"vtable pointer", !8, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.1 }
%union.anon.1 = type { i32 }
%"class.boost::asio::mutable_buffers_1" = type { %"class.boost::asio::mutable_buffer" }
%"class.boost::asio::mutable_buffer" = type { ptr, i64 }
%"class.boost::asio::detail::wrapped_handler" = type { %"class.boost::asio::io_context::strand", %"class.boost::_bi::bind_t" }
%"class.boost::asio::io_context::strand" = type { ptr, ptr }
%"class.boost::_bi::bind_t" = type { %"class.boost::_mfi::mf2", %"class.boost::_bi::list3" }
%"class.boost::_mfi::mf2" = type { { i64, i64 } }
%"class.boost::_bi::list3" = type { %"struct.boost::_bi::storage3" }
%"struct.boost::_bi::storage3" = type { %"struct.boost::_bi::storage2" }
%"struct.boost::_bi::storage2" = type { %"struct.boost::_bi::storage1" }
%"struct.boost::_bi::storage1" = type { %"class.boost::_bi::value" }
%"class.boost::_bi::value" = type { 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] }

@_ZTISt9exception = external constant ptr
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

declare void @__cxa_end_catch() local_unnamed_addr

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

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #4

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10PeerServer8do_writeEv(ptr noundef nonnull align 8 dereferenceable(344) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Log, align 8
  %3 = alloca %class.Log, align 8
  %4 = alloca %class.Log, align 8
  %5 = alloca %"class.boost::asio::mutable_buffers_1", align 8
  %6 = alloca %"class.boost::asio::detail::wrapped_handler", align 8
  %7 = alloca %"class.boost::_bi::bind_t", align 8
  %8 = alloca %class.Log, align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 264
  %12 = tail call noundef zeroext i1 @_ZNKSt5dequeI14NetworkMessageSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %11) #9
  br i1 %12, label %13, label %18

13:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #9
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %2, i8 noundef zeroext 0)
  %14 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef nonnull @.str.17)
          to label %15 unwind label %16

15:                                               ; preds = %13
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #9
  br label %82

16:                                               ; preds = %13
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #9
  br label %96

18:                                               ; preds = %1
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeI14NetworkMessageSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %11) #9
  %20 = tail call noundef i64 @_ZNK14NetworkMessage6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %21 = and i64 %20, 4294967295
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %23, label %28

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #9
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %3, i8 noundef zeroext 3)
  %24 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %3, ptr noundef nonnull @.str.18)
          to label %25 unwind label %26

25:                                               ; preds = %23
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #9
  br label %82

26:                                               ; preds = %23
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #9
  br label %96

28:                                               ; preds = %18
  %29 = getelementptr inbounds i8, ptr %0, i64 104
  %30 = load i8, ptr %29, align 8, !tbaa !5, !range !40, !noundef !41
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %82, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #9
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %4, i8 noundef zeroext 0)
  %33 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef nonnull @.str.19)
          to label %34 unwind label %53

34:                                               ; preds = %32
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeI14NetworkMessageSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %11) #9
  %36 = call noundef i64 @_ZNK14NetworkMessage6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %35)
  %37 = trunc i64 %36 to i32
  %38 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256) %33, i32 noundef %37)
          to label %39 unwind label %53

39:                                               ; preds = %34
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #9
  %40 = getelementptr inbounds i8, ptr %0, i64 152
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeI14NetworkMessageSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %11) #9
  %42 = call noundef ptr @_ZN14NetworkMessage4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %41)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeI14NetworkMessageSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %11) #9
  %44 = call noundef i64 @_ZNK14NetworkMessage6lengthEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
  %45 = call { ptr, i64 } @_ZN5boost4asio6bufferEPvm(ptr noundef %42, i64 noundef %44) #9
  %46 = extractvalue { ptr, i64 } %45, 0
  store ptr %46, ptr %5, align 8
  %47 = getelementptr inbounds i8, ptr %5, i64 8
  %48 = extractvalue { ptr, i64 } %45, 1
  store i64 %48, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #9
  invoke void @_ZN5boost4bindIv10PeerServerRKNS_6system10error_codeEmPS1_PFNS_3argILi1EEEvEPFNS7_ILi2EEEvEEENS_3_bi6bind_tIT_NS_4_mfi3mf2ISG_T0_T1_T2_EENSE_9list_av_3IT3_T4_T5_E4typeEEEMSJ_FSG_SK_SL_ESO_SP_SQ_(ptr dead_on_unwind nonnull writable sret(%"class.boost::_bi::bind_t") align 8 %7, i64 ptrtoint (ptr @_ZN10PeerServer12writeHandlerERKN5boost6system10error_codeEm to i64), i64 0, ptr noundef nonnull %0, ptr noundef nonnull @_ZN5boost4asio12placeholders5errorEv, ptr noundef nonnull @_ZN5boost4asio12placeholders17bytes_transferredEv)
          to label %49 unwind label %55

49:                                               ; preds = %39
  %50 = getelementptr inbounds i8, ptr %0, i64 232
  invoke void @_ZN5boost4asio10io_context6strand4wrapINS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS4_5list3INS4_5valueIPS8_EEPFNS_3argILi1EEEvEPFNSI_ILi2EEEvEEEEEEENS0_6detail15wrapped_handlerIS2_T_NSR_26is_continuation_if_runningEEEST_(ptr dead_on_unwind nonnull writable sret(%"class.boost::asio::detail::wrapped_handler") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull byval(%"class.boost::_bi::bind_t") align 8 %7)
          to label %51 unwind label %55

51:                                               ; preds = %49
  invoke void @_ZN5boost4asio11async_writeINS0_19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS5_12context_as_tIRNS0_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEENS0_17mutable_buffers_1ENS0_6detail15wrapped_handlerINS0_10io_context6strandENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS14_5list3INS14_5valueIPS18_EEPFNS_3argILi1EEEvEPFNS1I_ILi2EEEvEEEEENS10_26is_continuation_if_runningEEEEEDaRT_RKT0_OT1_PNSt9enable_ifIXsr24is_const_buffer_sequenceIS1V_EE5valueEvE4typeE(ptr noundef nonnull align 8 dereferenceable(80) %40, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef null)
          to label %52 unwind label %57

52:                                               ; preds = %51
  call void @_ZN5boost4asio6detail15wrapped_handlerINS0_10io_context6strandENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS5_5list3INS5_5valueIPS9_EEPFNS_3argILi1EEEvEPFNSJ_ILi2EEEvEEEEENS1_26is_continuation_if_runningEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %82

53:                                               ; preds = %34, %32
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #9
  br label %96

55:                                               ; preds = %49, %39
  %56 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  br label %59

57:                                               ; preds = %51
  %58 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  call void @_ZN5boost4asio6detail15wrapped_handlerINS0_10io_context6strandENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS5_5list3INS5_5valueIPS9_EEPFNS_3argILi1EEEvEPFNSJ_ILi2EEEvEEEEENS1_26is_continuation_if_runningEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #9
  br label %59

59:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  %.06 = extractvalue { ptr, i32 } %.pn, 1
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  %60 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #9
  %61 = icmp eq i32 %.06, %60
  br i1 %61, label %62, label %96

62:                                               ; preds = %59
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %63 = call ptr @__cxa_begin_catch(ptr %.0) #9
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #9
  invoke void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %8, i8 noundef zeroext 3)
          to label %64 unwind label %83

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %8, ptr noundef nonnull @.str.15)
          to label %66 unwind label %85

66:                                               ; preds = %64
  %67 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %68 unwind label %85

68:                                               ; preds = %66
  %69 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(256) %65, ptr noundef nonnull %9)
          to label %70 unwind label %87

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %69, ptr noundef nonnull @.str.16)
          to label %72 unwind label %87

72:                                               ; preds = %70
  %73 = load ptr, ptr %63, align 8, !tbaa !42
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef ptr %75(ptr noundef nonnull align 8 dereferenceable(8) %63) #9
  %77 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %71, ptr noundef %76)
          to label %78 unwind label %87

78:                                               ; preds = %72
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #9
  %79 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN5Peers8InstanceEv()
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %67)
          to label %80 unwind label %91

80:                                               ; preds = %78
  invoke void @_ZN5Peers10disconnectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(48) %79, ptr noundef nonnull %10)
          to label %81 unwind label %93

81:                                               ; preds = %80
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @__cxa_end_catch()
  br label %82

82:                                               ; preds = %28, %81, %52, %25, %15
  ret void

83:                                               ; preds = %62
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %90

85:                                               ; preds = %66, %64
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

87:                                               ; preds = %72, %70, %68
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  br label %89

89:                                               ; preds = %87, %85
  %.pn13 = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #9
  br label %90

90:                                               ; preds = %89, %83
  %.pn13.pn = phi { ptr, i32 } [ %.pn13, %89 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #9
  br label %95

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

93:                                               ; preds = %80
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  br label %95

95:                                               ; preds = %91, %93, %90
  %.pn16.pn = phi { ptr, i32 } [ %.pn13.pn, %90 ], [ %94, %93 ], [ %92, %91 ]
  invoke void @__cxa_end_catch()
          to label %96 unwind label %97

96:                                               ; preds = %95, %59, %53, %26, %16
  %.merged = phi { ptr, i32 } [ %17, %16 ], [ %27, %26 ], [ %.pn, %59 ], [ %54, %53 ], [ %.pn16.pn, %95 ]
  resume { ptr, i32 } %.merged

97:                                               ; preds = %95
  %98 = landingpad { ptr, i32 }
          catch ptr null
  %99 = extractvalue { ptr, i32 } %98, 0
  call void @__clang_call_terminate(ptr %99) #10
  unreachable
}

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

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

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

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEj(ptr noundef nonnull align 8 dereferenceable(256), i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost4asio11async_writeINS0_19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS5_12context_as_tIRNS0_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEENS0_17mutable_buffers_1ENS0_6detail15wrapped_handlerINS0_10io_context6strandENS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS14_5list3INS14_5valueIPS18_EEPFNS_3argILi1EEEvEPFNS1I_ILi2EEEvEEEEENS10_26is_continuation_if_runningEEEEEDaRT_RKT0_OT1_PNSt9enable_ifIXsr24is_const_buffer_sequenceIS1V_EE5valueEvE4typeE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4asio10io_context6strand4wrapINS_3_bi6bind_tIvNS_4_mfi3mf2Iv10PeerServerRKNS_6system10error_codeEmEENS4_5list3INS4_5valueIPS8_EEPFNS_3argILi1EEEvEPFNSI_ILi2EEEvEEEEEEENS0_6detail15wrapped_handlerIS2_T_NSR_26is_continuation_if_runningEEEST_(ptr dead_on_unwind noalias writable sret(%"class.boost::asio::detail::wrapped_handler") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef byval(%"class.boost::_bi::bind_t") align 8) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5boost4bindIv10PeerServerRKNS_6system10error_codeEmPS1_PFNS_3argILi1EEEvEPFNS7_ILi2EEEvEEENS_3_bi6bind_tIT_NS_4_mfi3mf2ISG_T0_T1_T2_EENSE_9list_av_3IT3_T4_T5_E4typeEEEMSJ_FSG_SK_SL_ESO_SP_SQ_(ptr dead_on_unwind noalias writable sret(%"class.boost::_bi::bind_t") align 8, i64, i64, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost4asio12placeholders5errorEv() #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost4asio12placeholders17bytes_transferredEv() #8

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline noreturn nounwind uwtable "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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nofree nosync nounwind memory(none) }
attributes #8 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !24, i64 104}
!6 = !{!"_ZTS10PeerServer", !7, i64 0, !8, i64 8, !15, i64 24, !18, i64 56, !19, i64 64, !12, i64 88, !18, i64 90, !23, i64 92, !17, i64 96, !24, i64 104, !15, i64 112, !17, i64 144, !25, i64 152, !33, i64 232, !34, i64 248, !35, i64 264}
!7 = !{!"_ZTS13PeerInterface"}
!8 = !{!"_ZTSSt23enable_shared_from_thisI10PeerServerE", !9, i64 0}
!9 = !{!"_ZTSSt8weak_ptrI10PeerServerE", !10, i64 0}
!10 = !{!"_ZTSSt10__weak_ptrI10PeerServerLN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !14, i64 8}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !12, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!17 = !{!"long", !12, i64 0}
!18 = !{!"short", !12, i64 0}
!19 = !{!"_ZTSSt6vectorIhSaIhEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!23 = !{!"int", !12, i64 0}
!24 = !{!"bool", !12, i64 0}
!25 = !{!"_ZTSN5boost4asio19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEE", !26, i64 0}
!26 = !{!"_ZTSN5boost4asio12basic_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEE", !27, i64 0}
!27 = !{!"_ZTSN5boost4asio6detail14io_object_implINS1_23reactive_socket_serviceINS0_2ip3tcpEEENS0_9execution12any_executorIJNS7_12context_as_tIRNS0_17execution_contextEEENS7_6detail8blocking7never_tILi0EEENS7_11prefer_onlyINSE_10possibly_tILi0EEEEENSH_INSD_16outstanding_work9tracked_tILi0EEEEENSH_INSL_11untracked_tILi0EEEEENSH_INSD_12relationship6fork_tILi0EEEEENSH_INSS_14continuation_tILi0EEEEEEEEEE", !11, i64 0, !28, i64 8, !31, i64 32}
!28 = !{!"_ZTSN5boost4asio6detail23reactive_socket_serviceINS0_2ip3tcpEE19implementation_typeE", !29, i64 0, !30, i64 16}
!29 = !{!"_ZTSN5boost4asio6detail28reactive_socket_service_base24base_implementation_typeE", !23, i64 0, !12, i64 4, !11, i64 8}
!30 = !{!"_ZTSN5boost4asio2ip3tcpE", !23, i64 0}
!31 = !{!"_ZTSN5boost4asio9execution12any_executorIJNS1_12context_as_tIRNS0_17execution_contextEEENS1_6detail8blocking7never_tILi0EEENS1_11prefer_onlyINS8_10possibly_tILi0EEEEENSB_INS7_16outstanding_work9tracked_tILi0EEEEENSB_INSF_11untracked_tILi0EEEEENSB_INS7_12relationship6fork_tILi0EEEEENSB_INSM_14continuation_tILi0EEEEEEEE", !32, i64 0, !11, i64 40}
!32 = !{!"_ZTSN5boost4asio9execution6detail17any_executor_baseE", !12, i64 0, !11, i64 16, !11, i64 24, !11, i64 32}
!33 = !{!"_ZTSN5boost4asio10io_context6strandE", !11, i64 0, !11, i64 8}
!34 = !{!"_ZTS14NetworkMessage", !23, i64 0, !11, i64 8}
!35 = !{!"_ZTSSt5dequeI14NetworkMessageSaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSSt11_Deque_baseI14NetworkMessageSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSNSt11_Deque_baseI14NetworkMessageSaIS0_EE11_Deque_implE", !38, i64 0}
!38 = !{!"_ZTSNSt11_Deque_baseI14NetworkMessageSaIS0_EE16_Deque_impl_dataE", !11, i64 0, !17, i64 8, !39, i64 16, !39, i64 48}
!39 = !{!"_ZTSSt15_Deque_iteratorI14NetworkMessageRS0_PS0_E", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!43, !43, i64 0}
!43 = !{!"vtable pointer", !13, i64 0}


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