; LLVM IR from turi-code/SFrame :: oss_src/fileio/oss_webstor/asyncurl.ll (ZN7webstor8internal9AsyncLoop6pendOpEPvmPm)

; 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.webstor::internal::auto_scope.9" = type { ptr }
%"class.webstor::internal::AsyncLoop" = type <{ ptr, i8, [7 x i8], %"class.webstor::internal::TaskCtrl", i32, [4 x i8], %"class.webstor::internal::SocketPool", %"class.webstor::internal::ExLockSync", ptr, %"class.std::vector", %"class.std::vector", i64, i8, [7 x i8] }>
%"class.webstor::internal::TaskCtrl" = type { %"class.webstor::internal::auto_scope" }
%"class.webstor::internal::auto_scope" = type { i64 }
%"class.webstor::internal::SocketPool" = type { ptr, %"class.webstor::internal::EventSync" }
%"class.webstor::internal::EventSync" = type <{ %union.pthread_mutex_t, %"class.std::set", i32, [4 x i8] }>
%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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<webstor::internal::EventWaiter *, webstor::internal::EventWaiter *, std::_Identity<webstor::internal::EventWaiter *>, std::less<webstor::internal::EventWaiter *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<webstor::internal::EventWaiter *, webstor::internal::EventWaiter *, std::_Identity<webstor::internal::EventWaiter *>, std::less<webstor::internal::EventWaiter *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.webstor::internal::ExLockSync" = type { %"union.webstor::internal::ExLockSync::Data" }
%"union.webstor::internal::ExLockSync::Data" = type { %union.pthread_mutex_t }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl" = type { %"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<void *, std::allocator<void *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.webstor::internal::AsyncState" = type { %"class.webstor::internal::EventSync", i32, i32, ptr }

declare i32 @__gxx_personality_v0(...)

declare void @_ZN7webstor8internal10SocketPool6signalEv(ptr noundef nonnull align 8 dereferenceable(104)) #0

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN7webstor8internal10AsyncState11getFromCurlEPv(ptr noundef) #2 align 2

declare void @_ZN7webstor8internal10ExLockSync9claimLockEv(ptr noundef nonnull align 8 dereferenceable(40)) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7webstor8internal9AsyncLoop6pendOpEPvmPm(ptr noundef nonnull align 8 dereferenceable(241) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.webstor::internal::auto_scope.9", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  %15 = load ptr, ptr %6, align 8
  br label %16

16:                                               ; preds = %4
  br label %17

17:                                               ; preds = %16
  br label %18

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18
  %20 = getelementptr inbounds %"class.webstor::internal::AsyncLoop", ptr %15, i32 0, i32 7
  call void @_ZN7webstor8internal10ExLockSync9claimLockEv(ptr noundef nonnull align 8 dereferenceable(40) %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %21 = getelementptr inbounds %"class.webstor::internal::AsyncLoop", ptr %15, i32 0, i32 7
  call void @_ZN7webstor8internal10auto_scopeIPNS0_10ExLockSyncENS0_13ExLockDeleterELy0EEC2ES3_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %21)
  %22 = getelementptr inbounds %"class.webstor::internal::AsyncLoop", ptr %15, i32 0, i32 11
  %23 = load volatile i64, ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds %"class.webstor::internal::AsyncLoop", ptr %15, i32 0, i32 9
  %25 = call noundef i64 @_ZNKSt6vectorIPvSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %26 = add i64 %23, %25
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %26, ptr %27, align 8, !tbaa !9
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = load i64, ptr %8, align 8, !tbaa !9
  %31 = icmp uge i64 %29, %30
  br i1 %31, label %32, label %33

32:                                               ; preds = %19
  store i1 false, ptr %5, align 1
  store i32 1, ptr %11, align 4
  br label %58

33:                                               ; preds = %19
  %34 = getelementptr inbounds %"class.webstor::internal::AsyncLoop", ptr %15, i32 0, i32 10
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = add i64 %36, 1
  invoke void @_ZNSt6vectorIPvSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %37)
          to label %38 unwind label %62

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = invoke noundef ptr @_ZN7webstor8internal10AsyncState11getFromCurlEPv(ptr noundef %39)
          to label %41 unwind label %66

41:                                               ; preds = %38
  store ptr %40, ptr %14, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = getelementptr inbounds %"class.webstor::internal::AsyncLoop", ptr %15, i32 0, i32 9
  invoke void @_ZNSt6vectorIPvSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %46 unwind label %66

46:                                               ; preds = %44
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.webstor::internal::AsyncState", ptr %47, i32 0, i32 0
  invoke void @_ZN7webstor8internal9EventSync5resetEv(ptr noundef nonnull align 8 dereferenceable(92) %48)
          to label %49 unwind label %66

49:                                               ; preds = %46
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.webstor::internal::AsyncState", ptr %50, i32 0, i32 1
  store i32 43, ptr %51, align 8, !tbaa !32
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.webstor::internal::AsyncState", ptr %52, i32 0, i32 3
  store ptr %15, ptr %53, align 8, !tbaa !35
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = add i64 %55, 1
  store i64 %56, ptr %54, align 8, !tbaa !9
  %57 = getelementptr inbounds %"class.webstor::internal::AsyncLoop", ptr %15, i32 0, i32 12
  store volatile i8 1, ptr %57, align 8, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  store i32 0, ptr %11, align 4
  br label %58

58:                                               ; preds = %49, %32
  call void @_ZN7webstor8internal10auto_scopeIPNS0_10ExLockSyncENS0_13ExLockDeleterELy0EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %59 = load i32, ptr %11, align 4
  switch i32 %59, label %78 [
    i32 0, label %60
    i32 1, label %71
  ]

60:                                               ; preds = %58
  %61 = getelementptr inbounds %"class.webstor::internal::AsyncLoop", ptr %15, i32 0, i32 6
  call void @_ZN7webstor8internal10SocketPool6signalEv(ptr noundef nonnull align 8 dereferenceable(104) %61)
  store i1 true, ptr %5, align 1
  br label %71

62:                                               ; preds = %33
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %12, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %13, align 4
  br label %70

66:                                               ; preds = %46, %44, %38
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %12, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %70

70:                                               ; preds = %66, %62
  call void @_ZN7webstor8internal10auto_scopeIPNS0_10ExLockSyncENS0_13ExLockDeleterELy0EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %73

71:                                               ; preds = %60, %58
  %72 = load i1, ptr %5, align 1
  ret i1 %72

73:                                               ; preds = %70
  %74 = load ptr, ptr %12, align 8
  %75 = load i32, ptr %13, align 4
  %76 = insertvalue { ptr, i32 } poison, ptr %74, 0
  %77 = insertvalue { ptr, i32 } %76, i32 %75, 1
  resume { ptr, i32 } %77

78:                                               ; preds = %58
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPvSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

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

declare void @_ZN7webstor8internal9EventSync5resetEv(ptr noundef nonnull align 8 dereferenceable(92)) #0

attributes #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 232}
!12 = !{!"_ZTSN7webstor8internal9AsyncLoopE", !6, i64 0, !13, i64 8, !14, i64 16, !16, i64 24, !17, i64 32, !27, i64 136, !6, i64 176, !28, i64 184, !28, i64 208, !10, i64 232, !13, i64 240}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN7webstor8internal8TaskCtrlE", !15, i64 0}
!15 = !{!"_ZTSN7webstor8internal10auto_scopeImNS0_15TaskCtrlDeleterELy0EEE", !10, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN7webstor8internal10SocketPoolE", !6, i64 0, !18, i64 8}
!18 = !{!"_ZTSN7webstor8internal9EventSyncE", !7, i64 0, !19, i64 40, !16, i64 88}
!19 = !{!"_ZTSSt3setIPN7webstor8internal11EventWaiterESt4lessIS3_ESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSSt8_Rb_treeIPN7webstor8internal11EventWaiterES3_St9_IdentityIS3_ESt4lessIS3_ESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSNSt8_Rb_treeIPN7webstor8internal11EventWaiterES3_St9_IdentityIS3_ESt4lessIS3_ESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !22, i64 0, !24, i64 8}
!22 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPN7webstor8internal11EventWaiterEEE", !23, i64 0}
!23 = !{!"_ZTSSt4lessIPN7webstor8internal11EventWaiterEE"}
!24 = !{!"_ZTSSt15_Rb_tree_header", !25, i64 0, !10, i64 32}
!25 = !{!"_ZTSSt18_Rb_tree_node_base", !26, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!27 = !{!"_ZTSN7webstor8internal10ExLockSyncE", !7, i64 0}
!28 = !{!"_ZTSSt6vectorIPvSaIS0_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIPvSaIS0_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPvSaIS0_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPvSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!33, !34, i64 96}
!33 = !{!"_ZTSN7webstor8internal10AsyncStateE", !18, i64 0, !34, i64 96, !16, i64 100, !6, i64 104}
!34 = !{!"_ZTS8CURLcode", !7, i64 0}
!35 = !{!33, !6, i64 104}
!36 = !{!12, !13, i64 240}


; 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.webstor::internal::auto_scope.9" = type { ptr }

declare i32 @__gxx_personality_v0(...)

declare void @_ZN7webstor8internal10SocketPool6signalEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN7webstor8internal10AsyncState11getFromCurlEPv(ptr noundef) local_unnamed_addr #2 align 2

declare void @_ZN7webstor8internal10ExLockSync9claimLockEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7webstor8internal9AsyncLoop6pendOpEPvmPm(ptr noundef nonnull align 8 dereferenceable(241) %0, ptr noundef %1, i64 noundef %2, ptr nocapture noundef %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca %"class.webstor::internal::auto_scope.9", align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZN7webstor8internal10ExLockSync9claimLockEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZN7webstor8internal10auto_scopeIPNS0_10ExLockSyncENS0_13ExLockDeleterELy0EEC2ES3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 232
  %9 = load volatile i64, ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  %11 = call noundef i64 @_ZNKSt6vectorIPvSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %12 = add i64 %11, %9
  store i64 %12, ptr %3, align 8, !tbaa !31
  %.not.not = icmp ult i64 %12, %2
  br i1 %.not.not, label %13, label %20

13:                                               ; preds = %4
  %14 = getelementptr inbounds i8, ptr %0, i64 208
  %15 = add nuw i64 %12, 1
  invoke void @_ZNSt6vectorIPvSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %15)
          to label %16 unwind label %28

16:                                               ; preds = %13
  %17 = invoke noundef ptr @_ZN7webstor8internal10AsyncState11getFromCurlEPv(ptr noundef %1)
          to label %18 unwind label %30

18:                                               ; preds = %16
  invoke void @_ZNSt6vectorIPvSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %19 unwind label %30

19:                                               ; preds = %18
  invoke void @_ZN7webstor8internal9EventSync5resetEv(ptr noundef nonnull align 8 dereferenceable(92) %17)
          to label %21 unwind label %30

20:                                               ; preds = %4
  call void @_ZN7webstor8internal10auto_scopeIPNS0_10ExLockSyncENS0_13ExLockDeleterELy0EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %33

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %17, i64 96
  store i32 43, ptr %22, align 8, !tbaa !32
  %23 = getelementptr inbounds i8, ptr %17, i64 104
  store ptr %0, ptr %23, align 8, !tbaa !35
  %24 = load i64, ptr %3, align 8, !tbaa !31
  %25 = add i64 %24, 1
  store i64 %25, ptr %3, align 8, !tbaa !31
  %26 = getelementptr inbounds i8, ptr %0, i64 240
  store volatile i8 1, ptr %26, align 8, !tbaa !36
  call void @_ZN7webstor8internal10auto_scopeIPNS0_10ExLockSyncENS0_13ExLockDeleterELy0EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %27 = getelementptr inbounds i8, ptr %0, i64 32
  call void @_ZN7webstor8internal10SocketPool6signalEv(ptr noundef nonnull align 8 dereferenceable(104) %27)
  br label %33

28:                                               ; preds = %13
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %19, %18, %16
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %32

32:                                               ; preds = %30, %28
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @_ZN7webstor8internal10auto_scopeIPNS0_10ExLockSyncENS0_13ExLockDeleterELy0EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn

33:                                               ; preds = %20, %21
  ret i1 %.not.not
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPvSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

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

declare void @_ZN7webstor8internal9EventSync5resetEv(ptr noundef nonnull align 8 dereferenceable(92)) local_unnamed_addr #0

attributes #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = { 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, !14, i64 232}
!10 = !{!"_ZTSN7webstor8internal9AsyncLoopE", !6, i64 0, !11, i64 8, !12, i64 16, !15, i64 24, !16, i64 32, !26, i64 136, !6, i64 176, !27, i64 184, !27, i64 208, !14, i64 232, !11, i64 240}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSN7webstor8internal8TaskCtrlE", !13, i64 0}
!13 = !{!"_ZTSN7webstor8internal10auto_scopeImNS0_15TaskCtrlDeleterELy0EEE", !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN7webstor8internal10SocketPoolE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSN7webstor8internal9EventSyncE", !7, i64 0, !18, i64 40, !15, i64 88}
!18 = !{!"_ZTSSt3setIPN7webstor8internal11EventWaiterESt4lessIS3_ESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSSt8_Rb_treeIPN7webstor8internal11EventWaiterES3_St9_IdentityIS3_ESt4lessIS3_ESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSNSt8_Rb_treeIPN7webstor8internal11EventWaiterES3_St9_IdentityIS3_ESt4lessIS3_ESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPN7webstor8internal11EventWaiterEEE", !22, i64 0}
!22 = !{!"_ZTSSt4lessIPN7webstor8internal11EventWaiterEE"}
!23 = !{!"_ZTSSt15_Rb_tree_header", !24, i64 0, !14, i64 32}
!24 = !{!"_ZTSSt18_Rb_tree_node_base", !25, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!26 = !{!"_ZTSN7webstor8internal10ExLockSyncE", !7, i64 0}
!27 = !{!"_ZTSSt6vectorIPvSaIS0_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPvSaIS0_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPvSaIS0_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPvSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!14, !14, i64 0}
!32 = !{!33, !34, i64 96}
!33 = !{!"_ZTSN7webstor8internal10AsyncStateE", !17, i64 0, !34, i64 96, !15, i64 100, !6, i64 104}
!34 = !{!"_ZTS8CURLcode", !7, i64 0}
!35 = !{!33, !6, i64 104}
!36 = !{!10, !11, i64 240}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass