; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/utils (IncomingMessage)

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

%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.8" = type { %"struct.std::_Rb_tree_iterator.10", %"struct.std::_Rb_tree_iterator.10" }
%"struct.std::_Rb_tree_iterator.10" = type { ptr }
%"class.DIS::IncomingMessage" = type { %"class.DIS::IBufferProcessor", %"class.std::multimap", %"class.std::multimap.0" }
%"class.DIS::IBufferProcessor" = type { ptr }
%"class.std::multimap" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, DIS::IPacketProcessor *>, std::_Select1st<std::pair<const unsigned char, DIS::IPacketProcessor *>>, std::less<unsigned char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, DIS::IPacketProcessor *>, std::_Select1st<std::pair<const unsigned char, DIS::IPacketProcessor *>>, std::less<unsigned char>>::_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.std::multimap.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, DIS::IPduBank *>, std::_Select1st<std::pair<const unsigned char, DIS::IPduBank *>>, std::less<unsigned char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, DIS::IPduBank *>, std::_Select1st<std::pair<const unsigned char, DIS::IPduBank *>>, std::less<unsigned char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair" = type { i8, ptr }
%"struct.std::pair.11" = type { i8, ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3DIS15IncomingMessage12SwitchOnTypeENS_7PDUTypeERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca i8, align 1
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca i8, align 1
  %13 = alloca %"struct.std::pair.8", align 8
  %14 = alloca i8, align 1
  %15 = alloca %"struct.std::_Rb_tree_iterator.10", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator.10", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @_ZNSt17_Rb_tree_iteratorISt4pairIKhPN3DIS8IPduBankEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %18 = getelementptr inbounds %"class.DIS::IncomingMessage", ptr %17, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  %19 = load i32, ptr %5, align 4, !tbaa !9
  %20 = trunc i32 %19 to i8
  store i8 %20, ptr %10, align 1, !tbaa !11
  %21 = call ptr @_ZNSt8multimapIhPN3DIS8IPduBankESt4lessIhESaISt4pairIKhS2_EEE4findERS6_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 1 dereferenceable(1) %10)
  %22 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %9, i32 0, i32 0
  store ptr %21, ptr %22, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %23 = getelementptr inbounds %"class.DIS::IncomingMessage", ptr %17, i32 0, i32 2
  %24 = call ptr @_ZNSt8multimapIhPN3DIS8IPduBankESt4lessIhESaISt4pairIKhS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #5
  %25 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %11, i32 0, i32 0
  store ptr %24, ptr %25, align 8
  %26 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKhPN3DIS8IPduBankEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br i1 %26, label %27, label %38

27:                                               ; preds = %3
  %28 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKhPN3DIS8IPduBankEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %29 = getelementptr inbounds %"struct.std::pair", ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = trunc i32 %31 to i8
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %30, align 8, !tbaa !14
  %35 = getelementptr inbounds ptr, ptr %34, i64 0
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef ptr %36(ptr noundef nonnull align 8 dereferenceable(8) %30, i8 noundef zeroext %32, ptr noundef nonnull align 8 dereferenceable(48) %33)
  store ptr %37, ptr %7, align 8, !tbaa !5
  br label %41

38:                                               ; preds = %3
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = call noundef ptr @_ZN3DIS7PduBank12GetStaticPDUENS_7PDUTypeE(i32 noundef %39)
  store ptr %40, ptr %7, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %38, %27
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  br i1 %43, label %44, label %50

44:                                               ; preds = %41
  %45 = getelementptr inbounds %"class.DIS::IncomingMessage", ptr %17, i32 0, i32 1
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = trunc i32 %46 to i8
  store i8 %47, ptr %12, align 1, !tbaa !11
  %48 = call noundef i64 @_ZNKSt8multimapIhPN3DIS16IPacketProcessorESt4lessIhESaISt4pairIKhS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %45, ptr noundef nonnull align 1 dereferenceable(1) %12)
  %49 = icmp ugt i64 %48, 0
  br label %50

50:                                               ; preds = %44, %41
  %51 = phi i1 [ false, %41 ], [ %49, %44 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  br i1 %51, label %52, label %80

52:                                               ; preds = %50
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %53, align 8, !tbaa !14
  %56 = getelementptr inbounds ptr, ptr %55, i64 3
  %57 = load ptr, ptr %56, align 8
  call void %57(ptr noundef nonnull align 8 dereferenceable(20) %53, ptr noundef nonnull align 8 dereferenceable(48) %54)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %58 = getelementptr inbounds %"class.DIS::IncomingMessage", ptr %17, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = trunc i32 %59 to i8
  store i8 %60, ptr %14, align 1, !tbaa !11
  %61 = call { ptr, ptr } @_ZNSt8multimapIhPN3DIS16IPacketProcessorESt4lessIhESaISt4pairIKhS2_EEE11equal_rangeERS6_(ptr noundef nonnull align 8 dereferenceable(48) %58, ptr noundef nonnull align 1 dereferenceable(1) %14)
  %62 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 0
  %63 = extractvalue { ptr, ptr } %61, 0
  store ptr %63, ptr %62, align 8
  %64 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 1
  %65 = extractvalue { ptr, ptr } %61, 1
  store ptr %65, ptr %64, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %66 = getelementptr inbounds %"struct.std::pair.8", ptr %13, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %66, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %67 = getelementptr inbounds %"struct.std::pair.8", ptr %13, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %67, i64 8, i1 false), !tbaa.struct !16
  br label %68

68:                                               ; preds = %70, %52
  %69 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKhPN3DIS16IPacketProcessorEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br i1 %69, label %70, label %79

70:                                               ; preds = %68
  %71 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKhPN3DIS16IPacketProcessorEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %72 = getelementptr inbounds %"struct.std::pair.11", ptr %71, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !17
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load ptr, ptr %73, align 8, !tbaa !14
  %76 = getelementptr inbounds ptr, ptr %75, i64 2
  %77 = load ptr, ptr %76, align 8
  call void %77(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(20) %74)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKhPN3DIS16IPacketProcessorEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %68, !llvm.loop !19

79:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %82

80:                                               ; preds = %50
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3DIS10DataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %81)
  br label %82

82:                                               ; preds = %80, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void
}

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

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

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

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

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

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

declare noundef ptr @_ZN3DIS7PduBank12GetStaticPDUENS_7PDUTypeE(i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt8multimapIhPN3DIS16IPacketProcessorESt4lessIhESaISt4pairIKhS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNSt8multimapIhPN3DIS16IPacketProcessorESt4lessIhESaISt4pairIKhS2_EEE11equal_rangeERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

declare void @_ZN3DIS10DataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_ZTSN3DIS7PDUTypeE", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 8}
!13 = !{!"_ZTSSt4pairIKhPN3DIS8IPduBankEE", !7, i64 0, !6, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{i64 0, i64 8, !5}
!17 = !{!18, !6, i64 8}
!18 = !{!"_ZTSSt4pairIKhPN3DIS16IPacketProcessorEE", !7, i64 0, !6, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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

%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Rb_tree_iterator.10" = type { ptr }

; 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 uwtable
define dso_local void @_ZN3DIS15IncomingMessage12SwitchOnTypeENS_7PDUTypeERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca %"struct.std::_Rb_tree_iterator.10", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator.10", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @_ZNSt17_Rb_tree_iteratorISt4pairIKhPN3DIS8IPduBankEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  %13 = trunc i32 %1 to i8
  store i8 %13, ptr %6, align 1, !tbaa !5
  %14 = call ptr @_ZNSt8multimapIhPN3DIS8IPduBankESt4lessIhESaISt4pairIKhS2_EEE4findERS6_(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 1 dereferenceable(1) %6)
  store ptr %14, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %15 = call ptr @_ZNSt8multimapIhPN3DIS8IPduBankESt4lessIhESaISt4pairIKhS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %12) #4
  store ptr %15, ptr %7, align 8
  %16 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKhPN3DIS8IPduBankEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br i1 %16, label %17, label %24

17:                                               ; preds = %3
  %18 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKhPN3DIS8IPduBankEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !8
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = load ptr, ptr %21, align 8
  %23 = call noundef ptr %22(ptr noundef nonnull align 8 dereferenceable(8) %20, i8 noundef zeroext %13, ptr noundef nonnull align 8 dereferenceable(48) %2)
  br label %26

24:                                               ; preds = %3
  %25 = call noundef ptr @_ZN3DIS7PduBank12GetStaticPDUENS_7PDUTypeE(i32 noundef %1)
  br label %26

26:                                               ; preds = %24, %17
  %.0 = phi ptr [ %23, %17 ], [ %25, %24 ]
  %.not = icmp eq ptr %.0, null
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  br i1 %.not, label %.critedge, label %27

27:                                               ; preds = %26
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  store i8 %13, ptr %8, align 1, !tbaa !5
  %29 = call noundef i64 @_ZNKSt8multimapIhPN3DIS16IPacketProcessorESt4lessIhESaISt4pairIKhS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 1 dereferenceable(1) %8)
  %.not11 = icmp eq i64 %29, 0
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  br i1 %.not11, label %46, label %30

30:                                               ; preds = %27
  %31 = load ptr, ptr %.0, align 8, !tbaa !11
  %32 = getelementptr inbounds i8, ptr %31, i64 24
  %33 = load ptr, ptr %32, align 8
  call void %33(ptr noundef nonnull align 8 dereferenceable(20) %.0, ptr noundef nonnull align 8 dereferenceable(48) %2)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  store i8 %13, ptr %9, align 1, !tbaa !5
  %34 = call { ptr, ptr } @_ZNSt8multimapIhPN3DIS16IPacketProcessorESt4lessIhESaISt4pairIKhS2_EEE11equal_rangeERS6_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 1 dereferenceable(1) %9)
  %35 = extractvalue { ptr, ptr } %34, 0
  %36 = extractvalue { ptr, ptr } %34, 1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store ptr %35, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  store ptr %36, ptr %11, align 8, !tbaa !13
  %37 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKhPN3DIS16IPacketProcessorEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br i1 %37, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %30, %.lr.ph
  %38 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKhPN3DIS16IPacketProcessorEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %43 = load ptr, ptr %42, align 8
  call void %43(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(20) %.0)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKhPN3DIS16IPacketProcessorEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %45 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKhPN3DIS16IPacketProcessorEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br i1 %45, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %47

.critedge:                                        ; preds = %26
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  br label %46

46:                                               ; preds = %.critedge, %27
  call void @_ZN3DIS10DataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  br label %47

47:                                               ; preds = %46, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret void
}

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

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

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

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

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

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

declare noundef ptr @_ZN3DIS7PduBank12GetStaticPDUENS_7PDUTypeE(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt8multimapIhPN3DIS16IPacketProcessorESt4lessIhESaISt4pairIKhS2_EEE5countERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNSt8multimapIhPN3DIS16IPacketProcessorESt4lessIhESaISt4pairIKhS2_EEE11equal_rangeERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

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

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

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

declare void @_ZN3DIS10DataStream5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 8}
!9 = !{!"_ZTSSt4pairIKhPN3DIS8IPduBankEE", !6, i64 0, !10, i64 8}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"_ZTSSt4pairIKhPN3DIS16IPacketProcessorEE", !6, i64 0, !10, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass