; 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.15 = external hidden unnamed_addr constant [5 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
@.str.53 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory = external hidden unnamed_addr constant [125 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_from_memory(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 %struct.nk_font_config, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.nk_font_config, align 8
  %15 = 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 88, ptr %12) #5
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %5
  br label %20

19:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.53, ptr noundef @.str.2, i32 noundef 13586, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #6
  unreachable

20:                                               ; preds = %18
  %21 = load i64, ptr %9, align 8, !tbaa !9
  %22 = icmp ne i64 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  br label %25

24:                                               ; preds = %20
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.2, i32 noundef 13587, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #6
  unreachable

25:                                               ; preds = %23
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  br label %30

29:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.38, ptr noundef @.str.2, i32 noundef 13589, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #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 1
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %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.46, ptr noundef @.str.2, i32 noundef 13590, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #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 4
  %41 = getelementptr inbounds %struct.nk_allocator, ptr %40, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  %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.47, ptr noundef @.str.2, i32 noundef 13591, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #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 1
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  %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.44, ptr noundef @.str.2, i32 noundef 13592, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #6
  unreachable

54:                                               ; preds = %52
  %55 = load ptr, ptr %7, 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 !21
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %61

60:                                               ; preds = %54
  br label %62

61:                                               ; preds = %54
  call void @__assert_fail(ptr noundef @.str.45, ptr noundef @.str.2, i32 noundef 13593, ptr noundef @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #6
  unreachable

62:                                               ; preds = %60
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %95

65:                                               ; preds = %62
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.nk_font_atlas, ptr %66, i32 0, i32 4
  %68 = getelementptr inbounds %struct.nk_allocator, ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %95

71:                                               ; preds = %65
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.nk_font_atlas, ptr %72, i32 0, i32 4
  %74 = getelementptr inbounds %struct.nk_allocator, ptr %73, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %95

77:                                               ; preds = %71
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %95

80:                                               ; preds = %77
  %81 = load i64, ptr %9, align 8, !tbaa !9
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %83, label %95

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

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 2
  %93 = load ptr, ptr %92, align 8, !tbaa !21
  %94 = icmp ne ptr %93, null
  br i1 %94, label %96, label %95

95:                                               ; preds = %89, %83, %80, %77, %71, %65, %62
  store ptr null, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %113

96:                                               ; preds = %89
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = icmp ne ptr %97, null
  store i1 false, ptr %15, align 1
  br i1 %98, label %99, label %101

99:                                               ; preds = %96
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %100, i64 88, i1 false), !tbaa.struct !22
  br label %103

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 88, ptr %14) #5
  store i1 true, ptr %15, align 1
  %102 = 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 %14, float noundef %102)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %14, i64 88, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #5
  br label %103

103:                                              ; preds = %101, %99
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.nk_font_config, ptr %12, i32 0, i32 1
  store ptr %104, ptr %105, align 8, !tbaa !25
  %106 = load i64, ptr %9, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.nk_font_config, ptr %12, i32 0, i32 2
  store i64 %106, ptr %107, align 8, !tbaa !28
  %108 = load float, ptr %10, align 4, !tbaa !11
  %109 = getelementptr inbounds %struct.nk_font_config, ptr %12, i32 0, i32 9
  store float %108, ptr %109, align 8, !tbaa !29
  %110 = getelementptr inbounds %struct.nk_font_config, ptr %12, i32 0, i32 3
  store i8 0, ptr %110, align 8, !tbaa !30
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = call ptr @nk_font_atlas_add(ptr noundef %111, ptr noundef %12)
  store ptr %112, ptr %6, align 8
  store i32 1, ptr %13, align 4
  br label %113

113:                                              ; preds = %103, %95
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #5
  %114 = load ptr, ptr %6, align 8
  ret ptr %114
}

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 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !9, i64 24, i64 1, !23, i64 25, i64 1, !23, i64 26, i64 1, !23, i64 27, i64 1, !23, i64 28, i64 1, !23, i64 29, i64 3, !23, i64 32, i64 4, !11, i64 36, i64 4, !24, i64 40, i64 4, !11, i64 44, i64 4, !11, i64 48, i64 8, !5, i64 56, i64 8, !5, i64 64, i64 4, !24, i64 72, i64 8, !5, i64 80, i64 8, !5}
!23 = !{!7, !7, i64 0}
!24 = !{!15, !15, 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.15 = external hidden unnamed_addr constant [5 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
@.str.53 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory = external hidden unnamed_addr constant [125 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_from_memory(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 %1, null
  br i1 %.not, label %7, label %8

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

8:                                                ; preds = %5
  %.not28 = icmp eq i64 %2, 0
  br i1 %.not28, label %9, label %10

9:                                                ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.2, i32 noundef 13587, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #6
  unreachable

10:                                               ; preds = %8
  %.not29 = icmp eq ptr %0, null
  br i1 %.not29, label %11, label %12

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.2, i32 noundef 13589, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #6
  unreachable

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

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

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

19:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.2, i32 noundef 13591, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_font_atlas_add_from_memory) #6
  unreachable

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

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

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %.not33 = icmp eq ptr %26, null
  br i1 %.not33, label %27, label %28

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

28:                                               ; preds = %24
  %.not34 = icmp eq ptr %4, null
  br i1 %.not34, label %30, label %29

29:                                               ; preds = %28
  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 %31

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

31:                                               ; preds = %30, %29
  %32 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %1, ptr %32, align 8, !tbaa !25
  %33 = getelementptr inbounds i8, ptr %6, i64 16
  store i64 %2, ptr %33, align 8, !tbaa !28
  %34 = getelementptr inbounds i8, ptr %6, i64 32
  store float %3, ptr %34, align 8, !tbaa !29
  %35 = getelementptr inbounds i8, ptr %6, i64 24
  store i8 0, ptr %35, align 8, !tbaa !30
  %36 = 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 %36
}

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