; LLVM IR from xhub/reshop :: gui/external/imgui/imgui_draw.ll (ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff)

; 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.ImFontConfig = type { ptr, i32, i8, i32, float, i32, i32, i8, %struct.ImVec2, %struct.ImVec2, ptr, float, float, i8, i32, float, float, i16, [40 x i8], ptr }
%struct.ImVec2 = type { float, float }
%struct.ImFont = type <{ %struct.ImVector.7, float, float, %struct.ImVector.1, %struct.ImVector.8, ptr, ptr, ptr, i16, i16, i16, i16, float, float, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImFontGlyph = type { i32, float, float, float, float, float, float, float, float, float }
%struct.ImFontAtlas = type <{ i32, [4 x i8], i64, i32, i32, i8, [7 x i8], ptr, i8, i8, [6 x i8], ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, [64 x %struct.ImVec4], ptr, i32, i32, i32, [4 x i8] }>
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef, float noundef, float noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImTruncf(float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff(ptr noundef nonnull align 8 dereferenceable(118) %0, ptr noundef %1, i16 noundef zeroext %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10, float noundef %11) #3 align 2 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i16, align 2
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca float, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store i16 %2, ptr %15, align 2, !tbaa !9
  store float %3, ptr %16, align 4, !tbaa !11
  store float %4, ptr %17, align 4, !tbaa !11
  store float %5, ptr %18, align 4, !tbaa !11
  store float %6, ptr %19, align 4, !tbaa !11
  store float %7, ptr %20, align 4, !tbaa !11
  store float %8, ptr %21, align 4, !tbaa !11
  store float %9, ptr %22, align 4, !tbaa !11
  store float %10, ptr %23, align 4, !tbaa !11
  store float %11, ptr %24, align 4, !tbaa !11
  %30 = load ptr, ptr %13, align 8
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %87

33:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %34 = load float, ptr %24, align 4, !tbaa !11
  store float %34, ptr %25, align 4, !tbaa !11
  %35 = load float, ptr %24, align 4, !tbaa !11
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImFontConfig, ptr %36, i32 0, i32 11
  %38 = load float, ptr %37, align 8, !tbaa !13
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImFontConfig, ptr %39, i32 0, i32 12
  %41 = load float, ptr %40, align 4, !tbaa !18
  %42 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %35, float noundef %38, float noundef %41)
  store float %42, ptr %24, align 4, !tbaa !11
  %43 = load float, ptr %24, align 4, !tbaa !11
  %44 = load float, ptr %25, align 4, !tbaa !11
  %45 = fcmp une float %43, %44
  br i1 %45, label %46, label %70

46:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImFontConfig, ptr %47, i32 0, i32 7
  %49 = load i8, ptr %48, align 8, !tbaa !19, !range !20, !noundef !21
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %57

51:                                               ; preds = %46
  %52 = load float, ptr %24, align 4, !tbaa !11
  %53 = load float, ptr %25, align 4, !tbaa !11
  %54 = fsub float %52, %53
  %55 = fmul float %54, 5.000000e-01
  %56 = call noundef float @_ZL7ImTruncf(float noundef %55)
  br label %62

57:                                               ; preds = %46
  %58 = load float, ptr %24, align 4, !tbaa !11
  %59 = load float, ptr %25, align 4, !tbaa !11
  %60 = fsub float %58, %59
  %61 = fmul float %60, 5.000000e-01
  br label %62

62:                                               ; preds = %57, %51
  %63 = phi float [ %56, %51 ], [ %61, %57 ]
  store float %63, ptr %26, align 4, !tbaa !11
  %64 = load float, ptr %26, align 4, !tbaa !11
  %65 = load float, ptr %16, align 4, !tbaa !11
  %66 = fadd float %65, %64
  store float %66, ptr %16, align 4, !tbaa !11
  %67 = load float, ptr %26, align 4, !tbaa !11
  %68 = load float, ptr %18, align 4, !tbaa !11
  %69 = fadd float %68, %67
  store float %69, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %70

70:                                               ; preds = %62, %33
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ImFontConfig, ptr %71, i32 0, i32 7
  %73 = load i8, ptr %72, align 8, !tbaa !19, !range !20, !noundef !21
  %74 = trunc i8 %73 to i1
  br i1 %74, label %75, label %80

75:                                               ; preds = %70
  %76 = load float, ptr %24, align 4, !tbaa !11
  %77 = fadd float %76, 5.000000e-01
  %78 = fptosi float %77 to i32
  %79 = sitofp i32 %78 to float
  store float %79, ptr %24, align 4, !tbaa !11
  br label %80

80:                                               ; preds = %75, %70
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImFontConfig, ptr %81, i32 0, i32 8
  %83 = getelementptr inbounds %struct.ImVec2, ptr %82, i32 0, i32 0
  %84 = load float, ptr %83, align 4, !tbaa !22
  %85 = load float, ptr %24, align 4, !tbaa !11
  %86 = fadd float %85, %84
  store float %86, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %87

87:                                               ; preds = %80, %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %88 = getelementptr inbounds %struct.ImFont, ptr %30, i32 0, i32 4
  %89 = getelementptr inbounds %struct.ImVector.8, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !23
  store i32 %90, ptr %27, align 4, !tbaa !28
  %91 = getelementptr inbounds %struct.ImFont, ptr %30, i32 0, i32 4
  %92 = getelementptr inbounds %struct.ImFont, ptr %30, i32 0, i32 4
  %93 = getelementptr inbounds %struct.ImVector.8, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !23
  %95 = add nsw i32 %94, 1
  call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %91, i32 noundef %95)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %96 = getelementptr inbounds %struct.ImFont, ptr %30, i32 0, i32 4
  %97 = load i32, ptr %27, align 4, !tbaa !28
  %98 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %96, i32 noundef %97)
  store ptr %98, ptr %28, align 8, !tbaa !5
  %99 = load i16, ptr %15, align 2, !tbaa !9
  %100 = zext i16 %99 to i32
  %101 = load ptr, ptr %28, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4
  %103 = and i32 %100, 1073741823
  %104 = shl i32 %103, 2
  %105 = and i32 %102, 3
  %106 = or i32 %105, %104
  store i32 %106, ptr %101, align 4
  %107 = load float, ptr %16, align 4, !tbaa !11
  %108 = load float, ptr %18, align 4, !tbaa !11
  %109 = fcmp une float %107, %108
  br i1 %109, label %110, label %114

110:                                              ; preds = %87
  %111 = load float, ptr %17, align 4, !tbaa !11
  %112 = load float, ptr %19, align 4, !tbaa !11
  %113 = fcmp une float %111, %112
  br label %114

114:                                              ; preds = %110, %87
  %115 = phi i1 [ false, %87 ], [ %113, %110 ]
  %116 = zext i1 %115 to i32
  %117 = load ptr, ptr %28, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4
  %119 = and i32 %116, 1
  %120 = shl i32 %119, 1
  %121 = and i32 %118, -3
  %122 = or i32 %121, %120
  store i32 %122, ptr %117, align 4
  %123 = load ptr, ptr %28, align 8, !tbaa !5
  %124 = load i32, ptr %123, align 4
  %125 = and i32 %124, -2
  %126 = or i32 %125, 0
  store i32 %126, ptr %123, align 4
  %127 = load float, ptr %16, align 4, !tbaa !11
  %128 = load ptr, ptr %28, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ImFontGlyph, ptr %128, i32 0, i32 2
  store float %127, ptr %129, align 4, !tbaa !29
  %130 = load float, ptr %17, align 4, !tbaa !11
  %131 = load ptr, ptr %28, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ImFontGlyph, ptr %131, i32 0, i32 3
  store float %130, ptr %132, align 4, !tbaa !31
  %133 = load float, ptr %18, align 4, !tbaa !11
  %134 = load ptr, ptr %28, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ImFontGlyph, ptr %134, i32 0, i32 4
  store float %133, ptr %135, align 4, !tbaa !32
  %136 = load float, ptr %19, align 4, !tbaa !11
  %137 = load ptr, ptr %28, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ImFontGlyph, ptr %137, i32 0, i32 5
  store float %136, ptr %138, align 4, !tbaa !33
  %139 = load float, ptr %20, align 4, !tbaa !11
  %140 = load ptr, ptr %28, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ImFontGlyph, ptr %140, i32 0, i32 6
  store float %139, ptr %141, align 4, !tbaa !34
  %142 = load float, ptr %21, align 4, !tbaa !11
  %143 = load ptr, ptr %28, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ImFontGlyph, ptr %143, i32 0, i32 7
  store float %142, ptr %144, align 4, !tbaa !35
  %145 = load float, ptr %22, align 4, !tbaa !11
  %146 = load ptr, ptr %28, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ImFontGlyph, ptr %146, i32 0, i32 8
  store float %145, ptr %147, align 4, !tbaa !36
  %148 = load float, ptr %23, align 4, !tbaa !11
  %149 = load ptr, ptr %28, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImFontGlyph, ptr %149, i32 0, i32 9
  store float %148, ptr %150, align 4, !tbaa !37
  %151 = load float, ptr %24, align 4, !tbaa !11
  %152 = load ptr, ptr %28, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ImFontGlyph, ptr %152, i32 0, i32 1
  store float %151, ptr %153, align 4, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %154 = getelementptr inbounds %struct.ImFont, ptr %30, i32 0, i32 6
  %155 = load ptr, ptr %154, align 8, !tbaa !39
  %156 = getelementptr inbounds %struct.ImFontAtlas, ptr %155, i32 0, i32 4
  %157 = load i32, ptr %156, align 4, !tbaa !40
  %158 = sitofp i32 %157 to float
  %159 = fadd float %158, 0x3FEFAE1480000000
  store float %159, ptr %29, align 4, !tbaa !11
  %160 = getelementptr inbounds %struct.ImFont, ptr %30, i32 0, i32 14
  store i8 1, ptr %160, align 8, !tbaa !46
  %161 = load ptr, ptr %28, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ImFontGlyph, ptr %161, i32 0, i32 8
  %163 = load float, ptr %162, align 4, !tbaa !36
  %164 = load ptr, ptr %28, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.ImFontGlyph, ptr %164, i32 0, i32 6
  %166 = load float, ptr %165, align 4, !tbaa !34
  %167 = fsub float %163, %166
  %168 = getelementptr inbounds %struct.ImFont, ptr %30, i32 0, i32 6
  %169 = load ptr, ptr %168, align 8, !tbaa !39
  %170 = getelementptr inbounds %struct.ImFontAtlas, ptr %169, i32 0, i32 13
  %171 = load i32, ptr %170, align 8, !tbaa !47
  %172 = sitofp i32 %171 to float
  %173 = load float, ptr %29, align 4, !tbaa !11
  %174 = call float @llvm.fmuladd.f32(float %167, float %172, float %173)
  %175 = fptosi float %174 to i32
  %176 = load ptr, ptr %28, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.ImFontGlyph, ptr %176, i32 0, i32 9
  %178 = load float, ptr %177, align 4, !tbaa !37
  %179 = load ptr, ptr %28, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.ImFontGlyph, ptr %179, i32 0, i32 7
  %181 = load float, ptr %180, align 4, !tbaa !35
  %182 = fsub float %178, %181
  %183 = getelementptr inbounds %struct.ImFont, ptr %30, i32 0, i32 6
  %184 = load ptr, ptr %183, align 8, !tbaa !39
  %185 = getelementptr inbounds %struct.ImFontAtlas, ptr %184, i32 0, i32 14
  %186 = load i32, ptr %185, align 4, !tbaa !48
  %187 = sitofp i32 %186 to float
  %188 = load float, ptr %29, align 4, !tbaa !11
  %189 = call float @llvm.fmuladd.f32(float %182, float %187, float %188)
  %190 = fptosi float %189 to i32
  %191 = mul nsw i32 %175, %190
  %192 = getelementptr inbounds %struct.ImFont, ptr %30, i32 0, i32 19
  %193 = load i32, ptr %192, align 8, !tbaa !49
  %194 = add nsw i32 %193, %191
  store i32 %194, ptr %192, align 8, !tbaa !49
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 = { 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 #5 = { 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 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 64}
!14 = !{!"_ZTS12ImFontConfig", !6, i64 0, !15, i64 8, !16, i64 12, !15, i64 16, !12, i64 20, !15, i64 24, !15, i64 28, !16, i64 32, !17, i64 36, !17, i64 44, !6, i64 56, !12, i64 64, !12, i64 68, !16, i64 72, !15, i64 76, !12, i64 80, !12, i64 84, !10, i64 88, !7, i64 90, !6, i64 136}
!15 = !{!"int", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!18 = !{!14, !12, i64 68}
!19 = !{!14, !16, i64 32}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!14, !12, i64 36}
!23 = !{!24, !15, i64 40}
!24 = !{!"_ZTS6ImFont", !25, i64 0, !12, i64 16, !12, i64 20, !26, i64 24, !27, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !10, i64 82, !10, i64 84, !10, i64 86, !12, i64 88, !12, i64 92, !16, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !15, i64 112, !7, i64 116}
!25 = !{!"_ZTS8ImVectorIfE", !15, i64 0, !15, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorItE", !15, i64 0, !15, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !15, i64 0, !15, i64 4, !6, i64 8}
!28 = !{!15, !15, i64 0}
!29 = !{!30, !12, i64 8}
!30 = !{!"_ZTS11ImFontGlyph", !15, i64 0, !15, i64 0, !15, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36}
!31 = !{!30, !12, i64 12}
!32 = !{!30, !12, i64 16}
!33 = !{!30, !12, i64 20}
!34 = !{!30, !12, i64 24}
!35 = !{!30, !12, i64 28}
!36 = !{!30, !12, i64 32}
!37 = !{!30, !12, i64 36}
!38 = !{!30, !12, i64 4}
!39 = !{!24, !6, i64 64}
!40 = !{!41, !15, i64 20}
!41 = !{!"_ZTS11ImFontAtlas", !15, i64 0, !42, i64 8, !15, i64 16, !15, i64 20, !16, i64 24, !6, i64 32, !16, i64 40, !16, i64 41, !6, i64 48, !6, i64 56, !15, i64 64, !15, i64 68, !17, i64 72, !17, i64 80, !43, i64 88, !44, i64 104, !45, i64 120, !7, i64 136, !6, i64 1160, !15, i64 1168, !15, i64 1172, !15, i64 1176}
!42 = !{!"long long", !7, i64 0}
!43 = !{!"_ZTS8ImVectorIP6ImFontE", !15, i64 0, !15, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !15, i64 0, !15, i64 4, !6, i64 8}
!45 = !{!"_ZTS8ImVectorI12ImFontConfigE", !15, i64 0, !15, i64 4, !6, i64 8}
!46 = !{!24, !16, i64 96}
!47 = !{!41, !15, i64 64}
!48 = !{!41, !15, i64 68}
!49 = !{!24, !15, i64 112}


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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImTruncf(float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff(ptr noundef nonnull align 8 dereferenceable(118) %0, ptr noundef readonly %1, i16 noundef zeroext %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10, float noundef %11) local_unnamed_addr #2 align 2 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %42, label %13

13:                                               ; preds = %12
  %14 = getelementptr inbounds i8, ptr %1, i64 64
  %15 = load float, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 68
  %17 = load float, ptr %16, align 4, !tbaa !15
  %18 = tail call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %11, float noundef %15, float noundef %17)
  %19 = fcmp une float %18, %11
  br i1 %19, label %20, label %32

20:                                               ; preds = %13
  %21 = getelementptr inbounds i8, ptr %1, i64 32
  %22 = load i8, ptr %21, align 8, !tbaa !16, !range !17, !noundef !18
  %23 = trunc nuw i8 %22 to i1
  %24 = fsub float %18, %11
  %25 = fmul float %24, 5.000000e-01
  br i1 %23, label %26, label %28

26:                                               ; preds = %20
  %27 = tail call noundef float @_ZL7ImTruncf(float noundef %25)
  br label %28

28:                                               ; preds = %20, %26
  %29 = phi float [ %27, %26 ], [ %25, %20 ]
  %30 = fadd float %29, %3
  %31 = fadd float %29, %5
  br label %32

32:                                               ; preds = %28, %13
  %.053 = phi float [ %31, %28 ], [ %5, %13 ]
  %.0 = phi float [ %30, %28 ], [ %3, %13 ]
  %33 = getelementptr inbounds i8, ptr %1, i64 32
  %34 = load i8, ptr %33, align 8, !tbaa !16, !range !17, !noundef !18
  %35 = trunc nuw i8 %34 to i1
  %36 = fadd float %18, 5.000000e-01
  %37 = fptosi float %36 to i32
  %38 = sitofp i32 %37 to float
  %.055 = select i1 %35, float %38, float %18
  %39 = getelementptr inbounds i8, ptr %1, i64 36
  %40 = load float, ptr %39, align 4, !tbaa !19
  %41 = fadd float %40, %.055
  br label %42

42:                                               ; preds = %32, %12
  %.156 = phi float [ %41, %32 ], [ %11, %12 ]
  %.154 = phi float [ %.053, %32 ], [ %5, %12 ]
  %.1 = phi float [ %.0, %32 ], [ %3, %12 ]
  %43 = getelementptr inbounds i8, ptr %0, i64 40
  %44 = load i32, ptr %43, align 8, !tbaa !20
  %45 = add nsw i32 %44, 1
  tail call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %45)
  %46 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %44)
  %47 = zext i16 %2 to i32
  %48 = shl nuw nsw i32 %47, 2
  %49 = fcmp une float %.1, %.154
  %50 = fcmp une float %4, %6
  %51 = and i1 %50, %49
  %52 = select i1 %51, i32 2, i32 0
  %53 = or disjoint i32 %52, %48
  store i32 %53, ptr %46, align 4
  %54 = getelementptr inbounds i8, ptr %46, i64 8
  store float %.1, ptr %54, align 4, !tbaa !25
  %55 = getelementptr inbounds i8, ptr %46, i64 12
  store float %4, ptr %55, align 4, !tbaa !27
  %56 = getelementptr inbounds i8, ptr %46, i64 16
  store float %.154, ptr %56, align 4, !tbaa !28
  %57 = getelementptr inbounds i8, ptr %46, i64 20
  store float %6, ptr %57, align 4, !tbaa !29
  %58 = getelementptr inbounds i8, ptr %46, i64 24
  store float %7, ptr %58, align 4, !tbaa !30
  %59 = getelementptr inbounds i8, ptr %46, i64 28
  store float %8, ptr %59, align 4, !tbaa !31
  %60 = getelementptr inbounds i8, ptr %46, i64 32
  store float %9, ptr %60, align 4, !tbaa !32
  %61 = getelementptr inbounds i8, ptr %46, i64 36
  store float %10, ptr %61, align 4, !tbaa !33
  %62 = getelementptr inbounds i8, ptr %46, i64 4
  store float %.156, ptr %62, align 4, !tbaa !34
  %63 = getelementptr inbounds i8, ptr %0, i64 64
  %64 = load ptr, ptr %63, align 8, !tbaa !35
  %65 = getelementptr inbounds i8, ptr %64, i64 20
  %66 = load i32, ptr %65, align 4, !tbaa !36
  %67 = sitofp i32 %66 to float
  %68 = fadd float %67, 0x3FEFAE1480000000
  %69 = getelementptr inbounds i8, ptr %0, i64 96
  store i8 1, ptr %69, align 8, !tbaa !42
  %70 = fsub float %9, %7
  %71 = getelementptr inbounds i8, ptr %64, i64 64
  %72 = load i32, ptr %71, align 8, !tbaa !43
  %73 = sitofp i32 %72 to float
  %74 = tail call float @llvm.fmuladd.f32(float %70, float %73, float %68)
  %75 = fptosi float %74 to i32
  %76 = fsub float %10, %8
  %77 = getelementptr inbounds i8, ptr %64, i64 68
  %78 = load i32, ptr %77, align 4, !tbaa !44
  %79 = sitofp i32 %78 to float
  %80 = tail call float @llvm.fmuladd.f32(float %76, float %79, float %68)
  %81 = fptosi float %80 to i32
  %82 = mul nsw i32 %81, %75
  %83 = getelementptr inbounds i8, ptr %0, i64 112
  %84 = load i32, ptr %83, align 8, !tbaa !45
  %85 = add nsw i32 %82, %84
  store i32 %85, ptr %83, align 8, !tbaa !45
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 = { 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" }

!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 64}
!6 = !{!"_ZTS12ImFontConfig", !7, i64 0, !10, i64 8, !11, i64 12, !10, i64 16, !12, i64 20, !10, i64 24, !10, i64 28, !11, i64 32, !13, i64 36, !13, i64 44, !7, i64 56, !12, i64 64, !12, i64 68, !11, i64 72, !10, i64 76, !12, i64 80, !12, i64 84, !14, i64 88, !8, i64 90, !7, i64 136}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!14 = !{!"short", !8, i64 0}
!15 = !{!6, !12, i64 68}
!16 = !{!6, !11, i64 32}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !12, i64 36}
!20 = !{!21, !10, i64 40}
!21 = !{!"_ZTS6ImFont", !22, i64 0, !12, i64 16, !12, i64 20, !23, i64 24, !24, i64 40, !7, i64 56, !7, i64 64, !7, i64 72, !14, i64 80, !14, i64 82, !14, i64 84, !14, i64 86, !12, i64 88, !12, i64 92, !11, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !10, i64 112, !8, i64 116}
!22 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !7, i64 8}
!23 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !7, i64 8}
!25 = !{!26, !12, i64 8}
!26 = !{!"_ZTS11ImFontGlyph", !10, i64 0, !10, i64 0, !10, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36}
!27 = !{!26, !12, i64 12}
!28 = !{!26, !12, i64 16}
!29 = !{!26, !12, i64 20}
!30 = !{!26, !12, i64 24}
!31 = !{!26, !12, i64 28}
!32 = !{!26, !12, i64 32}
!33 = !{!26, !12, i64 36}
!34 = !{!26, !12, i64 4}
!35 = !{!21, !7, i64 64}
!36 = !{!37, !10, i64 20}
!37 = !{!"_ZTS11ImFontAtlas", !10, i64 0, !38, i64 8, !10, i64 16, !10, i64 20, !11, i64 24, !7, i64 32, !11, i64 40, !11, i64 41, !7, i64 48, !7, i64 56, !10, i64 64, !10, i64 68, !13, i64 72, !13, i64 80, !39, i64 88, !40, i64 104, !41, i64 120, !8, i64 136, !7, i64 1160, !10, i64 1168, !10, i64 1172, !10, i64 1176}
!38 = !{!"long long", !8, i64 0}
!39 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !7, i64 8}
!40 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !10, i64 0, !10, i64 4, !7, i64 8}
!41 = !{!"_ZTS8ImVectorI12ImFontConfigE", !10, i64 0, !10, i64 4, !7, i64 8}
!42 = !{!21, !11, i64 96}
!43 = !{!37, !10, i64 64}
!44 = !{!37, !10, i64 68}
!45 = !{!21, !10, i64 112}


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