; LLVM IR from DarrenSweeney/3D-Physics-Engine :: Physics Engine/Imgui/imgui.ll (ZN11ImFontAtlas19RenderCustomTexDataEv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ImVec2 = type { float, float }
%struct.ImFontAtlas = type { ptr, ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %class.ImVector, %class.ImVector.0 }
%class.ImVector = type { i64, i64, ptr }
%class.ImVector.0 = type { i64, i64, ptr }

@_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_BLACK = external hidden global %struct.ImVec2, align 4
@_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_WHITE = external hidden global %struct.ImVec2, align 4
@_ZL27TEX_ATLAS_SIZE_MOUSE_CURSOR = external hidden global %struct.ImVec2, align 4
@.str.10 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [55 x i8], align 1
@__PRETTY_FUNCTION__._ZN11ImFontAtlas19RenderCustomTexDataEv = external hidden unnamed_addr constant [40 x i8], align 1
@__const._ZN11ImFontAtlas19RenderCustomTexDataEv.cursor_pixels = external hidden unnamed_addr constant [229 x i8], align 16
@.str.155 = external hidden unnamed_addr constant [99 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #0 align 2

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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ImFontAtlas19RenderCustomTexDataEv(ptr noundef nonnull align 8 dereferenceable(96) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca [229 x i8], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  %10 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 5
  %11 = getelementptr inbounds %struct.ImVec2, ptr %10, i32 0, i32 0
  %12 = load float, ptr %11, align 8, !tbaa !9
  %13 = fcmp oeq float %12, 0.000000e+00
  br i1 %13, label %14, label %19

14:                                               ; preds = %1
  %15 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 5
  %16 = getelementptr inbounds %struct.ImVec2, ptr %15, i32 0, i32 1
  %17 = load float, ptr %16, align 4, !tbaa !17
  %18 = fcmp oeq float %17, 0.000000e+00
  br label %19

19:                                               ; preds = %14, %1
  %20 = phi i1 [ false, %1 ], [ %18, %14 ]
  br i1 %20, label %21, label %22

21:                                               ; preds = %19
  br label %24

22:                                               ; preds = %19
  call void @__assert_fail(ptr noundef @.str.154, ptr noundef @.str.10, i32 noundef 7463, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas19RenderCustomTexDataEv) #5
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  %25 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 3
  %28 = load i32, ptr %27, align 8, !tbaa !19
  %29 = add nsw i32 %28, 1
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds i8, ptr %26, i64 %30
  store i8 -1, ptr %31, align 1, !tbaa !20
  %32 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !18
  %34 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 3
  %35 = load i32, ptr %34, align 8, !tbaa !19
  %36 = add nsw i32 %35, 0
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i8, ptr %33, i64 %37
  store i8 -1, ptr %38, align 1, !tbaa !20
  %39 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %40, i64 1
  store i8 -1, ptr %41, align 1, !tbaa !20
  %42 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !18
  %44 = getelementptr inbounds i8, ptr %43, i64 0
  store i8 -1, ptr %44, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %45 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 5
  %46 = getelementptr inbounds %struct.ImVec2, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 8, !tbaa !9
  %48 = fadd float %47, 5.000000e-01
  %49 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !19
  %51 = sitofp i32 %50 to float
  %52 = fdiv float %48, %51
  %53 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 5
  %54 = getelementptr inbounds %struct.ImVec2, ptr %53, i32 0, i32 1
  %55 = load float, ptr %54, align 4, !tbaa !17
  %56 = fadd float %55, 5.000000e-01
  %57 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 4
  %58 = load i32, ptr %57, align 4, !tbaa !21
  %59 = sitofp i32 %58 to float
  %60 = fdiv float %56, %59
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %52, float noundef %60)
  %61 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 229, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const._ZN11ImFontAtlas19RenderCustomTexDataEv.cursor_pixels, i64 229, i1 false)
  %62 = load float, ptr @_ZL27TEX_ATLAS_SIZE_MOUSE_CURSOR, align 4, !tbaa !24
  %63 = fptosi float %62 to i32
  %64 = load float, ptr getelementptr inbounds (%struct.ImVec2, ptr @_ZL27TEX_ATLAS_SIZE_MOUSE_CURSOR, i32 0, i32 1), align 4, !tbaa !25
  %65 = fptosi float %64 to i32
  %66 = mul nsw i32 %63, %65
  %67 = sext i32 %66 to i64
  %68 = icmp eq i64 228, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %24
  br label %72

70:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.155, ptr noundef @.str.10, i32 noundef 7493, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas19RenderCustomTexDataEv) #5
  unreachable

71:                                               ; No predecessors!
  br label %72

72:                                               ; preds = %71, %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !26
  br label %73

73:                                               ; preds = %139, %72
  %74 = load i32, ptr %5, align 4, !tbaa !26
  %75 = icmp slt i32 %74, 19
  br i1 %75, label %77, label %76

76:                                               ; preds = %73
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %142

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !26
  br label %78

78:                                               ; preds = %133, %77
  %79 = load i32, ptr %8, align 4, !tbaa !26
  %80 = icmp slt i32 %79, 12
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %138

82:                                               ; preds = %78
  %83 = load i32, ptr %6, align 4, !tbaa !26
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [229 x i8], ptr %4, i64 0, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !20
  %87 = sext i8 %86 to i32
  %88 = icmp eq i32 %87, 88
  %89 = zext i1 %88 to i64
  %90 = select i1 %88, i32 255, i32 0
  %91 = trunc i32 %90 to i8
  %92 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !18
  %94 = load float, ptr @_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_BLACK, align 4, !tbaa !24
  %95 = fptosi float %94 to i32
  %96 = load i32, ptr %8, align 4, !tbaa !26
  %97 = add nsw i32 %95, %96
  %98 = load float, ptr getelementptr inbounds (%struct.ImVec2, ptr @_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_BLACK, i32 0, i32 1), align 4, !tbaa !25
  %99 = fptosi float %98 to i32
  %100 = load i32, ptr %5, align 4, !tbaa !26
  %101 = add nsw i32 %99, %100
  %102 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 3
  %103 = load i32, ptr %102, align 8, !tbaa !19
  %104 = mul nsw i32 %101, %103
  %105 = add nsw i32 %97, %104
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i8, ptr %93, i64 %106
  store i8 %91, ptr %107, align 1, !tbaa !20
  %108 = load i32, ptr %6, align 4, !tbaa !26
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [229 x i8], ptr %4, i64 0, i64 %109
  %111 = load i8, ptr %110, align 1, !tbaa !20
  %112 = sext i8 %111 to i32
  %113 = icmp eq i32 %112, 46
  %114 = zext i1 %113 to i64
  %115 = select i1 %113, i32 255, i32 0
  %116 = trunc i32 %115 to i8
  %117 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !18
  %119 = load float, ptr @_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_WHITE, align 4, !tbaa !24
  %120 = fptosi float %119 to i32
  %121 = load i32, ptr %8, align 4, !tbaa !26
  %122 = add nsw i32 %120, %121
  %123 = load float, ptr getelementptr inbounds (%struct.ImVec2, ptr @_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_WHITE, i32 0, i32 1), align 4, !tbaa !25
  %124 = fptosi float %123 to i32
  %125 = load i32, ptr %5, align 4, !tbaa !26
  %126 = add nsw i32 %124, %125
  %127 = getelementptr inbounds %struct.ImFontAtlas, ptr %9, i32 0, i32 3
  %128 = load i32, ptr %127, align 8, !tbaa !19
  %129 = mul nsw i32 %126, %128
  %130 = add nsw i32 %122, %129
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %118, i64 %131
  store i8 %116, ptr %132, align 1, !tbaa !20
  br label %133

133:                                              ; preds = %82
  %134 = load i32, ptr %8, align 4, !tbaa !26
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %8, align 4, !tbaa !26
  %136 = load i32, ptr %6, align 4, !tbaa !26
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %6, align 4, !tbaa !26
  br label %78, !llvm.loop !27

138:                                              ; preds = %81
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %5, align 4, !tbaa !26
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %5, align 4, !tbaa !26
  br label %73, !llvm.loop !29

142:                                              ; preds = %76
  call void @llvm.lifetime.end.p0(i64 229, ptr %4) #6
  ret void
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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, !13, i64 32}
!10 = !{!"_ZTS11ImFontAtlas", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !12, i64 32, !12, i64 40, !14, i64 48, !16, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTS8ImVectorIP6ImFontE", !15, i64 0, !15, i64 8, !6, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTS8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE", !15, i64 0, !15, i64 8, !6, i64 16}
!17 = !{!10, !13, i64 36}
!18 = !{!10, !6, i64 8}
!19 = !{!10, !11, i64 24}
!20 = !{!7, !7, i64 0}
!21 = !{!10, !11, i64 28}
!22 = !{i64 0, i64 4, !23, i64 4, i64 4, !23}
!23 = !{!13, !13, i64 0}
!24 = !{!12, !13, i64 0}
!25 = !{!12, !13, i64 4}
!26 = !{!11, !11, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}


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

%struct.ImVec2 = type { float, float }

@_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_BLACK = external hidden local_unnamed_addr global %struct.ImVec2, align 4
@_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_WHITE = external hidden local_unnamed_addr global %struct.ImVec2, align 4
@_ZL27TEX_ATLAS_SIZE_MOUSE_CURSOR = external hidden local_unnamed_addr global %struct.ImVec2, align 4
@.str.10 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [55 x i8], align 1
@__PRETTY_FUNCTION__._ZN11ImFontAtlas19RenderCustomTexDataEv = external hidden unnamed_addr constant [40 x i8], align 1
@__const._ZN11ImFontAtlas19RenderCustomTexDataEv.cursor_pixels = external hidden unnamed_addr constant [229 x i8], align 16
@.str.155 = external hidden unnamed_addr constant [99 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #0 align 2

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN11ImFontAtlas19RenderCustomTexDataEv(ptr nocapture noundef nonnull align 8 dereferenceable(96) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca %struct.ImVec2, align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 32
  %4 = load float, ptr %3, align 8, !tbaa !5
  %5 = fcmp oeq float %4, 0.000000e+00
  br i1 %5, label %6, label %.critedge

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 36
  %8 = load float, ptr %7, align 4, !tbaa !16
  %9 = fcmp oeq float %8, 0.000000e+00
  br i1 %9, label %10, label %.critedge

.critedge:                                        ; preds = %1, %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.154, ptr noundef nonnull @.str.10, i32 noundef 7463, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas19RenderCustomTexDataEv) #3
  unreachable

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !17
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load i32, ptr %13, align 8, !tbaa !18
  %15 = sext i32 %14 to i64
  %16 = getelementptr i8, ptr %12, i64 %15
  %17 = getelementptr i8, ptr %16, i64 1
  store i8 -1, ptr %17, align 1, !tbaa !19
  %18 = load ptr, ptr %11, align 8, !tbaa !17
  %19 = load i32, ptr %13, align 8, !tbaa !18
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds i8, ptr %18, i64 %20
  store i8 -1, ptr %21, align 1, !tbaa !19
  %22 = load ptr, ptr %11, align 8, !tbaa !17
  %23 = getelementptr inbounds i8, ptr %22, i64 1
  store i8 -1, ptr %23, align 1, !tbaa !19
  %24 = load ptr, ptr %11, align 8, !tbaa !17
  store i8 -1, ptr %24, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %25 = load float, ptr %3, align 8, !tbaa !5
  %26 = fadd float %25, 5.000000e-01
  %27 = load i32, ptr %13, align 8, !tbaa !18
  %28 = sitofp i32 %27 to float
  %29 = fdiv float %26, %28
  %30 = load float, ptr %7, align 4, !tbaa !16
  %31 = fadd float %30, 5.000000e-01
  %32 = getelementptr inbounds i8, ptr %0, i64 28
  %33 = load i32, ptr %32, align 4, !tbaa !20
  %34 = sitofp i32 %33 to float
  %35 = fdiv float %31, %34
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef %29, float noundef %35)
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = load i64, ptr %2, align 8
  store i64 %37, ptr %36, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %38 = load <2 x float>, ptr @_ZL27TEX_ATLAS_SIZE_MOUSE_CURSOR, align 4, !tbaa !21
  %39 = fptosi <2 x float> %38 to <2 x i32>
  %40 = extractelement <2 x i32> %39, i64 0
  %41 = extractelement <2 x i32> %39, i64 1
  %42 = mul nsw i32 %41, %40
  %43 = icmp eq i32 %42, 228
  br i1 %43, label %.preheader, label %44

44:                                               ; preds = %10
  call void @__assert_fail(ptr noundef nonnull @.str.155, ptr noundef nonnull @.str.10, i32 noundef 7493, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas19RenderCustomTexDataEv) #3
  unreachable

.preheader:                                       ; preds = %10, %47
  %.01117 = phi i64 [ %indvars.iv.next, %47 ], [ 0, %10 ]
  %.01216 = phi i32 [ %48, %47 ], [ 0, %10 ]
  %sext = shl i64 %.01117, 32
  %45 = ashr exact i64 %sext, 32
  br label %49

46:                                               ; preds = %47
  ret void

47:                                               ; preds = %49
  %48 = add nuw nsw i32 %.01216, 1
  %exitcond19.not = icmp eq i32 %48, 19
  br i1 %exitcond19.not, label %46, label %.preheader, !llvm.loop !22

49:                                               ; preds = %.preheader, %49
  %indvars.iv = phi i64 [ %45, %.preheader ], [ %indvars.iv.next, %49 ]
  %.015 = phi i32 [ 0, %.preheader ], [ %80, %49 ]
  %50 = getelementptr inbounds [229 x i8], ptr @__const._ZN11ImFontAtlas19RenderCustomTexDataEv.cursor_pixels, i64 0, i64 %indvars.iv
  %51 = load i8, ptr %50, align 1, !tbaa !19
  %52 = icmp eq i8 %51, 88
  %53 = sext i1 %52 to i8
  %54 = load ptr, ptr %11, align 8, !tbaa !17
  %55 = load float, ptr @_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_BLACK, align 4, !tbaa !24
  %56 = fptosi float %55 to i32
  %57 = add nsw i32 %.015, %56
  %58 = load float, ptr getelementptr inbounds (i8, ptr @_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_BLACK, i64 4), align 4, !tbaa !25
  %59 = fptosi float %58 to i32
  %60 = add nsw i32 %.01216, %59
  %61 = load i32, ptr %13, align 8, !tbaa !18
  %62 = mul nsw i32 %60, %61
  %63 = add nsw i32 %57, %62
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i8, ptr %54, i64 %64
  store i8 %53, ptr %65, align 1, !tbaa !19
  %66 = icmp eq i8 %51, 46
  %67 = sext i1 %66 to i8
  %68 = load ptr, ptr %11, align 8, !tbaa !17
  %69 = load float, ptr @_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_WHITE, align 4, !tbaa !24
  %70 = fptosi float %69 to i32
  %71 = add nsw i32 %.015, %70
  %72 = load float, ptr getelementptr inbounds (i8, ptr @_ZL32TEX_ATLAS_POS_MOUSE_CURSOR_WHITE, i64 4), align 4, !tbaa !25
  %73 = fptosi float %72 to i32
  %74 = add nsw i32 %.01216, %73
  %75 = load i32, ptr %13, align 8, !tbaa !18
  %76 = mul nsw i32 %74, %75
  %77 = add nsw i32 %71, %76
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %68, i64 %78
  store i8 %67, ptr %79, align 1, !tbaa !19
  %80 = add nuw nsw i32 %.015, 1
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i32 %80, 12
  br i1 %exitcond.not, label %47, label %49, !llvm.loop !26
}

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind }
attributes #4 = { 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 32}
!6 = !{!"_ZTS11ImFontAtlas", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !11, i64 32, !11, i64 40, !13, i64 48, !15, i64 72}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_ZTS8ImVectorIP6ImFontE", !14, i64 0, !14, i64 8, !7, i64 16}
!14 = !{!"long", !8, i64 0}
!15 = !{!"_ZTS8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE", !14, i64 0, !14, i64 8, !7, i64 16}
!16 = !{!6, !12, i64 36}
!17 = !{!6, !7, i64 8}
!18 = !{!6, !10, i64 24}
!19 = !{!8, !8, i64 0}
!20 = !{!6, !10, i64 28}
!21 = !{!12, !12, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!11, !12, i64 0}
!25 = !{!11, !12, i64 4}
!26 = distinct !{!26, !23}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass