; 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_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_vec2 = type { float, float }
%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] }

@.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_add_compressed = external hidden unnamed_addr constant [124 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [18 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: 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) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_font_config(ptr dead_on_unwind noalias writable sret(%struct.nk_font_config) align 8, float noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @nk_font_atlas_add(ptr noundef, ptr noundef) #4

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

20:                                               ; preds = %5
  br label %22

21:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.38, ptr noundef @.str.2, i32 noundef 13641, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

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

28:                                               ; preds = %22
  br label %30

29:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.46, ptr noundef @.str.2, i32 noundef 13642, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

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

36:                                               ; preds = %30
  br label %38

37:                                               ; preds = %30
  call void @__assert_fail(ptr noundef @.str.47, ptr noundef @.str.2, i32 noundef 13643, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

38:                                               ; preds = %36
  %39 = load ptr, ptr %7, 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 !20
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %38
  br label %46

45:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.2, i32 noundef 13644, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

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

52:                                               ; preds = %46
  br label %54

53:                                               ; preds = %46
  call void @__assert_fail(ptr noundef @.str.45, ptr noundef @.str.2, i32 noundef 13645, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

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

57:                                               ; preds = %54
  br label %59

58:                                               ; preds = %54
  call void @__assert_fail(ptr noundef @.str.54, ptr noundef @.str.2, i32 noundef 13647, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

59:                                               ; preds = %57
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = icmp ne i64 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  br label %64

63:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.55, ptr noundef @.str.2, i32 noundef 13648, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

64:                                               ; preds = %62
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %94

67:                                               ; preds = %64
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %94

70:                                               ; preds = %67
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.nk_font_atlas, ptr %71, i32 0, i32 4
  %73 = getelementptr inbounds %struct.nk_allocator, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %94

76:                                               ; preds = %70
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.nk_font_atlas, ptr %77, i32 0, i32 4
  %79 = getelementptr inbounds %struct.nk_allocator, ptr %78, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !19
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %94

82:                                               ; preds = %76
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.nk_font_atlas, ptr %83, i32 0, i32 3
  %85 = getelementptr inbounds %struct.nk_allocator, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %94

88:                                               ; preds = %82
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.nk_font_atlas, ptr %89, i32 0, i32 3
  %91 = getelementptr inbounds %struct.nk_allocator, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = icmp ne ptr %92, null
  br i1 %93, label %95, label %94

94:                                               ; preds = %88, %82, %76, %70, %67, %64
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %141

95:                                               ; preds = %88
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = call i32 @nk_decompress_length(ptr noundef %96)
  store i32 %97, ptr %12, align 4, !tbaa !22
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.nk_font_atlas, ptr %98, i32 0, i32 3
  %100 = getelementptr inbounds %struct.nk_allocator, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !20
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.nk_font_atlas, ptr %102, i32 0, i32 3
  %104 = getelementptr inbounds %struct.nk_allocator, ptr %103, i32 0, i32 0
  %105 = load i32, ptr %12, align 4, !tbaa !22
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds %union.nk_handle, ptr %104, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8
  %109 = call ptr %101(ptr %108, ptr noundef null, i64 noundef %106)
  store ptr %109, ptr %13, align 8, !tbaa !5
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = icmp ne ptr %110, null
  br i1 %111, label %112, label %113

112:                                              ; preds = %95
  br label %114

113:                                              ; preds = %95
  call void @__assert_fail(ptr noundef @.str.56, ptr noundef @.str.2, i32 noundef 13655, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

114:                                              ; preds = %112
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = icmp ne ptr %115, null
  br i1 %116, label %118, label %117

117:                                              ; preds = %114
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %141

118:                                              ; preds = %114
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = load i64, ptr %9, align 8, !tbaa !9
  %122 = trunc i64 %121 to i32
  %123 = call i32 @nk_decompress(ptr noundef %119, ptr noundef %120, i32 noundef %122)
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = icmp ne ptr %124, null
  store i1 false, ptr %17, align 1
  br i1 %125, label %126, label %128

126:                                              ; preds = %118
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %127, i64 88, i1 false), !tbaa.struct !23
  br label %130

128:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 88, ptr %16) #5
  store i1 true, ptr %17, align 1
  %129 = load float, ptr %10, align 4, !tbaa !11
  call void @nk_font_config(ptr dead_on_unwind writable sret(%struct.nk_font_config) align 8 %16, float noundef %129)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %16, i64 88, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #5
  br label %130

130:                                              ; preds = %128, %126
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.nk_font_config, ptr %14, i32 0, i32 1
  store ptr %131, ptr %132, align 8, !tbaa !25
  %133 = load i32, ptr %12, align 4, !tbaa !22
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds %struct.nk_font_config, ptr %14, i32 0, i32 2
  store i64 %134, ptr %135, align 8, !tbaa !28
  %136 = load float, ptr %10, align 4, !tbaa !11
  %137 = getelementptr inbounds %struct.nk_font_config, ptr %14, i32 0, i32 9
  store float %136, ptr %137, align 8, !tbaa !29
  %138 = getelementptr inbounds %struct.nk_font_config, ptr %14, i32 0, i32 3
  store i8 1, ptr %138, align 8, !tbaa !30
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = call ptr @nk_font_atlas_add(ptr noundef %139, ptr noundef %14)
  store ptr %140, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %141

141:                                              ; preds = %130, %117, %94
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %142 = load ptr, ptr %6, align 8
  ret ptr %142
}

; Function Attrs: nounwind uwtable
declare hidden i32 @nk_decompress_length(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @nk_decompress(ptr noundef, ptr noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 48}
!14 = !{!"nk_font_atlas", !6, i64 0, !15, i64 8, !15, i64 12, !16, i64 16, !16, i64 40, !17, i64 64, !7, i64 72, !15, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !15, i64 392}
!15 = !{!"int", !7, i64 0}
!16 = !{!"nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"nk_recti", !18, i64 0, !18, i64 2, !18, i64 4, !18, i64 6}
!18 = !{!"short", !7, i64 0}
!19 = !{!14, !6, i64 56}
!20 = !{!14, !6, i64 24}
!21 = !{!14, !6, i64 32}
!22 = !{!15, !15, i64 0}
!23 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !9, i64 24, i64 1, !24, i64 25, i64 1, !24, i64 26, i64 1, !24, i64 27, i64 1, !24, i64 28, i64 1, !24, i64 29, i64 3, !24, i64 32, i64 4, !11, i64 36, i64 4, !22, i64 40, i64 4, !11, i64 44, i64 4, !11, i64 48, i64 8, !5, i64 56, i64 8, !5, i64 64, i64 4, !22, i64 72, i64 8, !5, i64 80, i64 8, !5}
!24 = !{!7, !7, i64 0}
!25 = !{!26, !6, i64 8}
!26 = !{!"nk_font_config", !6, i64 0, !6, i64 8, !10, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !7, i64 28, !7, i64 29, !12, i64 32, !15, i64 36, !27, i64 40, !6, i64 48, !6, i64 56, !15, i64 64, !6, i64 72, !6, i64 80}
!27 = !{!"nk_vec2", !12, i64 0, !12, i64 4}
!28 = !{!26, !10, i64 16}
!29 = !{!26, !12, i64 32}
!30 = !{!26, !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"

%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_vec2 = type { float, float }

@.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_add_compressed = external hidden unnamed_addr constant [124 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [18 x i8], align 1

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

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

; Function Attrs: mustprogress 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) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_font_config(ptr dead_on_unwind noalias writable sret(%struct.nk_font_config) align 8, float noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @nk_font_atlas_add(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local ptr @nk_font_atlas_add_compressed(ptr noundef %0, ptr noundef %1, i64 noundef %2, float noundef %3, ptr noundef readonly %4) local_unnamed_addr #4 {
  %6 = alloca %struct.nk_font_config, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %7, label %8

7:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.2, i32 noundef 13641, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %.not35 = icmp eq ptr %10, null
  br i1 %.not35, label %11, label %12

11:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.2, i32 noundef 13642, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

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

15:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.2, i32 noundef 13643, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

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

20:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.2, i32 noundef 13644, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = load ptr, ptr %22, align 8, !tbaa !16
  %.not38 = icmp eq ptr %23, null
  br i1 %.not38, label %24, label %25

24:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.45, ptr noundef nonnull @.str.2, i32 noundef 13645, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

25:                                               ; preds = %21
  %.not39 = icmp eq ptr %1, null
  br i1 %.not39, label %26, label %27

26:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.2, i32 noundef 13647, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

27:                                               ; preds = %25
  %.not40 = icmp eq i64 %2, 0
  br i1 %.not40, label %28, label %29

28:                                               ; preds = %27
  tail call void @__assert_fail(ptr noundef nonnull @.str.55, ptr noundef nonnull @.str.2, i32 noundef 13648, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

29:                                               ; preds = %27
  %30 = tail call i32 @nk_decompress_length(ptr noundef nonnull %1)
  %31 = load ptr, ptr %18, align 8, !tbaa !15
  %32 = zext i32 %30 to i64
  %33 = load ptr, ptr %17, align 8
  %34 = tail call ptr %31(ptr %33, ptr noundef null, i64 noundef %32) #5
  %.not41 = icmp eq ptr %34, null
  br i1 %.not41, label %35, label %36

35:                                               ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.56, ptr noundef nonnull @.str.2, i32 noundef 13655, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #6
  unreachable

36:                                               ; preds = %29
  %37 = trunc i64 %2 to i32
  %38 = tail call i32 @nk_decompress(ptr noundef nonnull %34, ptr noundef nonnull %1, i32 noundef %37)
  %.not42 = icmp eq ptr %4, null
  br i1 %.not42, label %40, label %39

39:                                               ; preds = %36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef nonnull align 8 dereferenceable(88) %4, i64 88, i1 false), !tbaa.struct !17
  br label %41

40:                                               ; preds = %36
  call void @nk_font_config(ptr dead_on_unwind nonnull writable sret(%struct.nk_font_config) align 8 %6, float noundef %3)
  br label %41

41:                                               ; preds = %40, %39
  %42 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %34, ptr %42, align 8, !tbaa !25
  %43 = getelementptr inbounds i8, ptr %6, i64 16
  store i64 %32, ptr %43, align 8, !tbaa !28
  %44 = getelementptr inbounds i8, ptr %6, i64 32
  store float %3, ptr %44, align 8, !tbaa !29
  %45 = getelementptr inbounds i8, ptr %6, i64 24
  store i8 1, ptr %45, align 8, !tbaa !30
  %46 = call ptr @nk_font_atlas_add(ptr noundef nonnull %0, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %6) #5
  ret ptr %46
}

; Function Attrs: nounwind uwtable
declare hidden i32 @nk_decompress_length(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @nk_decompress(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree 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 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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, !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 = !{i64 0, i64 8, !18, i64 8, i64 8, !18, i64 16, i64 8, !19, i64 24, i64 1, !21, i64 25, i64 1, !21, i64 26, i64 1, !21, i64 27, i64 1, !21, i64 28, i64 1, !21, i64 29, i64 3, !21, i64 32, i64 4, !22, i64 36, i64 4, !24, i64 40, i64 4, !22, i64 44, i64 4, !22, i64 48, i64 8, !18, i64 56, i64 8, !18, i64 64, i64 4, !24, i64 72, i64 8, !18, i64 80, i64 8, !18}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !8, i64 0}
!21 = !{!8, !8, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"float", !8, i64 0}
!24 = !{!10, !10, i64 0}
!25 = !{!26, !7, i64 8}
!26 = !{!"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, !23, i64 32, !10, i64 36, !27, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !7, i64 72, !7, i64 80}
!27 = !{!"nk_vec2", !23, i64 0, !23, i64 4}
!28 = !{!26, !20, i64 16}
!29 = !{!26, !23, i64 32}
!30 = !{!26, !8, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass