; LLVM IR from dennisss/tansa :: src/mocap/optitrack/natnet.ll (ZN5tansa9optitrack15NatNetRigidBody5ParseEPKcPKhPS1_)

; 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.tansa::optitrack::NatNetRigidBody" = type <{ i32, float, float, float, float, float, float, float, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", float, i16, [2 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<tansa::optitrack::NatNetPlainMarker, std::allocator<tansa::optitrack::NatNetPlainMarker>>::_Vector_impl" }
%"struct.std::_Vector_base<tansa::optitrack::NatNetPlainMarker, std::allocator<tansa::optitrack::NatNetPlainMarker>>::_Vector_impl" = type { %"struct.std::_Vector_base<tansa::optitrack::NatNetPlainMarker, std::allocator<tansa::optitrack::NatNetPlainMarker>>::_Vector_impl_data" }
%"struct.std::_Vector_base<tansa::optitrack::NatNetPlainMarker, std::allocator<tansa::optitrack::NatNetPlainMarker>>::_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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5tansa9optitrack15NatNetRigidBody5ParseEPKcPKhPS1_(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 0
  %13 = load i8, ptr %12, align 1, !tbaa !9
  %14 = zext i8 %13 to i32
  store i32 %14, ptr %7, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 1
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = zext i8 %17 to i32
  store i32 %18, ptr %8, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %19, i32 0, i32 0
  call void @_ZN5tansa9optitrack11buffer_readIiEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %21, i32 0, i32 1
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %23, i32 0, i32 2
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %25, i32 0, i32 3
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %27, i32 0, i32 4
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %29, i32 0, i32 5
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %31, i32 0, i32 6
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %33, i32 0, i32 7
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %34)
  call void @_ZN5tansa9optitrack11buffer_readIiEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %35, i32 0, i32 8
  %37 = load i32, ptr %9, align 4, !tbaa !10
  %38 = sext i32 %37 to i64
  call void @_ZNSt6vectorIN5tansa9optitrack17NatNetPlainMarkerESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %39 = load i32, ptr %9, align 4, !tbaa !10
  %40 = sext i32 %39 to i64
  %41 = mul i64 %40, 12
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %10, align 4, !tbaa !10
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %43, i32 0, i32 8
  %45 = call noundef nonnull align 1 dereferenceable(12) ptr @_ZNSt6vectorIN5tansa9optitrack17NatNetPlainMarkerESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load i32, ptr %10, align 4, !tbaa !10
  %48 = sext i32 %47 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %45, ptr align 1 %46, i64 %48, i1 false)
  %49 = load i32, ptr %10, align 4, !tbaa !10
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = sext i32 %49 to i64
  %52 = getelementptr inbounds i8, ptr %50, i64 %51
  store ptr %52, ptr %4, align 8, !tbaa !5
  %53 = load i32, ptr %7, align 4, !tbaa !10
  %54 = icmp sge i32 %53, 2
  br i1 %54, label %55, label %92

55:                                               ; preds = %3
  %56 = load i32, ptr %9, align 4, !tbaa !10
  %57 = sext i32 %56 to i64
  %58 = mul i64 %57, 4
  %59 = trunc i64 %58 to i32
  store i32 %59, ptr %10, align 4, !tbaa !10
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %60, i32 0, i32 9
  %62 = load i32, ptr %9, align 4, !tbaa !10
  %63 = sext i32 %62 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %63)
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %64, i32 0, i32 9
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef 0) #5
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load i32, ptr %10, align 4, !tbaa !10
  %69 = sext i32 %68 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 1 %67, i64 %69, i1 false)
  %70 = load i32, ptr %10, align 4, !tbaa !10
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds i8, ptr %71, i64 %72
  store ptr %73, ptr %4, align 8, !tbaa !5
  %74 = load i32, ptr %9, align 4, !tbaa !10
  %75 = sext i32 %74 to i64
  %76 = mul i64 %75, 4
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %10, align 4, !tbaa !10
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %78, i32 0, i32 10
  %80 = load i32, ptr %9, align 4, !tbaa !10
  %81 = sext i32 %80 to i64
  call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81)
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %82, i32 0, i32 10
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef 0) #5
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !10
  %87 = sext i32 %86 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 1 %85, i64 %87, i1 false)
  %88 = load i32, ptr %10, align 4, !tbaa !10
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = sext i32 %88 to i64
  %91 = getelementptr inbounds i8, ptr %89, i64 %90
  store ptr %91, ptr %4, align 8, !tbaa !5
  br label %92

92:                                               ; preds = %55, %3
  %93 = load i32, ptr %7, align 4, !tbaa !10
  %94 = icmp sge i32 %93, 2
  br i1 %94, label %95, label %98

95:                                               ; preds = %92
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %96, i32 0, i32 11
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %97)
  br label %98

98:                                               ; preds = %95, %92
  %99 = load i32, ptr %7, align 4, !tbaa !10
  %100 = icmp eq i32 %99, 2
  br i1 %100, label %101, label %104

101:                                              ; preds = %98
  %102 = load i32, ptr %8, align 4, !tbaa !10
  %103 = icmp sge i32 %102, 6
  br i1 %103, label %110, label %104

104:                                              ; preds = %101, %98
  %105 = load i32, ptr %7, align 4, !tbaa !10
  %106 = icmp sgt i32 %105, 2
  br i1 %106, label %110, label %107

107:                                              ; preds = %104
  %108 = load i32, ptr %7, align 4, !tbaa !10
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %113

110:                                              ; preds = %107, %104, %101
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.tansa::optitrack::NatNetRigidBody", ptr %111, i32 0, i32 12
  call void @_ZN5tansa9optitrack11buffer_readIsEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 2 dereferenceable(2) %112)
  br label %113

113:                                              ; preds = %110, %107
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret ptr %114
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(12) ptr @_ZNSt6vectorIN5tansa9optitrack17NatNetPlainMarkerESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 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 uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { 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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


; 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"

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5tansa9optitrack15NatNetRigidBody5ParseEPKcPKhPS1_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef nonnull %2) local_unnamed_addr #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  %6 = load i8, ptr %1, align 1, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %1, i64 1
  %8 = load i8, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN5tansa9optitrack11buffer_readIiEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %9 = getelementptr inbounds i8, ptr %2, i64 4
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %10 = getelementptr inbounds i8, ptr %2, i64 8
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %11 = getelementptr inbounds i8, ptr %2, i64 12
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %12 = getelementptr inbounds i8, ptr %2, i64 16
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %13 = getelementptr inbounds i8, ptr %2, i64 20
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %14 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %15 = getelementptr inbounds i8, ptr %2, i64 28
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @_ZN5tansa9optitrack11buffer_readIiEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %16 = getelementptr inbounds i8, ptr %2, i64 32
  %17 = load i32, ptr %5, align 4, !tbaa !10
  %18 = sext i32 %17 to i64
  call void @_ZNSt6vectorIN5tansa9optitrack17NatNetPlainMarkerESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %18)
  %19 = load i32, ptr %5, align 4, !tbaa !10
  %20 = mul i32 %19, 12
  %21 = call noundef nonnull align 1 dereferenceable(12) ptr @_ZNSt6vectorIN5tansa9optitrack17NatNetPlainMarkerESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = sext i32 %20 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %21, ptr align 1 %22, i64 %23, i1 false)
  %24 = getelementptr inbounds i8, ptr %22, i64 %23
  store ptr %24, ptr %4, align 8, !tbaa !5
  %25 = icmp ugt i8 %6, 1
  br i1 %25, label %26, label %.critedge

26:                                               ; preds = %3
  %27 = load i32, ptr %5, align 4, !tbaa !10
  %28 = sext i32 %27 to i64
  %29 = shl i32 %27, 2
  %30 = getelementptr inbounds i8, ptr %2, i64 56
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %28)
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef 0) #5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = sext i32 %29 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %31, ptr align 1 %32, i64 %33, i1 false)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 %33
  store ptr %35, ptr %4, align 8, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !10
  %37 = sext i32 %36 to i64
  %38 = shl i32 %36, 2
  %39 = getelementptr inbounds i8, ptr %2, i64 80
  call void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %37)
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 0) #5
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = sext i32 %38 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %40, ptr align 1 %41, i64 %42, i1 false)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 %42
  store ptr %44, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %2, i64 104
  call void @_ZN5tansa9optitrack11buffer_readIfEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %45)
  br label %.critedge

.critedge:                                        ; preds = %3, %26
  %46 = icmp eq i8 %6, 2
  %47 = icmp ugt i8 %8, 5
  %or.cond = select i1 %46, i1 %47, i1 false
  %48 = add i8 %6, -3
  %49 = icmp ult i8 %48, -2
  %or.cond5 = or i1 %49, %or.cond
  br i1 %or.cond5, label %50, label %52

50:                                               ; preds = %.critedge
  %51 = getelementptr inbounds i8, ptr %2, i64 108
  call void @_ZN5tansa9optitrack11buffer_readIsEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 2 dereferenceable(2) %51)
  br label %52

52:                                               ; preds = %.critedge, %50
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  ret ptr %53
}

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5tansa9optitrack11buffer_readIsEEvRPKcRT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 2 dereferenceable(2)) local_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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { 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 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass