; LLVM IR from ashishzero/karma :: src/modules/core (stb)

; 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.stbtt__bitmap = type { i32, i32, i32, ptr }
%struct.Allocator = type { ptr, ptr }
%struct.stbtt_fontinfo = type { ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf }
%struct.stbtt__buf = type { ptr, i32, i32 }
%struct.Thread_Context = type { %union.Handle, i64, %struct.Allocator, %struct.Temporary_Memory, ptr, ptr }
%union.Handle = type { ptr }
%struct.Temporary_Memory = type { ptr, ptr, i64 }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11memory_freePKv9Allocator(ptr noundef, ptr, ptr) #0

; Function Attrs: uwtable
declare hidden noundef ptr @_ZTW7context() #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.start.p0(i64 immarg, ptr nocapture) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_GetGlyphShape(ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_GetGlyphBitmapBoxSubpixel(ptr noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_Rasterize(ptr noundef, float noundef, ptr noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local ptr @stbtt_GetGlyphBitmapSubpixel(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #4 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %struct.stbtt__bitmap, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca %struct.Allocator, align 8
  %30 = alloca i32, align 4
  %31 = alloca %struct.Allocator, align 8
  %32 = alloca %struct.Allocator, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store float %1, ptr %13, align 4, !tbaa !9
  store float %2, ptr %14, align 4, !tbaa !9
  store float %3, ptr %15, align 4, !tbaa !9
  store float %4, ptr %16, align 4, !tbaa !9
  store i32 %5, ptr %17, align 4, !tbaa !11
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = load i32, ptr %17, align 4, !tbaa !11
  %35 = call i32 @stbtt_GetGlyphShape(ptr noundef %33, i32 noundef %34, ptr noundef %27)
  store i32 %35, ptr %28, align 4, !tbaa !11
  %36 = load float, ptr %13, align 4, !tbaa !9
  %37 = fcmp oeq float %36, 0.000000e+00
  br i1 %37, label %38, label %40

38:                                               ; preds = %10
  %39 = load float, ptr %14, align 4, !tbaa !9
  store float %39, ptr %13, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %38, %10
  %41 = load float, ptr %14, align 4, !tbaa !9
  %42 = fcmp oeq float %41, 0.000000e+00
  br i1 %42, label %43, label %58

43:                                               ; preds = %40
  %44 = load float, ptr %13, align 4, !tbaa !9
  %45 = fcmp oeq float %44, 0.000000e+00
  br i1 %45, label %46, label %56

46:                                               ; preds = %43
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %27, align 8, !tbaa !5
  %50 = call ptr @_ZTW7context()
  %51 = getelementptr inbounds %struct.Thread_Context, ptr %50, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %51, i64 16, i1 false), !tbaa.struct !13
  %52 = getelementptr inbounds { ptr, ptr }, ptr %29, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8
  %54 = getelementptr inbounds { ptr, ptr }, ptr %29, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8
  call void @_Z11memory_freePKv9Allocator(ptr noundef %49, ptr %53, ptr %55)
  store ptr null, ptr %11, align 8
  store i32 1, ptr %30, align 4
  br label %155

56:                                               ; preds = %43
  %57 = load float, ptr %13, align 4, !tbaa !9
  store float %57, ptr %14, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %56, %40
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = load i32, ptr %17, align 4, !tbaa !11
  %61 = load float, ptr %13, align 4, !tbaa !9
  %62 = load float, ptr %14, align 4, !tbaa !9
  %63 = load float, ptr %15, align 4, !tbaa !9
  %64 = load float, ptr %16, align 4, !tbaa !9
  call void @stbtt_GetGlyphBitmapBoxSubpixel(ptr noundef %59, i32 noundef %60, float noundef %61, float noundef %62, float noundef %63, float noundef %64, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25)
  %65 = load i32, ptr %24, align 4, !tbaa !11
  %66 = load i32, ptr %22, align 4, !tbaa !11
  %67 = sub nsw i32 %65, %66
  %68 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 0
  store i32 %67, ptr %68, align 8, !tbaa !14
  %69 = load i32, ptr %25, align 4, !tbaa !11
  %70 = load i32, ptr %23, align 4, !tbaa !11
  %71 = sub nsw i32 %69, %70
  %72 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 1
  store i32 %71, ptr %72, align 4, !tbaa !16
  %73 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 3
  store ptr null, ptr %73, align 8, !tbaa !17
  %74 = load ptr, ptr %18, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %80

76:                                               ; preds = %58
  %77 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 0
  %78 = load i32, ptr %77, align 8, !tbaa !14
  %79 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %78, ptr %79, align 4, !tbaa !11
  br label %80

80:                                               ; preds = %76, %58
  %81 = load ptr, ptr %19, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %87

83:                                               ; preds = %80
  %84 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 1
  %85 = load i32, ptr %84, align 4, !tbaa !16
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  store i32 %85, ptr %86, align 4, !tbaa !11
  br label %87

87:                                               ; preds = %83, %80
  %88 = load ptr, ptr %20, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %93

90:                                               ; preds = %87
  %91 = load i32, ptr %22, align 4, !tbaa !11
  %92 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 %91, ptr %92, align 4, !tbaa !11
  br label %93

93:                                               ; preds = %90, %87
  %94 = load ptr, ptr %21, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %99

96:                                               ; preds = %93
  %97 = load i32, ptr %23, align 4, !tbaa !11
  %98 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 %97, ptr %98, align 4, !tbaa !11
  br label %99

99:                                               ; preds = %96, %93
  %100 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !14
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %143

103:                                              ; preds = %99
  %104 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !16
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %143

107:                                              ; preds = %103
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 0
  %111 = load i32, ptr %110, align 8, !tbaa !14
  %112 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !16
  %114 = mul nsw i32 %111, %113
  %115 = sext i32 %114 to i64
  %116 = call ptr @_ZTW7context()
  %117 = getelementptr inbounds %struct.Thread_Context, ptr %116, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %117, i64 16, i1 false), !tbaa.struct !13
  %118 = getelementptr inbounds { ptr, ptr }, ptr %31, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8
  %120 = getelementptr inbounds { ptr, ptr }, ptr %31, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8
  %122 = call noundef ptr @_Z15memory_allocatem9Allocator(i64 noundef %115, ptr %119, ptr %121)
  %123 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 3
  store ptr %122, ptr %123, align 8, !tbaa !17
  %124 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 3
  %125 = load ptr, ptr %124, align 8, !tbaa !17
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %142

127:                                              ; preds = %107
  %128 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 0
  %129 = load i32, ptr %128, align 8, !tbaa !14
  %130 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 2
  store i32 %129, ptr %130, align 8, !tbaa !18
  %131 = load ptr, ptr %27, align 8, !tbaa !5
  %132 = load i32, ptr %28, align 4, !tbaa !11
  %133 = load float, ptr %13, align 4, !tbaa !9
  %134 = load float, ptr %14, align 4, !tbaa !9
  %135 = load float, ptr %15, align 4, !tbaa !9
  %136 = load float, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %22, align 4, !tbaa !11
  %138 = load i32, ptr %23, align 4, !tbaa !11
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !19
  call void @stbtt_Rasterize(ptr noundef %26, float noundef 0x3FD6666660000000, ptr noundef %131, i32 noundef %132, float noundef %133, float noundef %134, float noundef %135, float noundef %136, i32 noundef %137, i32 noundef %138, i32 noundef 1, ptr noundef %141)
  br label %142

142:                                              ; preds = %127, %107
  br label %143

143:                                              ; preds = %142, %103, %99
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %27, align 8, !tbaa !5
  %147 = call ptr @_ZTW7context()
  %148 = getelementptr inbounds %struct.Thread_Context, ptr %147, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %148, i64 16, i1 false), !tbaa.struct !13
  %149 = getelementptr inbounds { ptr, ptr }, ptr %32, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8
  %151 = getelementptr inbounds { ptr, ptr }, ptr %32, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8
  call void @_Z11memory_freePKv9Allocator(ptr noundef %146, ptr %150, ptr %152)
  %153 = getelementptr inbounds %struct.stbtt__bitmap, ptr %26, i32 0, i32 3
  %154 = load ptr, ptr %153, align 8, !tbaa !17
  store ptr %154, ptr %11, align 8
  store i32 1, ptr %30, align 4
  br label %155

155:                                              ; preds = %143, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %156 = load ptr, ptr %11, align 8
  ret ptr %156
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z15memory_allocatem9Allocator(i64 noundef, ptr, ptr) #0

attributes #0 = { 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 #1 = { uwtable "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!14 = !{!15, !12, i64 0}
!15 = !{!"_ZTS13stbtt__bitmap", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16}
!16 = !{!15, !12, i64 4}
!17 = !{!15, !6, i64 16}
!18 = !{!15, !12, i64 8}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTS14stbtt_fontinfo", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !21, i64 80, !21, i64 96, !21, i64 112, !21, i64 128, !21, i64 144, !21, i64 160}
!21 = !{!"_ZTS10stbtt__buf", !6, i64 0, !12, i64 8, !12, i64 12}


; 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.stbtt__bitmap = type { i32, i32, i32, ptr }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11memory_freePKv9Allocator(ptr noundef, ptr, ptr) local_unnamed_addr #0

; Function Attrs: uwtable
declare hidden noundef ptr @_ZTW7context() local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_GetGlyphShape(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_GetGlyphBitmapBoxSubpixel(ptr noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_Rasterize(ptr noundef, float noundef, ptr noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local ptr @stbtt_GetGlyphBitmapSubpixel(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, i32 noundef %5, ptr noundef writeonly %6, ptr noundef writeonly %7, ptr noundef writeonly %8, ptr noundef writeonly %9) local_unnamed_addr #3 {
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.stbtt__bitmap, align 8
  %16 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  %17 = call i32 @stbtt_GetGlyphShape(ptr noundef %0, i32 noundef %5, ptr noundef nonnull %16)
  %18 = fcmp une float %1, 0.000000e+00
  %.036 = select i1 %18, float %1, float %2
  %19 = fcmp une float %2, 0.000000e+00
  %brmerge = or i1 %18, %19
  %.mux = select i1 %19, float %2, float %.036
  br i1 %brmerge, label %24, label %20

20:                                               ; preds = %10
  %21 = load ptr, ptr %16, align 8, !tbaa !5
  %22 = call ptr @_ZTW7context()
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %.sroa.05.0.copyload = load ptr, ptr %23, align 8, !tbaa !5
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 24
  %.sroa.26.0.copyload = load ptr, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !5
  call void @_Z11memory_freePKv9Allocator(ptr noundef %21, ptr %.sroa.05.0.copyload, ptr %.sroa.26.0.copyload)
  br label %60

24:                                               ; preds = %10
  call void @stbtt_GetGlyphBitmapBoxSubpixel(ptr noundef %0, i32 noundef %5, float noundef %.036, float noundef %.mux, float noundef %3, float noundef %4, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14)
  %25 = load i32, ptr %13, align 4, !tbaa !9
  %26 = load i32, ptr %11, align 4, !tbaa !9
  %27 = sub nsw i32 %25, %26
  store i32 %27, ptr %15, align 8, !tbaa !11
  %28 = load i32, ptr %14, align 4, !tbaa !9
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = sub nsw i32 %28, %29
  %31 = getelementptr inbounds i8, ptr %15, i64 4
  store i32 %30, ptr %31, align 4, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %15, i64 16
  store ptr null, ptr %32, align 8, !tbaa !14
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %34, label %33

33:                                               ; preds = %24
  store i32 %27, ptr %6, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %33, %24
  %.not46 = icmp eq ptr %7, null
  br i1 %.not46, label %36, label %35

35:                                               ; preds = %34
  store i32 %30, ptr %7, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %35, %34
  %.not47 = icmp eq ptr %8, null
  br i1 %.not47, label %38, label %37

37:                                               ; preds = %36
  store i32 %26, ptr %8, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %37, %36
  %.not48 = icmp eq ptr %9, null
  br i1 %.not48, label %40, label %39

39:                                               ; preds = %38
  store i32 %29, ptr %9, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %39, %38
  %41 = icmp ne i32 %25, %26
  %42 = icmp ne i32 %28, %29
  %or.cond = select i1 %41, i1 %42, i1 false
  br i1 %or.cond, label %43, label %55

43:                                               ; preds = %40
  %44 = mul nsw i32 %30, %27
  %45 = sext i32 %44 to i64
  %46 = call ptr @_ZTW7context()
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %.sroa.03.0.copyload = load ptr, ptr %47, align 8, !tbaa !5
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %46, i64 24
  %.sroa.24.0.copyload = load ptr, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !5
  %48 = call noundef ptr @_Z15memory_allocatem9Allocator(i64 noundef %45, ptr %.sroa.03.0.copyload, ptr %.sroa.24.0.copyload)
  store ptr %48, ptr %32, align 8, !tbaa !14
  %.not49 = icmp eq ptr %48, null
  br i1 %.not49, label %55, label %49

49:                                               ; preds = %43
  %50 = getelementptr inbounds i8, ptr %15, i64 8
  store i32 %27, ptr %50, align 8, !tbaa !15
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = load ptr, ptr %0, align 8, !tbaa !16
  call void @stbtt_Rasterize(ptr noundef nonnull %15, float noundef 0x3FD6666660000000, ptr noundef %51, i32 noundef %17, float noundef %.036, float noundef %.mux, float noundef %3, float noundef %4, i32 noundef %52, i32 noundef %53, i32 noundef 1, ptr noundef %54)
  br label %55

55:                                               ; preds = %43, %49, %40
  %56 = load ptr, ptr %16, align 8, !tbaa !5
  %57 = call ptr @_ZTW7context()
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %.sroa.0.0.copyload = load ptr, ptr %58, align 8, !tbaa !5
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %57, i64 24
  %.sroa.2.0.copyload = load ptr, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !5
  call void @_Z11memory_freePKv9Allocator(ptr noundef %56, ptr %.sroa.0.0.copyload, ptr %.sroa.2.0.copyload)
  %59 = load ptr, ptr %32, align 8, !tbaa !14
  br label %60

60:                                               ; preds = %55, %20
  %.0 = phi ptr [ null, %20 ], [ %59, %55 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  ret ptr %.0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z15memory_allocatem9Allocator(i64 noundef, ptr, ptr) local_unnamed_addr #0

attributes #0 = { 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 #1 = { uwtable "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !10, i64 0}
!12 = !{!"_ZTS13stbtt__bitmap", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16}
!13 = !{!12, !10, i64 4}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !10, i64 8}
!16 = !{!17, !6, i64 0}
!17 = !{!"_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, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !18, i64 80, !18, i64 96, !18, i64 112, !18, i64 128, !18, i64 144, !18, i64 160}
!18 = !{!"_ZTS10stbtt__buf", !6, i64 0, !10, i64 8, !10, i64 12}


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