; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Application (Application)

; 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.anon = type { i8 }
%struct.DisableCustomMemoryHook = type { i8 }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%class.Application = type { ptr, [8 x i8], %struct.CameraState, %struct.CameraState, ptr, ptr, ptr, %"class.JPH::RefConst", ptr, ptr, ptr, ptr, %"class.std::__cxx11::basic_string", %"class.std::chrono::time_point", i8, i8, i8, i8, float, float, float, float, i32 }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::RefConst" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }

@_ZTV11Application = external dso_local unnamed_addr constant { [8 x ptr] }, align 8
@_ZN3JPH5TraceE = external global ptr, align 8
@_ZN3JPH12AssertFailedE = external global ptr, align 8
@_ZN3JPH7Factory9sInstanceE = external global ptr, align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1

; 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: mustprogress uwtable
define dso_local void @_ZN11ApplicationC2EPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE(ptr noundef nonnull align 16 dereferenceable(272) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.anon, align 1
  %10 = alloca %struct.DisableCustomMemoryHook, align 1
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::chrono::time_point", align 8
  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
  %13 = load ptr, ptr %4, align 8
  store ptr getelementptr inbounds inrange(-16, 48) ({ [8 x ptr] }, ptr @_ZTV11Application, i32 0, i32 0, i32 2), ptr %13, align 16, !tbaa !9
  %14 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 2
  call void @_ZN11CameraStateC2Ev(ptr noundef nonnull align 16 dereferenceable(52) %14)
  %15 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 3
  call void @_ZN11CameraStateC2Ev(ptr noundef nonnull align 16 dereferenceable(52) %15)
  %16 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 4
  store ptr null, ptr %16, align 16, !tbaa !11
  %17 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 6
  store ptr null, ptr %17, align 16, !tbaa !24
  %18 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 7
  call void @_ZN3JPH8RefConstI4FontEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %19 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 8
  store ptr null, ptr %19, align 16, !tbaa !25
  %20 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 9
  store ptr null, ptr %20, align 8, !tbaa !26
  %21 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 10
  store ptr null, ptr %21, align 16, !tbaa !27
  %22 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 11
  store ptr null, ptr %22, align 8, !tbaa !28
  %23 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #12
  %24 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 13
  invoke void @_ZNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %25 unwind label %129

25:                                               ; preds = %3
  %26 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 14
  store i8 0, ptr %26, align 8, !tbaa !29
  %27 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 15
  store i8 0, ptr %27, align 1, !tbaa !30
  %28 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 16
  store i8 1, ptr %28, align 2, !tbaa !31
  %29 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 17
  store i8 0, ptr %29, align 1, !tbaa !32
  %30 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 18
  store float 0.000000e+00, ptr %30, align 4, !tbaa !33
  %31 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 19
  store float 0.000000e+00, ptr %31, align 16, !tbaa !34
  %32 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 20
  store float 0.000000e+00, ptr %32, align 4, !tbaa !35
  %33 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 21
  store float 0.000000e+00, ptr %33, align 8, !tbaa !36
  %34 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 22
  store i32 0, ptr %34, align 4, !tbaa !37
  store ptr @_Z9TraceImplPKcz, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #12
  %35 = call noundef ptr @"_ZZN11ApplicationC1EPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEEENK3$_0cvPFbS1_S1_S1_jEEv"(ptr noundef nonnull align 1 dereferenceable(1) %9) #12
  store ptr %35, ptr @_ZN3JPH12AssertFailedE, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #12
  %36 = invoke noundef ptr @_ZN3JPH7FactorynwEm(i64 noundef 64)
          to label %37 unwind label %129

37:                                               ; preds = %25
  call void @_ZN3JPH7FactoryC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %36) #12
  store ptr %36, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !5
  invoke void @_ZN3JPH13RegisterTypesEv()
          to label %38 unwind label %129

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #12
  invoke void @_ZN23DisableCustomMemoryHookC1Ev(ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %39 unwind label %133

39:                                               ; preds = %38
  %40 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 104) #13
          to label %41 unwind label %137

41:                                               ; preds = %39
  call void @_ZN22ApplicationWindowLinuxC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %40) #12
  %42 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 5
  store ptr %40, ptr %42, align 8, !tbaa !38
  %43 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 5
  %44 = load ptr, ptr %43, align 8, !tbaa !38
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = load ptr, ptr %44, align 8, !tbaa !9
  %47 = getelementptr inbounds ptr, ptr %46, i64 2
  %48 = load ptr, ptr %47, align 8
  invoke void %48(ptr noundef nonnull align 8 dereferenceable(48) %44, ptr noundef %45)
          to label %49 unwind label %137

49:                                               ; preds = %41
  %50 = invoke noundef ptr @_ZN8Renderer7sCreateEv()
          to label %51 unwind label %137

51:                                               ; preds = %49
  %52 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 6
  store ptr %50, ptr %52, align 16, !tbaa !24
  %53 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 6
  %54 = load ptr, ptr %53, align 16, !tbaa !24
  %55 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !38
  %57 = load ptr, ptr %54, align 16, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 2
  %59 = load ptr, ptr %58, align 8
  invoke void %59(ptr noundef nonnull align 16 dereferenceable(832) %54, ptr noundef %56)
          to label %60 unwind label %137

60:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #12
  %61 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 51376) #13
          to label %62 unwind label %141

62:                                               ; preds = %60
  %63 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 6
  %64 = load ptr, ptr %63, align 16, !tbaa !24
  invoke void @_ZN4FontC1EP8Renderer(ptr noundef nonnull align 8 dereferenceable(51376) %61, ptr noundef %64)
          to label %65 unwind label %145

65:                                               ; preds = %62
  store ptr %61, ptr %11, align 8, !tbaa !5
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = invoke noundef zeroext i1 @_ZN4Font6CreateEPKci(ptr noundef nonnull align 8 dereferenceable(51376) %66, ptr noundef @.str, i32 noundef 24)
          to label %68 unwind label %141

68:                                               ; preds = %65
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 7
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstI4FontEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef %69)
          to label %72 unwind label %141

72:                                               ; preds = %68
  %73 = invoke noundef ptr @_ZN16DebugRendererImpnwEm(i64 noundef 816)
          to label %74 unwind label %141

74:                                               ; preds = %72
  %75 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 6
  %76 = load ptr, ptr %75, align 16, !tbaa !24
  %77 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 7
  %78 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %77)
          to label %79 unwind label %149

79:                                               ; preds = %74
  invoke void @_ZN16DebugRendererImpC1EP8RendererPK4Font(ptr noundef nonnull align 16 dereferenceable(816) %73, ptr noundef %76, ptr noundef %78)
          to label %80 unwind label %149

80:                                               ; preds = %79
  %81 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 4
  store ptr %73, ptr %81, align 16, !tbaa !11
  %82 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 1112) #13
          to label %83 unwind label %141

83:                                               ; preds = %80
  call void @_ZN13KeyboardLinuxC2Ev(ptr noundef nonnull align 8 dereferenceable(1108) %82) #12
  %84 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 8
  store ptr %82, ptr %84, align 16, !tbaa !25
  %85 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 8
  %86 = load ptr, ptr %85, align 16, !tbaa !25
  %87 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 5
  %88 = load ptr, ptr %87, align 8, !tbaa !38
  %89 = load ptr, ptr %86, align 8, !tbaa !9
  %90 = getelementptr inbounds ptr, ptr %89, i64 2
  %91 = load ptr, ptr %90, align 8
  %92 = invoke noundef zeroext i1 %91(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef %88)
          to label %93 unwind label %141

93:                                               ; preds = %83
  %94 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #13
          to label %95 unwind label %141

95:                                               ; preds = %93
  invoke void @_ZN10MouseLinuxC1Ev(ptr noundef nonnull align 8 dereferenceable(43) %94)
          to label %96 unwind label %153

96:                                               ; preds = %95
  %97 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 9
  store ptr %94, ptr %97, align 8, !tbaa !26
  %98 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 9
  %99 = load ptr, ptr %98, align 8, !tbaa !26
  %100 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 5
  %101 = load ptr, ptr %100, align 8, !tbaa !38
  %102 = load ptr, ptr %99, align 8, !tbaa !9
  %103 = getelementptr inbounds ptr, ptr %102, i64 2
  %104 = load ptr, ptr %103, align 8
  %105 = invoke noundef zeroext i1 %104(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef %101)
          to label %106 unwind label %141

106:                                              ; preds = %96
  %107 = invoke noundef ptr @_ZN9UIElementnwEm(i64 noundef 248)
          to label %108 unwind label %141

108:                                              ; preds = %106
  %109 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 6
  %110 = load ptr, ptr %109, align 16, !tbaa !24
  invoke void @_ZN9UIManagerC1EP8Renderer(ptr noundef nonnull align 8 dereferenceable(248) %107, ptr noundef %110)
          to label %111 unwind label %157

111:                                              ; preds = %108
  %112 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 10
  store ptr %107, ptr %112, align 16, !tbaa !27
  %113 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 10
  %114 = load ptr, ptr %113, align 16, !tbaa !27
  invoke void @_ZN9UIElement10SetVisibleEb(ptr noundef nonnull align 8 dereferenceable(144) %114, i1 noundef zeroext false)
          to label %115 unwind label %141

115:                                              ; preds = %111
  %116 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #13
          to label %117 unwind label %141

117:                                              ; preds = %115
  %118 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 10
  %119 = load ptr, ptr %118, align 16, !tbaa !27
  %120 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 7
  %121 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %120)
          to label %122 unwind label %161

122:                                              ; preds = %117
  invoke void @_ZN7DebugUIC1EP9UIManagerPK4Font(ptr noundef nonnull align 8 dereferenceable(24) %116, ptr noundef %119, ptr noundef %121)
          to label %123 unwind label %161

123:                                              ; preds = %122
  %124 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 11
  store ptr %116, ptr %124, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #12
  call void @_ZN23DisableCustomMemoryHookD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #12
  %125 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #12
  %126 = getelementptr inbounds %"class.std::chrono::time_point", ptr %12, i32 0, i32 0
  %127 = getelementptr inbounds %"class.std::chrono::duration", ptr %126, i32 0, i32 0
  store i64 %125, ptr %127, align 8
  %128 = getelementptr inbounds %class.Application, ptr %13, i32 0, i32 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %128, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !39
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #12
  ret void

129:                                              ; preds = %37, %25, %3
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %7, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %8, align 4
  br label %168

133:                                              ; preds = %38
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %7, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %8, align 4
  br label %167

137:                                              ; preds = %51, %49, %41, %39
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %7, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %8, align 4
  br label %166

141:                                              ; preds = %115, %111, %106, %96, %93, %83, %80, %72, %68, %65, %60
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %7, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %8, align 4
  br label %165

145:                                              ; preds = %62
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %7, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %61, i64 noundef 51376) #14
  br label %165

149:                                              ; preds = %79, %74
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %7, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %8, align 4
  call void @_ZN16DebugRendererImpdlEPv(ptr noundef %73) #12
  br label %165

153:                                              ; preds = %95
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %7, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %94, i64 noundef 48) #14
  br label %165

157:                                              ; preds = %108
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %7, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %8, align 4
  call void @_ZN9UIElementdlEPv(ptr noundef %107) #12
  br label %165

161:                                              ; preds = %122, %117
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %7, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %116, i64 noundef 24) #14
  br label %165

165:                                              ; preds = %161, %157, %153, %149, %145, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #12
  br label %166

166:                                              ; preds = %165, %137
  call void @_ZN23DisableCustomMemoryHookD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #12
  br label %167

167:                                              ; preds = %166, %133
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #12
  br label %168

168:                                              ; preds = %167, %129
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #12
  call void @_ZN3JPH8RefConstI4FontED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #12
  br label %169

169:                                              ; preds = %168
  %170 = load ptr, ptr %7, align 8
  %171 = load i32, ptr %8, align 4
  %172 = insertvalue { ptr, i32 } poison, ptr %170, 0
  %173 = insertvalue { ptr, i32 } %172, i32 %171, 1
  resume { ptr, i32 } %173
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11CameraStateC2Ev(ptr noundef nonnull align 16 dereferenceable(52)) unnamed_addr #1 align 2

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

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

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

declare void @_Z9TraceImplPKcz(ptr noundef, ...) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN11ApplicationC1EPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEEENK3$_0cvPFbS1_S1_S1_jEEv"(ptr noundef nonnull align 1 dereferenceable(1)) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH7FactorynwEm(i64 noundef) #5 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH13RegisterTypesEv() #5

declare void @_ZN23DisableCustomMemoryHookC1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4

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

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

declare noundef ptr @_ZN8Renderer7sCreateEv() #4

declare void @_ZN4FontC1EP8Renderer(ptr noundef nonnull align 8 dereferenceable(51376), ptr noundef) unnamed_addr #4

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

declare noundef zeroext i1 @_ZN4Font6CreateEPKci(ptr noundef nonnull align 8 dereferenceable(51376), ptr noundef, i32 noundef) #4

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN16DebugRendererImpnwEm(i64 noundef) #5 align 2

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

declare void @_ZN16DebugRendererImpC1EP8RendererPK4Font(ptr noundef nonnull align 16 dereferenceable(816), ptr noundef, ptr noundef) unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN16DebugRendererImpdlEPv(ptr noundef) #9 align 2

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

declare void @_ZN10MouseLinuxC1Ev(ptr noundef nonnull align 8 dereferenceable(43)) unnamed_addr #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN9UIElementnwEm(i64 noundef) #5 align 2

declare void @_ZN9UIManagerC1EP8Renderer(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef) unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN9UIElementdlEPv(ptr noundef) #9 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9UIElement10SetVisibleEb(ptr noundef nonnull align 8 dereferenceable(144), i1 noundef zeroext) #3 align 2

declare void @_ZN7DebugUIC1EP9UIManagerPK4Font(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN23DisableCustomMemoryHookD1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #10

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() #10

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 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 = { 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 #7 = { 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 #8 = { inlinehint 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 #9 = { 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 #10 = { 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 #11 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #12 = { nounwind }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { 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, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 144}
!12 = !{!"_ZTS11Application", !13, i64 16, !13, i64 80, !6, i64 144, !6, i64 152, !6, i64 160, !16, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !17, i64 208, !20, i64 240, !22, i64 248, !22, i64 249, !22, i64 250, !22, i64 251, !15, i64 252, !15, i64 256, !15, i64 260, !15, i64 264, !23, i64 268}
!13 = !{!"_ZTS11CameraState", !14, i64 0, !14, i64 16, !14, i64 32, !15, i64 48}
!14 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTSN3JPH8RefConstI4FontEE", !6, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !21, i64 0}
!21 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !19, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!12, !6, i64 160}
!25 = !{!12, !6, i64 176}
!26 = !{!12, !6, i64 184}
!27 = !{!12, !6, i64 192}
!28 = !{!12, !6, i64 200}
!29 = !{!12, !22, i64 248}
!30 = !{!12, !22, i64 249}
!31 = !{!12, !22, i64 250}
!32 = !{!12, !22, i64 251}
!33 = !{!12, !15, i64 252}
!34 = !{!12, !15, i64 256}
!35 = !{!12, !15, i64 260}
!36 = !{!12, !15, i64 264}
!37 = !{!12, !23, i64 268}
!38 = !{!12, !6, i64 152}
!39 = !{i64 0, i64 8, !40}
!40 = !{!19, !19, 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"

%class.anon = type { i8 }
%struct.DisableCustomMemoryHook = type { i8 }

@_ZTV11Application = external dso_local unnamed_addr constant { [8 x ptr] }, align 8
@_ZN3JPH5TraceE = external local_unnamed_addr global ptr, align 8
@_ZN3JPH12AssertFailedE = external local_unnamed_addr global ptr, align 8
@_ZN3JPH7Factory9sInstanceE = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [15 x i8], align 1

; 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 uwtable
define dso_local void @_ZN11ApplicationC2EPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE(ptr noundef nonnull align 16 dereferenceable(272) %0, ptr noundef %1, ptr nocapture noundef nonnull readnone align 8 dereferenceable(32) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.anon, align 1
  %5 = alloca %struct.DisableCustomMemoryHook, align 1
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTV11Application, i64 16), ptr %0, align 16, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN11CameraStateC2Ev(ptr noundef nonnull align 16 dereferenceable(52) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZN11CameraStateC2Ev(ptr noundef nonnull align 16 dereferenceable(52) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 144
  store ptr null, ptr %8, align 16, !tbaa !8
  %9 = getelementptr inbounds i8, ptr %0, i64 160
  store ptr null, ptr %9, align 16, !tbaa !23
  %10 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @_ZN3JPH8RefConstI4FontEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 176
  %12 = getelementptr inbounds i8, ptr %0, i64 184
  %13 = getelementptr inbounds i8, ptr %0, i64 192
  %14 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %11, i8 0, i64 32, i1 false)
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  %15 = getelementptr inbounds i8, ptr %0, i64 240
  tail call void @_ZNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 248
  store i8 0, ptr %16, align 8, !tbaa !24
  %17 = getelementptr inbounds i8, ptr %0, i64 249
  store i8 0, ptr %17, align 1, !tbaa !25
  %18 = getelementptr inbounds i8, ptr %0, i64 250
  store i8 1, ptr %18, align 2, !tbaa !26
  %19 = getelementptr inbounds i8, ptr %0, i64 251
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(21) %19, i8 0, i64 21, i1 false)
  store ptr @_Z9TraceImplPKcz, ptr @_ZN3JPH5TraceE, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #12
  %20 = call noundef ptr @"_ZZN11ApplicationC1EPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEEENK3$_0cvPFbS1_S1_S1_jEEv"(ptr noundef nonnull align 1 dereferenceable(1) %4) #12
  store ptr %20, ptr @_ZN3JPH12AssertFailedE, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #12
  %21 = invoke noundef ptr @_ZN3JPH7FactorynwEm(i64 noundef 64)
          to label %22 unwind label %80

22:                                               ; preds = %3
  call void @_ZN3JPH7FactoryC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %21) #12
  store ptr %21, ptr @_ZN3JPH7Factory9sInstanceE, align 8, !tbaa !27
  invoke void @_ZN3JPH13RegisterTypesEv()
          to label %23 unwind label %80

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #12
  invoke void @_ZN23DisableCustomMemoryHookC1Ev(ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %24 unwind label %82

24:                                               ; preds = %23
  %25 = invoke noalias noundef nonnull dereferenceable(104) ptr @_Znwm(i64 noundef 104) #13
          to label %26 unwind label %84

26:                                               ; preds = %24
  call void @_ZN22ApplicationWindowLinuxC2Ev(ptr noundef nonnull align 8 dereferenceable(104) %25) #12
  %27 = getelementptr inbounds i8, ptr %0, i64 152
  store ptr %25, ptr %27, align 8, !tbaa !28
  %28 = load ptr, ptr %25, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %30 = load ptr, ptr %29, align 8
  invoke void %30(ptr noundef nonnull align 8 dereferenceable(48) %25, ptr noundef %1)
          to label %31 unwind label %84

31:                                               ; preds = %26
  %32 = invoke noundef ptr @_ZN8Renderer7sCreateEv()
          to label %33 unwind label %84

33:                                               ; preds = %31
  store ptr %32, ptr %9, align 16, !tbaa !23
  %34 = load ptr, ptr %27, align 8, !tbaa !28
  %35 = load ptr, ptr %32, align 16, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = load ptr, ptr %36, align 8
  invoke void %37(ptr noundef nonnull align 16 dereferenceable(832) %32, ptr noundef %34)
          to label %38 unwind label %84

38:                                               ; preds = %33
  %39 = invoke noalias noundef nonnull dereferenceable(51376) ptr @_Znwm(i64 noundef 51376) #13
          to label %40 unwind label %86

40:                                               ; preds = %38
  %41 = load ptr, ptr %9, align 16, !tbaa !23
  invoke void @_ZN4FontC1EP8Renderer(ptr noundef nonnull align 8 dereferenceable(51376) %39, ptr noundef %41)
          to label %42 unwind label %88

42:                                               ; preds = %40
  %43 = invoke noundef zeroext i1 @_ZN4Font6CreateEPKci(ptr noundef nonnull align 8 dereferenceable(51376) %39, ptr noundef nonnull @.str, i32 noundef 24)
          to label %44 unwind label %86

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstI4FontEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull %39)
          to label %46 unwind label %86

46:                                               ; preds = %44
  %47 = invoke noundef ptr @_ZN16DebugRendererImpnwEm(i64 noundef 816)
          to label %48 unwind label %86

48:                                               ; preds = %46
  %49 = load ptr, ptr %9, align 16, !tbaa !23
  %50 = call noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN16DebugRendererImpC1EP8RendererPK4Font(ptr noundef nonnull align 16 dereferenceable(816) %47, ptr noundef %49, ptr noundef %50)
          to label %51 unwind label %90

51:                                               ; preds = %48
  store ptr %47, ptr %8, align 16, !tbaa !8
  %52 = invoke noalias noundef nonnull dereferenceable(1112) ptr @_Znwm(i64 noundef 1112) #13
          to label %53 unwind label %86

53:                                               ; preds = %51
  call void @_ZN13KeyboardLinuxC2Ev(ptr noundef nonnull align 8 dereferenceable(1108) %52) #12
  store ptr %52, ptr %11, align 16, !tbaa !29
  %54 = load ptr, ptr %27, align 8, !tbaa !28
  %55 = load ptr, ptr %52, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = load ptr, ptr %56, align 8
  %58 = invoke noundef zeroext i1 %57(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef %54)
          to label %59 unwind label %86

59:                                               ; preds = %53
  %60 = invoke noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #13
          to label %61 unwind label %86

61:                                               ; preds = %59
  invoke void @_ZN10MouseLinuxC1Ev(ptr noundef nonnull align 8 dereferenceable(43) %60)
          to label %62 unwind label %92

62:                                               ; preds = %61
  store ptr %60, ptr %12, align 8, !tbaa !30
  %63 = load ptr, ptr %27, align 8, !tbaa !28
  %64 = load ptr, ptr %60, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %66 = load ptr, ptr %65, align 8
  %67 = invoke noundef zeroext i1 %66(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef %63)
          to label %68 unwind label %86

68:                                               ; preds = %62
  %69 = invoke noundef ptr @_ZN9UIElementnwEm(i64 noundef 248)
          to label %70 unwind label %86

70:                                               ; preds = %68
  %71 = load ptr, ptr %9, align 16, !tbaa !23
  invoke void @_ZN9UIManagerC1EP8Renderer(ptr noundef nonnull align 8 dereferenceable(248) %69, ptr noundef %71)
          to label %72 unwind label %94

72:                                               ; preds = %70
  store ptr %69, ptr %13, align 16, !tbaa !31
  call void @_ZN9UIElement10SetVisibleEb(ptr noundef nonnull align 8 dereferenceable(144) %69, i1 noundef zeroext false)
  %73 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #13
          to label %74 unwind label %86

74:                                               ; preds = %72
  %75 = load ptr, ptr %13, align 16, !tbaa !31
  %76 = call noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZN7DebugUIC1EP9UIManagerPK4Font(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef %75, ptr noundef %76)
          to label %77 unwind label %96

77:                                               ; preds = %74
  %78 = getelementptr inbounds i8, ptr %0, i64 200
  store ptr %73, ptr %78, align 8, !tbaa !32
  call void @_ZN23DisableCustomMemoryHookD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #12
  %79 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #12
  store i64 %79, ptr %15, align 16, !tbaa !33
  ret void

80:                                               ; preds = %22, %3
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %100

82:                                               ; preds = %23
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %99

84:                                               ; preds = %33, %31, %26, %24
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %98

86:                                               ; preds = %72, %68, %62, %59, %53, %51, %46, %44, %42, %38
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %98

88:                                               ; preds = %40
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %39, i64 noundef 51376) #14
  br label %98

90:                                               ; preds = %48
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN16DebugRendererImpdlEPv(ptr noundef %47) #12
  br label %98

92:                                               ; preds = %61
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %60, i64 noundef 48) #14
  br label %98

94:                                               ; preds = %70
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9UIElementdlEPv(ptr noundef %69) #12
  br label %98

96:                                               ; preds = %74
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %73, i64 noundef 24) #14
  br label %98

98:                                               ; preds = %86, %88, %90, %92, %94, %96, %84
  %.pn.pn = phi { ptr, i32 } [ %85, %84 ], [ %97, %96 ], [ %87, %86 ], [ %95, %94 ], [ %93, %92 ], [ %91, %90 ], [ %89, %88 ]
  call void @_ZN23DisableCustomMemoryHookD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #12
  br label %99

99:                                               ; preds = %98, %82
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %98 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #12
  br label %100

100:                                              ; preds = %99, %80
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %99 ], [ %81, %80 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #12
  call void @_ZN3JPH8RefConstI4FontED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #12
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11CameraStateC2Ev(ptr noundef nonnull align 16 dereferenceable(52)) unnamed_addr #1 align 2

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

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

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

declare void @_Z9TraceImplPKcz(ptr noundef, ...) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN11ApplicationC1EPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEEENK3$_0cvPFbS1_S1_S1_jEEv"(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH7FactorynwEm(i64 noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH13RegisterTypesEv() local_unnamed_addr #5

declare void @_ZN23DisableCustomMemoryHookC1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4

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

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

declare noundef ptr @_ZN8Renderer7sCreateEv() local_unnamed_addr #4

declare void @_ZN4FontC1EP8Renderer(ptr noundef nonnull align 8 dereferenceable(51376), ptr noundef) unnamed_addr #4

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

declare noundef zeroext i1 @_ZN4Font6CreateEPKci(ptr noundef nonnull align 8 dereferenceable(51376), ptr noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN16DebugRendererImpnwEm(i64 noundef) local_unnamed_addr #5 align 2

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

declare void @_ZN16DebugRendererImpC1EP8RendererPK4Font(ptr noundef nonnull align 16 dereferenceable(816), ptr noundef, ptr noundef) unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN16DebugRendererImpdlEPv(ptr noundef) local_unnamed_addr #9 align 2

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

declare void @_ZN10MouseLinuxC1Ev(ptr noundef nonnull align 8 dereferenceable(43)) unnamed_addr #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN9UIElementnwEm(i64 noundef) local_unnamed_addr #5 align 2

declare void @_ZN9UIManagerC1EP8Renderer(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef) unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN9UIElementdlEPv(ptr noundef) local_unnamed_addr #9 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9UIElement10SetVisibleEb(ptr noundef nonnull align 8 dereferenceable(144), i1 noundef zeroext) local_unnamed_addr #3 align 2

declare void @_ZN7DebugUIC1EP9UIManagerPK4Font(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN23DisableCustomMemoryHookD1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #10

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() local_unnamed_addr #10

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 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 = { 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 #7 = { 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 #8 = { inlinehint 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 #9 = { 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 #10 = { 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 #11 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #12 = { nounwind }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !14, i64 144}
!9 = !{!"_ZTS11Application", !10, i64 16, !10, i64 80, !14, i64 144, !14, i64 152, !14, i64 160, !15, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !16, i64 208, !19, i64 240, !21, i64 248, !21, i64 249, !21, i64 250, !21, i64 251, !13, i64 252, !13, i64 256, !13, i64 260, !13, i64 264, !22, i64 268}
!10 = !{!"_ZTS11CameraState", !11, i64 0, !11, i64 16, !11, i64 32, !13, i64 48}
!11 = !{!"_ZTSN3JPH4Vec3E", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"float", !12, i64 0}
!14 = !{!"any pointer", !12, i64 0}
!15 = !{!"_ZTSN3JPH8RefConstI4FontEE", !14, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !17, i64 0, !18, i64 8, !12, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !14, i64 0}
!18 = !{!"long", !12, i64 0}
!19 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !20, i64 0}
!20 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !18, i64 0}
!21 = !{!"bool", !12, i64 0}
!22 = !{!"int", !12, i64 0}
!23 = !{!9, !14, i64 160}
!24 = !{!9, !21, i64 248}
!25 = !{!9, !21, i64 249}
!26 = !{!9, !21, i64 250}
!27 = !{!14, !14, i64 0}
!28 = !{!9, !14, i64 152}
!29 = !{!9, !14, i64 176}
!30 = !{!9, !14, i64 184}
!31 = !{!9, !14, i64 192}
!32 = !{!9, !14, i64 200}
!33 = !{!18, !18, i64 0}


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