; LLVM IR from RemHero/ReUp-DateBase-Raft :: layer3/TCPServer.ll (ZN9TCPServer10getMessageEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<descript_socket *, std::allocator<descript_socket *>>::_Deque_impl" }
%"struct.std::_Deque_base<descript_socket *, std::allocator<descript_socket *>>::_Deque_impl" = type { %"struct.std::_Deque_base<descript_socket *, std::allocator<descript_socket *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<descript_socket *, std::allocator<descript_socket *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, 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::lock_guard" = type { ptr }

@_ZN9TCPServer7MessageE = external dso_local global %"class.std::queue", align 8
@_ZN9TCPServer2mtE = external dso_local global { %union.pthread_mutex_t }, align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9TCPServer10getMessageEv(ptr dead_on_unwind noalias writable sret(%"class.std::queue") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8048) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::lock_guard", align 8
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(40) @_ZN9TCPServer2mtE)
  store i1 false, ptr %6, align 1
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
          to label %11 unwind label %26

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %34, %11
  %13 = invoke noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
          to label %14 unwind label %30

14:                                               ; preds = %12
  %15 = xor i1 %13, true
  br i1 %15, label %16, label %35

16:                                               ; preds = %14
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %9, align 4, !tbaa !9
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
          to label %20 unwind label %30

20:                                               ; preds = %16
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %21 unwind label %30

21:                                               ; preds = %20
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
          to label %22 unwind label %30

22:                                               ; preds = %21
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = icmp sge i32 %23, 10
  br i1 %24, label %25, label %34

25:                                               ; preds = %22
  br label %35

26:                                               ; preds = %2
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %7, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %8, align 4
  br label %39

30:                                               ; preds = %21, %20, %16, %12
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %7, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %0) #4
  br label %39

34:                                               ; preds = %22
  br label %12, !llvm.loop !11

35:                                               ; preds = %25, %14
  store i1 true, ptr %6, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %36 = load i1, ptr %6, align 1
  br i1 %36, label %38, label %37

37:                                               ; preds = %35
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %0) #4
  br label %38

38:                                               ; preds = %37, %35
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void

39:                                               ; preds = %30, %26
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %40

40:                                               ; preds = %39
  %41 = load ptr, ptr %7, align 8
  %42 = load i32, ptr %8, align 4
  %43 = insertvalue { ptr, i32 } poison, ptr %41, 0
  %44 = insertvalue { ptr, i32 } %43, i32 %42, 1
  resume { ptr, i32 } %44
}

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<descript_socket *, std::allocator<descript_socket *>>::_Deque_impl" }
%"struct.std::_Deque_base<descript_socket *, std::allocator<descript_socket *>>::_Deque_impl" = type { %"struct.std::_Deque_base<descript_socket *, std::allocator<descript_socket *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<descript_socket *, std::allocator<descript_socket *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, 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::lock_guard" = type { ptr }

@_ZN9TCPServer7MessageE = external dso_local global %"class.std::queue", align 8
@_ZN9TCPServer2mtE = external dso_local global { %union.pthread_mutex_t }, align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9TCPServer10getMessageEv(ptr dead_on_unwind noalias writable sret(%"class.std::queue") align 8 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(8048) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::lock_guard", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(40) @_ZN9TCPServer2mtE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
          to label %.preheader.preheader unwind label %35

.preheader.preheader:                             ; preds = %2
  %4 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %4, label %39, label %5

5:                                                ; preds = %.preheader.preheader
  %6 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %.preheader.1 unwind label %37

.preheader.1:                                     ; preds = %5
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  %7 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %7, label %39, label %8

8:                                                ; preds = %.preheader.1
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %.preheader.2 unwind label %37

.preheader.2:                                     ; preds = %8
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  %10 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %10, label %39, label %11

11:                                               ; preds = %.preheader.2
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %.preheader.3 unwind label %37

.preheader.3:                                     ; preds = %11
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  %13 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %13, label %39, label %14

14:                                               ; preds = %.preheader.3
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %.preheader.4 unwind label %37

.preheader.4:                                     ; preds = %14
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  %16 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %16, label %39, label %17

17:                                               ; preds = %.preheader.4
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %.preheader.5 unwind label %37

.preheader.5:                                     ; preds = %17
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  %19 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %19, label %39, label %20

20:                                               ; preds = %.preheader.5
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %.preheader.6 unwind label %37

.preheader.6:                                     ; preds = %20
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  %22 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %22, label %39, label %23

23:                                               ; preds = %.preheader.6
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %.preheader.7 unwind label %37

.preheader.7:                                     ; preds = %23
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  %25 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %25, label %39, label %26

26:                                               ; preds = %.preheader.7
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %.preheader.8 unwind label %37

.preheader.8:                                     ; preds = %26
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  %28 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %28, label %39, label %29

29:                                               ; preds = %.preheader.8
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %.preheader.9 unwind label %37

.preheader.9:                                     ; preds = %29
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  %31 = call noundef zeroext i1 @_ZNKSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br i1 %31, label %39, label %32

32:                                               ; preds = %.preheader.9
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  invoke void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE4pushERKS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %34 unwind label %37

34:                                               ; preds = %32
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) @_ZN9TCPServer7MessageE)
  br label %39

35:                                               ; preds = %2
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %40

37:                                               ; preds = %32, %29, %26, %23, %20, %17, %14, %11, %8, %5
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt5queueIP15descript_socketSt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %0) #4
  br label %40

39:                                               ; preds = %34, %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret void

40:                                               ; preds = %37, %35
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass