; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/dis6 (MinefieldQueryPdu)

; 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.DIS::Point" = type { ptr, float, float }
%"class.DIS::TwoByteChunk" = type <{ ptr, [2 x i8], [6 x i8] }>
%"class.DIS::MinefieldQueryPdu" = type { %"class.DIS::MinefieldFamilyPdu.base", [4 x i8], %"class.DIS::EntityID", %"class.DIS::EntityID", i8, i8, i8, i8, i32, %"class.DIS::EntityType", %"class.std::vector", %"class.std::vector.0" }
%"class.DIS::MinefieldFamilyPdu.base" = type { %"class.DIS::Pdu.base" }
%"class.DIS::Pdu.base" = type <{ ptr, i8, i8, i8, i8, i32, i16, i16 }>
%"class.DIS::EntityID" = type <{ ptr, i16, i16, i16, [2 x i8] }>
%"class.DIS::EntityType" = type { ptr, i8, i8, i16, i8, i8, i8, i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::Point, std::allocator<DIS::Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<DIS::TwoByteChunk, std::allocator<DIS::TwoByteChunk>>::_Vector_impl" }
%"struct.std::_Vector_base<DIS::TwoByteChunk, std::allocator<DIS::TwoByteChunk>>::_Vector_impl" = type { %"struct.std::_Vector_base<DIS::TwoByteChunk, std::allocator<DIS::TwoByteChunk>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DIS::TwoByteChunk, std::allocator<DIS::TwoByteChunk>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3DIS17MinefieldQueryPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.DIS::Point", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.DIS::TwoByteChunk", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS18MinefieldFamilyPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %11, ptr noundef nonnull align 8 dereferenceable(48) %12)
  %13 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS8EntityID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %13, ptr noundef nonnull align 8 dereferenceable(48) %14)
  %15 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 3
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS8EntityID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %15, ptr noundef nonnull align 8 dereferenceable(48) %16)
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 4
  %19 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 5
  %22 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 6
  %25 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 1 dereferenceable(1) %24)
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 7
  %28 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 1 dereferenceable(1) %27)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 8
  %31 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERj(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %32 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 9
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3DIS10EntityType9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(48) %33)
  %34 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 10
  call void @_ZNSt6vectorIN3DIS5PointESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %35

35:                                               ; preds = %47, %2
  %36 = load i64, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 5
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %39 = zext i8 %38 to i64
  %40 = icmp ult i64 %36, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %54

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @_ZN3DIS5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3DIS5Point9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(48) %43)
          to label %44 unwind label %50

44:                                               ; preds = %42
  %45 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 10
  invoke void @_ZNSt6vectorIN3DIS5PointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %46 unwind label %50

46:                                               ; preds = %44
  call void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %47

47:                                               ; preds = %46
  %48 = load i64, ptr %5, align 8, !tbaa !9
  %49 = add i64 %48, 1
  store i64 %49, ptr %5, align 8, !tbaa !9
  br label %35, !llvm.loop !27

50:                                               ; preds = %44, %42
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  call void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %76

54:                                               ; preds = %41
  %55 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 11
  call void @_ZNSt6vectorIN3DIS12TwoByteChunkESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %68, %54
  %57 = load i64, ptr %9, align 8, !tbaa !9
  %58 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 7
  %59 = load i8, ptr %58, align 1, !tbaa !29
  %60 = zext i8 %59 to i64
  %61 = icmp ult i64 %57, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %75

63:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @_ZN3DIS12TwoByteChunkC1Ev(ptr noundef nonnull align 8 dereferenceable(10) %10)
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3DIS12TwoByteChunk9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(10) %10, ptr noundef nonnull align 8 dereferenceable(48) %64)
          to label %65 unwind label %71

65:                                               ; preds = %63
  %66 = getelementptr inbounds %"class.DIS::MinefieldQueryPdu", ptr %11, i32 0, i32 11
  invoke void @_ZNSt6vectorIN3DIS12TwoByteChunkESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 8 dereferenceable(10) %10)
          to label %67 unwind label %71

67:                                               ; preds = %65
  call void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %68

68:                                               ; preds = %67
  %69 = load i64, ptr %9, align 8, !tbaa !9
  %70 = add i64 %69, 1
  store i64 %70, ptr %9, align 8, !tbaa !9
  br label %56, !llvm.loop !30

71:                                               ; preds = %65, %63
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  call void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %76

75:                                               ; preds = %62
  ret void

76:                                               ; preds = %71, %50
  %77 = load ptr, ptr %7, align 8
  %78 = load i32, ptr %8, align 4
  %79 = insertvalue { ptr, i32 } poison, ptr %77, 0
  %80 = insertvalue { ptr, i32 } %79, i32 %78, 1
  resume { ptr, i32 } %80
}

declare void @_ZN3DIS18MinefieldFamilyPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

declare void @_ZN3DIS8EntityID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #4

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #4

declare void @_ZN3DIS10EntityType9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

declare void @_ZN3DIS5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @_ZN3DIS5Point9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

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

declare void @_ZN3DIS12TwoByteChunkC1Ev(ptr noundef nonnull align 8 dereferenceable(10)) unnamed_addr #4

declare void @_ZN3DIS12TwoByteChunk9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(10), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

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

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

!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, !7, i64 57}
!12 = !{!"_ZTSN3DIS17MinefieldQueryPduE", !13, i64 0, !17, i64 24, !17, i64 40, !7, i64 56, !7, i64 57, !7, i64 58, !7, i64 59, !15, i64 60, !18, i64 64, !19, i64 80, !23, i64 104}
!13 = !{!"_ZTSN3DIS18MinefieldFamilyPduE", !14, i64 0}
!14 = !{!"_ZTSN3DIS3PduE", !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !15, i64 12, !16, i64 16, !16, i64 18}
!15 = !{!"int", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTSN3DIS8EntityIDE", !16, i64 8, !16, i64 10, !16, i64 12}
!18 = !{!"_ZTSN3DIS10EntityTypeE", !7, i64 8, !7, i64 9, !16, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15}
!19 = !{!"_ZTSSt6vectorIN3DIS5PointESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN3DIS5PointESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIN3DIS12TwoByteChunkESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!12, !7, i64 59}
!30 = distinct !{!30, !28}


; 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.DIS::Point" = type { ptr, float, float }
%"class.DIS::TwoByteChunk" = type <{ ptr, [2 x i8], [6 x i8] }>

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3DIS17MinefieldQueryPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.DIS::Point", align 8
  %4 = alloca %"class.DIS::TwoByteChunk", align 8
  tail call void @_ZN3DIS18MinefieldFamilyPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN3DIS8EntityID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %5, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZN3DIS8EntityID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14) %6, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %7 = getelementptr inbounds i8, ptr %0, i64 56
  %8 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 57
  %10 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %9)
  %11 = getelementptr inbounds i8, ptr %0, i64 58
  %12 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %11)
  %13 = getelementptr inbounds i8, ptr %0, i64 59
  %14 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %13)
  %15 = getelementptr inbounds i8, ptr %0, i64 60
  %16 = tail call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERj(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %17 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZN3DIS10EntityType9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(48) %1)
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZNSt6vectorIN3DIS5PointESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %19 = load i8, ptr %9, align 1, !tbaa !5
  %.not = icmp eq i8 %19, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %23, %2
  %20 = getelementptr inbounds i8, ptr %0, i64 104
  call void @_ZNSt6vectorIN3DIS12TwoByteChunkESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %21 = load i8, ptr %13, align 1, !tbaa !24
  %.not26 = icmp eq i8 %21, 0
  br i1 %.not26, label %._crit_edge25, label %.lr.ph24

.lr.ph:                                           ; preds = %2, %23
  %.01921 = phi i64 [ %24, %23 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN3DIS5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  invoke void @_ZN3DIS5Point9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %22 unwind label %28

22:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorIN3DIS5PointESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %23 unwind label %28

23:                                               ; preds = %22
  call void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %24 = add nuw nsw i64 %.01921, 1
  %25 = load i8, ptr %9, align 1, !tbaa !5
  %26 = zext i8 %25 to i64
  %27 = icmp ult i64 %24, %26
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !25

28:                                               ; preds = %22, %.lr.ph
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  br label %38

._crit_edge25:                                    ; preds = %31, %._crit_edge
  ret void

.lr.ph24:                                         ; preds = %._crit_edge, %31
  %.022 = phi i64 [ %32, %31 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN3DIS12TwoByteChunkC1Ev(ptr noundef nonnull align 8 dereferenceable(10) %4)
  invoke void @_ZN3DIS12TwoByteChunk9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(10) %4, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %30 unwind label %36

30:                                               ; preds = %.lr.ph24
  invoke void @_ZNSt6vectorIN3DIS12TwoByteChunkESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(10) %4)
          to label %31 unwind label %36

31:                                               ; preds = %30
  call void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  %32 = add nuw nsw i64 %.022, 1
  %33 = load i8, ptr %13, align 1, !tbaa !24
  %34 = zext i8 %33 to i64
  %35 = icmp ult i64 %32, %34
  br i1 %35, label %.lr.ph24, label %._crit_edge25, !llvm.loop !27

36:                                               ; preds = %30, %.lr.ph24
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %38

38:                                               ; preds = %36, %28
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %37, %36 ]
  resume { ptr, i32 } %.pn
}

declare void @_ZN3DIS18MinefieldFamilyPdu9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

declare void @_ZN3DIS8EntityID9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(14), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERh(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN3DIS10DataStreamrsERj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

declare void @_ZN3DIS10EntityType9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

declare void @_ZN3DIS5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @_ZN3DIS5Point9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

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

declare void @_ZN3DIS12TwoByteChunkC1Ev(ptr noundef nonnull align 8 dereferenceable(10)) unnamed_addr #4

declare void @_ZN3DIS12TwoByteChunk9unmarshalERNS_10DataStreamE(ptr noundef nonnull align 8 dereferenceable(10), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

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

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

!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, !9, i64 57}
!6 = !{!"_ZTSN3DIS17MinefieldQueryPduE", !7, i64 0, !13, i64 24, !13, i64 40, !9, i64 56, !9, i64 57, !9, i64 58, !9, i64 59, !11, i64 60, !14, i64 64, !15, i64 80, !20, i64 104}
!7 = !{!"_ZTSN3DIS18MinefieldFamilyPduE", !8, i64 0}
!8 = !{!"_ZTSN3DIS3PduE", !9, i64 8, !9, i64 9, !9, i64 10, !9, i64 11, !11, i64 12, !12, i64 16, !12, i64 18}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"short", !9, i64 0}
!13 = !{!"_ZTSN3DIS8EntityIDE", !12, i64 8, !12, i64 10, !12, i64 12}
!14 = !{!"_ZTSN3DIS10EntityTypeE", !9, i64 8, !9, i64 9, !12, i64 10, !9, i64 12, !9, i64 13, !9, i64 14, !9, i64 15}
!15 = !{!"_ZTSSt6vectorIN3DIS5PointESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN3DIS5PointESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3DIS5PointESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !9, i64 0}
!20 = !{!"_ZTSSt6vectorIN3DIS12TwoByteChunkESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN3DIS12TwoByteChunkESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!24 = !{!6, !9, i64 59}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


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