; LLVM IR from erwincoumans/tiny-differentiable-simulator :: src/visualizer/opengl/tiny_font_stash.ll (Z12sth_dim_textP9sth_stashifPKcPfS3_S3_S3_)

; 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.sth_quad = type { float, float, float, float, float, float, float, float }
%struct.sth_stash = type { i32, i32, float, float, ptr, ptr, i32, ptr }
%struct.sth_font = type { i32, i32, %struct.stbtt_fontinfo, ptr, ptr, [256 x i32], i32, float, float, float, ptr }
%struct.stbtt_fontinfo = type { ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

; 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: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL7decutf8PjS_j(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL9get_glyphP9sth_stashP8sth_fontjs(ptr noundef, ptr noundef, i32 noundef, i16 noundef signext) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL8get_quadP9sth_stashP8sth_fontP9sth_glyphsPfS5_P8sth_quad(ptr noundef, ptr noundef, ptr noundef, i16 noundef signext, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12sth_dim_textP9sth_stashifPKcPfS3_S3_S3_(ptr noundef %0, i32 noundef %1, float noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %struct.sth_quad, align 4
  %21 = alloca i16, align 2
  %22 = alloca ptr, align 8
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store float %2, ptr %11, align 4, !tbaa !11
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #3
  %26 = load float, ptr %11, align 4, !tbaa !11
  %27 = fmul float %26, 1.000000e+01
  %28 = fptosi float %27 to i16
  store i16 %28, ptr %21, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store float 0.000000e+00, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store float 0.000000e+00, ptr %24, align 4, !tbaa !11
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %8
  store i32 1, ptr %25, align 4
  br label %152

32:                                               ; preds = %8
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.sth_stash, ptr %33, i32 0, i32 4
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %36 = icmp ne ptr %35, null
  br i1 %36, label %38, label %37

37:                                               ; preds = %32
  store i32 1, ptr %25, align 4
  br label %152

38:                                               ; preds = %32
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.sth_stash, ptr %39, i32 0, i32 5
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  store ptr %41, ptr %22, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %53, %38
  %43 = load ptr, ptr %22, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %51

45:                                               ; preds = %42
  %46 = load ptr, ptr %22, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.sth_font, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !18
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = icmp ne i32 %48, %49
  br label %51

51:                                               ; preds = %45, %42
  %52 = phi i1 [ false, %42 ], [ %50, %45 ]
  br i1 %52, label %53, label %57

53:                                               ; preds = %51
  %54 = load ptr, ptr %22, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.sth_font, ptr %54, i32 0, i32 10
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  store ptr %56, ptr %22, align 8, !tbaa !5
  br label %42, !llvm.loop !22

57:                                               ; preds = %51
  %58 = load ptr, ptr %22, align 8, !tbaa !5
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  store i32 1, ptr %25, align 4
  br label %152

61:                                               ; preds = %57
  %62 = load ptr, ptr %22, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.sth_font, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 4, !tbaa !24
  %65 = icmp ne i32 %64, 3
  br i1 %65, label %66, label %72

66:                                               ; preds = %61
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.sth_font, ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !25
  %70 = icmp ne ptr %69, null
  br i1 %70, label %72, label %71

71:                                               ; preds = %66
  store i32 1, ptr %25, align 4
  br label %152

72:                                               ; preds = %66, %61
  %73 = load float, ptr %23, align 4, !tbaa !11
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  store float %73, ptr %74, align 4, !tbaa !11
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  store float %73, ptr %75, align 4, !tbaa !11
  %76 = load float, ptr %24, align 4, !tbaa !11
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  store float %76, ptr %77, align 4, !tbaa !11
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  store float %76, ptr %78, align 4, !tbaa !11
  br label %79

79:                                               ; preds = %148, %72
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = load i8, ptr %80, align 1, !tbaa !26
  %82 = icmp ne i8 %81, 0
  br i1 %82, label %83, label %151

83:                                               ; preds = %79
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = load i8, ptr %84, align 1, !tbaa !26
  %86 = zext i8 %85 to i32
  %87 = call noundef i32 @_ZL7decutf8PjS_j(ptr noundef %19, ptr noundef %17, i32 noundef %86)
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %83
  br label %148

90:                                               ; preds = %83
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = load ptr, ptr %22, align 8, !tbaa !5
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = load i16, ptr %21, align 2, !tbaa !13
  %95 = call noundef ptr @_ZL9get_glyphP9sth_stashP8sth_fontjs(ptr noundef %91, ptr noundef %92, i32 noundef %93, i16 noundef signext %94)
  store ptr %95, ptr %18, align 8, !tbaa !5
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  br i1 %97, label %99, label %98

98:                                               ; preds = %90
  br label %148

99:                                               ; preds = %90
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = load ptr, ptr %22, align 8, !tbaa !5
  %102 = load ptr, ptr %18, align 8, !tbaa !5
  %103 = load i16, ptr %21, align 2, !tbaa !13
  %104 = call noundef i32 @_ZL8get_quadP9sth_stashP8sth_fontP9sth_glyphsPfS5_P8sth_quad(ptr noundef %100, ptr noundef %101, ptr noundef %102, i16 noundef signext %103, ptr noundef %23, ptr noundef %24, ptr noundef %20)
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %107, label %106

106:                                              ; preds = %99
  br label %148

107:                                              ; preds = %99
  %108 = getelementptr inbounds %struct.sth_quad, ptr %20, i32 0, i32 0
  %109 = load float, ptr %108, align 4, !tbaa !27
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = load float, ptr %110, align 4, !tbaa !11
  %112 = fcmp olt float %109, %111
  br i1 %112, label %113, label %117

113:                                              ; preds = %107
  %114 = getelementptr inbounds %struct.sth_quad, ptr %20, i32 0, i32 0
  %115 = load float, ptr %114, align 4, !tbaa !27
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  store float %115, ptr %116, align 4, !tbaa !11
  br label %117

117:                                              ; preds = %113, %107
  %118 = getelementptr inbounds %struct.sth_quad, ptr %20, i32 0, i32 4
  %119 = load float, ptr %118, align 4, !tbaa !29
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = load float, ptr %120, align 4, !tbaa !11
  %122 = fcmp ogt float %119, %121
  br i1 %122, label %123, label %127

123:                                              ; preds = %117
  %124 = getelementptr inbounds %struct.sth_quad, ptr %20, i32 0, i32 4
  %125 = load float, ptr %124, align 4, !tbaa !29
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  store float %125, ptr %126, align 4, !tbaa !11
  br label %127

127:                                              ; preds = %123, %117
  %128 = getelementptr inbounds %struct.sth_quad, ptr %20, i32 0, i32 5
  %129 = load float, ptr %128, align 4, !tbaa !30
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load float, ptr %130, align 4, !tbaa !11
  %132 = fcmp olt float %129, %131
  br i1 %132, label %133, label %137

133:                                              ; preds = %127
  %134 = getelementptr inbounds %struct.sth_quad, ptr %20, i32 0, i32 5
  %135 = load float, ptr %134, align 4, !tbaa !30
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  store float %135, ptr %136, align 4, !tbaa !11
  br label %137

137:                                              ; preds = %133, %127
  %138 = getelementptr inbounds %struct.sth_quad, ptr %20, i32 0, i32 1
  %139 = load float, ptr %138, align 4, !tbaa !31
  %140 = load ptr, ptr %16, align 8, !tbaa !5
  %141 = load float, ptr %140, align 4, !tbaa !11
  %142 = fcmp ogt float %139, %141
  br i1 %142, label %143, label %147

143:                                              ; preds = %137
  %144 = getelementptr inbounds %struct.sth_quad, ptr %20, i32 0, i32 1
  %145 = load float, ptr %144, align 4, !tbaa !31
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  store float %145, ptr %146, align 4, !tbaa !11
  br label %147

147:                                              ; preds = %143, %137
  br label %148

148:                                              ; preds = %147, %106, %98, %89
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i32 1
  store ptr %150, ptr %12, align 8, !tbaa !5
  br label %79, !llvm.loop !32

151:                                              ; preds = %79
  store i32 0, ptr %25, align 4
  br label %152

152:                                              ; preds = %151, %71, %60, %37, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  %153 = load i32, ptr %25, align 4
  switch i32 %153, label %155 [
    i32 0, label %154
    i32 1, label %154
  ]

154:                                              ; preds = %152, %152
  ret void

155:                                              ; preds = %152
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"_ZTS9sth_stash", !10, i64 0, !10, i64 4, !12, i64 8, !12, i64 12, !6, i64 16, !6, i64 24, !10, i64 32, !6, i64 40}
!17 = !{!16, !6, i64 24}
!18 = !{!19, !10, i64 0}
!19 = !{!"_ZTS8sth_font", !10, i64 0, !10, i64 4, !20, i64 8, !6, i64 64, !6, i64 72, !7, i64 80, !10, i64 1104, !12, i64 1108, !12, i64 1112, !12, i64 1116, !6, i64 1120}
!20 = !{!"_ZTS14stbtt_fontinfo", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!21 = !{!19, !6, i64 1120}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!19, !10, i64 4}
!25 = !{!19, !6, i64 64}
!26 = !{!7, !7, i64 0}
!27 = !{!28, !12, i64 0}
!28 = !{!"_ZTS8sth_quad", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!29 = !{!28, !12, i64 16}
!30 = !{!28, !12, i64 20}
!31 = !{!28, !12, i64 4}
!32 = distinct !{!32, !23}


; 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.sth_quad = type { float, float, float, float, float, float, float, float }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL7decutf8PjS_j(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL9get_glyphP9sth_stashP8sth_fontjs(ptr noundef, ptr noundef, i32 noundef, i16 noundef signext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL8get_quadP9sth_stashP8sth_fontP9sth_glyphsPfS5_P8sth_quad(ptr noundef, ptr noundef, ptr noundef, i16 noundef signext, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12sth_dim_textP9sth_stashifPKcPfS3_S3_S3_(ptr noundef %0, i32 noundef %1, float noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef %4, ptr nocapture noundef %5, ptr nocapture noundef %6, ptr nocapture noundef %7) local_unnamed_addr #2 {
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.sth_quad, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #3
  %14 = fmul float %2, 1.000000e+01
  %15 = fptosi float %14 to i16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  store float 0.000000e+00, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  %16 = icmp eq ptr %0, null
  br i1 %16, label %.loopexit, label %17

17:                                               ; preds = %8
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %.not = icmp eq ptr %19, null
  br i1 %.not, label %.loopexit, label %20

20:                                               ; preds = %17
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %.051 = load ptr, ptr %21, align 8, !tbaa !14
  %cond52 = icmp eq ptr %.051, null
  br i1 %cond52, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %20, %23
  %.053 = phi ptr [ %.0, %23 ], [ %.051, %20 ]
  %22 = load i32, ptr %.053, align 8, !tbaa !15
  %.not42 = icmp eq i32 %22, %1
  br i1 %.not42, label %.critedge, label %23

23:                                               ; preds = %.lr.ph
  %24 = getelementptr inbounds i8, ptr %.053, i64 1120
  %.0 = load ptr, ptr %24, align 8, !tbaa !14
  %cond = icmp eq ptr %.0, null
  br i1 %cond, label %.loopexit, label %.lr.ph, !llvm.loop !18

.critedge:                                        ; preds = %.lr.ph
  %25 = getelementptr inbounds i8, ptr %.053, i64 4
  %26 = load i32, ptr %25, align 4, !tbaa !20
  %.not43 = icmp eq i32 %26, 3
  br i1 %.not43, label %30, label %27

27:                                               ; preds = %.critedge
  %28 = getelementptr inbounds i8, ptr %.053, i64 64
  %29 = load ptr, ptr %28, align 8, !tbaa !21
  %.not44 = icmp eq ptr %29, null
  br i1 %.not44, label %.loopexit, label %30

30:                                               ; preds = %27, %.critedge
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  store float 0.000000e+00, ptr %4, align 4, !tbaa !9
  store float 0.000000e+00, ptr %7, align 4, !tbaa !9
  store float 0.000000e+00, ptr %5, align 4, !tbaa !9
  %31 = load i8, ptr %3, align 1, !tbaa !22
  %.not4554 = icmp eq i8 %31, 0
  br i1 %.not4554, label %.loopexit, label %.lr.ph56

.lr.ph56:                                         ; preds = %30
  %32 = getelementptr inbounds i8, ptr %11, i64 16
  %33 = getelementptr inbounds i8, ptr %11, i64 20
  %34 = getelementptr inbounds i8, ptr %11, i64 4
  br label %35

35:                                               ; preds = %.lr.ph56, %64
  %36 = phi i8 [ %31, %.lr.ph56 ], [ %66, %64 ]
  %.03355 = phi ptr [ %3, %.lr.ph56 ], [ %65, %64 ]
  %37 = zext i8 %36 to i32
  %38 = call noundef i32 @_ZL7decutf8PjS_j(ptr noundef nonnull %10, ptr noundef nonnull %9, i32 noundef %37)
  %.not46 = icmp eq i32 %38, 0
  br i1 %.not46, label %39, label %64

39:                                               ; preds = %35
  %40 = load i32, ptr %9, align 4, !tbaa !5
  %41 = call noundef ptr @_ZL9get_glyphP9sth_stashP8sth_fontjs(ptr noundef nonnull %0, ptr noundef nonnull %.053, i32 noundef %40, i16 noundef signext %15)
  %.not47 = icmp eq ptr %41, null
  br i1 %.not47, label %64, label %42

42:                                               ; preds = %39
  %43 = call noundef i32 @_ZL8get_quadP9sth_stashP8sth_fontP9sth_glyphsPfS5_P8sth_quad(ptr noundef nonnull %0, ptr noundef nonnull %.053, ptr noundef nonnull %41, i16 noundef signext %15, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %11)
  %.not48 = icmp eq i32 %43, 0
  br i1 %.not48, label %64, label %44

44:                                               ; preds = %42
  %45 = load float, ptr %11, align 4, !tbaa !23
  %46 = load float, ptr %4, align 4, !tbaa !9
  %47 = fcmp olt float %45, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %44
  store float %45, ptr %4, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %48, %44
  %50 = load float, ptr %32, align 4, !tbaa !25
  %51 = load float, ptr %6, align 4, !tbaa !9
  %52 = fcmp ogt float %50, %51
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  store float %50, ptr %6, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %53, %49
  %55 = load float, ptr %33, align 4, !tbaa !26
  %56 = load float, ptr %5, align 4, !tbaa !9
  %57 = fcmp olt float %55, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  store float %55, ptr %5, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %58, %54
  %60 = load float, ptr %34, align 4, !tbaa !27
  %61 = load float, ptr %7, align 4, !tbaa !9
  %62 = fcmp ogt float %60, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  store float %60, ptr %7, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %59, %63, %42, %39, %35
  %65 = getelementptr inbounds i8, ptr %.03355, i64 1
  %66 = load i8, ptr %65, align 1, !tbaa !22
  %.not45 = icmp eq i8 %66, 0
  br i1 %.not45, label %.loopexit, label %35, !llvm.loop !28

.loopexit:                                        ; preds = %23, %64, %20, %30, %27, %17, %8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = !{!"int", !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, !13, i64 16}
!12 = !{!"_ZTS9sth_stash", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 12, !13, i64 16, !13, i64 24, !6, i64 32, !13, i64 40}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTS8sth_font", !6, i64 0, !6, i64 4, !17, i64 8, !13, i64 64, !13, i64 72, !7, i64 80, !6, i64 1104, !10, i64 1108, !10, i64 1112, !10, i64 1116, !13, i64 1120}
!17 = !{!"_ZTS14stbtt_fontinfo", !13, i64 0, !13, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !6, i64 4}
!21 = !{!16, !13, i64 64}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTS8sth_quad", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!25 = !{!24, !10, i64 16}
!26 = !{!24, !10, i64 20}
!27 = !{!24, !10, i64 4}
!28 = distinct !{!28, !19}


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