; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/tests (gamma)

; 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.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 }
%union.nk_handle = type { 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.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.47 = 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: nounwind uwtable
declare hidden void @nk_zero(ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @nk_font_atlas_clear(ptr noundef %0) #2 {
  %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 ptr, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %1
  br label %13

12:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.38, ptr noundef @.str.2, i32 noundef 13895, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #3
  unreachable

13:                                               ; preds = %11
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.nk_font_atlas, ptr %14, i32 0, i32 4
  %16 = getelementptr inbounds %struct.nk_allocator, ptr %15, i32 0, i32 1
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %13
  br label %21

20:                                               ; preds = %13
  call void @__assert_fail(ptr noundef @.str.46, ptr noundef @.str.2, i32 noundef 13896, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #3
  unreachable

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

27:                                               ; preds = %21
  br label %29

28:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.2, i32 noundef 13897, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #3
  unreachable

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

35:                                               ; preds = %29
  br label %37

36:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.2, i32 noundef 13898, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #3
  unreachable

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

43:                                               ; preds = %37
  br label %45

44:                                               ; preds = %37
  call void @__assert_fail(ptr noundef @.str.45, ptr noundef @.str.2, i32 noundef 13899, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_clear) #3
  unreachable

45:                                               ; preds = %43
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %60

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

54:                                               ; preds = %48
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.nk_font_atlas, ptr %55, i32 0, i32 3
  %57 = getelementptr inbounds %struct.nk_allocator, ptr %56, i32 0, i32 2
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = icmp ne ptr %58, null
  br i1 %59, label %61, label %60

60:                                               ; preds = %54, %48, %45
  br label %203

61:                                               ; preds = %54
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.nk_font_atlas, ptr %62, i32 0, i32 11
  %64 = load ptr, ptr %63, align 8, !tbaa !18
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %152

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.nk_font_atlas, ptr %67, i32 0, i32 11
  %69 = load ptr, ptr %68, align 8, !tbaa !18
  store ptr %69, ptr %3, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %147, %66
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %149

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.nk_font_config, ptr %74, i32 0, i32 15
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  store ptr %76, ptr %5, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %113, %73
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = icmp ne ptr %78, %79
  br i1 %80, label %81, label %115

81:                                               ; preds = %77
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.nk_font_config, ptr %82, i32 0, i32 15
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  store ptr %84, ptr %6, align 8, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.nk_font_config, ptr %85, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !24
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %102

89:                                               ; preds = %81
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.nk_font_atlas, ptr %90, i32 0, i32 3
  %92 = getelementptr inbounds %struct.nk_allocator, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !17
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.nk_font_atlas, ptr %94, i32 0, i32 3
  %96 = getelementptr inbounds %struct.nk_allocator, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.nk_font_config, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  %100 = getelementptr inbounds %union.nk_handle, ptr %96, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8
  call void %93(ptr %101, ptr noundef %99)
  br label %102

102:                                              ; preds = %89, %81
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.nk_font_atlas, ptr %103, i32 0, i32 3
  %105 = getelementptr inbounds %struct.nk_allocator, ptr %104, i32 0, i32 2
  %106 = load ptr, ptr %105, align 8, !tbaa !17
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.nk_font_atlas, ptr %107, i32 0, i32 3
  %109 = getelementptr inbounds %struct.nk_allocator, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %union.nk_handle, ptr %109, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8
  call void %106(ptr %112, ptr noundef %110)
  br label %113

113:                                              ; preds = %102
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %114, ptr %5, align 8, !tbaa !5
  br label %77, !llvm.loop !25

115:                                              ; preds = %77
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.nk_font_config, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !27
  store ptr %118, ptr %4, align 8, !tbaa !5
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.nk_font_config, ptr %119, i32 0, i32 1
  %121 = load ptr, ptr %120, align 8, !tbaa !24
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %136

123:                                              ; preds = %115
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.nk_font_atlas, ptr %124, i32 0, i32 3
  %126 = getelementptr inbounds %struct.nk_allocator, ptr %125, i32 0, i32 2
  %127 = load ptr, ptr %126, align 8, !tbaa !17
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.nk_font_atlas, ptr %128, i32 0, i32 3
  %130 = getelementptr inbounds %struct.nk_allocator, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.nk_font_config, ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !24
  %134 = getelementptr inbounds %union.nk_handle, ptr %130, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8
  call void %127(ptr %135, ptr noundef %133)
  br label %136

136:                                              ; preds = %123, %115
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.nk_font_atlas, ptr %137, i32 0, i32 3
  %139 = getelementptr inbounds %struct.nk_allocator, ptr %138, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.nk_font_atlas, ptr %141, i32 0, i32 3
  %143 = getelementptr inbounds %struct.nk_allocator, ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %union.nk_handle, ptr %143, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  call void %140(ptr %146, ptr noundef %144)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %147

147:                                              ; preds = %136
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %148, ptr %3, align 8, !tbaa !5
  br label %70, !llvm.loop !28

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

152:                                              ; preds = %149, %61
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.nk_font_atlas, ptr %153, i32 0, i32 10
  %155 = load ptr, ptr %154, align 8, !tbaa !29
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %183

157:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.nk_font_atlas, ptr %158, i32 0, i32 10
  %160 = load ptr, ptr %159, align 8, !tbaa !29
  store ptr %160, ptr %7, align 8, !tbaa !5
  br label %161

161:                                              ; preds = %178, %157
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = icmp ne ptr %162, null
  br i1 %163, label %164, label %180

164:                                              ; preds = %161
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.nk_font, ptr %165, i32 0, i32 0
  %167 = load ptr, ptr %166, align 8, !tbaa !30
  store ptr %167, ptr %8, align 8, !tbaa !5
  %168 = load ptr, ptr %2, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.nk_font_atlas, ptr %168, i32 0, i32 3
  %170 = getelementptr inbounds %struct.nk_allocator, ptr %169, i32 0, i32 2
  %171 = load ptr, ptr %170, align 8, !tbaa !17
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.nk_font_atlas, ptr %172, i32 0, i32 3
  %174 = getelementptr inbounds %struct.nk_allocator, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = getelementptr inbounds %union.nk_handle, ptr %174, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8
  call void %171(ptr %177, ptr noundef %175)
  br label %178

178:                                              ; preds = %164
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %179, ptr %7, align 8, !tbaa !5
  br label %161, !llvm.loop !34

180:                                              ; preds = %161
  %181 = load ptr, ptr %2, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.nk_font_atlas, ptr %181, i32 0, i32 10
  store ptr null, ptr %182, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %183

183:                                              ; preds = %180, %152
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.nk_font_atlas, ptr %184, i32 0, i32 8
  %186 = load ptr, ptr %185, align 8, !tbaa !35
  %187 = icmp ne ptr %186, null
  br i1 %187, label %188, label %201

188:                                              ; preds = %183
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.nk_font_atlas, ptr %189, i32 0, i32 3
  %191 = getelementptr inbounds %struct.nk_allocator, ptr %190, i32 0, i32 2
  %192 = load ptr, ptr %191, align 8, !tbaa !17
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.nk_font_atlas, ptr %193, i32 0, i32 3
  %195 = getelementptr inbounds %struct.nk_allocator, ptr %194, i32 0, i32 0
  %196 = load ptr, ptr %2, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.nk_font_atlas, ptr %196, i32 0, i32 8
  %198 = load ptr, ptr %197, align 8, !tbaa !35
  %199 = getelementptr inbounds %union.nk_handle, ptr %195, i32 0, i32 0
  %200 = load ptr, ptr %199, align 8
  call void %192(ptr %200, ptr noundef %198)
  br label %201

201:                                              ; preds = %188, %183
  %202 = load ptr, ptr %2, align 8, !tbaa !5
  call void @nk_zero(ptr noundef %202, i64 noundef 400)
  br label %203

203:                                              ; preds = %201, %60
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 }
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/C++ TBAA"}
!9 = !{!10, !6, i64 48}
!10 = !{!"nk_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 = !{!"nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"nk_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 = !{!"nk_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, !11, i64 36, !23, 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 = !{!"nk_vec2", !22, i64 0, !22, i64 4}
!24 = !{!20, !6, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!20, !6, i64 0}
!28 = distinct !{!28, !26}
!29 = !{!10, !6, i64 376}
!30 = !{!31, !6, i64 0}
!31 = !{!"nk_font", !6, i64 0, !32, i64 8, !33, i64 48, !22, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !7, i64 112, !6, i64 120}
!32 = !{!"nk_user_font", !7, i64 0, !22, i64 8, !6, i64 16, !6, i64 24, !7, i64 32}
!33 = !{!"nk_baked_font", !22, i64 0, !22, i64 4, !22, i64 8, !11, i64 12, !11, i64 16, !6, i64 24}
!34 = distinct !{!34, !26}
!35 = !{!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.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.47 = 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: nounwind uwtable
declare hidden void @nk_zero(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind 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.38, ptr noundef nonnull @.str.2, i32 noundef 13895, 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
  %.not54 = icmp eq ptr %5, null
  br i1 %.not54, label %6, label %7

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.2, i32 noundef 13896, 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
  %.not55 = icmp eq ptr %9, null
  br i1 %.not55, label %10, label %11

10:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.2, i32 noundef 13897, 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
  %.not56 = icmp eq ptr %14, null
  br i1 %.not56, label %15, label %16

15:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.2, i32 noundef 13898, 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
  %.not57 = icmp eq ptr %18, null
  br i1 %.not57, label %19, label %20

19:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.45, ptr noundef nonnull @.str.2, i32 noundef 13899, 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
  %.not58 = icmp eq ptr %22, null
  br i1 %.not58, label %45, label %.preheader66

.preheader66:                                     ; preds = %20, %41
  %.069 = phi ptr [ %34, %41 ], [ %22, %20 ]
  %23 = getelementptr inbounds i8, ptr %.069, i64 72
  %24 = load ptr, ptr %23, align 8, !tbaa !18
  %.not6367 = icmp eq ptr %24, %.069
  br i1 %.not6367, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader66, %31
  %.04868 = phi ptr [ %26, %31 ], [ %24, %.preheader66 ]
  %25 = getelementptr inbounds i8, ptr %.04868, i64 72
  %26 = load ptr, ptr %25, align 8, !tbaa !18
  %27 = getelementptr inbounds i8, ptr %.04868, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !23
  %.not65 = icmp eq ptr %28, null
  %.pre71 = load ptr, ptr %17, align 8, !tbaa !16
  br i1 %.not65, label %31, label %29

29:                                               ; preds = %.lr.ph
  %30 = load ptr, ptr %12, align 8
  tail call void %.pre71(ptr %30, ptr noundef nonnull %28) #3
  %.pre = load ptr, ptr %17, align 8, !tbaa !16
  br label %31

31:                                               ; preds = %29, %.lr.ph
  %32 = phi ptr [ %.pre, %29 ], [ %.pre71, %.lr.ph ]
  %33 = load ptr, ptr %12, align 8
  tail call void %32(ptr %33, ptr noundef nonnull %.04868) #3
  %.not63 = icmp eq ptr %26, %.069
  br i1 %.not63, label %._crit_edge, label %.lr.ph, !llvm.loop !24

._crit_edge:                                      ; preds = %31, %.preheader66
  %.048.lcssa = phi ptr [ %24, %.preheader66 ], [ %26, %31 ]
  %34 = load ptr, ptr %.069, align 8, !tbaa !26
  %35 = getelementptr inbounds i8, ptr %.048.lcssa, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !23
  %.not64 = icmp eq ptr %36, null
  %.pre73 = load ptr, ptr %17, align 8, !tbaa !16
  br i1 %.not64, label %41, label %37

37:                                               ; preds = %._crit_edge
  %38 = getelementptr inbounds i8, ptr %.069, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !23
  %40 = load ptr, ptr %12, align 8
  tail call void %.pre73(ptr %40, ptr noundef %39) #3
  %.pre72 = load ptr, ptr %17, align 8, !tbaa !16
  br label %41

41:                                               ; preds = %37, %._crit_edge
  %42 = phi ptr [ %.pre72, %37 ], [ %.pre73, %._crit_edge ]
  %43 = load ptr, ptr %12, align 8
  tail call void %42(ptr %43, ptr noundef nonnull %.069) #3
  %.not59 = icmp eq ptr %34, null
  br i1 %.not59, label %44, label %.preheader66, !llvm.loop !27

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

45:                                               ; preds = %44, %20
  %46 = getelementptr inbounds i8, ptr %0, i64 376
  %47 = load ptr, ptr %46, align 8, !tbaa !28
  %.not60 = icmp eq ptr %47, null
  br i1 %.not60, label %52, label %.preheader

.preheader:                                       ; preds = %45, %.preheader
  %.04770 = phi ptr [ %48, %.preheader ], [ %47, %45 ]
  %48 = load ptr, ptr %.04770, align 8, !tbaa !29
  %49 = load ptr, ptr %17, align 8, !tbaa !16
  %50 = load ptr, ptr %12, align 8
  tail call void %49(ptr %50, ptr noundef nonnull %.04770) #3
  %.not61 = icmp eq ptr %48, null
  br i1 %.not61, label %51, label %.preheader, !llvm.loop !33

51:                                               ; preds = %.preheader
  store ptr null, ptr %46, align 8, !tbaa !28
  br label %52

52:                                               ; preds = %51, %45
  %53 = getelementptr inbounds i8, ptr %0, i64 360
  %54 = load ptr, ptr %53, align 8, !tbaa !34
  %.not62 = icmp eq ptr %54, null
  br i1 %.not62, label %58, label %55

55:                                               ; preds = %52
  %56 = load ptr, ptr %17, align 8, !tbaa !16
  %57 = load ptr, ptr %12, align 8
  tail call void %56(ptr %57, ptr noundef nonnull %54) #3
  br label %58

58:                                               ; preds = %55, %52
  tail call void @nk_zero(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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 48}
!6 = !{!"nk_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/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"nk_allocator", !8, i64 0, !7, i64 8, !7, i64 16}
!12 = !{!"nk_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 = !{!"nk_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, !10, i64 36, !22, 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 = !{!"nk_vec2", !21, i64 0, !21, i64 4}
!23 = !{!19, !7, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!19, !7, i64 0}
!27 = distinct !{!27, !25}
!28 = !{!6, !7, i64 376}
!29 = !{!30, !7, i64 0}
!30 = !{!"nk_font", !7, i64 0, !31, i64 8, !32, i64 48, !21, i64 80, !7, i64 88, !7, i64 96, !10, i64 104, !8, i64 112, !7, i64 120}
!31 = !{!"nk_user_font", !8, i64 0, !21, i64 8, !7, i64 16, !7, i64 24, !8, i64 32}
!32 = !{!"nk_baked_font", !21, i64 0, !21, i64 4, !21, i64 8, !10, i64 12, !10, i64 16, !7, i64 24}
!33 = distinct !{!33, !25}
!34 = !{!6, !7, i64 360}


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