; 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_context = type { %struct.nk_input, %struct.nk_style, %struct.nk_buffer, %struct.nk_clipboard, i32, i32, %struct.nk_configuration_stacks, float, %struct.nk_draw_list, %struct.nk_text_edit, %struct.nk_command_buffer, i32, i32, %struct.nk_pool, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.nk_input = type { %struct.nk_keyboard, %struct.nk_mouse }
%struct.nk_keyboard = type { [30 x %struct.nk_key], [16 x i8], i32 }
%struct.nk_key = type { i32, i32 }
%struct.nk_mouse = type { [4 x %struct.nk_mouse_button], %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i8, i8, i8 }
%struct.nk_mouse_button = type { i32, i32, %struct.nk_vec2 }
%struct.nk_vec2 = type { float, float }
%struct.nk_style = type { ptr, [7 x ptr], ptr, ptr, i32, %struct.nk_style_text, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_toggle, %struct.nk_style_toggle, %struct.nk_style_selectable, %struct.nk_style_slider, %struct.nk_style_progress, %struct.nk_style_property, %struct.nk_style_edit, %struct.nk_style_chart, %struct.nk_style_scrollbar, %struct.nk_style_scrollbar, %struct.nk_style_tab, %struct.nk_style_combo, %struct.nk_style_window }
%struct.nk_style_text = type { %struct.nk_color, %struct.nk_vec2 }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_image }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%union.nk_handle = type { ptr }
%struct.nk_style_toggle = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, float, float, %union.nk_handle, ptr, ptr }
%struct.nk_style_selectable = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_slider = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_progress = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_property = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, i32, float, float, %struct.nk_vec2, %struct.nk_style_edit, %struct.nk_style_button, %struct.nk_style_button, %union.nk_handle, ptr, ptr }
%struct.nk_style_edit = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_scrollbar, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, float, %struct.nk_vec2, %struct.nk_vec2, float }
%struct.nk_style_chart = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, %struct.nk_vec2 }
%struct.nk_style_scrollbar = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_tab = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, i32, i32, float, float, float, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_combo = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, i32, i32, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window = type { %struct.nk_style_window_header, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, float, float, float, float, float, float, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window_header = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_button, %struct.nk_style_button, i32, i32, i32, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_buffer = type { [2 x %struct.nk_buffer_marker], %struct.nk_allocator, i32, %struct.nk_memory, float, i64, i64, i64, i64 }
%struct.nk_buffer_marker = type { i32, i64 }
%struct.nk_allocator = type { %union.nk_handle, ptr, ptr }
%struct.nk_memory = type { ptr, i64 }
%struct.nk_clipboard = type { %union.nk_handle, ptr, ptr }
%struct.nk_configuration_stacks = type { %struct.nk_config_stack_style_item, %struct.nk_config_stack_float, %struct.nk_config_stack_vec2, %struct.nk_config_stack_flags, %struct.nk_config_stack_color, %struct.nk_config_stack_user_font, %struct.nk_config_stack_button_behavior }
%struct.nk_config_stack_style_item = type { i32, [16 x %struct.nk_config_stack_style_item_element] }
%struct.nk_config_stack_style_item_element = type { ptr, %struct.nk_style_item }
%struct.nk_config_stack_float = type { i32, [32 x %struct.nk_config_stack_float_element] }
%struct.nk_config_stack_float_element = type { ptr, float }
%struct.nk_config_stack_vec2 = type { i32, [16 x %struct.nk_config_stack_vec2_element] }
%struct.nk_config_stack_vec2_element = type { ptr, %struct.nk_vec2 }
%struct.nk_config_stack_flags = type { i32, [32 x %struct.nk_config_stack_flags_element] }
%struct.nk_config_stack_flags_element = type { ptr, i32 }
%struct.nk_config_stack_color = type { i32, [32 x %struct.nk_config_stack_color_element] }
%struct.nk_config_stack_color_element = type { ptr, %struct.nk_color }
%struct.nk_config_stack_user_font = type { i32, [8 x %struct.nk_config_stack_user_font_element] }
%struct.nk_config_stack_user_font_element = type { ptr, ptr }
%struct.nk_config_stack_button_behavior = type { i32, [8 x %struct.nk_config_stack_button_behavior_element] }
%struct.nk_config_stack_button_behavior_element = type { ptr, i32 }
%struct.nk_draw_list = type { %struct.nk_rect, [12 x %struct.nk_vec2], %struct.nk_convert_config, ptr, ptr, ptr, i32, i32, i32, i64, i32, i32, i32, i32 }
%struct.nk_rect = type { float, float, float, float }
%struct.nk_convert_config = type { float, i32, i32, i32, i32, i32, %struct.nk_draw_null_texture, ptr, i64, i64 }
%struct.nk_draw_null_texture = type { %union.nk_handle, %struct.nk_vec2 }
%struct.nk_text_edit = type { %struct.nk_clipboard, %struct.nk_str, ptr, %struct.nk_vec2, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, float, %struct.nk_text_undo_state }
%struct.nk_str = type { %struct.nk_buffer, i32 }
%struct.nk_text_undo_state = type { [99 x %struct.nk_text_undo_record], [999 x i32], i16, i16, i16, i16 }
%struct.nk_text_undo_record = type { i32, i16, i16, i16 }
%struct.nk_command_buffer = type { ptr, %struct.nk_rect, i32, %union.nk_handle, i64, i64, i64 }
%struct.nk_pool = type { %struct.nk_allocator, i32, i32, ptr, ptr, i32, i64, i64 }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__.nk_style_push_font = external hidden unnamed_addr constant [73 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [87 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
define dso_local i32 @nk_style_push_font(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %2
  br label %13

12:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 14835, ptr noundef @__PRETTY_FUNCTION__.nk_style_push_font) #4
  unreachable

13:                                               ; preds = %11
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %17, label %16

16:                                               ; preds = %13
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %57

17:                                               ; preds = %13
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.nk_context, ptr %18, i32 0, i32 6
  %20 = getelementptr inbounds %struct.nk_configuration_stacks, ptr %19, i32 0, i32 5
  store ptr %20, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.nk_config_stack_user_font, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !9
  %24 = icmp slt i32 %23, 8
  br i1 %24, label %25, label %26

25:                                               ; preds = %17
  br label %27

26:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str.64, ptr noundef @.str.2, i32 noundef 14839, ptr noundef @__PRETTY_FUNCTION__.nk_style_push_font) #4
  unreachable

27:                                               ; preds = %25
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.nk_config_stack_user_font, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !9
  %31 = icmp sge i32 %30, 8
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %57

33:                                               ; preds = %27
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.nk_config_stack_user_font, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.nk_config_stack_user_font, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !9
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %37, align 8, !tbaa !9
  %40 = sext i32 %38 to i64
  %41 = getelementptr inbounds [8 x %struct.nk_config_stack_user_font_element], ptr %35, i64 0, i64 %40
  store ptr %41, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.nk_context, ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds %struct.nk_style, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.nk_config_stack_user_font_element, ptr %45, i32 0, i32 0
  store ptr %44, ptr %46, align 8, !tbaa !12
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.nk_context, ptr %47, i32 0, i32 1
  %49 = getelementptr inbounds %struct.nk_style, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.nk_config_stack_user_font_element, ptr %51, i32 0, i32 1
  store ptr %50, ptr %52, align 8, !tbaa !60
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.nk_context, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds %struct.nk_style, ptr %55, i32 0, i32 0
  store ptr %53, ptr %56, align 8, !tbaa !14
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %57

57:                                               ; preds = %33, %32, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %58 = load i32, ptr %3, align 4
  ret i32 %58
}

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 = { nounwind }
attributes #4 = { 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, !11, i64 0}
!10 = !{!"nk_config_stack_user_font", !11, i64 0, !7, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"nk_config_stack_user_font_element", !6, i64 0, !6, i64 8}
!14 = !{!15, !6, i64 360}
!15 = !{!"nk_context", !16, i64 0, !21, i64 360, !38, i64 7904, !42, i64 8024, !11, i64 8048, !11, i64 8052, !43, i64 8056, !20, i64 10800, !50, i64 10808, !54, i64 11048, !58, i64 16432, !11, i64 16496, !11, i64 16500, !59, i64 16504, !6, i64 16576, !6, i64 16584, !6, i64 16592, !6, i64 16600, !6, i64 16608, !11, i64 16616, !11, i64 16620}
!16 = !{!"nk_input", !17, i64 0, !18, i64 260}
!17 = !{!"nk_keyboard", !7, i64 0, !7, i64 240, !11, i64 256}
!18 = !{!"nk_mouse", !7, i64 0, !19, i64 64, !19, i64 72, !19, i64 80, !19, i64 88, !7, i64 96, !7, i64 97, !7, i64 98}
!19 = !{!"nk_vec2", !20, i64 0, !20, i64 4}
!20 = !{!"float", !7, i64 0}
!21 = !{!"nk_style", !6, i64 0, !7, i64 8, !6, i64 64, !6, i64 72, !11, i64 80, !22, i64 84, !24, i64 96, !24, i64 272, !24, i64 448, !26, i64 624, !26, i64 864, !27, i64 1104, !28, i64 1384, !29, i64 2024, !30, i64 2280, !31, i64 3592, !33, i64 4392, !32, i64 4456, !32, i64 5072, !34, i64 5688, !35, i64 6472, !36, i64 6824}
!22 = !{!"nk_style_text", !23, i64 0, !19, i64 4}
!23 = !{!"nk_color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!24 = !{!"nk_style_button", !25, i64 0, !25, i64 32, !25, i64 64, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !11, i64 116, !20, i64 120, !20, i64 124, !19, i64 128, !19, i64 136, !19, i64 144, !7, i64 152, !6, i64 160, !6, i64 168}
!25 = !{!"nk_style_item", !11, i64 0, !7, i64 8}
!26 = !{!"nk_style_toggle", !25, i64 0, !25, i64 32, !25, i64 64, !23, i64 96, !25, i64 104, !25, i64 136, !23, i64 168, !23, i64 172, !23, i64 176, !23, i64 180, !11, i64 184, !19, i64 188, !19, i64 196, !20, i64 204, !20, i64 208, !7, i64 216, !6, i64 224, !6, i64 232}
!27 = !{!"nk_style_selectable", !25, i64 0, !25, i64 32, !25, i64 64, !25, i64 96, !25, i64 128, !25, i64 160, !23, i64 192, !23, i64 196, !23, i64 200, !23, i64 204, !23, i64 208, !23, i64 212, !23, i64 216, !11, i64 220, !20, i64 224, !19, i64 228, !19, i64 236, !19, i64 244, !7, i64 256, !6, i64 264, !6, i64 272}
!28 = !{!"nk_style_slider", !25, i64 0, !25, i64 32, !25, i64 64, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !25, i64 120, !25, i64 152, !25, i64 184, !20, i64 216, !20, i64 220, !20, i64 224, !19, i64 228, !19, i64 236, !19, i64 244, !11, i64 252, !24, i64 256, !24, i64 432, !11, i64 608, !11, i64 612, !7, i64 616, !6, i64 624, !6, i64 632}
!29 = !{!"nk_style_progress", !25, i64 0, !25, i64 32, !25, i64 64, !23, i64 96, !25, i64 104, !25, i64 136, !25, i64 168, !23, i64 200, !20, i64 204, !20, i64 208, !20, i64 212, !20, i64 216, !19, i64 220, !7, i64 232, !6, i64 240, !6, i64 248}
!30 = !{!"nk_style_property", !25, i64 0, !25, i64 32, !25, i64 64, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !11, i64 112, !11, i64 116, !20, i64 120, !20, i64 124, !19, i64 128, !31, i64 136, !24, i64 936, !24, i64 1112, !7, i64 1288, !6, i64 1296, !6, i64 1304}
!31 = !{!"nk_style_edit", !25, i64 0, !25, i64 32, !25, i64 64, !23, i64 96, !32, i64 104, !23, i64 720, !23, i64 724, !23, i64 728, !23, i64 732, !23, i64 736, !23, i64 740, !23, i64 744, !23, i64 748, !23, i64 752, !23, i64 756, !23, i64 760, !20, i64 764, !20, i64 768, !20, i64 772, !19, i64 776, !19, i64 784, !20, i64 792}
!32 = !{!"nk_style_scrollbar", !25, i64 0, !25, i64 32, !25, i64 64, !23, i64 96, !25, i64 104, !25, i64 136, !25, i64 168, !23, i64 200, !20, i64 204, !20, i64 208, !20, i64 212, !20, i64 216, !19, i64 220, !11, i64 228, !24, i64 232, !24, i64 408, !11, i64 584, !11, i64 588, !7, i64 592, !6, i64 600, !6, i64 608}
!33 = !{!"nk_style_chart", !25, i64 0, !23, i64 32, !23, i64 36, !23, i64 40, !20, i64 44, !20, i64 48, !19, i64 52}
!34 = !{!"nk_style_tab", !25, i64 0, !23, i64 32, !23, i64 36, !24, i64 40, !24, i64 216, !24, i64 392, !24, i64 568, !11, i64 744, !11, i64 748, !20, i64 752, !20, i64 756, !20, i64 760, !19, i64 764, !19, i64 772}
!35 = !{!"nk_style_combo", !25, i64 0, !25, i64 32, !25, i64 64, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !23, i64 116, !23, i64 120, !24, i64 128, !11, i64 304, !11, i64 308, !11, i64 312, !20, i64 316, !20, i64 320, !19, i64 324, !19, i64 332, !19, i64 340}
!36 = !{!"nk_style_window", !37, i64 0, !25, i64 504, !23, i64 536, !23, i64 540, !23, i64 544, !23, i64 548, !23, i64 552, !23, i64 556, !23, i64 560, !23, i64 564, !25, i64 568, !20, i64 600, !20, i64 604, !20, i64 608, !20, i64 612, !20, i64 616, !20, i64 620, !20, i64 624, !20, i64 628, !20, i64 632, !19, i64 636, !19, i64 644, !19, i64 652, !19, i64 660, !19, i64 668, !19, i64 676, !19, i64 684, !19, i64 692, !19, i64 700, !19, i64 708}
!37 = !{!"nk_style_window_header", !25, i64 0, !25, i64 32, !25, i64 64, !24, i64 96, !24, i64 272, !11, i64 448, !11, i64 452, !11, i64 456, !23, i64 460, !23, i64 464, !23, i64 468, !11, i64 472, !19, i64 476, !19, i64 484, !19, i64 492}
!38 = !{!"nk_buffer", !7, i64 0, !39, i64 32, !11, i64 56, !40, i64 64, !20, i64 80, !41, i64 88, !41, i64 96, !41, i64 104, !41, i64 112}
!39 = !{!"nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"nk_memory", !6, i64 0, !41, i64 8}
!41 = !{!"long", !7, i64 0}
!42 = !{!"nk_clipboard", !7, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"nk_configuration_stacks", !44, i64 0, !45, i64 648, !46, i64 1168, !47, i64 1432, !48, i64 1952, !10, i64 2472, !49, i64 2608}
!44 = !{!"nk_config_stack_style_item", !11, i64 0, !7, i64 8}
!45 = !{!"nk_config_stack_float", !11, i64 0, !7, i64 8}
!46 = !{!"nk_config_stack_vec2", !11, i64 0, !7, i64 8}
!47 = !{!"nk_config_stack_flags", !11, i64 0, !7, i64 8}
!48 = !{!"nk_config_stack_color", !11, i64 0, !7, i64 8}
!49 = !{!"nk_config_stack_button_behavior", !11, i64 0, !7, i64 8}
!50 = !{!"nk_draw_list", !51, i64 0, !7, i64 16, !52, i64 112, !6, i64 176, !6, i64 184, !6, i64 192, !11, i64 200, !11, i64 204, !11, i64 208, !41, i64 216, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236}
!51 = !{!"nk_rect", !20, i64 0, !20, i64 4, !20, i64 8, !20, i64 12}
!52 = !{!"nk_convert_config", !20, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !53, i64 24, !6, i64 40, !41, i64 48, !41, i64 56}
!53 = !{!"nk_draw_null_texture", !7, i64 0, !19, i64 8}
!54 = !{!"nk_text_edit", !42, i64 0, !55, i64 24, !6, i64 152, !19, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !7, i64 184, !7, i64 185, !7, i64 186, !20, i64 188, !56, i64 192}
!55 = !{!"nk_str", !38, i64 0, !11, i64 120}
!56 = !{!"nk_text_undo_state", !7, i64 0, !7, i64 1188, !57, i64 5184, !57, i64 5186, !57, i64 5188, !57, i64 5190}
!57 = !{!"short", !7, i64 0}
!58 = !{!"nk_command_buffer", !6, i64 0, !51, i64 8, !11, i64 24, !7, i64 32, !41, i64 40, !41, i64 48, !41, i64 56}
!59 = !{!"nk_pool", !39, i64 0, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40, !11, i64 48, !41, i64 56, !41, i64 64}
!60 = !{!13, !6, i64 8}


; 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_config_stack_user_font_element = type { ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__.nk_style_push_font = external hidden unnamed_addr constant [73 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [87 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
define dso_local noundef i32 @nk_style_push_font(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %3, label %4

3:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.2, i32 noundef 14835, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_style_push_font) #2
  unreachable

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 10528
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp slt i32 %6, 8
  br i1 %7, label %9, label %8

8:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.64, ptr noundef nonnull @.str.2, i32 noundef 14839, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_style_push_font) #2
  unreachable

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 10536
  %11 = add nsw i32 %6, 1
  store i32 %11, ptr %5, align 8, !tbaa !5
  %12 = sext i32 %6 to i64
  %13 = getelementptr inbounds [8 x %struct.nk_config_stack_user_font_element], ptr %10, i64 0, i64 %12
  %14 = getelementptr inbounds i8, ptr %0, i64 360
  store ptr %14, ptr %13, align 8, !tbaa !10
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %15, ptr %16, align 8, !tbaa !59
  store ptr %1, ptr %14, align 8, !tbaa !13
  ret i32 1
}

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 }

!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 0}
!6 = !{!"nk_config_stack_user_font", !7, i64 0, !8, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"nk_config_stack_user_font_element", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 360}
!14 = !{!"nk_context", !15, i64 0, !20, i64 360, !37, i64 7904, !41, i64 8024, !7, i64 8048, !7, i64 8052, !42, i64 8056, !19, i64 10800, !49, i64 10808, !53, i64 11048, !57, i64 16432, !7, i64 16496, !7, i64 16500, !58, i64 16504, !12, i64 16576, !12, i64 16584, !12, i64 16592, !12, i64 16600, !12, i64 16608, !7, i64 16616, !7, i64 16620}
!15 = !{!"nk_input", !16, i64 0, !17, i64 260}
!16 = !{!"nk_keyboard", !8, i64 0, !8, i64 240, !7, i64 256}
!17 = !{!"nk_mouse", !8, i64 0, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !8, i64 96, !8, i64 97, !8, i64 98}
!18 = !{!"nk_vec2", !19, i64 0, !19, i64 4}
!19 = !{!"float", !8, i64 0}
!20 = !{!"nk_style", !12, i64 0, !8, i64 8, !12, i64 64, !12, i64 72, !7, i64 80, !21, i64 84, !23, i64 96, !23, i64 272, !23, i64 448, !25, i64 624, !25, i64 864, !26, i64 1104, !27, i64 1384, !28, i64 2024, !29, i64 2280, !30, i64 3592, !32, i64 4392, !31, i64 4456, !31, i64 5072, !33, i64 5688, !34, i64 6472, !35, i64 6824}
!21 = !{!"nk_style_text", !22, i64 0, !18, i64 4}
!22 = !{!"nk_color", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3}
!23 = !{!"nk_style_button", !24, i64 0, !24, i64 32, !24, i64 64, !22, i64 96, !22, i64 100, !22, i64 104, !22, i64 108, !22, i64 112, !7, i64 116, !19, i64 120, !19, i64 124, !18, i64 128, !18, i64 136, !18, i64 144, !8, i64 152, !12, i64 160, !12, i64 168}
!24 = !{!"nk_style_item", !7, i64 0, !8, i64 8}
!25 = !{!"nk_style_toggle", !24, i64 0, !24, i64 32, !24, i64 64, !22, i64 96, !24, i64 104, !24, i64 136, !22, i64 168, !22, i64 172, !22, i64 176, !22, i64 180, !7, i64 184, !18, i64 188, !18, i64 196, !19, i64 204, !19, i64 208, !8, i64 216, !12, i64 224, !12, i64 232}
!26 = !{!"nk_style_selectable", !24, i64 0, !24, i64 32, !24, i64 64, !24, i64 96, !24, i64 128, !24, i64 160, !22, i64 192, !22, i64 196, !22, i64 200, !22, i64 204, !22, i64 208, !22, i64 212, !22, i64 216, !7, i64 220, !19, i64 224, !18, i64 228, !18, i64 236, !18, i64 244, !8, i64 256, !12, i64 264, !12, i64 272}
!27 = !{!"nk_style_slider", !24, i64 0, !24, i64 32, !24, i64 64, !22, i64 96, !22, i64 100, !22, i64 104, !22, i64 108, !22, i64 112, !24, i64 120, !24, i64 152, !24, i64 184, !19, i64 216, !19, i64 220, !19, i64 224, !18, i64 228, !18, i64 236, !18, i64 244, !7, i64 252, !23, i64 256, !23, i64 432, !7, i64 608, !7, i64 612, !8, i64 616, !12, i64 624, !12, i64 632}
!28 = !{!"nk_style_progress", !24, i64 0, !24, i64 32, !24, i64 64, !22, i64 96, !24, i64 104, !24, i64 136, !24, i64 168, !22, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !18, i64 220, !8, i64 232, !12, i64 240, !12, i64 248}
!29 = !{!"nk_style_property", !24, i64 0, !24, i64 32, !24, i64 64, !22, i64 96, !22, i64 100, !22, i64 104, !22, i64 108, !7, i64 112, !7, i64 116, !19, i64 120, !19, i64 124, !18, i64 128, !30, i64 136, !23, i64 936, !23, i64 1112, !8, i64 1288, !12, i64 1296, !12, i64 1304}
!30 = !{!"nk_style_edit", !24, i64 0, !24, i64 32, !24, i64 64, !22, i64 96, !31, i64 104, !22, i64 720, !22, i64 724, !22, i64 728, !22, i64 732, !22, i64 736, !22, i64 740, !22, i64 744, !22, i64 748, !22, i64 752, !22, i64 756, !22, i64 760, !19, i64 764, !19, i64 768, !19, i64 772, !18, i64 776, !18, i64 784, !19, i64 792}
!31 = !{!"nk_style_scrollbar", !24, i64 0, !24, i64 32, !24, i64 64, !22, i64 96, !24, i64 104, !24, i64 136, !24, i64 168, !22, i64 200, !19, i64 204, !19, i64 208, !19, i64 212, !19, i64 216, !18, i64 220, !7, i64 228, !23, i64 232, !23, i64 408, !7, i64 584, !7, i64 588, !8, i64 592, !12, i64 600, !12, i64 608}
!32 = !{!"nk_style_chart", !24, i64 0, !22, i64 32, !22, i64 36, !22, i64 40, !19, i64 44, !19, i64 48, !18, i64 52}
!33 = !{!"nk_style_tab", !24, i64 0, !22, i64 32, !22, i64 36, !23, i64 40, !23, i64 216, !23, i64 392, !23, i64 568, !7, i64 744, !7, i64 748, !19, i64 752, !19, i64 756, !19, i64 760, !18, i64 764, !18, i64 772}
!34 = !{!"nk_style_combo", !24, i64 0, !24, i64 32, !24, i64 64, !22, i64 96, !22, i64 100, !22, i64 104, !22, i64 108, !22, i64 112, !22, i64 116, !22, i64 120, !23, i64 128, !7, i64 304, !7, i64 308, !7, i64 312, !19, i64 316, !19, i64 320, !18, i64 324, !18, i64 332, !18, i64 340}
!35 = !{!"nk_style_window", !36, i64 0, !24, i64 504, !22, i64 536, !22, i64 540, !22, i64 544, !22, i64 548, !22, i64 552, !22, i64 556, !22, i64 560, !22, i64 564, !24, i64 568, !19, i64 600, !19, i64 604, !19, i64 608, !19, i64 612, !19, i64 616, !19, i64 620, !19, i64 624, !19, i64 628, !19, i64 632, !18, i64 636, !18, i64 644, !18, i64 652, !18, i64 660, !18, i64 668, !18, i64 676, !18, i64 684, !18, i64 692, !18, i64 700, !18, i64 708}
!36 = !{!"nk_style_window_header", !24, i64 0, !24, i64 32, !24, i64 64, !23, i64 96, !23, i64 272, !7, i64 448, !7, i64 452, !7, i64 456, !22, i64 460, !22, i64 464, !22, i64 468, !7, i64 472, !18, i64 476, !18, i64 484, !18, i64 492}
!37 = !{!"nk_buffer", !8, i64 0, !38, i64 32, !7, i64 56, !39, i64 64, !19, i64 80, !40, i64 88, !40, i64 96, !40, i64 104, !40, i64 112}
!38 = !{!"nk_allocator", !8, i64 0, !12, i64 8, !12, i64 16}
!39 = !{!"nk_memory", !12, i64 0, !40, i64 8}
!40 = !{!"long", !8, i64 0}
!41 = !{!"nk_clipboard", !8, i64 0, !12, i64 8, !12, i64 16}
!42 = !{!"nk_configuration_stacks", !43, i64 0, !44, i64 648, !45, i64 1168, !46, i64 1432, !47, i64 1952, !6, i64 2472, !48, i64 2608}
!43 = !{!"nk_config_stack_style_item", !7, i64 0, !8, i64 8}
!44 = !{!"nk_config_stack_float", !7, i64 0, !8, i64 8}
!45 = !{!"nk_config_stack_vec2", !7, i64 0, !8, i64 8}
!46 = !{!"nk_config_stack_flags", !7, i64 0, !8, i64 8}
!47 = !{!"nk_config_stack_color", !7, i64 0, !8, i64 8}
!48 = !{!"nk_config_stack_button_behavior", !7, i64 0, !8, i64 8}
!49 = !{!"nk_draw_list", !50, i64 0, !8, i64 16, !51, i64 112, !12, i64 176, !12, i64 184, !12, i64 192, !7, i64 200, !7, i64 204, !7, i64 208, !40, i64 216, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236}
!50 = !{!"nk_rect", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12}
!51 = !{!"nk_convert_config", !19, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !52, i64 24, !12, i64 40, !40, i64 48, !40, i64 56}
!52 = !{!"nk_draw_null_texture", !8, i64 0, !18, i64 8}
!53 = !{!"nk_text_edit", !41, i64 0, !54, i64 24, !12, i64 152, !18, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !8, i64 180, !8, i64 181, !8, i64 182, !8, i64 183, !8, i64 184, !8, i64 185, !8, i64 186, !19, i64 188, !55, i64 192}
!54 = !{!"nk_str", !37, i64 0, !7, i64 120}
!55 = !{!"nk_text_undo_state", !8, i64 0, !8, i64 1188, !56, i64 5184, !56, i64 5186, !56, i64 5188, !56, i64 5190}
!56 = !{!"short", !8, i64 0}
!57 = !{!"nk_command_buffer", !12, i64 0, !50, i64 8, !7, i64 24, !8, i64 32, !40, i64 40, !40, i64 48, !40, i64 56}
!58 = !{!"nk_pool", !38, i64 0, !7, i64 24, !7, i64 28, !12, i64 32, !12, i64 40, !7, i64 48, !40, i64 56, !40, i64 64}
!59 = !{!11, !12, i64 8}


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