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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

; Function Attrs: nounwind
declare void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS16MinefieldDataPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(144) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca %"class.DIS::TwoByteChunk", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca %"class.DIS::Vector3Float", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  %11 = call noundef i32 @_ZNK3DIS18MinefieldFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %10)
  store i32 %11, ptr %3, align 4, !tbaa !9
  %12 = load i32, ptr %3, align 4, !tbaa !9
  %13 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %10, i32 0, i32 2
  %14 = call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %13)
  %15 = add nsw i32 %12, %14
  store i32 %15, ptr %3, align 4, !tbaa !9
  %16 = load i32, ptr %3, align 4, !tbaa !9
  %17 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %10, i32 0, i32 3
  %18 = call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %17)
  %19 = add nsw i32 %16, %18
  store i32 %19, ptr %3, align 4, !tbaa !9
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = add nsw i32 %20, 2
  store i32 %21, ptr %3, align 4, !tbaa !9
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %3, align 4, !tbaa !9
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %3, align 4, !tbaa !9
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %3, align 4, !tbaa !9
  %28 = load i32, ptr %3, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %3, align 4, !tbaa !9
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %3, align 4, !tbaa !9
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %3, align 4, !tbaa !9
  %34 = load i32, ptr %3, align 4, !tbaa !9
  %35 = add nsw i32 %34, 4
  store i32 %35, ptr %3, align 4, !tbaa !9
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %10, i32 0, i32 12
  %38 = call noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  %39 = add nsw i32 %36, %38
  store i32 %39, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !11
  br label %40

40:                                               ; preds = %54, %1
  %41 = load i64, ptr %4, align 8, !tbaa !11
  %42 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %10, i32 0, i32 13
  %43 = call noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %44 = icmp ult i64 %41, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %61

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  %47 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %10, i32 0, i32 13
  %48 = load i64, ptr %4, align 8, !tbaa !11
  %49 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %48) #6
  call void @_ZN3DIS12TwoByteChunkC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(10) %5, ptr noundef nonnull align 8 dereferenceable(10) %49) #6
  %50 = load i32, ptr %3, align 4, !tbaa !9
  %51 = invoke noundef i32 @_ZNK3DIS12TwoByteChunk17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(10) %5)
          to label %52 unwind label %57

52:                                               ; preds = %46
  %53 = add nsw i32 %50, %51
  store i32 %53, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  br label %54

54:                                               ; preds = %52
  %55 = load i64, ptr %4, align 8, !tbaa !11
  %56 = add i64 %55, 1
  store i64 %56, ptr %4, align 8, !tbaa !11
  br label %40, !llvm.loop !13

57:                                               ; preds = %46
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %6, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %7, align 4
  call void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %87

61:                                               ; preds = %45
  %62 = load i32, ptr %3, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %64

64:                                               ; preds = %78, %61
  %65 = load i64, ptr %8, align 8, !tbaa !11
  %66 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %10, i32 0, i32 15
  %67 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #6
  %68 = icmp ult i64 %65, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %85

70:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  %71 = getelementptr inbounds %"class.DIS::MinefieldDataPdu", ptr %10, i32 0, i32 15
  %72 = load i64, ptr %8, align 8, !tbaa !11
  %73 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %72) #6
  call void @_ZN3DIS12Vector3FloatC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %9, ptr noundef nonnull align 8 dereferenceable(20) %73) #6
  %74 = load i32, ptr %3, align 4, !tbaa !9
  %75 = invoke noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %9)
          to label %76 unwind label %81

76:                                               ; preds = %70
  %77 = add nsw i32 %74, %75
  store i32 %77, ptr %3, align 4, !tbaa !9
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %78

78:                                               ; preds = %76
  %79 = load i64, ptr %8, align 8, !tbaa !11
  %80 = add i64 %79, 1
  store i64 %80, ptr %8, align 8, !tbaa !11
  br label %64, !llvm.loop !15

81:                                               ; preds = %70
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %6, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %7, align 4
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %87

85:                                               ; preds = %69
  %86 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret i32 %86

87:                                               ; preds = %81, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %6, align 8
  %90 = load i32, ptr %7, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92
}

declare noundef i32 @_ZNK3DIS18MinefieldFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS12TwoByteChunk17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(10)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

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 = { 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 #3 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: nounwind
declare void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK3DIS16MinefieldDataPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(144) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.DIS::TwoByteChunk", align 8
  %3 = alloca %"class.DIS::Vector3Float", align 8
  %4 = tail call noundef i32 @_ZNK3DIS18MinefieldFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = tail call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %5)
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = tail call noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14) %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = tail call noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %11 = add i32 %4, 12
  %12 = add i32 %11, %6
  %13 = add i32 %12, %8
  %14 = add nsw i32 %13, %10
  %15 = getelementptr inbounds i8, ptr %0, i64 88
  %16 = tail call noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %22, %1
  %.026.lcssa = phi i32 [ %14, %1 ], [ %23, %22 ]
  %17 = add nsw i32 %.026.lcssa, 1
  %18 = getelementptr inbounds i8, ptr %0, i64 120
  %19 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %.not38 = icmp eq i64 %19, 0
  br i1 %.not38, label %._crit_edge36, label %.lr.ph35

.lr.ph:                                           ; preds = %1, %22
  %.02531 = phi i64 [ %24, %22 ], [ 0, %1 ]
  %.02630 = phi i32 [ %23, %22 ], [ %14, %1 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  %20 = call noundef nonnull align 8 dereferenceable(10) ptr @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %.02531) #6
  call void @_ZN3DIS12TwoByteChunkC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(10) %2, ptr noundef nonnull align 8 dereferenceable(10) %20) #6
  %21 = invoke noundef i32 @_ZNK3DIS12TwoByteChunk17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(10) %2)
          to label %22 unwind label %27

22:                                               ; preds = %.lr.ph
  %23 = add nsw i32 %21, %.02630
  call void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  %24 = add nuw i64 %.02531, 1
  %25 = call noundef i64 @_ZNKSt6vectorIN3DIS12TwoByteChunkESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %26 = icmp ult i64 %24, %25
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !5

27:                                               ; preds = %.lr.ph
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS12TwoByteChunkD1Ev(ptr noundef nonnull align 8 dereferenceable(10) %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  br label %38

._crit_edge36:                                    ; preds = %31, %._crit_edge
  %.1.lcssa = phi i32 [ %17, %._crit_edge ], [ %32, %31 ]
  ret i32 %.1.lcssa

.lr.ph35:                                         ; preds = %._crit_edge, %31
  %.033 = phi i64 [ %33, %31 ], [ 0, %._crit_edge ]
  %.132 = phi i32 [ %32, %31 ], [ %17, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %29 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %.033) #6
  call void @_ZN3DIS12Vector3FloatC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %3, ptr noundef nonnull align 8 dereferenceable(20) %29) #6
  %30 = invoke noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %3)
          to label %31 unwind label %36

31:                                               ; preds = %.lr.ph35
  %32 = add nsw i32 %30, %.132
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  %33 = add nuw i64 %.033, 1
  %34 = call noundef i64 @_ZNKSt6vectorIN3DIS12Vector3FloatESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %.lr.ph35, label %._crit_edge36, !llvm.loop !7

36:                                               ; preds = %.lr.ph35
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3DIS12Vector3FloatD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  br label %38

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

declare noundef i32 @_ZNK3DIS18MinefieldFamilyPdu17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS8EntityID17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(14)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS10EntityType17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS12TwoByteChunk17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(10)) unnamed_addr #5

declare noundef i32 @_ZNK3DIS12Vector3Float17getMarshalledSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

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 = { 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 #3 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass