; LLVM IR from merpheus-dev/LavaEngine :: src/Core/Scene.ll (ZN4Lava5Scene10LoadCameraEv)

; 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.glm::vec" = type { %union.anon, %union.anon.7, %union.anon.8 }
%union.anon = type { float }
%union.anon.7 = type { float }
%union.anon.8 = type { float }
%"class.Lava::Scene" = type { ptr, %"class.tinyxml2::XMLDocument", ptr, %"class.std::vector", ptr }
%"class.tinyxml2::XMLDocument" = type { %"class.tinyxml2::XMLNode", i8, i8, i32, i32, %"class.tinyxml2::StrPair", i32, ptr, i32, i32, %"class.tinyxml2::DynArray", %"class.tinyxml2::MemPoolT", %"class.tinyxml2::MemPoolT.1", %"class.tinyxml2::MemPoolT.3", %"class.tinyxml2::MemPoolT.5" }
%"class.tinyxml2::XMLNode" = type { ptr, ptr, ptr, %"class.tinyxml2::StrPair", i32, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.tinyxml2::StrPair" = type { i32, ptr, ptr }
%"class.tinyxml2::DynArray" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.0", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::MemPool" = type { ptr }
%"class.tinyxml2::DynArray.0" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.1" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.2", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.2" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.3" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.4", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.4" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.5" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.6", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.6" = type { ptr, [10 x ptr], i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Lava::SceneObject *, std::allocator<Lava::SceneObject *>>::_Vector_impl" }
%"struct.std::_Vector_base<Lava::SceneObject *, std::allocator<Lava::SceneObject *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Lava::SceneObject *, std::allocator<Lava::SceneObject *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Lava::SceneObject *, std::allocator<Lava::SceneObject *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Lava::Camera" = type { %"class.Lava::Transform", float, float, float }
%"class.Lava::Transform" = type { %"struct.glm::vec", %"struct.glm::vec", %"struct.glm::vec" }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Lava5Scene10LoadCameraEv(ptr noundef nonnull align 8 dereferenceable(824) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.glm::vec", align 4
  %9 = alloca { <2 x float>, float }, align 8
  %10 = alloca %"struct.glm::vec", align 4
  %11 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %13 = getelementptr inbounds %"class.Lava::Scene", ptr %12, i32 0, i32 1
  %14 = call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %13, ptr noundef @.str)
  %15 = call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %14, ptr noundef @.str.1)
  %16 = call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %15, ptr noundef @.str.8)
  store ptr %16, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %17, ptr noundef @.str.3)
  %19 = call noundef ptr @_ZNK8tinyxml210XMLElement7GetTextEv(ptr noundef nonnull align 8 dereferenceable(120) %18)
  store ptr %19, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %20, ptr noundef @.str.9)
  %22 = call noundef ptr @_ZNK8tinyxml210XMLElement7GetTextEv(ptr noundef nonnull align 8 dereferenceable(120) %21)
  store ptr %22, ptr %5, align 8, !tbaa !5
  %23 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #10
  call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 48, i1 false)
  invoke void @_ZN4Lava6CameraC2Ev(ptr noundef nonnull align 4 dereferenceable(48) %23)
          to label %24 unwind label %38

24:                                               ; preds = %1
  %25 = getelementptr inbounds %"class.Lava::Scene", ptr %12, i32 0, i32 4
  store ptr %23, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #9
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call { <2 x float>, float } @_ZNK4Lava5Scene13parse_vector3EPKc(ptr noundef nonnull align 8 dereferenceable(824) %12, ptr noundef %26)
  store { <2 x float>, float } %27, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 8 %9, i64 12, i1 false)
  %28 = getelementptr inbounds %"class.Lava::Scene", ptr %12, i32 0, i32 4
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds %"class.Lava::Camera", ptr %29, i32 0, i32 0
  %31 = getelementptr inbounds %"class.Lava::Transform", ptr %30, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %8, i64 12, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #9
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call { <2 x float>, float } @_ZNK4Lava5Scene13parse_vector3EPKc(ptr noundef nonnull align 8 dereferenceable(824) %12, ptr noundef %32)
  store { <2 x float>, float } %33, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 8 %11, i64 12, i1 false)
  %34 = getelementptr inbounds %"class.Lava::Scene", ptr %12, i32 0, i32 4
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds %"class.Lava::Camera", ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %"class.Lava::Transform", ptr %36, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  ret void

38:                                               ; preds = %1
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %6, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %23, i64 noundef 48) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  br label %42

42:                                               ; preds = %38
  %43 = load ptr, ptr %6, align 8
  %44 = load i32, ptr %7, align 4
  %45 = insertvalue { ptr, i32 } poison, ptr %43, 0
  %46 = insertvalue { ptr, i32 } %45, i32 %44, 1
  resume { ptr, i32 } %46
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) #5 align 2

declare noundef ptr @_ZNK8tinyxml210XMLElement7GetTextEv(ptr noundef nonnull align 8 dereferenceable(120)) #6

; 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) #7

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK4Lava5Scene13parse_vector3EPKc(ptr noundef nonnull align 8 dereferenceable(824), ptr noundef) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4Lava6CameraC2Ev(ptr noundef nonnull align 4 dereferenceable(48)) unnamed_addr #8 align 2

attributes #0 = { nobuiltin allocsize(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 nounwind willreturn memory(argmem: write) }
attributes #2 = { nobuiltin 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"="64" "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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { "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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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, !6, i64 816}
!10 = !{!"_ZTSN4Lava5SceneE", !6, i64 0, !11, i64 8, !6, i64 784, !28, i64 792, !6, i64 816}
!11 = !{!"_ZTSN8tinyxml211XMLDocumentE", !12, i64 0, !15, i64 104, !15, i64 105, !16, i64 108, !17, i64 112, !13, i64 120, !14, i64 144, !6, i64 152, !14, i64 160, !14, i64 164, !18, i64 168, !19, i64 264, !22, i64 392, !24, i64 520, !26, i64 648}
!12 = !{!"_ZTSN8tinyxml27XMLNodeE", !6, i64 8, !6, i64 16, !13, i64 24, !14, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!13 = !{!"_ZTSN8tinyxml27StrPairE", !14, i64 0, !6, i64 8, !6, i64 16}
!14 = !{!"int", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN8tinyxml28XMLErrorE", !7, i64 0}
!17 = !{!"_ZTSN8tinyxml210WhitespaceE", !7, i64 0}
!18 = !{!"_ZTSN8tinyxml28DynArrayIPNS_7XMLNodeELi10EEE", !6, i64 0, !7, i64 8, !14, i64 88, !14, i64 92}
!19 = !{!"_ZTSN8tinyxml28MemPoolTILi120EEE", !20, i64 0, !21, i64 8, !6, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124}
!20 = !{!"_ZTSN8tinyxml27MemPoolE"}
!21 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi120EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !14, i64 88, !14, i64 92}
!22 = !{!"_ZTSN8tinyxml28MemPoolTILi80EEE", !20, i64 0, !23, i64 8, !6, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124}
!23 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi80EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !14, i64 88, !14, i64 92}
!24 = !{!"_ZTSN8tinyxml28MemPoolTILi112EEE", !20, i64 0, !25, i64 8, !6, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124}
!25 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi112EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !14, i64 88, !14, i64 92}
!26 = !{!"_ZTSN8tinyxml28MemPoolTILi104EEE", !20, i64 0, !27, i64 8, !6, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124}
!27 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi104EE5BlockELi10EEE", !6, i64 0, !7, i64 8, !14, i64 88, !14, i64 92}
!28 = !{!"_ZTSSt6vectorIPN4Lava11SceneObjectESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIPN4Lava11SceneObjectESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN4Lava11SceneObjectESaIS2_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN4Lava11SceneObjectESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{i64 0, i64 4, !33, i64 4, i64 4, !33, i64 8, i64 4, !33}
!33 = !{!7, !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"

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Lava5Scene10LoadCameraEv(ptr noundef nonnull align 8 dereferenceable(824) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = tail call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull @.str)
  %4 = tail call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %3, ptr noundef nonnull @.str.1)
  %5 = tail call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %4, ptr noundef nonnull @.str.8)
  %6 = tail call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %5, ptr noundef nonnull @.str.3)
  %7 = tail call noundef ptr @_ZNK8tinyxml210XMLElement7GetTextEv(ptr noundef nonnull align 8 dereferenceable(120) %6)
  %8 = tail call noundef ptr @_ZN8tinyxml27XMLNode17FirstChildElementEPKc(ptr noundef nonnull align 8 dereferenceable(104) %5, ptr noundef nonnull @.str.9)
  %9 = tail call noundef ptr @_ZNK8tinyxml210XMLElement7GetTextEv(ptr noundef nonnull align 8 dereferenceable(120) %8)
  %10 = tail call noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #7
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %10, i8 0, i64 48, i1 false)
  invoke void @_ZN4Lava6CameraC2Ev(ptr noundef nonnull align 4 dereferenceable(48) %10)
          to label %11 unwind label %18

11:                                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %0, i64 816
  store ptr %10, ptr %12, align 8, !tbaa !5
  %13 = tail call { <2 x float>, float } @_ZNK4Lava5Scene13parse_vector3EPKc(ptr noundef nonnull align 8 dereferenceable(824) %0, ptr noundef %7)
  %.fca.0.extract2 = extractvalue { <2 x float>, float } %13, 0
  %.fca.1.extract3 = extractvalue { <2 x float>, float } %13, 1
  %14 = load ptr, ptr %12, align 8, !tbaa !5
  store <2 x float> %.fca.0.extract2, ptr %14, align 4
  %.sroa.47.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store float %.fca.1.extract3, ptr %.sroa.47.0..sroa_idx, align 4, !tbaa !31
  %15 = tail call { <2 x float>, float } @_ZNK4Lava5Scene13parse_vector3EPKc(ptr noundef nonnull align 8 dereferenceable(824) %0, ptr noundef %9)
  %.fca.0.extract = extractvalue { <2 x float>, float } %15, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %15, 1
  %16 = load ptr, ptr %12, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 12
  store <2 x float> %.fca.0.extract, ptr %17, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 20
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !31
  ret void

18:                                               ; preds = %1
  %19 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 48) #8
  resume { ptr, i32 } %19
}

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

declare noundef ptr @_ZNK8tinyxml210XMLElement7GetTextEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZNK4Lava5Scene13parse_vector3EPKc(ptr noundef nonnull align 8 dereferenceable(824), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4Lava6CameraC2Ev(ptr noundef nonnull align 4 dereferenceable(48)) unnamed_addr #6 align 2

attributes #0 = { nobuiltin allocsize(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 nounwind willreturn memory(argmem: write) }
attributes #2 = { nobuiltin 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"="64" "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !7, i64 816}
!6 = !{!"_ZTSN4Lava5SceneE", !7, i64 0, !10, i64 8, !7, i64 784, !27, i64 792, !7, i64 816}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN8tinyxml211XMLDocumentE", !11, i64 0, !14, i64 104, !14, i64 105, !15, i64 108, !16, i64 112, !12, i64 120, !13, i64 144, !7, i64 152, !13, i64 160, !13, i64 164, !17, i64 168, !18, i64 264, !21, i64 392, !23, i64 520, !25, i64 648}
!11 = !{!"_ZTSN8tinyxml27XMLNodeE", !7, i64 8, !7, i64 16, !12, i64 24, !13, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96}
!12 = !{!"_ZTSN8tinyxml27StrPairE", !13, i64 0, !7, i64 8, !7, i64 16}
!13 = !{!"int", !8, i64 0}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"_ZTSN8tinyxml28XMLErrorE", !8, i64 0}
!16 = !{!"_ZTSN8tinyxml210WhitespaceE", !8, i64 0}
!17 = !{!"_ZTSN8tinyxml28DynArrayIPNS_7XMLNodeELi10EEE", !7, i64 0, !8, i64 8, !13, i64 88, !13, i64 92}
!18 = !{!"_ZTSN8tinyxml28MemPoolTILi120EEE", !19, i64 0, !20, i64 8, !7, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124}
!19 = !{!"_ZTSN8tinyxml27MemPoolE"}
!20 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi120EE5BlockELi10EEE", !7, i64 0, !8, i64 8, !13, i64 88, !13, i64 92}
!21 = !{!"_ZTSN8tinyxml28MemPoolTILi80EEE", !19, i64 0, !22, i64 8, !7, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124}
!22 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi80EE5BlockELi10EEE", !7, i64 0, !8, i64 8, !13, i64 88, !13, i64 92}
!23 = !{!"_ZTSN8tinyxml28MemPoolTILi112EEE", !19, i64 0, !24, i64 8, !7, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124}
!24 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi112EE5BlockELi10EEE", !7, i64 0, !8, i64 8, !13, i64 88, !13, i64 92}
!25 = !{!"_ZTSN8tinyxml28MemPoolTILi104EEE", !19, i64 0, !26, i64 8, !7, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124}
!26 = !{!"_ZTSN8tinyxml28DynArrayIPNS_8MemPoolTILi104EE5BlockELi10EEE", !7, i64 0, !8, i64 8, !13, i64 88, !13, i64 92}
!27 = !{!"_ZTSSt6vectorIPN4Lava11SceneObjectESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPN4Lava11SceneObjectESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN4Lava11SceneObjectESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN4Lava11SceneObjectESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!31 = !{!8, !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass