; 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_rect = type { float, float, float, float }
%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_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 }
%struct.nk_window = type { i32, i32, [64 x i8], i32, %struct.nk_rect, %struct.nk_scroll, %struct.nk_command_buffer, ptr, float, %struct.nk_property_state, %struct.nk_popup_state, %struct.nk_edit_state, i32, ptr, i32, ptr, ptr, ptr }
%struct.nk_scroll = type { i32, i32 }
%struct.nk_property_state = type { i32, i32, [64 x i8], i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.nk_popup_state = type { ptr, i32, %struct.nk_popup_buffer, i32, i32, i32, i32, i32, i32, %struct.nk_rect }
%struct.nk_popup_buffer = type { i64, i64, i64, i64, i32 }
%struct.nk_edit_state = type { i32, i32, i32, i32, i32, i32, i32, i32, %struct.nk_scroll, i8, i8 }
%struct.nk_panel = type { i32, i32, %struct.nk_rect, ptr, ptr, float, float, float, float, float, float, i32, %struct.nk_rect, %struct.nk_menu_state, %struct.nk_row_layout, %struct.nk_chart, ptr, ptr }
%struct.nk_menu_state = type { float, float, float, float, %struct.nk_scroll }
%struct.nk_row_layout = type { i32, i32, float, float, i32, ptr, float, float, float, float, %struct.nk_rect, i32, [16 x float] }
%struct.nk_chart = type { i32, float, float, float, float, [4 x %struct.nk_chart_slot] }
%struct.nk_chart_slot = type { i32, %struct.nk_color, %struct.nk_color, float, float, float, i32, %struct.nk_vec2, i32 }

@nk_null_rect = external hidden constant %struct.nk_rect, align 4
@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__.nk_popup_begin = external hidden unnamed_addr constant [100 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [79 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 i32 @nk_strlen(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_murmur_hash(ptr noundef, i32 noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_push_scissor(ptr noundef, <2 x float>, <2 x float>) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @nk_create_window(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @nk_create_panel(ptr noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden void @nk_free_panel(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @nk_popup_begin(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, <2 x float> %4, <2 x float> %5) #4 {
  %7 = alloca i32, align 4
  %8 = alloca %struct.nk_rect, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  store <2 x float> %4, ptr %22, align 4
  %23 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  store <2 x float> %5, ptr %23, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %6
  br label %28

27:                                               ; preds = %6
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 16813, ptr noundef @__PRETTY_FUNCTION__.nk_popup_begin) #6
  unreachable

28:                                               ; preds = %26
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %28
  br label %33

32:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.70, ptr noundef @.str.2, i32 noundef 16814, ptr noundef @__PRETTY_FUNCTION__.nk_popup_begin) #6
  unreachable

33:                                               ; preds = %31
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.nk_context, ptr %34, i32 0, i32 17
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %33
  br label %40

39:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str.2, i32 noundef 16815, ptr noundef @__PRETTY_FUNCTION__.nk_popup_begin) #6
  unreachable

40:                                               ; preds = %38
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.nk_context, ptr %41, i32 0, i32 17
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.nk_window, ptr %43, i32 0, i32 7
  %45 = load ptr, ptr %44, align 8, !tbaa !58
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %48

47:                                               ; preds = %40
  br label %49

48:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.80, ptr noundef @.str.2, i32 noundef 16816, ptr noundef @__PRETTY_FUNCTION__.nk_popup_begin) #6
  unreachable

49:                                               ; preds = %47
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = icmp ne ptr %50, null
  br i1 %51, label %52, label %64

52:                                               ; preds = %49
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.nk_context, ptr %53, i32 0, i32 17
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %64

57:                                               ; preds = %52
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.nk_context, ptr %58, i32 0, i32 17
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct.nk_window, ptr %60, i32 0, i32 7
  %62 = load ptr, ptr %61, align 8, !tbaa !58
  %63 = icmp ne ptr %62, null
  br i1 %63, label %65, label %64

64:                                               ; preds = %57, %52, %49
  store i32 0, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %285

65:                                               ; preds = %57
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.nk_context, ptr %66, i32 0, i32 17
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  store ptr %68, ptr %14, align 8, !tbaa !5
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.nk_window, ptr %69, i32 0, i32 7
  %71 = load ptr, ptr %70, align 8, !tbaa !58
  store ptr %71, ptr %15, align 8, !tbaa !5
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.nk_panel, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !65
  %75 = and i32 %74, 244
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %79, label %77

77:                                               ; preds = %65
  br i1 true, label %78, label %79

78:                                               ; preds = %77
  br label %80

79:                                               ; preds = %77, %65
  call void @__assert_fail(ptr noundef @.str.86, ptr noundef @.str.2, i32 noundef 16822, ptr noundef @__PRETTY_FUNCTION__.nk_popup_begin) #6
  unreachable

80:                                               ; preds = %78
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = call i32 @nk_strlen(ptr noundef %82)
  store i32 %83, ptr %16, align 4, !tbaa !9
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = load i32, ptr %16, align 4, !tbaa !9
  %86 = call i32 @nk_murmur_hash(ptr noundef %84, i32 noundef %85, i32 noundef 4)
  store i32 %86, ptr %17, align 4, !tbaa !9
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.nk_window, ptr %87, i32 0, i32 10
  %89 = getelementptr inbounds %struct.nk_popup_state, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !70
  store ptr %90, ptr %13, align 8, !tbaa !5
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %109, label %93

93:                                               ; preds = %80
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = call ptr @nk_create_window(ptr noundef %94)
  store ptr %95, ptr %13, align 8, !tbaa !5
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.nk_window, ptr %97, i32 0, i32 17
  store ptr %96, ptr %98, align 8, !tbaa !71
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.nk_window, ptr %100, i32 0, i32 10
  %102 = getelementptr inbounds %struct.nk_popup_state, ptr %101, i32 0, i32 0
  store ptr %99, ptr %102, align 8, !tbaa !70
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.nk_window, ptr %103, i32 0, i32 10
  %105 = getelementptr inbounds %struct.nk_popup_state, ptr %104, i32 0, i32 4
  store i32 0, ptr %105, align 4, !tbaa !72
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.nk_window, ptr %106, i32 0, i32 10
  %108 = getelementptr inbounds %struct.nk_popup_state, ptr %107, i32 0, i32 1
  store i32 4, ptr %108, align 8, !tbaa !73
  br label %109

109:                                              ; preds = %93, %80
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.nk_window, ptr %110, i32 0, i32 10
  %112 = getelementptr inbounds %struct.nk_popup_state, ptr %111, i32 0, i32 3
  %113 = load i32, ptr %112, align 8, !tbaa !74
  %114 = load i32, ptr %17, align 4, !tbaa !9
  %115 = icmp ne i32 %113, %114
  br i1 %115, label %116, label %136

116:                                              ; preds = %109
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.nk_window, ptr %117, i32 0, i32 10
  %119 = getelementptr inbounds %struct.nk_popup_state, ptr %118, i32 0, i32 4
  %120 = load i32, ptr %119, align 4, !tbaa !72
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %134, label %122

122:                                              ; preds = %116
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  call void @nk_zero(ptr noundef %123, i64 noundef 472)
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.nk_window, ptr %125, i32 0, i32 10
  %127 = getelementptr inbounds %struct.nk_popup_state, ptr %126, i32 0, i32 3
  store i32 %124, ptr %127, align 8, !tbaa !74
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.nk_window, ptr %128, i32 0, i32 10
  %130 = getelementptr inbounds %struct.nk_popup_state, ptr %129, i32 0, i32 4
  store i32 1, ptr %130, align 4, !tbaa !72
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.nk_window, ptr %131, i32 0, i32 10
  %133 = getelementptr inbounds %struct.nk_popup_state, ptr %132, i32 0, i32 1
  store i32 4, ptr %133, align 8, !tbaa !73
  br label %135

134:                                              ; preds = %116
  store i32 0, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %285

135:                                              ; preds = %122
  br label %136

136:                                              ; preds = %135, %109
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.nk_context, ptr %138, i32 0, i32 17
  store ptr %137, ptr %139, align 8, !tbaa !11
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.nk_window, ptr %140, i32 0, i32 7
  %142 = load ptr, ptr %141, align 8, !tbaa !58
  %143 = getelementptr inbounds %struct.nk_panel, ptr %142, i32 0, i32 12
  %144 = getelementptr inbounds %struct.nk_rect, ptr %143, i32 0, i32 0
  %145 = load float, ptr %144, align 4, !tbaa !75
  %146 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 0
  %147 = load float, ptr %146, align 4, !tbaa !76
  %148 = fadd float %147, %145
  store float %148, ptr %146, align 4, !tbaa !76
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.nk_window, ptr %149, i32 0, i32 7
  %151 = load ptr, ptr %150, align 8, !tbaa !58
  %152 = getelementptr inbounds %struct.nk_panel, ptr %151, i32 0, i32 12
  %153 = getelementptr inbounds %struct.nk_rect, ptr %152, i32 0, i32 1
  %154 = load float, ptr %153, align 4, !tbaa !77
  %155 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 1
  %156 = load float, ptr %155, align 4, !tbaa !78
  %157 = fadd float %156, %154
  store float %157, ptr %155, align 4, !tbaa !78
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = load ptr, ptr %13, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.nk_window, ptr %159, i32 0, i32 17
  store ptr %158, ptr %160, align 8, !tbaa !71
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.nk_window, ptr %161, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %162, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !79
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.nk_context, ptr %163, i32 0, i32 20
  %165 = load i32, ptr %164, align 4, !tbaa !81
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.nk_window, ptr %166, i32 0, i32 0
  store i32 %165, ptr %167, align 8, !tbaa !82
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = call ptr @nk_create_panel(ptr noundef %168)
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.nk_window, ptr %170, i32 0, i32 7
  store ptr %169, ptr %171, align 8, !tbaa !58
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.nk_window, ptr %173, i32 0, i32 3
  store i32 %172, ptr %174, align 8, !tbaa !83
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.nk_window, ptr %175, i32 0, i32 3
  %177 = load i32, ptr %176, align 8, !tbaa !83
  %178 = or i32 %177, 1
  store i32 %178, ptr %176, align 8, !tbaa !83
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = icmp eq i32 %179, 1
  br i1 %180, label %181, label %186

181:                                              ; preds = %136
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.nk_window, ptr %182, i32 0, i32 3
  %184 = load i32, ptr %183, align 8, !tbaa !83
  %185 = or i32 %184, 2048
  store i32 %185, ptr %183, align 8, !tbaa !83
  br label %186

186:                                              ; preds = %181, %136
  %187 = load ptr, ptr %13, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.nk_window, ptr %187, i32 0, i32 6
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.nk_window, ptr %189, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %188, ptr align 8 %190, i64 64, i1 false), !tbaa.struct !84
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  call void @nk_start_popup(ptr noundef %191, ptr noundef %192)
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.nk_context, ptr %193, i32 0, i32 2
  %195 = getelementptr inbounds %struct.nk_buffer, ptr %194, i32 0, i32 5
  %196 = load i64, ptr %195, align 8, !tbaa !87
  store i64 %196, ptr %18, align 8, !tbaa !86
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.nk_window, ptr %197, i32 0, i32 6
  %199 = load <2 x float>, ptr @nk_null_rect, align 4
  %200 = load <2 x float>, ptr getelementptr inbounds ({ <2 x float>, <2 x float> }, ptr @nk_null_rect, i32 0, i32 1), align 4
  call void @nk_push_scissor(ptr noundef %198, <2 x float> %199, <2 x float> %200)
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = call i32 @nk_panel_begin(ptr noundef %201, ptr noundef %202, i32 noundef 4)
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %249

205:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %206 = load ptr, ptr %14, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.nk_window, ptr %206, i32 0, i32 7
  %208 = load ptr, ptr %207, align 8, !tbaa !58
  store ptr %208, ptr %20, align 8, !tbaa !5
  br label %209

209:                                              ; preds = %212, %205
  %210 = load ptr, ptr %20, align 8, !tbaa !5
  %211 = icmp ne ptr %210, null
  br i1 %211, label %212, label %224

212:                                              ; preds = %209
  %213 = load ptr, ptr %20, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.nk_panel, ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 4, !tbaa !88
  %216 = or i32 %215, 4096
  store i32 %216, ptr %214, align 4, !tbaa !88
  %217 = load ptr, ptr %20, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.nk_panel, ptr %217, i32 0, i32 1
  %219 = load i32, ptr %218, align 4, !tbaa !88
  %220 = and i32 %219, -65537
  store i32 %220, ptr %218, align 4, !tbaa !88
  %221 = load ptr, ptr %20, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.nk_panel, ptr %221, i32 0, i32 17
  %223 = load ptr, ptr %222, align 8, !tbaa !89
  store ptr %223, ptr %20, align 8, !tbaa !5
  br label %209, !llvm.loop !90

224:                                              ; preds = %209
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.nk_window, ptr %225, i32 0, i32 10
  %227 = getelementptr inbounds %struct.nk_popup_state, ptr %226, i32 0, i32 4
  store i32 1, ptr %227, align 4, !tbaa !72
  %228 = load ptr, ptr %13, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.nk_window, ptr %228, i32 0, i32 5
  %230 = getelementptr inbounds %struct.nk_scroll, ptr %229, i32 0, i32 0
  %231 = load ptr, ptr %13, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.nk_window, ptr %231, i32 0, i32 7
  %233 = load ptr, ptr %232, align 8, !tbaa !58
  %234 = getelementptr inbounds %struct.nk_panel, ptr %233, i32 0, i32 3
  store ptr %230, ptr %234, align 8, !tbaa !92
  %235 = load ptr, ptr %13, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.nk_window, ptr %235, i32 0, i32 5
  %237 = getelementptr inbounds %struct.nk_scroll, ptr %236, i32 0, i32 1
  %238 = load ptr, ptr %13, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.nk_window, ptr %238, i32 0, i32 7
  %240 = load ptr, ptr %239, align 8, !tbaa !58
  %241 = getelementptr inbounds %struct.nk_panel, ptr %240, i32 0, i32 4
  store ptr %237, ptr %241, align 8, !tbaa !93
  %242 = load ptr, ptr %14, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.nk_window, ptr %242, i32 0, i32 7
  %244 = load ptr, ptr %243, align 8, !tbaa !58
  %245 = load ptr, ptr %13, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.nk_window, ptr %245, i32 0, i32 7
  %247 = load ptr, ptr %246, align 8, !tbaa !58
  %248 = getelementptr inbounds %struct.nk_panel, ptr %247, i32 0, i32 17
  store ptr %244, ptr %248, align 8, !tbaa !89
  store i32 1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %285

249:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %250 = load ptr, ptr %14, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.nk_window, ptr %250, i32 0, i32 7
  %252 = load ptr, ptr %251, align 8, !tbaa !58
  store ptr %252, ptr %21, align 8, !tbaa !5
  br label %253

253:                                              ; preds = %256, %249
  %254 = load ptr, ptr %21, align 8, !tbaa !5
  %255 = icmp ne ptr %254, null
  br i1 %255, label %256, label %264

256:                                              ; preds = %253
  %257 = load ptr, ptr %21, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.nk_panel, ptr %257, i32 0, i32 1
  %259 = load i32, ptr %258, align 4, !tbaa !88
  %260 = or i32 %259, 65536
  store i32 %260, ptr %258, align 4, !tbaa !88
  %261 = load ptr, ptr %21, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.nk_panel, ptr %261, i32 0, i32 17
  %263 = load ptr, ptr %262, align 8, !tbaa !89
  store ptr %263, ptr %21, align 8, !tbaa !5
  br label %253, !llvm.loop !94

264:                                              ; preds = %253
  %265 = load ptr, ptr %14, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.nk_window, ptr %265, i32 0, i32 10
  %267 = getelementptr inbounds %struct.nk_popup_state, ptr %266, i32 0, i32 2
  %268 = getelementptr inbounds %struct.nk_popup_buffer, ptr %267, i32 0, i32 4
  store i32 0, ptr %268, align 8, !tbaa !95
  %269 = load ptr, ptr %14, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.nk_window, ptr %269, i32 0, i32 10
  %271 = getelementptr inbounds %struct.nk_popup_state, ptr %270, i32 0, i32 4
  store i32 0, ptr %271, align 4, !tbaa !72
  %272 = load i64, ptr %18, align 8, !tbaa !86
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.nk_context, ptr %273, i32 0, i32 2
  %275 = getelementptr inbounds %struct.nk_buffer, ptr %274, i32 0, i32 5
  store i64 %272, ptr %275, align 8, !tbaa !87
  %276 = load ptr, ptr %14, align 8, !tbaa !5
  %277 = load ptr, ptr %9, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.nk_context, ptr %277, i32 0, i32 17
  store ptr %276, ptr %278, align 8, !tbaa !11
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = load ptr, ptr %13, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.nk_window, ptr %280, i32 0, i32 7
  %282 = load ptr, ptr %281, align 8, !tbaa !58
  call void @nk_free_panel(ptr noundef %279, ptr noundef %282)
  %283 = load ptr, ptr %13, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.nk_window, ptr %283, i32 0, i32 7
  store ptr null, ptr %284, align 8, !tbaa !58
  store i32 0, ptr %7, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %285

285:                                              ; preds = %264, %224, %134, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %286 = load i32, ptr %7, align 4
  ret i32 %286
}

; Function Attrs: nounwind uwtable
declare hidden void @nk_start_popup(ptr noundef, ptr noundef) #3

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


; 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_rect = type { float, float, float, float }

@nk_null_rect = external hidden local_unnamed_addr constant %struct.nk_rect, align 4
@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__.nk_popup_begin = external hidden unnamed_addr constant [100 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [79 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_strlen(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_murmur_hash(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_push_scissor(ptr noundef, <2 x float>, <2 x float>) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden ptr @nk_create_window(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden ptr @nk_create_panel(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nk_popup_begin(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, <2 x float> %4, <2 x float> %5) local_unnamed_addr #3 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %7, label %8

7:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.2, i32 noundef 16813, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #4
  unreachable

8:                                                ; preds = %6
  %.not91 = icmp eq ptr %2, null
  br i1 %.not91, label %9, label %10

9:                                                ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.70, ptr noundef nonnull @.str.2, i32 noundef 16814, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #4
  unreachable

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

13:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.2, i32 noundef 16815, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #4
  unreachable

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %12, i64 168
  %16 = load ptr, ptr %15, align 8, !tbaa !56
  %.not93 = icmp eq ptr %16, null
  br i1 %.not93, label %17, label %18

17:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.2, i32 noundef 16816, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #4
  unreachable

18:                                               ; preds = %14
  %19 = load i32, ptr %16, align 8, !tbaa !63
  %20 = and i32 %19, 244
  %.not94 = icmp eq i32 %20, 0
  br i1 %.not94, label %22, label %21

21:                                               ; preds = %18
  tail call void @__assert_fail(ptr noundef nonnull @.str.86, ptr noundef nonnull @.str.2, i32 noundef 16822, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #4
  unreachable

22:                                               ; preds = %18
  %23 = tail call i32 @nk_strlen(ptr noundef nonnull %2)
  %24 = tail call i32 @nk_murmur_hash(ptr noundef nonnull %2, i32 noundef %23, i32 noundef 4)
  %25 = getelementptr inbounds i8, ptr %12, i64 288
  %26 = load ptr, ptr %25, align 8, !tbaa !68
  %.not95 = icmp eq ptr %26, null
  br i1 %.not95, label %27, label %32

27:                                               ; preds = %22
  %28 = tail call ptr @nk_create_window(ptr noundef nonnull %0)
  %29 = getelementptr inbounds i8, ptr %28, i64 464
  store ptr %12, ptr %29, align 8, !tbaa !69
  store ptr %28, ptr %25, align 8, !tbaa !68
  %30 = getelementptr inbounds i8, ptr %12, i64 348
  store i32 0, ptr %30, align 4, !tbaa !70
  %31 = getelementptr inbounds i8, ptr %12, i64 296
  store i32 4, ptr %31, align 8, !tbaa !71
  br label %32

32:                                               ; preds = %27, %22
  %.084 = phi ptr [ %26, %22 ], [ %28, %27 ]
  %33 = getelementptr inbounds i8, ptr %12, i64 344
  %34 = load i32, ptr %33, align 8, !tbaa !72
  %.not96 = icmp eq i32 %34, %24
  br i1 %.not96, label %40, label %35

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %12, i64 348
  %37 = load i32, ptr %36, align 4, !tbaa !70
  %.not97 = icmp eq i32 %37, 0
  br i1 %.not97, label %38, label %80

38:                                               ; preds = %35
  tail call void @nk_zero(ptr noundef nonnull %.084, i64 noundef 472)
  store i32 %24, ptr %33, align 8, !tbaa !72
  store i32 1, ptr %36, align 4, !tbaa !70
  %39 = getelementptr inbounds i8, ptr %12, i64 296
  store i32 4, ptr %39, align 8, !tbaa !71
  br label %40

40:                                               ; preds = %38, %32
  store ptr %.084, ptr %11, align 8, !tbaa !5
  %41 = load ptr, ptr %15, align 8, !tbaa !56
  %42 = getelementptr inbounds i8, ptr %41, i64 68
  %43 = load <2 x float>, ptr %42, align 4, !tbaa !73
  %44 = fadd <2 x float> %43, %4
  %45 = getelementptr inbounds i8, ptr %.084, i64 464
  store ptr %12, ptr %45, align 8, !tbaa !69
  %46 = getelementptr inbounds i8, ptr %.084, i64 76
  store <2 x float> %44, ptr %46, align 4
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %.084, i64 84
  store <2 x float> %5, ptr %.sroa.6.0..sroa_idx, align 4
  %47 = getelementptr inbounds i8, ptr %0, i64 16620
  %48 = load i32, ptr %47, align 4, !tbaa !74
  store i32 %48, ptr %.084, align 8, !tbaa !75
  %49 = tail call ptr @nk_create_panel(ptr noundef nonnull %0)
  %50 = getelementptr inbounds i8, ptr %.084, i64 168
  store ptr %49, ptr %50, align 8, !tbaa !56
  %51 = getelementptr inbounds i8, ptr %.084, i64 72
  %52 = icmp eq i32 %1, 1
  %spec.select.v = select i1 %52, i32 2049, i32 1
  %spec.select = or i32 %spec.select.v, %3
  store i32 %spec.select, ptr %51, align 8, !tbaa !76
  %53 = getelementptr inbounds i8, ptr %.084, i64 104
  %54 = getelementptr inbounds i8, ptr %12, i64 104
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %53, ptr noundef nonnull align 8 dereferenceable(64) %54, i64 64, i1 false), !tbaa.struct !77
  tail call void @nk_start_popup(ptr noundef nonnull %0, ptr noundef nonnull %12)
  %55 = getelementptr inbounds i8, ptr %0, i64 7992
  %56 = load i64, ptr %55, align 8, !tbaa !82
  %57 = load <2 x float>, ptr @nk_null_rect, align 4
  %58 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @nk_null_rect, i64 8), align 4
  tail call void @nk_push_scissor(ptr noundef nonnull %53, <2 x float> %57, <2 x float> %58)
  %59 = tail call i32 @nk_panel_begin(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef 4)
  %.not98 = icmp eq i32 %59, 0
  %.0105 = load ptr, ptr %15, align 8, !tbaa !78
  %.not99106 = icmp eq ptr %.0105, null
  br i1 %.not98, label %.preheader, label %.preheader101

.preheader101:                                    ; preds = %40
  br i1 %.not99106, label %._crit_edge, label %.lr.ph

.preheader:                                       ; preds = %40
  br i1 %.not99106, label %._crit_edge109, label %.lr.ph108

.lr.ph:                                           ; preds = %.preheader101, %.lr.ph
  %.082104 = phi ptr [ %.082, %.lr.ph ], [ %.0105, %.preheader101 ]
  %60 = getelementptr inbounds i8, ptr %.082104, i64 4
  %61 = load i32, ptr %60, align 4, !tbaa !83
  %62 = and i32 %61, -69633
  %63 = or disjoint i32 %62, 4096
  store i32 %63, ptr %60, align 4, !tbaa !83
  %64 = getelementptr inbounds i8, ptr %.082104, i64 440
  %.082 = load ptr, ptr %64, align 8, !tbaa !78
  %.not100 = icmp eq ptr %.082, null
  br i1 %.not100, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !84

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load ptr, ptr %15, align 8, !tbaa !56
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader101
  %65 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ null, %.preheader101 ]
  %66 = getelementptr inbounds i8, ptr %12, i64 348
  store i32 1, ptr %66, align 4, !tbaa !70
  %67 = getelementptr inbounds i8, ptr %.084, i64 92
  %68 = load ptr, ptr %50, align 8, !tbaa !56
  %69 = getelementptr inbounds i8, ptr %68, i64 24
  store ptr %67, ptr %69, align 8, !tbaa !86
  %70 = getelementptr inbounds i8, ptr %.084, i64 96
  %71 = getelementptr inbounds i8, ptr %68, i64 32
  store ptr %70, ptr %71, align 8, !tbaa !87
  %72 = getelementptr inbounds i8, ptr %68, i64 440
  store ptr %65, ptr %72, align 8, !tbaa !88
  br label %80

.lr.ph108:                                        ; preds = %.preheader, %.lr.ph108
  %.0107 = phi ptr [ %.0, %.lr.ph108 ], [ %.0105, %.preheader ]
  %73 = getelementptr inbounds i8, ptr %.0107, i64 4
  %74 = load i32, ptr %73, align 4, !tbaa !83
  %75 = or i32 %74, 65536
  store i32 %75, ptr %73, align 4, !tbaa !83
  %76 = getelementptr inbounds i8, ptr %.0107, i64 440
  %.0 = load ptr, ptr %76, align 8, !tbaa !78
  %.not99 = icmp eq ptr %.0, null
  br i1 %.not99, label %._crit_edge109, label %.lr.ph108, !llvm.loop !89

._crit_edge109:                                   ; preds = %.lr.ph108, %.preheader
  %77 = getelementptr inbounds i8, ptr %12, i64 336
  store i32 0, ptr %77, align 8, !tbaa !90
  %78 = getelementptr inbounds i8, ptr %12, i64 348
  store i32 0, ptr %78, align 4, !tbaa !70
  store i64 %56, ptr %55, align 8, !tbaa !82
  store ptr %12, ptr %11, align 8, !tbaa !5
  %79 = load ptr, ptr %50, align 8, !tbaa !56
  tail call void @nk_free_panel(ptr noundef nonnull %0, ptr noundef %79)
  store ptr null, ptr %50, align 8, !tbaa !56
  br label %80

80:                                               ; preds = %35, %._crit_edge109, %._crit_edge
  %.083 = phi i32 [ 1, %._crit_edge ], [ 0, %._crit_edge109 ], [ 0, %35 ]
  ret i32 %.083
}

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

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


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