; 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.44 = external hidden unnamed_addr constant [6 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
@__PRETTY_FUNCTION__.nk_font_atlas_clear = external hidden unnamed_addr constant [49 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 uwtable
define dso_local void @nk_font_atlas_clear(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %union.nk_handle, align 8
  %8 = alloca %union.nk_handle, align 8
  %9 = alloca %union.nk_handle, align 8
  %10 = alloca %union.nk_handle, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %union.nk_handle, align 8
  %14 = alloca %union.nk_handle, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %1
  br label %20

18:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.1, i32 noundef 17776, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #4
  unreachable

19:                                               ; No predecessors!
  br label %20

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

26:                                               ; preds = %20
  br label %29

27:                                               ; preds = %20
  call void @__assert_fail(ptr noundef @.str.52, ptr noundef @.str.1, i32 noundef 17777, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #4
  unreachable

28:                                               ; No predecessors!
  br label %29

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

35:                                               ; preds = %29
  br label %38

36:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.53, ptr noundef @.str.1, i32 noundef 17778, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #4
  unreachable

37:                                               ; No predecessors!
  br label %38

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

44:                                               ; preds = %38
  br label %47

45:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.50, ptr noundef @.str.1, i32 noundef 17779, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #4
  unreachable

46:                                               ; No predecessors!
  br label %47

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

53:                                               ; preds = %47
  br label %56

54:                                               ; preds = %47
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.1, i32 noundef 17780, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #4
  unreachable

55:                                               ; No predecessors!
  br label %56

56:                                               ; preds = %55, %53
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %71

59:                                               ; preds = %56
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.nk_font_atlas, ptr %60, i32 0, i32 3
  %62 = getelementptr inbounds %struct.nk_allocator, ptr %61, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !16
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %71

65:                                               ; preds = %59
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.nk_font_atlas, ptr %66, i32 0, i32 3
  %68 = getelementptr inbounds %struct.nk_allocator, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !17
  %70 = icmp ne ptr %69, null
  br i1 %70, label %72, label %71

71:                                               ; preds = %65, %59, %56
  br label %214

72:                                               ; preds = %65
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.nk_font_atlas, ptr %73, i32 0, i32 11
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %163

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.nk_font_atlas, ptr %78, i32 0, i32 11
  %80 = load ptr, ptr %79, align 8, !tbaa !18
  store ptr %80, ptr %3, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %158, %77
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %160

84:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.nk_font_config, ptr %85, i32 0, i32 15
  %87 = load ptr, ptr %86, align 8, !tbaa !19
  store ptr %87, ptr %5, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %124, %84
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = icmp ne ptr %89, %90
  br i1 %91, label %92, label %126

92:                                               ; preds = %88
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.nk_font_config, ptr %93, i32 0, i32 15
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  store ptr %95, ptr %6, align 8, !tbaa !5
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.nk_font_config, ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !25
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %113

100:                                              ; preds = %92
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.nk_font_atlas, ptr %101, i32 0, i32 3
  %103 = getelementptr inbounds %struct.nk_allocator, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !17
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.nk_font_atlas, ptr %105, i32 0, i32 3
  %107 = getelementptr inbounds %struct.nk_allocator, ptr %106, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %107, i64 8, i1 false), !tbaa.struct !26
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.nk_font_config, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !25
  %111 = getelementptr inbounds %union.nk_handle, ptr %7, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8
  call void %104(ptr %112, ptr noundef %110)
  br label %113

113:                                              ; preds = %100, %92
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.nk_font_atlas, ptr %114, i32 0, i32 3
  %116 = getelementptr inbounds %struct.nk_allocator, ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !17
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.nk_font_atlas, ptr %118, i32 0, i32 3
  %120 = getelementptr inbounds %struct.nk_allocator, ptr %119, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %120, i64 8, i1 false), !tbaa.struct !26
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %union.nk_handle, ptr %8, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8
  call void %117(ptr %123, ptr noundef %121)
  br label %124

124:                                              ; preds = %113
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %125, ptr %5, align 8, !tbaa !5
  br label %88, !llvm.loop !28

126:                                              ; preds = %88
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.nk_font_config, ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !30
  store ptr %129, ptr %4, align 8, !tbaa !5
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.nk_font_config, ptr %130, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %147

134:                                              ; preds = %126
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.nk_font_atlas, ptr %135, i32 0, i32 3
  %137 = getelementptr inbounds %struct.nk_allocator, ptr %136, i32 0, i32 2
  %138 = load ptr, ptr %137, align 8, !tbaa !17
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.nk_font_atlas, ptr %139, i32 0, i32 3
  %141 = getelementptr inbounds %struct.nk_allocator, ptr %140, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %141, i64 8, i1 false), !tbaa.struct !26
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.nk_font_config, ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !25
  %145 = getelementptr inbounds %union.nk_handle, ptr %9, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  call void %138(ptr %146, ptr noundef %144)
  br label %147

147:                                              ; preds = %134, %126
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.nk_font_atlas, ptr %148, i32 0, i32 3
  %150 = getelementptr inbounds %struct.nk_allocator, ptr %149, i32 0, i32 2
  %151 = load ptr, ptr %150, align 8, !tbaa !17
  %152 = load ptr, ptr %2, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.nk_font_atlas, ptr %152, i32 0, i32 3
  %154 = getelementptr inbounds %struct.nk_allocator, ptr %153, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %154, i64 8, i1 false), !tbaa.struct !26
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %union.nk_handle, ptr %10, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8
  call void %151(ptr %157, ptr noundef %155)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %158

158:                                              ; preds = %147
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %159, ptr %3, align 8, !tbaa !5
  br label %81, !llvm.loop !31

160:                                              ; preds = %81
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.nk_font_atlas, ptr %161, i32 0, i32 11
  store ptr null, ptr %162, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %163

163:                                              ; preds = %160, %72
  %164 = load ptr, ptr %2, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.nk_font_atlas, ptr %164, i32 0, i32 10
  %166 = load ptr, ptr %165, align 8, !tbaa !32
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %194

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

172:                                              ; preds = %189, %168
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %191

175:                                              ; preds = %172
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.nk_font, ptr %176, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8, !tbaa !33
  store ptr %178, ptr %12, align 8, !tbaa !5
  %179 = load ptr, ptr %2, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.nk_font_atlas, ptr %179, i32 0, i32 3
  %181 = getelementptr inbounds %struct.nk_allocator, ptr %180, i32 0, i32 2
  %182 = load ptr, ptr %181, align 8, !tbaa !17
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.nk_font_atlas, ptr %183, i32 0, i32 3
  %185 = getelementptr inbounds %struct.nk_allocator, ptr %184, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %185, i64 8, i1 false), !tbaa.struct !26
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = getelementptr inbounds %union.nk_handle, ptr %13, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8
  call void %182(ptr %188, ptr noundef %186)
  br label %189

189:                                              ; preds = %175
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %190, ptr %11, align 8, !tbaa !5
  br label %172, !llvm.loop !37

191:                                              ; preds = %172
  %192 = load ptr, ptr %2, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.nk_font_atlas, ptr %192, i32 0, i32 10
  store ptr null, ptr %193, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %194

194:                                              ; preds = %191, %163
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.nk_font_atlas, ptr %195, i32 0, i32 8
  %197 = load ptr, ptr %196, align 8, !tbaa !38
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %212

199:                                              ; preds = %194
  %200 = load ptr, ptr %2, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.nk_font_atlas, ptr %200, i32 0, i32 3
  %202 = getelementptr inbounds %struct.nk_allocator, ptr %201, i32 0, i32 2
  %203 = load ptr, ptr %202, align 8, !tbaa !17
  %204 = load ptr, ptr %2, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.nk_font_atlas, ptr %204, i32 0, i32 3
  %206 = getelementptr inbounds %struct.nk_allocator, ptr %205, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %206, i64 8, i1 false), !tbaa.struct !26
  %207 = load ptr, ptr %2, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.nk_font_atlas, ptr %207, i32 0, i32 8
  %209 = load ptr, ptr %208, align 8, !tbaa !38
  %210 = getelementptr inbounds %union.nk_handle, ptr %14, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8
  call void %203(ptr %211, ptr noundef %209)
  br label %212

212:                                              ; preds = %199, %194
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZL7nk_zeroPvm(ptr noundef %213, i64 noundef 400)
  br label %214

214:                                              ; preds = %212, %71
  ret void
}

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 = { noreturn nounwind }
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, !6, i64 48}
!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 56}
!16 = !{!10, !6, i64 24}
!17 = !{!10, !6, i64 32}
!18 = !{!10, !6, i64 384}
!19 = !{!20, !6, i64 72}
!20 = !{!"_ZTS14nk_font_config", !6, i64 0, !6, i64 8, !21, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !7, i64 28, !7, i64 29, !22, i64 32, !23, i64 36, !24, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !6, i64 80}
!21 = !{!"long", !7, i64 0}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTS18nk_font_coord_type", !7, i64 0}
!24 = !{!"_ZTS7nk_vec2", !22, i64 0, !22, i64 4}
!25 = !{!20, !6, i64 8}
!26 = !{i64 0, i64 8, !27}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!20, !6, i64 0}
!31 = distinct !{!31, !29}
!32 = !{!10, !6, i64 376}
!33 = !{!34, !6, i64 0}
!34 = !{!"_ZTS7nk_font", !6, i64 0, !35, i64 8, !36, i64 48, !22, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !7, i64 112, !6, i64 120}
!35 = !{!"_ZTS12nk_user_font", !7, i64 0, !22, i64 8, !6, i64 16, !6, i64 24, !7, i64 32}
!36 = !{!"_ZTS13nk_baked_font", !22, i64 0, !22, i64 4, !22, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!37 = distinct !{!37, !29}
!38 = !{!10, !6, i64 360}


; 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.44 = external hidden unnamed_addr constant [6 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
@__PRETTY_FUNCTION__.nk_font_atlas_clear = external hidden unnamed_addr constant [49 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 uwtable
define dso_local void @nk_font_atlas_clear(ptr noundef %0) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %3

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

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 48
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not59 = icmp eq ptr %5, null
  br i1 %.not59, label %6, label %7

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.1, i32 noundef 17777, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_clear) #2
  unreachable

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %.not60 = icmp eq ptr %9, null
  br i1 %.not60, label %10, label %11

10:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.1, i32 noundef 17778, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_clear) #2
  unreachable

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  %.not61 = icmp eq ptr %14, null
  br i1 %.not61, label %15, label %16

15:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.1, i32 noundef 17779, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_clear) #2
  unreachable

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

19:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.1, i32 noundef 17780, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_clear) #2
  unreachable

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %0, i64 384
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %.not63 = icmp eq ptr %22, null
  br i1 %.not63, label %41, label %.preheader71

.preheader71:                                     ; preds = %20, %38
  %.074 = phi ptr [ %32, %38 ], [ %22, %20 ]
  %23 = getelementptr inbounds i8, ptr %.074, i64 72
  %24 = load ptr, ptr %23, align 8, !tbaa !18
  %.not6872 = icmp eq ptr %24, %.074
  br i1 %.not6872, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader71, %30
  %.05273 = phi ptr [ %26, %30 ], [ %24, %.preheader71 ]
  %25 = getelementptr inbounds i8, ptr %.05273, i64 72
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = getelementptr inbounds i8, ptr %.05273, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %.not70 = icmp eq ptr %28, null
  %.pre76 = load ptr, ptr %17, align 8, !tbaa !16
  br i1 %.not70, label %30, label %29

29:                                               ; preds = %.lr.ph
  %.sroa.08.0.copyload = load ptr, ptr %12, align 8, !tbaa !25
  tail call void %.pre76(ptr %.sroa.08.0.copyload, ptr noundef nonnull %28)
  %.pre = load ptr, ptr %17, align 8, !tbaa !16
  br label %30

30:                                               ; preds = %29, %.lr.ph
  %31 = phi ptr [ %.pre, %29 ], [ %.pre76, %.lr.ph ]
  %.sroa.07.0.copyload = load ptr, ptr %12, align 8, !tbaa !25
  tail call void %31(ptr %.sroa.07.0.copyload, ptr noundef nonnull %.05273)
  %.not68 = icmp eq ptr %26, %.074
  br i1 %.not68, label %._crit_edge, label %.lr.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %30, %.preheader71
  %.052.lcssa = phi ptr [ %24, %.preheader71 ], [ %26, %30 ]
  %32 = load ptr, ptr %.074, align 8, !tbaa !28
  %33 = getelementptr inbounds i8, ptr %.052.lcssa, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !24
  %.not69 = icmp eq ptr %34, null
  %.pre78 = load ptr, ptr %17, align 8, !tbaa !16
  br i1 %.not69, label %38, label %35

35:                                               ; preds = %._crit_edge
  %.sroa.06.0.copyload = load ptr, ptr %12, align 8, !tbaa !25
  %36 = getelementptr inbounds i8, ptr %.074, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !24
  tail call void %.pre78(ptr %.sroa.06.0.copyload, ptr noundef %37)
  %.pre77 = load ptr, ptr %17, align 8, !tbaa !16
  br label %38

38:                                               ; preds = %35, %._crit_edge
  %39 = phi ptr [ %.pre77, %35 ], [ %.pre78, %._crit_edge ]
  %.sroa.05.0.copyload = load ptr, ptr %12, align 8, !tbaa !25
  tail call void %39(ptr %.sroa.05.0.copyload, ptr noundef nonnull %.074)
  %.not64 = icmp eq ptr %32, null
  br i1 %.not64, label %40, label %.preheader71, !llvm.loop !29

40:                                               ; preds = %38
  store ptr null, ptr %21, align 8, !tbaa !17
  br label %41

41:                                               ; preds = %40, %20
  %42 = getelementptr inbounds i8, ptr %0, i64 376
  %43 = load ptr, ptr %42, align 8, !tbaa !30
  %.not65 = icmp eq ptr %43, null
  br i1 %.not65, label %47, label %.preheader

.preheader:                                       ; preds = %41, %.preheader
  %.05375 = phi ptr [ %44, %.preheader ], [ %43, %41 ]
  %44 = load ptr, ptr %.05375, align 8, !tbaa !31
  %45 = load ptr, ptr %17, align 8, !tbaa !16
  %.sroa.01.0.copyload = load ptr, ptr %12, align 8, !tbaa !25
  tail call void %45(ptr %.sroa.01.0.copyload, ptr noundef nonnull %.05375)
  %.not66 = icmp eq ptr %44, null
  br i1 %.not66, label %46, label %.preheader, !llvm.loop !35

46:                                               ; preds = %.preheader
  store ptr null, ptr %42, align 8, !tbaa !30
  br label %47

47:                                               ; preds = %46, %41
  %48 = getelementptr inbounds i8, ptr %0, i64 360
  %49 = load ptr, ptr %48, align 8, !tbaa !36
  %.not67 = icmp eq ptr %49, null
  br i1 %.not67, label %52, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr %17, align 8, !tbaa !16
  %.sroa.0.0.copyload = load ptr, ptr %12, align 8, !tbaa !25
  tail call void %51(ptr %.sroa.0.0.copyload, ptr noundef nonnull %49)
  br label %52

52:                                               ; preds = %50, %47
  tail call void @_ZL7nk_zeroPvm(ptr noundef nonnull %0, i64 noundef 400)
  ret void
}

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 = { 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 48}
!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 56}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !7, i64 384}
!18 = !{!19, !7, i64 72}
!19 = !{!"_ZTS14nk_font_config", !7, i64 0, !7, i64 8, !20, i64 16, !8, i64 24, !8, i64 25, !8, i64 26, !8, i64 27, !8, i64 28, !8, i64 29, !21, i64 32, !22, i64 36, !23, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !7, i64 72, !7, i64 80}
!20 = !{!"long", !8, i64 0}
!21 = !{!"float", !8, i64 0}
!22 = !{!"_ZTS18nk_font_coord_type", !8, i64 0}
!23 = !{!"_ZTS7nk_vec2", !21, i64 0, !21, i64 4}
!24 = !{!19, !7, i64 8}
!25 = !{!8, !8, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!19, !7, i64 0}
!29 = distinct !{!29, !27}
!30 = !{!6, !7, i64 376}
!31 = !{!32, !7, i64 0}
!32 = !{!"_ZTS7nk_font", !7, i64 0, !33, i64 8, !34, i64 48, !21, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !8, i64 112, !7, i64 120}
!33 = !{!"_ZTS12nk_user_font", !8, i64 0, !21, i64 8, !7, i64 16, !7, i64 24, !8, i64 32}
!34 = !{!"_ZTS13nk_baked_font", !21, i64 0, !21, i64 4, !21, i64 8, !10, i64 12, !10, i64 16, !7, i64 24}
!35 = distinct !{!35, !27}
!36 = !{!6, !7, i64 360}


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