; LLVM IR from ClementineAccount/Albuquerque :: src/HelloSDL (main)

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

%union.nk_handle = type { ptr }
%struct.nk_font_atlas = type { ptr, i32, i32, %struct.nk_allocator, %struct.nk_allocator, %struct.nk_recti, [7 x %struct.nk_cursor], i32, ptr, ptr, ptr, ptr, i32 }
%struct.nk_allocator = type { %union.nk_handle, ptr, ptr }
%struct.nk_recti = type { i16, i16, i16, i16 }
%struct.nk_cursor = type { %struct.nk_image, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%struct.nk_vec2 = type { float, float }
%struct.nk_font_config = type { ptr, ptr, i64, i8, i8, i8, i8, i8, [3 x i8], float, i32, %struct.nk_vec2, ptr, ptr, i32, ptr, ptr }
%struct.nk_font = type { ptr, %struct.nk_user_font, %struct.nk_baked_font, float, ptr, ptr, i32, %union.nk_handle, ptr }
%struct.nk_user_font = type { %union.nk_handle, float, ptr, ptr, %union.nk_handle }
%struct.nk_baked_font = type { float, float, float, i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__.nk_font_atlas_add = external hidden unnamed_addr constant [89 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 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) #0

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL7nk_zeroPvm(ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL10nk_memcopyPvPKvm(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local ptr @nk_font_atlas_add(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %union.nk_handle, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %union.nk_handle, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %union.nk_handle, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  br label %21

19:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.1, i32 noundef 17380, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

20:                                               ; No predecessors!
  br label %21

21:                                               ; preds = %20, %18
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.nk_font_atlas, ptr %22, i32 0, i32 3
  %24 = getelementptr inbounds %struct.nk_allocator, ptr %23, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %21
  br label %30

28:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.50, ptr noundef @.str.1, i32 noundef 17381, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29, %27
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.nk_font_atlas, ptr %31, i32 0, i32 3
  %33 = getelementptr inbounds %struct.nk_allocator, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %30
  br label %39

37:                                               ; preds = %30
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.1, i32 noundef 17382, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

38:                                               ; No predecessors!
  br label %39

39:                                               ; preds = %38, %36
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.nk_font_atlas, ptr %40, i32 0, i32 4
  %42 = getelementptr inbounds %struct.nk_allocator, ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %46

45:                                               ; preds = %39
  br label %48

46:                                               ; preds = %39
  call void @__assert_fail(ptr noundef @.str.52, ptr noundef @.str.1, i32 noundef 17383, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

47:                                               ; No predecessors!
  br label %48

48:                                               ; preds = %47, %45
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.nk_font_atlas, ptr %49, i32 0, i32 4
  %51 = getelementptr inbounds %struct.nk_allocator, ptr %50, i32 0, i32 2
  %52 = load ptr, ptr %51, align 8, !tbaa !17
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %55

54:                                               ; preds = %48
  br label %57

55:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.53, ptr noundef @.str.1, i32 noundef 17384, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %54
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  br label %63

61:                                               ; preds = %57
  call void @__assert_fail(ptr noundef @.str.27, ptr noundef @.str.1, i32 noundef 17386, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

62:                                               ; No predecessors!
  br label %63

63:                                               ; preds = %62, %60
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.nk_font_config, ptr %64, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %69

68:                                               ; preds = %63
  br label %71

69:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.54, ptr noundef @.str.1, i32 noundef 17387, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

70:                                               ; No predecessors!
  br label %71

71:                                               ; preds = %70, %68
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.nk_font_config, ptr %72, i32 0, i32 2
  %74 = load i64, ptr %73, align 8, !tbaa !24
  %75 = icmp ne i64 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %71
  br label %79

77:                                               ; preds = %71
  call void @__assert_fail(ptr noundef @.str.55, ptr noundef @.str.1, i32 noundef 17388, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

78:                                               ; No predecessors!
  br label %79

79:                                               ; preds = %78, %76
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.nk_font_config, ptr %80, i32 0, i32 9
  %82 = load float, ptr %81, align 8, !tbaa !25
  %83 = fcmp ogt float %82, 0.000000e+00
  br i1 %83, label %84, label %85

84:                                               ; preds = %79
  br label %87

85:                                               ; preds = %79
  call void @__assert_fail(ptr noundef @.str.56, ptr noundef @.str.1, i32 noundef 17389, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

86:                                               ; No predecessors!
  br label %87

87:                                               ; preds = %86, %84
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %132

90:                                               ; preds = %87
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %132

93:                                               ; preds = %90
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.nk_font_config, ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %132

98:                                               ; preds = %93
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.nk_font_config, ptr %99, i32 0, i32 2
  %101 = load i64, ptr %100, align 8, !tbaa !24
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %103, label %132

103:                                              ; preds = %98
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.nk_font_config, ptr %104, i32 0, i32 9
  %106 = load float, ptr %105, align 8, !tbaa !25
  %107 = fcmp ole float %106, 0.000000e+00
  br i1 %107, label %132, label %108

108:                                              ; preds = %103
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.nk_font_atlas, ptr %109, i32 0, i32 3
  %111 = getelementptr inbounds %struct.nk_allocator, ptr %110, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %132

114:                                              ; preds = %108
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.nk_font_atlas, ptr %115, i32 0, i32 3
  %117 = getelementptr inbounds %struct.nk_allocator, ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  %119 = icmp ne ptr %118, null
  br i1 %119, label %120, label %132

120:                                              ; preds = %114
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.nk_font_atlas, ptr %121, i32 0, i32 4
  %123 = getelementptr inbounds %struct.nk_allocator, ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !16
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %132

126:                                              ; preds = %120
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.nk_font_atlas, ptr %127, i32 0, i32 4
  %129 = getelementptr inbounds %struct.nk_allocator, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !17
  %131 = icmp ne ptr %130, null
  br i1 %131, label %133, label %132

132:                                              ; preds = %126, %120, %114, %108, %103, %98, %93, %90, %87
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %338

133:                                              ; preds = %126
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.nk_font_atlas, ptr %134, i32 0, i32 3
  %136 = getelementptr inbounds %struct.nk_allocator, ptr %135, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !9
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.nk_font_atlas, ptr %138, i32 0, i32 3
  %140 = getelementptr inbounds %struct.nk_allocator, ptr %139, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %140, i64 8, i1 false), !tbaa.struct !26
  %141 = getelementptr inbounds %union.nk_handle, ptr %9, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8
  %143 = call noundef ptr %137(ptr %142, ptr noundef null, i64 noundef 88)
  store ptr %143, ptr %7, align 8, !tbaa !5
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = call noundef ptr @_ZL10nk_memcopyPvPKvm(ptr noundef %144, ptr noundef %145, i64 noundef 88)
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.nk_font_config, ptr %148, i32 0, i32 15
  store ptr %147, ptr %149, align 8, !tbaa !28
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.nk_font_config, ptr %151, i32 0, i32 16
  store ptr %150, ptr %152, align 8, !tbaa !29
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.nk_font_config, ptr %153, i32 0, i32 4
  %155 = load i8, ptr %154, align 1, !tbaa !30
  %156 = icmp ne i8 %155, 0
  br i1 %156, label %246, label %157

157:                                              ; preds = %133
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.nk_font_atlas, ptr %158, i32 0, i32 11
  %160 = load ptr, ptr %159, align 8, !tbaa !31
  %161 = icmp ne ptr %160, null
  br i1 %161, label %168, label %162

162:                                              ; preds = %157
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.nk_font_atlas, ptr %164, i32 0, i32 11
  store ptr %163, ptr %165, align 8, !tbaa !31
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.nk_font_config, ptr %166, i32 0, i32 0
  store ptr null, ptr %167, align 8, !tbaa !32
  br label %187

168:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.nk_font_atlas, ptr %169, i32 0, i32 11
  %171 = load ptr, ptr %170, align 8, !tbaa !31
  store ptr %171, ptr %10, align 8, !tbaa !5
  br label %172

172:                                              ; preds = %177, %168
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.nk_font_config, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !32
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %181

177:                                              ; preds = %172
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.nk_font_config, ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !32
  store ptr %180, ptr %10, align 8, !tbaa !5
  br label %172, !llvm.loop !33

181:                                              ; preds = %172
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.nk_font_config, ptr %183, i32 0, i32 0
  store ptr %182, ptr %184, align 8, !tbaa !32
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.nk_font_config, ptr %185, i32 0, i32 0
  store ptr null, ptr %186, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %187

187:                                              ; preds = %181, %162
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.nk_font_atlas, ptr %188, i32 0, i32 3
  %190 = getelementptr inbounds %struct.nk_allocator, ptr %189, i32 0, i32 1
  %191 = load ptr, ptr %190, align 8, !tbaa !9
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.nk_font_atlas, ptr %192, i32 0, i32 3
  %194 = getelementptr inbounds %struct.nk_allocator, ptr %193, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %194, i64 8, i1 false), !tbaa.struct !26
  %195 = getelementptr inbounds %union.nk_handle, ptr %11, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8
  %197 = call noundef ptr %191(ptr %196, ptr noundef null, i64 noundef 128)
  store ptr %197, ptr %6, align 8, !tbaa !5
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = icmp ne ptr %198, null
  br i1 %199, label %200, label %201

200:                                              ; preds = %187
  br label %203

201:                                              ; preds = %187
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.1, i32 noundef 17417, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

202:                                              ; No predecessors!
  br label %203

203:                                              ; preds = %202, %200
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZL7nk_zeroPvm(ptr noundef %204, i64 noundef 128)
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = icmp ne ptr %205, null
  br i1 %206, label %208, label %207

207:                                              ; preds = %203
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %338

208:                                              ; preds = %203
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.nk_font, ptr %210, i32 0, i32 8
  store ptr %209, ptr %211, align 8, !tbaa !35
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.nk_font_atlas, ptr %212, i32 0, i32 10
  %214 = load ptr, ptr %213, align 8, !tbaa !39
  %215 = icmp ne ptr %214, null
  br i1 %215, label %222, label %216

216:                                              ; preds = %208
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.nk_font_atlas, ptr %218, i32 0, i32 10
  store ptr %217, ptr %219, align 8, !tbaa !39
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.nk_font, ptr %220, i32 0, i32 0
  store ptr null, ptr %221, align 8, !tbaa !40
  br label %241

222:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %223 = load ptr, ptr %4, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.nk_font_atlas, ptr %223, i32 0, i32 10
  %225 = load ptr, ptr %224, align 8, !tbaa !39
  store ptr %225, ptr %12, align 8, !tbaa !5
  br label %226

226:                                              ; preds = %231, %222
  %227 = load ptr, ptr %12, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.nk_font, ptr %227, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !40
  %230 = icmp ne ptr %229, null
  br i1 %230, label %231, label %235

231:                                              ; preds = %226
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.nk_font, ptr %232, i32 0, i32 0
  %234 = load ptr, ptr %233, align 8, !tbaa !40
  store ptr %234, ptr %12, align 8, !tbaa !5
  br label %226, !llvm.loop !41

235:                                              ; preds = %226
  %236 = load ptr, ptr %6, align 8, !tbaa !5
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.nk_font, ptr %237, i32 0, i32 0
  store ptr %236, ptr %238, align 8, !tbaa !40
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.nk_font, ptr %239, i32 0, i32 0
  store ptr null, ptr %240, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %241

241:                                              ; preds = %235, %216
  %242 = load ptr, ptr %6, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.nk_font, ptr %242, i32 0, i32 2
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.nk_font_config, ptr %244, i32 0, i32 13
  store ptr %243, ptr %245, align 8, !tbaa !42
  br label %281

246:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store ptr null, ptr %14, align 8, !tbaa !5
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.nk_font_atlas, ptr %247, i32 0, i32 12
  %249 = load i32, ptr %248, align 8, !tbaa !43
  %250 = icmp ne i32 %249, 0
  br i1 %250, label %251, label %252

251:                                              ; preds = %246
  br label %254

252:                                              ; preds = %246
  call void @__assert_fail(ptr noundef @.str.57, ptr noundef @.str.1, i32 noundef 17437, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

253:                                              ; No predecessors!
  br label %254

254:                                              ; preds = %253, %251
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.nk_font_atlas, ptr %255, i32 0, i32 10
  %257 = load ptr, ptr %256, align 8, !tbaa !39
  store ptr %257, ptr %13, align 8, !tbaa !5
  %258 = load ptr, ptr %13, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.nk_font, ptr %258, i32 0, i32 8
  %260 = load ptr, ptr %259, align 8, !tbaa !35
  store ptr %260, ptr %14, align 8, !tbaa !5
  %261 = load ptr, ptr %13, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.nk_font, ptr %261, i32 0, i32 2
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.nk_font_config, ptr %263, i32 0, i32 13
  store ptr %262, ptr %264, align 8, !tbaa !42
  %265 = load ptr, ptr %14, align 8, !tbaa !5
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.nk_font_config, ptr %266, i32 0, i32 15
  store ptr %265, ptr %267, align 8, !tbaa !28
  %268 = load ptr, ptr %14, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.nk_font_config, ptr %268, i32 0, i32 16
  %270 = load ptr, ptr %269, align 8, !tbaa !29
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.nk_font_config, ptr %271, i32 0, i32 16
  store ptr %270, ptr %272, align 8, !tbaa !29
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = load ptr, ptr %14, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.nk_font_config, ptr %274, i32 0, i32 16
  %276 = load ptr, ptr %275, align 8, !tbaa !29
  %277 = getelementptr inbounds %struct.nk_font_config, ptr %276, i32 0, i32 15
  store ptr %273, ptr %277, align 8, !tbaa !28
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = load ptr, ptr %14, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.nk_font_config, ptr %279, i32 0, i32 16
  store ptr %278, ptr %280, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %281

281:                                              ; preds = %254, %241
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.nk_font_config, ptr %282, i32 0, i32 3
  %284 = load i8, ptr %283, align 8, !tbaa !44
  %285 = icmp ne i8 %284, 0
  br i1 %285, label %332, label %286

286:                                              ; preds = %281
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.nk_font_atlas, ptr %287, i32 0, i32 3
  %289 = getelementptr inbounds %struct.nk_allocator, ptr %288, i32 0, i32 1
  %290 = load ptr, ptr %289, align 8, !tbaa !9
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.nk_font_atlas, ptr %291, i32 0, i32 3
  %293 = getelementptr inbounds %struct.nk_allocator, ptr %292, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %293, i64 8, i1 false), !tbaa.struct !26
  %294 = load ptr, ptr %7, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.nk_font_config, ptr %294, i32 0, i32 2
  %296 = load i64, ptr %295, align 8, !tbaa !24
  %297 = getelementptr inbounds %union.nk_handle, ptr %15, i32 0, i32 0
  %298 = load ptr, ptr %297, align 8
  %299 = call noundef ptr %290(ptr %298, ptr noundef null, i64 noundef %296)
  %300 = load ptr, ptr %7, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.nk_font_config, ptr %300, i32 0, i32 1
  store ptr %299, ptr %301, align 8, !tbaa !18
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.nk_font_config, ptr %302, i32 0, i32 1
  %304 = load ptr, ptr %303, align 8, !tbaa !18
  %305 = icmp ne ptr %304, null
  br i1 %305, label %306, label %307

306:                                              ; preds = %286
  br label %309

307:                                              ; preds = %286
  call void @__assert_fail(ptr noundef @.str.58, ptr noundef @.str.1, i32 noundef 17450, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add) #6
  unreachable

308:                                              ; No predecessors!
  br label %309

309:                                              ; preds = %308, %306
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.nk_font_config, ptr %310, i32 0, i32 1
  %312 = load ptr, ptr %311, align 8, !tbaa !18
  %313 = icmp ne ptr %312, null
  br i1 %313, label %319, label %314

314:                                              ; preds = %309
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.nk_font_atlas, ptr %315, i32 0, i32 12
  %317 = load i32, ptr %316, align 8, !tbaa !43
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr %316, align 8, !tbaa !43
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %338

319:                                              ; preds = %309
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.nk_font_config, ptr %320, i32 0, i32 1
  %322 = load ptr, ptr %321, align 8, !tbaa !18
  %323 = load ptr, ptr %5, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.nk_font_config, ptr %323, i32 0, i32 1
  %325 = load ptr, ptr %324, align 8, !tbaa !18
  %326 = load ptr, ptr %7, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.nk_font_config, ptr %326, i32 0, i32 2
  %328 = load i64, ptr %327, align 8, !tbaa !24
  %329 = call noundef ptr @_ZL10nk_memcopyPvPKvm(ptr noundef %322, ptr noundef %325, i64 noundef %328)
  %330 = load ptr, ptr %7, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.nk_font_config, ptr %330, i32 0, i32 3
  store i8 1, ptr %331, align 8, !tbaa !44
  br label %332

332:                                              ; preds = %319, %281
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.nk_font_atlas, ptr %333, i32 0, i32 12
  %335 = load i32, ptr %334, align 8, !tbaa !43
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %334, align 8, !tbaa !43
  %337 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %337, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %338

338:                                              ; preds = %332, %314, %207, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %339 = load ptr, ptr %3, align 8
  ret ptr %339
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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, !6, i64 24}
!10 = !{!"_ZTS13nk_font_atlas", !6, i64 0, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 40, !13, i64 64, !7, i64 72, !11, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !11, i64 392}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS12nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"_ZTS8nk_recti", !14, i64 0, !14, i64 2, !14, i64 4, !14, i64 6}
!14 = !{!"short", !7, i64 0}
!15 = !{!10, !6, i64 32}
!16 = !{!10, !6, i64 48}
!17 = !{!10, !6, i64 56}
!18 = !{!19, !6, i64 8}
!19 = !{!"_ZTS14nk_font_config", !6, i64 0, !6, i64 8, !20, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !7, i64 28, !7, i64 29, !21, i64 32, !22, i64 36, !23, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !6, i64 80}
!20 = !{!"long", !7, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = !{!"_ZTS18nk_font_coord_type", !7, i64 0}
!23 = !{!"_ZTS7nk_vec2", !21, i64 0, !21, i64 4}
!24 = !{!19, !20, i64 16}
!25 = !{!19, !21, i64 32}
!26 = !{i64 0, i64 8, !27}
!27 = !{!7, !7, i64 0}
!28 = !{!19, !6, i64 72}
!29 = !{!19, !6, i64 80}
!30 = !{!19, !7, i64 25}
!31 = !{!10, !6, i64 384}
!32 = !{!19, !6, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!36, !6, i64 120}
!36 = !{!"_ZTS7nk_font", !6, i64 0, !37, i64 8, !38, i64 48, !21, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !7, i64 112, !6, i64 120}
!37 = !{!"_ZTS12nk_user_font", !7, i64 0, !21, i64 8, !6, i64 16, !6, i64 24, !7, i64 32}
!38 = !{!"_ZTS13nk_baked_font", !21, i64 0, !21, i64 4, !21, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!39 = !{!10, !6, i64 376}
!40 = !{!36, !6, i64 0}
!41 = distinct !{!41, !34}
!42 = !{!19, !6, i64 56}
!43 = !{!10, !11, i64 392}
!44 = !{!19, !7, i64 24}


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

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__.nk_font_atlas_add = external hidden unnamed_addr constant [89 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL7nk_zeroPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL10nk_memcopyPvPKvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @nk_font_atlas_add(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.1, i32 noundef 17380, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %.not100 = icmp eq ptr %7, null
  br i1 %.not100, label %8, label %9

8:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.1, i32 noundef 17381, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load ptr, ptr %10, align 8, !tbaa !14
  %.not101 = icmp eq ptr %11, null
  br i1 %.not101, label %12, label %13

12:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.1, i32 noundef 17382, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 48
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %.not102 = icmp eq ptr %15, null
  br i1 %.not102, label %16, label %17

16:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.1, i32 noundef 17383, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

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

20:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.1, i32 noundef 17384, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

21:                                               ; preds = %17
  %.not104 = icmp eq ptr %1, null
  br i1 %.not104, label %22, label %23

22:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.1, i32 noundef 17386, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  %.not105 = icmp eq ptr %25, null
  br i1 %.not105, label %26, label %27

26:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.1, i32 noundef 17387, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %1, i64 16
  %29 = load i64, ptr %28, align 8, !tbaa !23
  %.not106 = icmp eq i64 %29, 0
  br i1 %.not106, label %30, label %31

30:                                               ; preds = %27
  tail call void @__assert_fail(ptr noundef nonnull @.str.55, ptr noundef nonnull @.str.1, i32 noundef 17388, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

31:                                               ; preds = %27
  %32 = getelementptr inbounds i8, ptr %1, i64 32
  %33 = load float, ptr %32, align 8, !tbaa !24
  %34 = fcmp ogt float %33, 0.000000e+00
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  tail call void @__assert_fail(ptr noundef nonnull @.str.56, ptr noundef nonnull @.str.1, i32 noundef 17389, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

36:                                               ; preds = %31
  %.sroa.014.0.copyload = load ptr, ptr %5, align 8, !tbaa !25
  %37 = tail call noundef ptr %7(ptr %.sroa.014.0.copyload, ptr noundef null, i64 noundef 88)
  %38 = tail call noundef ptr @_ZL10nk_memcopyPvPKvm(ptr noundef %37, ptr noundef nonnull %1, i64 noundef 88)
  %39 = getelementptr inbounds i8, ptr %37, i64 72
  store ptr %37, ptr %39, align 8, !tbaa !26
  %40 = getelementptr inbounds i8, ptr %37, i64 80
  store ptr %37, ptr %40, align 8, !tbaa !27
  %41 = getelementptr inbounds i8, ptr %1, i64 25
  %42 = load i8, ptr %41, align 1, !tbaa !28
  %.not107 = icmp eq i8 %42, 0
  br i1 %.not107, label %43, label %57

43:                                               ; preds = %36
  %44 = getelementptr inbounds i8, ptr %0, i64 384
  %45 = load ptr, ptr %44, align 8, !tbaa !29
  %.not108 = icmp eq ptr %45, null
  br i1 %.not108, label %.loopexit117, label %.preheader116

.preheader116:                                    ; preds = %43, %.preheader116
  %.089 = phi ptr [ %46, %.preheader116 ], [ %45, %43 ]
  %46 = load ptr, ptr %.089, align 8, !tbaa !30
  %.not109 = icmp eq ptr %46, null
  br i1 %.not109, label %.loopexit117, label %.preheader116, !llvm.loop !31

.loopexit117:                                     ; preds = %.preheader116, %43
  %.089.lcssa.sink = phi ptr [ %44, %43 ], [ %.089, %.preheader116 ]
  store ptr %37, ptr %.089.lcssa.sink, align 8, !tbaa !33
  store ptr null, ptr %37, align 8, !tbaa !30
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %.sroa.010.0.copyload = load ptr, ptr %5, align 8, !tbaa !25
  %48 = tail call noundef ptr %47(ptr %.sroa.010.0.copyload, ptr noundef null, i64 noundef 128)
  %.not110 = icmp eq ptr %48, null
  br i1 %.not110, label %49, label %50

49:                                               ; preds = %.loopexit117
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.1, i32 noundef 17417, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

50:                                               ; preds = %.loopexit117
  tail call void @_ZL7nk_zeroPvm(ptr noundef nonnull %48, i64 noundef 128)
  %51 = getelementptr inbounds i8, ptr %48, i64 120
  store ptr %37, ptr %51, align 8, !tbaa !34
  %52 = getelementptr inbounds i8, ptr %0, i64 376
  %53 = load ptr, ptr %52, align 8, !tbaa !38
  %.not111 = icmp eq ptr %53, null
  br i1 %.not111, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %50, %.preheader
  %.087 = phi ptr [ %54, %.preheader ], [ %53, %50 ]
  %54 = load ptr, ptr %.087, align 8, !tbaa !39
  %.not112 = icmp eq ptr %54, null
  br i1 %.not112, label %.loopexit, label %.preheader, !llvm.loop !40

.loopexit:                                        ; preds = %.preheader, %50
  %.087.lcssa.sink = phi ptr [ %52, %50 ], [ %.087, %.preheader ]
  store ptr %48, ptr %.087.lcssa.sink, align 8, !tbaa !33
  store ptr null, ptr %48, align 8, !tbaa !39
  %55 = getelementptr inbounds i8, ptr %48, i64 48
  %56 = getelementptr inbounds i8, ptr %37, i64 56
  store ptr %55, ptr %56, align 8, !tbaa !41
  br label %71

57:                                               ; preds = %36
  %58 = getelementptr inbounds i8, ptr %0, i64 392
  %59 = load i32, ptr %58, align 8, !tbaa !42
  %.not113 = icmp eq i32 %59, 0
  br i1 %.not113, label %60, label %61

60:                                               ; preds = %57
  tail call void @__assert_fail(ptr noundef nonnull @.str.57, ptr noundef nonnull @.str.1, i32 noundef 17437, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %0, i64 376
  %63 = load ptr, ptr %62, align 8, !tbaa !38
  %64 = getelementptr inbounds i8, ptr %63, i64 120
  %65 = load ptr, ptr %64, align 8, !tbaa !34
  %66 = getelementptr inbounds i8, ptr %63, i64 48
  %67 = getelementptr inbounds i8, ptr %37, i64 56
  store ptr %66, ptr %67, align 8, !tbaa !41
  store ptr %65, ptr %39, align 8, !tbaa !26
  %68 = getelementptr inbounds i8, ptr %65, i64 80
  %69 = load ptr, ptr %68, align 8, !tbaa !27
  store ptr %69, ptr %40, align 8, !tbaa !27
  %70 = getelementptr inbounds i8, ptr %69, i64 72
  store ptr %37, ptr %70, align 8, !tbaa !26
  store ptr %37, ptr %68, align 8, !tbaa !27
  br label %71

71:                                               ; preds = %61, %.loopexit
  %.088 = phi ptr [ null, %61 ], [ %48, %.loopexit ]
  %72 = getelementptr inbounds i8, ptr %1, i64 24
  %73 = load i8, ptr %72, align 8, !tbaa !43
  %.not114 = icmp eq i8 %73, 0
  br i1 %.not114, label %74, label %86

74:                                               ; preds = %71
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %.sroa.0.0.copyload = load ptr, ptr %5, align 8, !tbaa !25
  %76 = getelementptr inbounds i8, ptr %37, i64 16
  %77 = load i64, ptr %76, align 8, !tbaa !23
  %78 = tail call noundef ptr %75(ptr %.sroa.0.0.copyload, ptr noundef null, i64 noundef %77)
  %79 = getelementptr inbounds i8, ptr %37, i64 8
  store ptr %78, ptr %79, align 8, !tbaa !17
  %.not115 = icmp eq ptr %78, null
  br i1 %.not115, label %80, label %81

80:                                               ; preds = %74
  tail call void @__assert_fail(ptr noundef nonnull @.str.58, ptr noundef nonnull @.str.1, i32 noundef 17450, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add) #3
  unreachable

81:                                               ; preds = %74
  %82 = load ptr, ptr %24, align 8, !tbaa !17
  %83 = load i64, ptr %76, align 8, !tbaa !23
  %84 = tail call noundef ptr @_ZL10nk_memcopyPvPKvm(ptr noundef nonnull %78, ptr noundef %82, i64 noundef %83)
  %85 = getelementptr inbounds i8, ptr %37, i64 24
  store i8 1, ptr %85, align 8, !tbaa !43
  br label %86

86:                                               ; preds = %81, %71
  %87 = getelementptr inbounds i8, ptr %0, i64 392
  %88 = load i32, ptr %87, align 8, !tbaa !42
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %87, align 8, !tbaa !42
  ret ptr %.088
}

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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, !7, i64 24}
!6 = !{!"_ZTS13nk_font_atlas", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !11, i64 40, !12, i64 64, !8, i64 72, !10, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !10, i64 392}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS12nk_allocator", !8, i64 0, !7, i64 8, !7, i64 16}
!12 = !{!"_ZTS8nk_recti", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6}
!13 = !{!"short", !8, i64 0}
!14 = !{!6, !7, i64 32}
!15 = !{!6, !7, i64 48}
!16 = !{!6, !7, i64 56}
!17 = !{!18, !7, i64 8}
!18 = !{!"_ZTS14nk_font_config", !7, i64 0, !7, i64 8, !19, i64 16, !8, i64 24, !8, i64 25, !8, i64 26, !8, i64 27, !8, i64 28, !8, i64 29, !20, i64 32, !21, i64 36, !22, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !7, i64 72, !7, i64 80}
!19 = !{!"long", !8, i64 0}
!20 = !{!"float", !8, i64 0}
!21 = !{!"_ZTS18nk_font_coord_type", !8, i64 0}
!22 = !{!"_ZTS7nk_vec2", !20, i64 0, !20, i64 4}
!23 = !{!18, !19, i64 16}
!24 = !{!18, !20, i64 32}
!25 = !{!8, !8, i64 0}
!26 = !{!18, !7, i64 72}
!27 = !{!18, !7, i64 80}
!28 = !{!18, !8, i64 25}
!29 = !{!6, !7, i64 384}
!30 = !{!18, !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!7, !7, i64 0}
!34 = !{!35, !7, i64 120}
!35 = !{!"_ZTS7nk_font", !7, i64 0, !36, i64 8, !37, i64 48, !20, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !8, i64 112, !7, i64 120}
!36 = !{!"_ZTS12nk_user_font", !8, i64 0, !20, i64 8, !7, i64 16, !7, i64 24, !8, i64 32}
!37 = !{!"_ZTS13nk_baked_font", !20, i64 0, !20, i64 4, !20, i64 8, !10, i64 12, !10, i64 16, !7, i64 24}
!38 = !{!6, !7, i64 376}
!39 = !{!35, !7, i64 0}
!40 = distinct !{!40, !32}
!41 = !{!18, !7, i64 56}
!42 = !{!6, !10, i64 392}
!43 = !{!18, !8, i64 24}


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