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

%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 }
%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] }

@.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_add_compressed = external hidden unnamed_addr constant [124 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [18 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 dso_local void @nk_font_config(ptr dead_on_unwind noalias writable sret(%struct.nk_font_config) align 8, float noundef) #3

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

; Function Attrs: mustprogress 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 %union.nk_handle, align 8
  %17 = alloca %struct.nk_font_config, align 8
  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) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr %14) #6
  %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 %23

21:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.1, i32 noundef 17521, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

22:                                               ; No predecessors!
  br label %23

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

29:                                               ; preds = %23
  br label %32

30:                                               ; preds = %23
  call void @__assert_fail(ptr noundef @.str.52, ptr noundef @.str.1, i32 noundef 17522, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

31:                                               ; No predecessors!
  br label %32

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

38:                                               ; preds = %32
  br label %41

39:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.53, ptr noundef @.str.1, i32 noundef 17523, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

40:                                               ; No predecessors!
  br label %41

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

47:                                               ; preds = %41
  br label %50

48:                                               ; preds = %41
  call void @__assert_fail(ptr noundef @.str.50, ptr noundef @.str.1, i32 noundef 17524, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

49:                                               ; No predecessors!
  br label %50

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

56:                                               ; preds = %50
  br label %59

57:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.1, i32 noundef 17525, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

58:                                               ; No predecessors!
  br label %59

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

62:                                               ; preds = %59
  br label %65

63:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.60, ptr noundef @.str.1, i32 noundef 17527, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

64:                                               ; No predecessors!
  br label %65

65:                                               ; preds = %64, %62
  %66 = load i64, ptr %9, align 8, !tbaa !9
  %67 = icmp ne i64 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %65
  br label %71

69:                                               ; preds = %65
  call void @__assert_fail(ptr noundef @.str.61, ptr noundef @.str.1, i32 noundef 17528, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

70:                                               ; No predecessors!
  br label %71

71:                                               ; preds = %70, %68
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %101

74:                                               ; preds = %71
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %101

77:                                               ; preds = %74
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.nk_font_atlas, ptr %78, i32 0, i32 4
  %80 = getelementptr inbounds %struct.nk_allocator, ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %101

83:                                               ; preds = %77
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.nk_font_atlas, ptr %84, i32 0, i32 4
  %86 = getelementptr inbounds %struct.nk_allocator, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !19
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %101

89:                                               ; preds = %83
  %90 = load ptr, ptr %7, 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 1
  %93 = load ptr, ptr %92, align 8, !tbaa !20
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %101

95:                                               ; preds = %89
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.nk_font_atlas, ptr %96, i32 0, i32 3
  %98 = getelementptr inbounds %struct.nk_allocator, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !21
  %100 = icmp ne ptr %99, null
  br i1 %100, label %102, label %101

101:                                              ; preds = %95, %89, %83, %77, %74, %71
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %149

102:                                              ; preds = %95
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = call noundef i32 @_ZL20nk_decompress_lengthPh(ptr noundef %103)
  store i32 %104, ptr %12, align 4, !tbaa !22
  %105 = load ptr, ptr %7, 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 1
  %108 = load ptr, ptr %107, align 8, !tbaa !20
  %109 = load ptr, ptr %7, 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 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %111, i64 8, i1 false), !tbaa.struct !23
  %112 = load i32, ptr %12, align 4, !tbaa !22
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds %union.nk_handle, ptr %16, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8
  %116 = call noundef ptr %108(ptr %115, ptr noundef null, i64 noundef %113)
  store ptr %116, ptr %13, align 8, !tbaa !5
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %120

119:                                              ; preds = %102
  br label %122

120:                                              ; preds = %102
  call void @__assert_fail(ptr noundef @.str.62, ptr noundef @.str.1, i32 noundef 17535, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

121:                                              ; No predecessors!
  br label %122

122:                                              ; preds = %121, %119
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  br i1 %124, label %126, label %125

125:                                              ; preds = %122
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %149

126:                                              ; preds = %122
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = load i64, ptr %9, align 8, !tbaa !9
  %130 = trunc i64 %129 to i32
  %131 = call noundef i32 @_ZL13nk_decompressPhS_j(ptr noundef %127, ptr noundef %128, i32 noundef %130)
  call void @llvm.lifetime.start.p0(i64 88, ptr %17) #6
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %136

134:                                              ; preds = %126
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %135, i64 88, i1 false), !tbaa.struct !25
  br label %138

136:                                              ; preds = %126
  %137 = 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 %17, float noundef %137)
  br label %138

138:                                              ; preds = %136, %134
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %17, i64 88, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 88, ptr %17) #6
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.nk_font_config, ptr %14, i32 0, i32 1
  store ptr %139, ptr %140, align 8, !tbaa !28
  %141 = load i32, ptr %12, align 4, !tbaa !22
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds %struct.nk_font_config, ptr %14, i32 0, i32 2
  store i64 %142, ptr %143, align 8, !tbaa !31
  %144 = load float, ptr %10, align 4, !tbaa !11
  %145 = getelementptr inbounds %struct.nk_font_config, ptr %14, i32 0, i32 9
  store float %144, ptr %145, align 8, !tbaa !32
  %146 = getelementptr inbounds %struct.nk_font_config, ptr %14, i32 0, i32 3
  store i8 1, ptr %146, align 8, !tbaa !33
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = call ptr @nk_font_atlas_add(ptr noundef %147, ptr noundef %14)
  store ptr %148, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %149

149:                                              ; preds = %138, %125, %101
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %150 = load ptr, ptr %6, align 8
  ret ptr %150
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL20nk_decompress_lengthPh(ptr noundef) #5

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

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"="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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 48}
!14 = !{!"_ZTS13nk_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 = !{!"_ZTS12nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTS8nk_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, !24}
!24 = !{!7, !7, i64 0}
!25 = !{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, !26, 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}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS18nk_font_coord_type", !7, i64 0}
!28 = !{!29, !6, i64 8}
!29 = !{!"_ZTS14nk_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, !27, i64 36, !30, i64 40, !6, i64 48, !6, i64 56, !15, i64 64, !6, i64 72, !6, i64 80}
!30 = !{!"_ZTS7nk_vec2", !12, i64 0, !12, i64 4}
!31 = !{!29, !10, i64 16}
!32 = !{!29, !12, i64 32}
!33 = !{!29, !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.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_add_compressed = external hidden unnamed_addr constant [124 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [18 x i8], align 1

; 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) #0

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

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

; Function Attrs: mustprogress 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: mustprogress uwtable
declare dso_local ptr @nk_font_atlas_add(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress 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
  %7 = alloca %struct.nk_font_config, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %6) #6
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %8, label %9

8:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.1, i32 noundef 17521, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

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

12:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.1, i32 noundef 17522, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

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

16:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.53, ptr noundef nonnull @.str.1, i32 noundef 17523, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

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

21:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.1, i32 noundef 17524, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

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

25:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.1, i32 noundef 17525, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

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

27:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.60, ptr noundef nonnull @.str.1, i32 noundef 17527, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

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

29:                                               ; preds = %28
  tail call void @__assert_fail(ptr noundef nonnull @.str.61, ptr noundef nonnull @.str.1, i32 noundef 17528, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

30:                                               ; preds = %28
  %31 = tail call noundef i32 @_ZL20nk_decompress_lengthPh(ptr noundef nonnull %1)
  %32 = load ptr, ptr %19, align 8, !tbaa !15
  %.sroa.0.0.copyload = load ptr, ptr %18, align 8, !tbaa !17
  %33 = zext i32 %31 to i64
  %34 = tail call noundef ptr %32(ptr %.sroa.0.0.copyload, ptr noundef null, i64 noundef %33)
  %.not41 = icmp eq ptr %34, null
  br i1 %.not41, label %35, label %36

35:                                               ; preds = %30
  tail call void @__assert_fail(ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.1, i32 noundef 17535, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_compressed) #7
  unreachable

36:                                               ; preds = %30
  %37 = trunc i64 %2 to i32
  %38 = tail call noundef i32 @_ZL13nk_decompressPhS_j(ptr noundef nonnull %34, ptr noundef nonnull %1, i32 noundef %37)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %7) #6
  %.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) %7, ptr noundef nonnull align 8 dereferenceable(88) %4, i64 88, i1 false), !tbaa.struct !18
  br label %41

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

41:                                               ; preds = %40, %39
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef nonnull align 8 dereferenceable(88) %7, i64 88, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #6
  %42 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %34, ptr %42, align 8, !tbaa !27
  %43 = getelementptr inbounds i8, ptr %6, i64 16
  store i64 %33, ptr %43, align 8, !tbaa !30
  %44 = getelementptr inbounds i8, ptr %6, i64 32
  store float %3, ptr %44, align 8, !tbaa !31
  %45 = getelementptr inbounds i8, ptr %6, i64 24
  store i8 1, ptr %45, align 8, !tbaa !32
  %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) #6
  ret ptr %46
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL20nk_decompress_lengthPh(ptr noundef) local_unnamed_addr #5

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

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


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