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

; 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::Color" = type { %union.anon.53 }
%union.anon.53 = type { i32 }
%"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] }
%"class.JPH::Float2" = type { float, float }
%"class.std::basic_string_view" = type { i64, ptr }
%class.UITexturedQuad = type { %"class.JPH::RefConst.48", i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.JPH::RefConst.48" = type { ptr }
%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::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZN3JPH5Color6sWhiteE = external global %"class.JPH::Color", align 4
@.str.3 = external hidden unnamed_addr constant [22 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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: mustprogress uwtable
define dso_local void @_ZN11Application7DrawFPSEf(ptr noundef nonnull align 16 dereferenceable(272) %0, float noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.JPH::Float2", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::basic_string_view", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %class.UITexturedQuad, align 8
  %15 = alloca %"class.JPH::Color", align 4
  %16 = alloca %"class.std::basic_string_view", align 8
  %17 = alloca %"class.JPH::Color", align 4
  %18 = alloca %"class.std::basic_string_view", align 8
  %19 = alloca %"class.JPH::Color", align 4
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.JPH::Float2", align 4
  %22 = alloca %"class.JPH::Color", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %23 = load ptr, ptr %3, align 8
  %24 = load float, ptr %4, align 4, !tbaa !9
  %25 = fcmp ole float %24, 0.000000e+00
  br i1 %25, label %26, label %27

26:                                               ; preds = %2
  br label %228

27:                                               ; preds = %2
  %28 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 6
  %29 = load ptr, ptr %28, align 16, !tbaa !11
  %30 = load ptr, ptr %29, align 16, !tbaa !23
  %31 = getelementptr inbounds ptr, ptr %30, i64 7
  %32 = load ptr, ptr %31, align 8
  call void %32(ptr noundef nonnull align 16 dereferenceable(832) %29)
  %33 = load float, ptr %4, align 4, !tbaa !9
  %34 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 21
  %35 = load float, ptr %34, align 8, !tbaa !25
  %36 = fadd float %35, %33
  store float %36, ptr %34, align 8, !tbaa !25
  %37 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 22
  %38 = load i32, ptr %37, align 4, !tbaa !26
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %37, align 4, !tbaa !26
  %40 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 22
  %41 = load i32, ptr %40, align 4, !tbaa !26
  %42 = icmp sgt i32 %41, 10
  br i1 %42, label %43, label %53

43:                                               ; preds = %27
  %44 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 22
  %45 = load i32, ptr %44, align 4, !tbaa !26
  %46 = sitofp i32 %45 to float
  %47 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 21
  %48 = load float, ptr %47, align 8, !tbaa !25
  %49 = fdiv float %46, %48
  %50 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 18
  store float %49, ptr %50, align 4, !tbaa !27
  %51 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 22
  store i32 0, ptr %51, align 4, !tbaa !26
  %52 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 21
  store float 0.000000e+00, ptr %52, align 8, !tbaa !25
  br label %53

53:                                               ; preds = %43, %27
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #8
  %54 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 18
  %55 = load float, ptr %54, align 4, !tbaa !27
  %56 = fpext float %55 to double
  call void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef @.str.2, double noundef %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %57 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 7
  %58 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %57)
          to label %59 unwind label %145

59:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  %60 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %61 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 0
  %62 = extractvalue { i64, ptr } %60, 0
  store i64 %62, ptr %61, align 8
  %63 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 1
  %64 = extractvalue { i64, ptr } %60, 1
  store ptr %64, ptr %63, align 8
  %65 = invoke <2 x float> @_ZNK4Font11MeasureTextERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(51376) %58, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %66 unwind label %149

66:                                               ; preds = %59
  store <2 x float> %65, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %67 = getelementptr inbounds %"class.JPH::Float2", ptr %6, i32 0, i32 0
  %68 = load float, ptr %67, align 4, !tbaa !28
  %69 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 7
  %70 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %71 unwind label %153

71:                                               ; preds = %66
  %72 = invoke noundef i32 @_ZNK4Font13GetCharHeightEv(ptr noundef nonnull align 8 dereferenceable(51376) %70)
          to label %73 unwind label %153

73:                                               ; preds = %71
  %74 = sitofp i32 %72 to float
  %75 = fmul float %68, %74
  %76 = fptosi float %75 to i32
  store i32 %76, ptr %10, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %77 = getelementptr inbounds %"class.JPH::Float2", ptr %6, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !31
  %79 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 7
  %80 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %79)
          to label %81 unwind label %157

81:                                               ; preds = %73
  %82 = invoke noundef i32 @_ZNK4Font13GetCharHeightEv(ptr noundef nonnull align 8 dereferenceable(51376) %80)
          to label %83 unwind label %157

83:                                               ; preds = %81
  %84 = sitofp i32 %82 to float
  %85 = fmul float %78, %84
  %86 = fptosi float %85 to i32
  store i32 %86, ptr %11, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %87 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 5
  %88 = load ptr, ptr %87, align 8, !tbaa !32
  %89 = invoke noundef i32 @_ZN17ApplicationWindow14GetWindowWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %88)
          to label %90 unwind label %161

90:                                               ; preds = %83
  %91 = load i32, ptr %10, align 4, !tbaa !30
  %92 = sub nsw i32 %89, %91
  %93 = sdiv i32 %92, 2
  %94 = sub nsw i32 %93, 20
  store i32 %94, ptr %12, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 10, ptr %13, align 4, !tbaa !30
  %95 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 10
  %96 = load ptr, ptr %95, align 16, !tbaa !33
  %97 = load i32, ptr %12, align 4, !tbaa !30
  %98 = sub nsw i32 %97, 5
  %99 = load i32, ptr %13, align 4, !tbaa !30
  %100 = sub nsw i32 %99, 3
  %101 = load i32, ptr %10, align 4, !tbaa !30
  %102 = add nsw i32 %101, 10
  %103 = load i32, ptr %11, align 4, !tbaa !30
  %104 = add nsw i32 %103, 6
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #8
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 40, i1 false)
  invoke void @_ZN14UITexturedQuadC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %105 unwind label %165

105:                                              ; preds = %90
  invoke void @_ZN3JPH5ColorC2Ehhhh(ptr noundef nonnull align 4 dereferenceable(4) %15, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -128)
          to label %106 unwind label %169

106:                                              ; preds = %105
  %107 = getelementptr inbounds %"class.JPH::Color", ptr %15, i32 0, i32 0
  %108 = getelementptr inbounds %union.anon.53, ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 4
  invoke void @_ZN9UIManager8DrawQuadEiiiiRK14UITexturedQuadN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %96, i32 noundef %98, i32 noundef %100, i32 noundef %102, i32 noundef %104, ptr noundef nonnull align 8 dereferenceable(40) %14, i32 %109)
          to label %110 unwind label %169

110:                                              ; preds = %106
  call void @_ZN14UITexturedQuadD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
  %111 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 10
  %112 = load ptr, ptr %111, align 16, !tbaa !33
  %113 = load i32, ptr %12, align 4, !tbaa !30
  %114 = load i32, ptr %13, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %115 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %116 = getelementptr inbounds { i64, ptr }, ptr %16, i32 0, i32 0
  %117 = extractvalue { i64, ptr } %115, 0
  store i64 %117, ptr %116, align 8
  %118 = getelementptr inbounds { i64, ptr }, ptr %16, i32 0, i32 1
  %119 = extractvalue { i64, ptr } %115, 1
  store ptr %119, ptr %118, align 8
  %120 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 7
  %121 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %120)
          to label %122 unwind label %174

122:                                              ; preds = %110
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !34
  %123 = getelementptr inbounds %"class.JPH::Color", ptr %17, i32 0, i32 0
  %124 = getelementptr inbounds %union.anon.53, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 4
  invoke void @_ZN9UIManager8DrawTextEiiRKSt17basic_string_viewIcSt11char_traitsIcEEPK4FontN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %112, i32 noundef %113, i32 noundef %114, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef %121, i32 %125)
          to label %126 unwind label %174

126:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  %127 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 12
  %128 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %127) #8
  br i1 %128, label %182, label %129

129:                                              ; preds = %126
  %130 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 10
  %131 = load ptr, ptr %130, align 16, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %132 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 12
  %133 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %132) #8
  %134 = getelementptr inbounds { i64, ptr }, ptr %18, i32 0, i32 0
  %135 = extractvalue { i64, ptr } %133, 0
  store i64 %135, ptr %134, align 8
  %136 = getelementptr inbounds { i64, ptr }, ptr %18, i32 0, i32 1
  %137 = extractvalue { i64, ptr } %133, 1
  store ptr %137, ptr %136, align 8
  %138 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 7
  %139 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %138)
          to label %140 unwind label %178

140:                                              ; preds = %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !34
  %141 = getelementptr inbounds %"class.JPH::Color", ptr %19, i32 0, i32 0
  %142 = getelementptr inbounds %union.anon.53, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 4
  invoke void @_ZN9UIManager8DrawTextEiiRKSt17basic_string_viewIcSt11char_traitsIcEEPK4FontN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %131, i32 noundef 5, i32 noundef 5, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %139, i32 %143)
          to label %144 unwind label %178

144:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  br label %182

145:                                              ; preds = %53
  %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
  br label %237

149:                                              ; preds = %59
  %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 @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  br label %237

153:                                              ; preds = %71, %66
  %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
  br label %236

157:                                              ; preds = %81, %73
  %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
  br label %235

161:                                              ; preds = %83
  %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
  br label %234

165:                                              ; preds = %90
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %7, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %8, align 4
  br label %173

169:                                              ; preds = %106, %105
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %7, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %8, align 4
  call void @_ZN14UITexturedQuadD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #8
  br label %173

173:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #8
  br label %233

174:                                              ; preds = %122, %110
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %7, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %233

178:                                              ; preds = %140, %129
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %7, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  br label %233

182:                                              ; preds = %144, %126
  %183 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 14
  %184 = load i8, ptr %183, align 8, !tbaa !36, !range !37, !noundef !38
  %185 = trunc i8 %184 to i1
  br i1 %185, label %186, label %221

186:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef @.str.3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %187 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 7
  %188 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %187)
          to label %189 unwind label %217

189:                                              ; preds = %186
  %190 = invoke <2 x float> @_ZNK4Font11MeasureTextERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(51376) %188, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %191 unwind label %217

191:                                              ; preds = %189
  store <2 x float> %190, ptr %21, align 4
  %192 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 10
  %193 = load ptr, ptr %192, align 16, !tbaa !33
  %194 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 5
  %195 = load ptr, ptr %194, align 8, !tbaa !32
  %196 = invoke noundef i32 @_ZN17ApplicationWindow14GetWindowWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %195)
          to label %197 unwind label %217

197:                                              ; preds = %191
  %198 = sub nsw i32 %196, 5
  %199 = getelementptr inbounds %"class.JPH::Float2", ptr %21, i32 0, i32 0
  %200 = load float, ptr %199, align 4, !tbaa !28
  %201 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 7
  %202 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %201)
          to label %203 unwind label %217

203:                                              ; preds = %197
  %204 = invoke noundef i32 @_ZNK4Font13GetCharHeightEv(ptr noundef nonnull align 8 dereferenceable(51376) %202)
          to label %205 unwind label %217

205:                                              ; preds = %203
  %206 = sitofp i32 %204 to float
  %207 = fmul float %200, %206
  %208 = fptosi float %207 to i32
  %209 = sub nsw i32 %198, %208
  %210 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 7
  %211 = invoke noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %210)
          to label %212 unwind label %217

212:                                              ; preds = %205
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !34
  %213 = getelementptr inbounds %"class.JPH::Color", ptr %22, i32 0, i32 0
  %214 = getelementptr inbounds %union.anon.53, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 4
  invoke void @_ZN9UIManager8DrawTextEiiRKSt17basic_string_viewIcSt11char_traitsIcEEPK4FontN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %193, i32 noundef %209, i32 noundef 5, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %211, i32 %215)
          to label %216 unwind label %217

216:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %221

217:                                              ; preds = %212, %205, %203, %197, %191, %189, %186
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %7, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %233

221:                                              ; preds = %216, %182
  %222 = getelementptr inbounds %class.Application, ptr %23, i32 0, i32 6
  %223 = load ptr, ptr %222, align 16, !tbaa !11
  %224 = load ptr, ptr %223, align 16, !tbaa !23
  %225 = getelementptr inbounds ptr, ptr %224, i64 6
  %226 = load ptr, ptr %225, align 8
  invoke void %226(ptr noundef nonnull align 16 dereferenceable(832) %223)
          to label %227 unwind label %229

227:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #8
  br label %228

228:                                              ; preds = %227, %26
  ret void

229:                                              ; preds = %221
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %7, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %8, align 4
  br label %233

233:                                              ; preds = %229, %217, %178, %174, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %234

234:                                              ; preds = %233, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %235

235:                                              ; preds = %234, %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %236

236:                                              ; preds = %235, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %237

237:                                              ; preds = %236, %149, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #8
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %7, align 8
  %240 = load i32, ptr %8, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242
}

declare void @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) #5

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

declare <2 x float> @_ZNK4Font11MeasureTextERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(51376), ptr noundef nonnull align 8 dereferenceable(16)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Font13GetCharHeightEv(ptr noundef nonnull align 8 dereferenceable(51376)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN17ApplicationWindow14GetWindowWidthEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

declare void @_ZN9UIManager8DrawQuadEiiiiRK14UITexturedQuadN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(40), i32) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ColorC2Ehhhh(ptr noundef nonnull align 4 dereferenceable(4), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #3 align 2

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

declare void @_ZN9UIManager8DrawTextEiiRKSt17basic_string_viewIcSt11char_traitsIcEEPK4FontN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 160}
!12 = !{!"_ZTS11Application", !13, i64 16, !13, i64 80, !6, i64 144, !6, i64 152, !6, i64 160, !15, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !16, i64 208, !19, i64 240, !21, i64 248, !21, i64 249, !21, i64 250, !21, i64 251, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !22, i64 268}
!13 = !{!"_ZTS11CameraState", !14, i64 0, !14, i64 16, !14, i64 32, !10, i64 48}
!14 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!15 = !{!"_ZTSN3JPH8RefConstI4FontEE", !6, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !20, i64 0}
!20 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !18, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!12, !10, i64 264}
!26 = !{!12, !22, i64 268}
!27 = !{!12, !10, i64 252}
!28 = !{!29, !10, i64 0}
!29 = !{!"_ZTSN3JPH6Float2E", !10, i64 0, !10, i64 4}
!30 = !{!22, !22, i64 0}
!31 = !{!29, !10, i64 4}
!32 = !{!12, !6, i64 152}
!33 = !{!12, !6, i64 192}
!34 = !{i64 0, i64 4, !35}
!35 = !{!7, !7, i64 0}
!36 = !{!12, !21, i64 248}
!37 = !{i8 0, i8 2}
!38 = !{}


; 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::Color" = type { %union.anon.53 }
%union.anon.53 = type { i32 }
%"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] }
%"class.std::basic_string_view" = type { i64, ptr }
%class.UITexturedQuad = type { %"class.JPH::RefConst.48", i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.JPH::RefConst.48" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZN3JPH5Color6sWhiteE = external local_unnamed_addr global %"class.JPH::Color", align 4
@.str.3 = external hidden unnamed_addr constant [22 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11Application7DrawFPSEf(ptr noundef nonnull align 16 dereferenceable(272) %0, float noundef %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = alloca %class.UITexturedQuad, align 8
  %6 = alloca %"class.JPH::Color", align 4
  %7 = alloca %"class.std::basic_string_view", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca %"class.std::basic_string_view", align 8
  %10 = fcmp ugt float %1, 0.000000e+00
  br i1 %10, label %11, label %119

11:                                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %0, i64 160
  %13 = load ptr, ptr %12, align 16, !tbaa !5
  %14 = load ptr, ptr %13, align 16, !tbaa !21
  %15 = getelementptr inbounds i8, ptr %14, i64 56
  %16 = load ptr, ptr %15, align 8
  tail call void %16(ptr noundef nonnull align 16 dereferenceable(832) %13)
  %17 = getelementptr inbounds i8, ptr %0, i64 264
  %18 = load float, ptr %17, align 8, !tbaa !23
  %19 = fadd float %18, %1
  store float %19, ptr %17, align 8, !tbaa !23
  %20 = getelementptr inbounds i8, ptr %0, i64 268
  %21 = load i32, ptr %20, align 4, !tbaa !24
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %20, align 4, !tbaa !24
  %23 = icmp sgt i32 %21, 9
  br i1 %23, label %24, label %._crit_edge

._crit_edge:                                      ; preds = %11
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 252
  %.pre = load float, ptr %.phi.trans.insert, align 4, !tbaa !25
  br label %28

24:                                               ; preds = %11
  %25 = uitofp nneg i32 %22 to float
  %26 = fdiv float %25, %19
  %27 = getelementptr inbounds i8, ptr %0, i64 252
  store float %26, ptr %27, align 4, !tbaa !25
  store i32 0, ptr %20, align 4, !tbaa !24
  store float 0.000000e+00, ptr %17, align 8, !tbaa !23
  br label %28

28:                                               ; preds = %._crit_edge, %24
  %29 = phi float [ %.pre, %._crit_edge ], [ %26, %24 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  %30 = fpext float %29 to double
  call void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull @.str.2, double noundef %30)
  %31 = getelementptr inbounds i8, ptr %0, i64 168
  %32 = call noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %33 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %34 = extractvalue { i64, ptr } %33, 0
  store i64 %34, ptr %4, align 8
  %35 = getelementptr inbounds i8, ptr %4, i64 8
  %36 = extractvalue { i64, ptr } %33, 1
  store ptr %36, ptr %35, align 8
  %37 = invoke <2 x float> @_ZNK4Font11MeasureTextERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(51376) %32, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %38 unwind label %80

38:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  %.sroa.011.0.vec.extract = extractelement <2 x float> %37, i64 0
  %39 = call noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %40 = call noundef i32 @_ZNK4Font13GetCharHeightEv(ptr noundef nonnull align 8 dereferenceable(51376) %39)
  %41 = sitofp i32 %40 to float
  %42 = fmul float %.sroa.011.0.vec.extract, %41
  %43 = fptosi float %42 to i32
  %44 = call noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %45 = call noundef i32 @_ZNK4Font13GetCharHeightEv(ptr noundef nonnull align 8 dereferenceable(51376) %44)
  %46 = getelementptr inbounds i8, ptr %0, i64 152
  %47 = load ptr, ptr %46, align 8, !tbaa !26
  %48 = call noundef i32 @_ZN17ApplicationWindow14GetWindowWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %47)
  %49 = sub nsw i32 %48, %43
  %50 = sdiv i32 %49, 2
  %51 = add nsw i32 %50, -20
  %52 = getelementptr inbounds i8, ptr %0, i64 192
  %53 = load ptr, ptr %52, align 16, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %5, i8 0, i64 40, i1 false)
  invoke void @_ZN14UITexturedQuadC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %54 unwind label %82

54:                                               ; preds = %38
  %.sroa.011.4.vec.extract = extractelement <2 x float> %37, i64 1
  %55 = sitofp i32 %45 to float
  %56 = fmul float %.sroa.011.4.vec.extract, %55
  %57 = fptosi float %56 to i32
  %58 = add nsw i32 %57, 6
  %59 = add nsw i32 %43, 10
  %60 = add nsw i32 %50, -25
  call void @_ZN3JPH5ColorC2Ehhhh(ptr noundef nonnull align 4 dereferenceable(4) %6, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -128)
  %61 = load i32, ptr %6, align 4
  invoke void @_ZN9UIManager8DrawQuadEiiiiRK14UITexturedQuadN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %53, i32 noundef %60, i32 noundef 7, i32 noundef %59, i32 noundef %58, ptr noundef nonnull align 8 dereferenceable(40) %5, i32 %61)
          to label %62 unwind label %84

62:                                               ; preds = %54
  call void @_ZN14UITexturedQuadD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  %63 = load ptr, ptr %52, align 16, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %64 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %65 = extractvalue { i64, ptr } %64, 0
  store i64 %65, ptr %7, align 8
  %66 = getelementptr inbounds i8, ptr %7, i64 8
  %67 = extractvalue { i64, ptr } %64, 1
  store ptr %67, ptr %66, align 8
  %68 = call noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %.sroa.03.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !28
  invoke void @_ZN9UIManager8DrawTextEiiRKSt17basic_string_viewIcSt11char_traitsIcEEPK4FontN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %63, i32 noundef %51, i32 noundef 10, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %68, i32 %.sroa.03.0.copyload)
          to label %69 unwind label %87

69:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %70 = getelementptr inbounds i8, ptr %0, i64 208
  %71 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %70) #7
  br i1 %71, label %91, label %72

72:                                               ; preds = %69
  %73 = load ptr, ptr %52, align 16, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %74 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %70) #7
  %75 = extractvalue { i64, ptr } %74, 0
  store i64 %75, ptr %8, align 8
  %76 = getelementptr inbounds i8, ptr %8, i64 8
  %77 = extractvalue { i64, ptr } %74, 1
  store ptr %77, ptr %76, align 8
  %78 = call noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %.sroa.02.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !28
  invoke void @_ZN9UIManager8DrawTextEiiRKSt17basic_string_viewIcSt11char_traitsIcEEPK4FontN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %73, i32 noundef 5, i32 noundef 5, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %78, i32 %.sroa.02.0.copyload)
          to label %79 unwind label %89

79:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %91

80:                                               ; preds = %28
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %122

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

84:                                               ; preds = %54
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14UITexturedQuadD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  br label %86

86:                                               ; preds = %84, %82
  %.pn = phi { ptr, i32 } [ %85, %84 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  br label %122

87:                                               ; preds = %62
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %122

89:                                               ; preds = %72
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %122

91:                                               ; preds = %79, %69
  %92 = getelementptr inbounds i8, ptr %0, i64 248
  %93 = load i8, ptr %92, align 8, !tbaa !29, !range !30, !noundef !31
  %94 = trunc nuw i8 %93 to i1
  br i1 %94, label %95, label %113

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @.str.3) #7
  %96 = call noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %97 = invoke <2 x float> @_ZNK4Font11MeasureTextERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(51376) %96, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %98 unwind label %111

98:                                               ; preds = %95
  %99 = load ptr, ptr %52, align 16, !tbaa !27
  %100 = load ptr, ptr %46, align 8, !tbaa !26
  %101 = call noundef i32 @_ZN17ApplicationWindow14GetWindowWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %100)
  %102 = add nsw i32 %101, -5
  %.sroa.01.0.vec.extract = extractelement <2 x float> %97, i64 0
  %103 = call noundef ptr @_ZNK3JPH8RefConstI4FontEptEv(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %104 = call noundef i32 @_ZNK4Font13GetCharHeightEv(ptr noundef nonnull align 8 dereferenceable(51376) %103)
  %105 = sitofp i32 %104 to float
  %106 = fmul float %.sroa.01.0.vec.extract, %105
  %107 = fptosi float %106 to i32
  %108 = sub i32 %102, %107
  %109 = call noundef ptr @_ZNK3JPH8RefConstI4FontEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %31)
  %.sroa.0.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !28
  invoke void @_ZN9UIManager8DrawTextEiiRKSt17basic_string_viewIcSt11char_traitsIcEEPK4FontN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %99, i32 noundef %108, i32 noundef 5, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %109, i32 %.sroa.0.0.copyload)
          to label %110 unwind label %111

110:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %113

111:                                              ; preds = %98, %95
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %122

113:                                              ; preds = %110, %91
  %114 = load ptr, ptr %12, align 16, !tbaa !5
  %115 = load ptr, ptr %114, align 16, !tbaa !21
  %116 = getelementptr inbounds i8, ptr %115, i64 48
  %117 = load ptr, ptr %116, align 8
  invoke void %117(ptr noundef nonnull align 16 dereferenceable(832) %114)
          to label %118 unwind label %120

118:                                              ; preds = %113
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %119

119:                                              ; preds = %2, %118
  ret void

120:                                              ; preds = %113
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %122

122:                                              ; preds = %86, %87, %89, %111, %120, %80
  %.pn21.pn = phi { ptr, i32 } [ %81, %80 ], [ %121, %120 ], [ %112, %111 ], [ %90, %89 ], [ %88, %87 ], [ %.pn, %86 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn21.pn
}

declare void @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) local_unnamed_addr #4

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

declare <2 x float> @_ZNK4Font11MeasureTextERKSt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(51376), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; 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 #2 align 2

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

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

declare void @_ZN9UIManager8DrawQuadEiiiiRK14UITexturedQuadN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(40), i32) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ColorC2Ehhhh(ptr noundef nonnull align 4 dereferenceable(4), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #2 align 2

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

declare void @_ZN9UIManager8DrawTextEiiRKSt17basic_string_viewIcSt11char_traitsIcEEPK4FontN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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, !12, i64 160}
!6 = !{!"_ZTS11Application", !7, i64 16, !7, i64 80, !12, i64 144, !12, i64 152, !12, i64 160, !13, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !14, i64 208, !17, i64 240, !19, i64 248, !19, i64 249, !19, i64 250, !19, i64 251, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !20, i64 268}
!7 = !{!"_ZTS11CameraState", !8, i64 0, !8, i64 16, !8, i64 32, !11, i64 48}
!8 = !{!"_ZTSN3JPH4Vec3E", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"float", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTSN3JPH8RefConstI4FontEE", !12, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !15, i64 0, !16, i64 8, !9, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !12, i64 0}
!16 = !{!"long", !9, i64 0}
!17 = !{!"_ZTSNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEE", !18, i64 0}
!18 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !16, i64 0}
!19 = !{!"bool", !9, i64 0}
!20 = !{!"int", !9, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !10, i64 0}
!23 = !{!6, !11, i64 264}
!24 = !{!6, !20, i64 268}
!25 = !{!6, !11, i64 252}
!26 = !{!6, !12, i64 152}
!27 = !{!6, !12, i64 192}
!28 = !{!9, !9, i64 0}
!29 = !{!6, !19, i64 248}
!30 = !{i8 0, i8 2}
!31 = !{}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass