; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer/DebugRendererImp.ll (ZN16DebugRendererImp9DrawTextsEv)

; 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.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.13 }
%union.anon.13 = type { <4 x float> }
%"class.std::lock_guard" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.JPH::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%class.DebugRendererImp = type { %"class.JPH::DebugRenderer", ptr, %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.JPH::Mutex", %"class.JPH::Ref.17", %"class.JPH::UnorderedMap.37", %"class.JPH::UnorderedMap.37", %"class.JPH::UnorderedMap.37", %"class.JPH::UnorderedMap.37", i32, [2 x %"class.JPH::Ref.41"], %"class.JPH::Ref.42", ptr, ptr, ptr, %"class.JPH::AABox", %"class.JPH::Array.43", %"class.JPH::Mutex", %"class.JPH::RefConst", %"class.JPH::Array.46", %"class.JPH::Mutex", %"class.std::unique_ptr" }
%"class.JPH::DebugRenderer" = type { ptr, %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::UnorderedMap", %"class.JPH::UnorderedMap", %"class.JPH::UnorderedMap.1", %"class.JPH::UnorderedMap.1", %"class.JPH::UnorderedMap.5", %"class.JPH::UnorderedMap.5", %"class.JPH::UnorderedMap.9", %"class.JPH::UnorderedMap.9" }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.1" = type { %"class.JPH::HashTable.base.3", [4 x i8] }
%"class.JPH::HashTable.base.3" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.5" = type { %"class.JPH::HashTable.base.7", [4 x i8] }
%"class.JPH::HashTable.base.7" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.9" = type { %"class.JPH::HashTable.base.11", [4 x i8] }
%"class.JPH::HashTable.base.11" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::Ref.17" = type { ptr }
%"class.JPH::UnorderedMap.37" = type { %"class.JPH::HashTable.base.39", [4 x i8] }
%"class.JPH::HashTable.base.39" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::Ref.41" = type { ptr }
%"class.JPH::Ref.42" = type { ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Array.43" = type { i64, i64, ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Array.46" = type { i64, i64, ptr }
%"class.JPH::Mutex" = type { %"class.std::mutex", %"class.std::thread::id" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::thread::id" = type { i64 }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.36" }
%"struct.std::_Head_base.36" = type { ptr }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"struct.DebugRendererImp::Text" = type <{ %"class.JPH::Vec3", %"class.std::__cxx11::basic_string", %"class.JPH::Color", float, [8 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.60 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.60 = type { i64, [8 x i8] }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat446sScaleEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(64), double, double, double, double, double, double, double, double) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16), double, double, float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10lock_guardIN3JPH5MutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(52) ptr @_ZNK8Renderer14GetCameraStateEv(ptr noundef nonnull align 16 dereferenceable(832)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16DebugRendererImp9DrawTextsEv(ptr noundef nonnull align 16 dereferenceable(816) %0) #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::lock_guard", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Mat44", align 16
  %19 = alloca %"class.JPH::Vec4", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec4", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec4", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec4", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Mat44", align 16
  %28 = alloca %"class.JPH::Mat44", align 16
  %29 = alloca %"class.std::basic_string_view", align 8
  %30 = alloca %"class.JPH::Color", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %31 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %32 = getelementptr inbounds %class.DebugRendererImp, ptr %31, i32 0, i32 22
  call void @_ZNSt10lock_guardIN3JPH5MutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(48) %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #10
  %33 = getelementptr inbounds %class.DebugRendererImp, ptr %31, i32 0, i32 1
  %34 = load ptr, ptr %33, align 16, !tbaa !9
  %35 = invoke noundef nonnull align 16 dereferenceable(52) ptr @_ZNK8Renderer14GetCameraStateEv(ptr noundef nonnull align 16 dereferenceable(832) %34)
          to label %36 unwind label %49

36:                                               ; preds = %1
  store ptr %35, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %37 = getelementptr inbounds %class.DebugRendererImp, ptr %31, i32 0, i32 21
  store ptr %37, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = invoke noundef ptr @_ZN3JPH5ArrayIN16DebugRendererImp4TextENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %40 unwind label %53

40:                                               ; preds = %36
  store ptr %39, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = invoke noundef ptr @_ZN3JPH5ArrayIN16DebugRendererImp4TextENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
          to label %43 unwind label %57

43:                                               ; preds = %40
  store ptr %42, ptr %9, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %167, %43
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = icmp ne ptr %45, %46
  br i1 %47, label %61, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  br label %196

49:                                               ; preds = %1
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %5, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %6, align 4
  br label %197

53:                                               ; preds = %36
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %5, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %6, align 4
  br label %195

57:                                               ; preds = %40
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %5, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %6, align 4
  br label %194

61:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %62, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #10
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.CameraState, ptr %63, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 %64, i64 16, i1 false), !tbaa.struct !42
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #10
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CameraState, ptr %65, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %66, i64 16, i1 false), !tbaa.struct !42
  %67 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %68 = load double, ptr %67, align 16
  %69 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %70 = load double, ptr %69, align 8
  %71 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %68, double %70)
          to label %72 unwind label %170

72:                                               ; preds = %61
  %73 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %74 = getelementptr inbounds %union.anon, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 0
  %76 = extractvalue { double, double } %71, 0
  store double %76, ptr %75, align 16
  %77 = getelementptr inbounds { double, double }, ptr %74, i32 0, i32 1
  %78 = extractvalue { double, double } %71, 1
  store double %78, ptr %77, align 8
  %79 = invoke { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
          to label %80 unwind label %170

80:                                               ; preds = %72
  %81 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %82 = getelementptr inbounds %union.anon, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 0
  %84 = extractvalue { double, double } %79, 0
  store double %84, ptr %83, align 16
  %85 = getelementptr inbounds { double, double }, ptr %82, i32 0, i32 1
  %86 = extractvalue { double, double } %79, 1
  store double %86, ptr %85, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !42
  %87 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %88 = load double, ptr %87, align 16
  %89 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %90 = load double, ptr %89, align 8
  %91 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %88, double %90)
          to label %92 unwind label %174

92:                                               ; preds = %80
  %93 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %94 = getelementptr inbounds %union.anon, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 0
  %96 = extractvalue { double, double } %91, 0
  store double %96, ptr %95, align 16
  %97 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 1
  %98 = extractvalue { double, double } %91, 1
  store double %98, ptr %97, align 8
  %99 = invoke { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
          to label %100 unwind label %174

100:                                              ; preds = %92
  %101 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %102 = getelementptr inbounds %union.anon, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds { double, double }, ptr %102, i32 0, i32 0
  %104 = extractvalue { double, double } %99, 0
  store double %104, ptr %103, align 16
  %105 = getelementptr inbounds { double, double }, ptr %102, i32 0, i32 1
  %106 = extractvalue { double, double } %99, 1
  store double %106, ptr %105, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !42
  %107 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %108 = load double, ptr %107, align 16
  %109 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %110 = load double, ptr %109, align 8
  invoke void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %19, double %108, double %110, float noundef 0.000000e+00)
          to label %111 unwind label %178

111:                                              ; preds = %100
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !42
  %112 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %113 = load double, ptr %112, align 16
  %114 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %115 = load double, ptr %114, align 8
  invoke void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %21, double %113, double %115, float noundef 0.000000e+00)
          to label %116 unwind label %178

116:                                              ; preds = %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !42
  %117 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  invoke void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %23, double %118, double %120, float noundef 0.000000e+00)
          to label %121 unwind label %178

121:                                              ; preds = %116
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.DebugRendererImp::Text", ptr %122, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %123, i64 16, i1 false), !tbaa.struct !42
  %124 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %125 = load double, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %127 = load double, ptr %126, align 8
  invoke void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %25, double %125, double %127, float noundef 1.000000e+00)
          to label %128 unwind label %178

128:                                              ; preds = %121
  %129 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %130 = load double, ptr %129, align 16
  %131 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %132 = load double, ptr %131, align 8
  %133 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %134 = load double, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  %137 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %138 = load double, ptr %137, align 16
  %139 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %140 = load double, ptr %139, align 8
  %141 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %142 = load double, ptr %141, align 16
  %143 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %144 = load double, ptr %143, align 8
  invoke void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(64) %18, double %130, double %132, double %134, double %136, double %138, double %140, double %142, double %144)
          to label %145 unwind label %178

145:                                              ; preds = %128
  %146 = getelementptr inbounds %class.DebugRendererImp, ptr %31, i32 0, i32 23
  %147 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %146)
          to label %148 unwind label %178

148:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #10
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.DebugRendererImp::Text", ptr %149, i32 0, i32 3
  %151 = load float, ptr %150, align 4, !tbaa !44
  invoke void @_ZN3JPH5Mat446sScaleEf(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %28, float noundef %151)
          to label %152 unwind label %182

152:                                              ; preds = %148
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %27, ptr noundef nonnull align 16 dereferenceable(64) %18, ptr noundef nonnull align 16 dereferenceable(64) %28)
          to label %153 unwind label %182

153:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #10
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.DebugRendererImp::Text", ptr %154, i32 0, i32 1
  %156 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %155) #10
  %157 = getelementptr inbounds { i64, ptr }, ptr %29, i32 0, i32 0
  %158 = extractvalue { i64, ptr } %156, 0
  store i64 %158, ptr %157, align 8
  %159 = getelementptr inbounds { i64, ptr }, ptr %29, i32 0, i32 1
  %160 = extractvalue { i64, ptr } %156, 1
  store ptr %160, ptr %159, align 8
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.DebugRendererImp::Text", ptr %161, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 16 %162, i64 4, i1 false), !tbaa.struct !50
  %163 = getelementptr inbounds %"class.JPH::Color", ptr %30, i32 0, i32 0
  %164 = getelementptr inbounds %union.anon.0, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 4
  invoke void @_ZNK4Font10DrawText3DERKN3JPH5Mat44ERKSt17basic_string_viewIcSt11char_traitsIcEENS0_5ColorE(ptr noundef nonnull align 8 dereferenceable(51376) %147, ptr noundef nonnull align 16 dereferenceable(64) %27, ptr noundef nonnull align 8 dereferenceable(16) %29, i32 %165)
          to label %166 unwind label %186

166:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.DebugRendererImp::Text", ptr %168, i32 1
  store ptr %169, ptr %8, align 8, !tbaa !5
  br label %44

170:                                              ; preds = %72, %61
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %5, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #10
  br label %193

174:                                              ; preds = %92, %80
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %5, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #10
  br label %192

178:                                              ; preds = %145, %128, %121, %116, %111, %100
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %5, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %6, align 4
  br label %191

182:                                              ; preds = %152, %148
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %5, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %6, align 4
  br label %190

186:                                              ; preds = %153
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %5, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  br label %190

190:                                              ; preds = %186, %182
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #10
  br label %191

191:                                              ; preds = %190, %178
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #10
  br label %192

192:                                              ; preds = %191, %174
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  br label %193

193:                                              ; preds = %192, %170
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %194

194:                                              ; preds = %193, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  br label %195

195:                                              ; preds = %194, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  br label %197

196:                                              ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @_ZNSt10lock_guardIN3JPH5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  ret void

197:                                              ; preds = %195, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #10
  call void @_ZNSt10lock_guardIN3JPH5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %5, align 8
  %200 = load i32, ptr %6, align 4
  %201 = insertvalue { ptr, i32 } poison, ptr %199, 0
  %202 = insertvalue { ptr, i32 } %201, i32 %200, 1
  resume { ptr, i32 } %202
}

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

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

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

declare void @_ZNK4Font10DrawText3DERKN3JPH5Mat44ERKSt17basic_string_viewIcSt11char_traitsIcEENS0_5ColorE(ptr noundef nonnull align 8 dereferenceable(51376), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(16), i32) #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #7 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline 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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { "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 #10 = { 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 320}
!10 = !{!"_ZTS16DebugRendererImp", !11, i64 0, !6, i64 320, !22, i64 328, !22, i64 336, !22, i64 344, !22, i64 352, !22, i64 360, !22, i64 368, !28, i64 376, !33, i64 424, !34, i64 432, !34, i64 464, !34, i64 496, !34, i64 528, !15, i64 560, !7, i64 568, !36, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !37, i64 624, !39, i64 656, !28, i64 680, !40, i64 728, !41, i64 736, !28, i64 760, !22, i64 808}
!11 = !{!"_ZTSN3JPH13DebugRendererE", !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !13, i64 64, !13, i64 96, !16, i64 128, !16, i64 160, !18, i64 192, !18, i64 224, !20, i64 256, !20, i64 288}
!12 = !{!"_ZTSN3JPH3RefINS_13DebugRenderer8GeometryEEE", !6, i64 0}
!13 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer15SwingConeLimitsENS_3RefINS1_8GeometryEEENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEE", !14, i64 0}
!14 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer18SwingPyramidLimitsENS_3RefINS1_8GeometryEEENS1_24SwingPyramidLimitsHasherESt8equal_toIS2_EEE", !17, i64 0}
!17 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer18SwingPyramidLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_24SwingPyramidLimitsHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!18 = !{!"_ZTSN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEEE", !19, i64 0}
!19 = !{!"_ZTSN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!20 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer15TaperedCylinderENS_3RefINS1_8GeometryEEENS1_21TaperedCylinderHasherESt8equal_toIS2_EEE", !21, i64 0}
!21 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!22 = !{!"_ZTSSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_dataI13PipelineStateSt14default_deleteIS0_ELb1ELb1EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_implI13PipelineStateSt14default_deleteIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt5tupleIJP13PipelineStateSt14default_deleteIS0_EEE", !26, i64 0}
!26 = !{!"_ZTSSt11_Tuple_implILm0EJP13PipelineStateSt14default_deleteIS0_EEE", !27, i64 0}
!27 = !{!"_ZTSSt10_Head_baseILm0EP13PipelineStateLb0EE", !6, i64 0}
!28 = !{!"_ZTSN3JPH5MutexE", !29, i64 0, !31, i64 40}
!29 = !{!"_ZTSSt5mutex", !30, i64 0}
!30 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!31 = !{!"_ZTSNSt6thread2idE", !32, i64 0}
!32 = !{!"long", !7, i64 0}
!33 = !{!"_ZTSN3JPH3RefINS_16RefTargetVirtualEEE", !6, i64 0}
!34 = !{!"_ZTSN3JPH12UnorderedMapINS_3RefINS_13DebugRenderer8GeometryEEEN16DebugRendererImp9InstancesENS_4HashIS4_EESt8equal_toIS4_EEE", !35, i64 0}
!35 = !{!"_ZTSN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!36 = !{!"_ZTSN3JPH3RefI15RenderPrimitiveEE", !6, i64 0}
!37 = !{!"_ZTSN3JPH5AABoxE", !38, i64 0, !38, i64 16}
!38 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!39 = !{!"_ZTSN3JPH5ArrayIN16DebugRendererImp4TextENS_12STLAllocatorIS2_EEEE", !32, i64 0, !32, i64 8, !6, i64 16}
!40 = !{!"_ZTSN3JPH8RefConstI4FontEE", !6, i64 0}
!41 = !{!"_ZTSN3JPH5ArrayIN16DebugRendererImp4LineENS_12STLAllocatorIS2_EEEE", !32, i64 0, !32, i64 8, !6, i64 16}
!42 = !{i64 0, i64 16, !43}
!43 = !{!7, !7, i64 0}
!44 = !{!45, !49, i64 52}
!45 = !{!"_ZTSN16DebugRendererImp4TextE", !38, i64 0, !46, i64 16, !48, i64 48, !49, i64 52}
!46 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !47, i64 0, !32, i64 8, !7, i64 16}
!47 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !6, i64 0}
!48 = !{!"_ZTSN3JPH5ColorE", !7, i64 0}
!49 = !{!"float", !7, i64 0}
!50 = !{i64 0, i64 4, !43}


; 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.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.13 }
%union.anon.13 = type { <4 x float> }
%"class.std::lock_guard" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.std::basic_string_view" = type { i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress 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) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat446sScaleEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(64), double, double, double, double, double, double, double, double) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16), double, double, float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10lock_guardIN3JPH5MutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(52) ptr @_ZNK8Renderer14GetCameraStateEv(ptr noundef nonnull align 16 dereferenceable(832)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16DebugRendererImp9DrawTextsEv(ptr noundef nonnull align 16 dereferenceable(816) %0) local_unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::lock_guard", align 8
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Mat44", align 16
  %8 = alloca %"class.JPH::Vec4", align 16
  %9 = alloca %"class.JPH::Vec4", align 16
  %10 = alloca %"class.JPH::Vec4", align 16
  %11 = alloca %"class.JPH::Vec4", align 16
  %12 = alloca %"class.JPH::Mat44", align 16
  %13 = alloca %"class.JPH::Mat44", align 16
  %14 = alloca %"class.std::basic_string_view", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #10
  %15 = getelementptr inbounds i8, ptr %0, i64 680
  call void @_ZNSt10lock_guardIN3JPH5MutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(48) %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 320
  %17 = load ptr, ptr %16, align 16, !tbaa !5
  %18 = invoke noundef nonnull align 16 dereferenceable(52) ptr @_ZNK8Renderer14GetCameraStateEv(ptr noundef nonnull align 16 dereferenceable(832) %17)
          to label %19 unwind label %34

19:                                               ; preds = %1
  %20 = getelementptr inbounds i8, ptr %0, i64 656
  %21 = call noundef ptr @_ZN3JPH5ArrayIN16DebugRendererImp4TextENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %22 = call noundef ptr @_ZN3JPH5ArrayIN16DebugRendererImp4TextENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %.not35 = icmp eq ptr %21, %22
  br i1 %.not35, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %19
  %23 = getelementptr inbounds i8, ptr %18, i64 16
  %24 = getelementptr inbounds i8, ptr %18, i64 32
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 40
  %25 = getelementptr inbounds i8, ptr %5, i64 8
  %26 = getelementptr inbounds i8, ptr %4, i64 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %27 = getelementptr inbounds i8, ptr %6, i64 8
  %28 = getelementptr inbounds i8, ptr %8, i64 8
  %29 = getelementptr inbounds i8, ptr %9, i64 8
  %30 = getelementptr inbounds i8, ptr %10, i64 8
  %31 = getelementptr inbounds i8, ptr %11, i64 8
  %32 = getelementptr inbounds i8, ptr %0, i64 728
  %33 = getelementptr inbounds i8, ptr %14, i64 8
  br label %36

._crit_edge:                                      ; preds = %70, %19
  call void @_ZNSt10lock_guardIN3JPH5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  ret void

34:                                               ; preds = %1
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %82

36:                                               ; preds = %.lr.ph, %70
  %.03036 = phi ptr [ %21, %.lr.ph ], [ %71, %70 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %23, i64 16, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  %.sroa.011.0.copyload = load double, ptr %24, align 16
  %.sroa.212.0.copyload = load double, ptr %.sroa.212.0..sroa_idx, align 8, !tbaa !42
  %37 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %.sroa.011.0.copyload, double %.sroa.212.0.copyload)
          to label %38 unwind label %72

38:                                               ; preds = %36
  %39 = extractvalue { double, double } %37, 0
  store double %39, ptr %5, align 16
  %40 = extractvalue { double, double } %37, 1
  store double %40, ptr %25, align 8
  %41 = invoke { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %5)
          to label %42 unwind label %72

42:                                               ; preds = %38
  %43 = extractvalue { double, double } %41, 0
  store double %43, ptr %4, align 16
  %44 = extractvalue { double, double } %41, 1
  store double %44, ptr %26, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  %.sroa.08.0.copyload = load double, ptr %3, align 16
  %.sroa.29.0.copyload = load double, ptr %.sroa.29.0..sroa_idx, align 8, !tbaa !42
  %45 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %.sroa.08.0.copyload, double %.sroa.29.0.copyload)
          to label %46 unwind label %74

46:                                               ; preds = %42
  %47 = extractvalue { double, double } %45, 0
  store double %47, ptr %6, align 16
  %48 = extractvalue { double, double } %45, 1
  store double %48, ptr %27, align 8
  %49 = invoke { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %6)
          to label %50 unwind label %74

50:                                               ; preds = %46
  %51 = extractvalue { double, double } %49, 0
  %52 = extractvalue { double, double } %49, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #10
  %.sroa.06.0.copyload = load double, ptr %4, align 16
  %.sroa.27.0.copyload = load double, ptr %26, align 8, !tbaa !42
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %8, double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, float noundef 0.000000e+00)
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %9, double %51, double %52, float noundef 0.000000e+00)
  %.sroa.02.0.copyload = load double, ptr %3, align 16
  %.sroa.23.0.copyload = load double, ptr %.sroa.29.0..sroa_idx, align 8, !tbaa !42
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %10, double %.sroa.02.0.copyload, double %.sroa.23.0.copyload, float noundef 0.000000e+00)
  %.sroa.01.0.copyload = load double, ptr %.03036, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %.03036, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !42
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %11, double %.sroa.01.0.copyload, double %.sroa.2.0.copyload, float noundef 1.000000e+00)
  %53 = load double, ptr %8, align 16
  %54 = load double, ptr %28, align 8
  %55 = load double, ptr %9, align 16
  %56 = load double, ptr %29, align 8
  %57 = load double, ptr %10, align 16
  %58 = load double, ptr %30, align 8
  %59 = load double, ptr %11, align 16
  %60 = load double, ptr %31, align 8
  call void @_ZN3JPH5Mat44C2ENS_4Vec4ES1_S1_S1_(ptr noundef nonnull align 16 dereferenceable(64) %7, double %53, double %54, double %55, double %56, double %57, double %58, double %59, double %60)
  %61 = call noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %32)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #10
  %62 = getelementptr inbounds i8, ptr %.03036, i64 52
  %63 = load float, ptr %62, align 4, !tbaa !43
  invoke void @_ZN3JPH5Mat446sScaleEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, float noundef %63)
          to label %64 unwind label %76

64:                                               ; preds = %50
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(64) %13)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #10
  %65 = getelementptr inbounds i8, ptr %.03036, i64 16
  %66 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %65) #10
  %67 = extractvalue { i64, ptr } %66, 0
  store i64 %67, ptr %14, align 8
  %68 = extractvalue { i64, ptr } %66, 1
  store ptr %68, ptr %33, align 8
  %69 = getelementptr inbounds i8, ptr %.03036, i64 48
  %.sroa.0.0.copyload = load i32, ptr %69, align 16, !tbaa !42
  invoke void @_ZNK4Font10DrawText3DERKN3JPH5Mat44ERKSt17basic_string_viewIcSt11char_traitsIcEENS0_5ColorE(ptr noundef nonnull align 8 dereferenceable(51376) %61, ptr noundef nonnull align 16 dereferenceable(64) %12, ptr noundef nonnull align 8 dereferenceable(16) %14, i32 %.sroa.0.0.copyload)
          to label %70 unwind label %78

70:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  %71 = getelementptr inbounds i8, ptr %.03036, i64 64
  %.not = icmp eq ptr %71, %22
  br i1 %.not, label %._crit_edge, label %36

72:                                               ; preds = %38, %36
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  br label %81

74:                                               ; preds = %46, %42
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  br label %81

76:                                               ; preds = %50
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %80

78:                                               ; preds = %64
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  br label %80

80:                                               ; preds = %78, %76
  %.pn = phi { ptr, i32 } [ %79, %78 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #10
  br label %81

81:                                               ; preds = %74, %80, %72
  %.pn.pn.pn = phi { ptr, i32 } [ %73, %72 ], [ %.pn, %80 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  br label %82

82:                                               ; preds = %81, %34
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %81 ], [ %35, %34 ]
  call void @_ZNSt10lock_guardIN3JPH5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

declare void @_ZNK4Font10DrawText3DERKN3JPH5Mat44ERKSt17basic_string_viewIcSt11char_traitsIcEENS0_5ColorE(ptr noundef nonnull align 8 dereferenceable(51376), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(16), i32) local_unnamed_addr #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline 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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline 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 #6 = { 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 #7 = { 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 #8 = { 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 #9 = { "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 #10 = { 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 320}
!6 = !{!"_ZTS16DebugRendererImp", !7, i64 0, !9, i64 320, !21, i64 328, !21, i64 336, !21, i64 344, !21, i64 352, !21, i64 360, !21, i64 368, !27, i64 376, !32, i64 424, !33, i64 432, !33, i64 464, !33, i64 496, !33, i64 528, !14, i64 560, !10, i64 568, !35, i64 584, !9, i64 592, !9, i64 600, !9, i64 608, !36, i64 624, !38, i64 656, !27, i64 680, !39, i64 728, !40, i64 736, !27, i64 760, !21, i64 808}
!7 = !{!"_ZTSN3JPH13DebugRendererE", !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !12, i64 64, !12, i64 96, !15, i64 128, !15, i64 160, !17, i64 192, !17, i64 224, !19, i64 256, !19, i64 288}
!8 = !{!"_ZTSN3JPH3RefINS_13DebugRenderer8GeometryEEE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer15SwingConeLimitsENS_3RefINS1_8GeometryEEENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEE", !13, i64 0}
!13 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!14 = !{!"int", !10, i64 0}
!15 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer18SwingPyramidLimitsENS_3RefINS1_8GeometryEEENS1_24SwingPyramidLimitsHasherESt8equal_toIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer18SwingPyramidLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_24SwingPyramidLimitsHasherESt8equal_toIS2_EEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!17 = !{!"_ZTSN3JPH12UnorderedMapIfNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIfEESt8equal_toIfEEE", !18, i64 0}
!18 = !{!"_ZTSN3JPH9HashTableIfSt4pairIfNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIfS5_EENS_4HashIfEESt8equal_toIfEEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!19 = !{!"_ZTSN3JPH12UnorderedMapINS_13DebugRenderer15TaperedCylinderENS_3RefINS1_8GeometryEEENS1_21TaperedCylinderHasherESt8equal_toIS2_EEE", !20, i64 0}
!20 = !{!"_ZTSN3JPH9HashTableINS_13DebugRenderer15TaperedCylinderESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21TaperedCylinderHasherESt8equal_toIS2_EEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!21 = !{!"_ZTSSt10unique_ptrI13PipelineStateSt14default_deleteIS0_EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_dataI13PipelineStateSt14default_deleteIS0_ELb1ELb1EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_implI13PipelineStateSt14default_deleteIS0_EE", !24, i64 0}
!24 = !{!"_ZTSSt5tupleIJP13PipelineStateSt14default_deleteIS0_EEE", !25, i64 0}
!25 = !{!"_ZTSSt11_Tuple_implILm0EJP13PipelineStateSt14default_deleteIS0_EEE", !26, i64 0}
!26 = !{!"_ZTSSt10_Head_baseILm0EP13PipelineStateLb0EE", !9, i64 0}
!27 = !{!"_ZTSN3JPH5MutexE", !28, i64 0, !30, i64 40}
!28 = !{!"_ZTSSt5mutex", !29, i64 0}
!29 = !{!"_ZTSSt12__mutex_base", !10, i64 0}
!30 = !{!"_ZTSNSt6thread2idE", !31, i64 0}
!31 = !{!"long", !10, i64 0}
!32 = !{!"_ZTSN3JPH3RefINS_16RefTargetVirtualEEE", !9, i64 0}
!33 = !{!"_ZTSN3JPH12UnorderedMapINS_3RefINS_13DebugRenderer8GeometryEEEN16DebugRendererImp9InstancesENS_4HashIS4_EESt8equal_toIS4_EEE", !34, i64 0}
!34 = !{!"_ZTSN3JPH9HashTableINS_3RefINS_13DebugRenderer8GeometryEEESt4pairIS4_N16DebugRendererImp9InstancesEENS_18UnorderedMapDetailIS4_S7_EENS_4HashIS4_EESt8equal_toIS4_EEE", !9, i64 0, !9, i64 8, !14, i64 16, !14, i64 20, !14, i64 24}
!35 = !{!"_ZTSN3JPH3RefI15RenderPrimitiveEE", !9, i64 0}
!36 = !{!"_ZTSN3JPH5AABoxE", !37, i64 0, !37, i64 16}
!37 = !{!"_ZTSN3JPH4Vec3E", !10, i64 0}
!38 = !{!"_ZTSN3JPH5ArrayIN16DebugRendererImp4TextENS_12STLAllocatorIS2_EEEE", !31, i64 0, !31, i64 8, !9, i64 16}
!39 = !{!"_ZTSN3JPH8RefConstI4FontEE", !9, i64 0}
!40 = !{!"_ZTSN3JPH5ArrayIN16DebugRendererImp4LineENS_12STLAllocatorIS2_EEEE", !31, i64 0, !31, i64 8, !9, i64 16}
!41 = !{i64 0, i64 16, !42}
!42 = !{!10, !10, i64 0}
!43 = !{!44, !48, i64 52}
!44 = !{!"_ZTSN16DebugRendererImp4TextE", !37, i64 0, !45, i64 16, !47, i64 48, !48, i64 52}
!45 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !46, i64 0, !31, i64 8, !10, i64 16}
!46 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !9, i64 0}
!47 = !{!"_ZTSN3JPH5ColorE", !10, i64 0}
!48 = !{!"float", !10, i64 0}


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