; 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_user_font = type { %union.nk_handle, float, ptr, ptr, %union.nk_handle }
%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 }

@.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_begin_titled = external hidden unnamed_addr constant [95 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [21 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: nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @nk_rect(float noundef, float noundef, float noundef, float noundef) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_input_has_mouse_click_down_in_rect(ptr noundef, i32 noundef, <2 x float>, <2 x float>, i32 noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_input_is_mouse_hovering_rect(ptr noundef, <2 x float>, <2 x float>) #5

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

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

31:                                               ; preds = %6
  br label %33

32:                                               ; preds = %6
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 16276, ptr noundef @__PRETTY_FUNCTION__.nk_begin_titled) #7
  unreachable

33:                                               ; preds = %31
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  br label %38

37:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.69, ptr noundef @.str.2, i32 noundef 16277, ptr noundef @__PRETTY_FUNCTION__.nk_begin_titled) #7
  unreachable

38:                                               ; preds = %36
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  br label %43

42:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.70, ptr noundef @.str.2, i32 noundef 16278, ptr noundef @__PRETTY_FUNCTION__.nk_begin_titled) #7
  unreachable

43:                                               ; preds = %41
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.nk_context, ptr %44, i32 0, i32 1
  %46 = getelementptr inbounds %struct.nk_style, ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %59

49:                                               ; preds = %43
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.nk_context, ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds %struct.nk_style, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = getelementptr inbounds %struct.nk_user_font, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !58
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %59

57:                                               ; preds = %49
  br i1 true, label %58, label %59

58:                                               ; preds = %57
  br label %60

59:                                               ; preds = %57, %49, %43
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.2, i32 noundef 16279, ptr noundef @__PRETTY_FUNCTION__.nk_begin_titled) #7
  unreachable

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

65:                                               ; preds = %60
  br i1 true, label %66, label %67

66:                                               ; preds = %65
  br label %68

67:                                               ; preds = %65, %60
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.2, i32 noundef 16280, ptr noundef @__PRETTY_FUNCTION__.nk_begin_titled) #7
  unreachable

68:                                               ; preds = %66
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %82

71:                                               ; preds = %68
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.nk_context, ptr %72, i32 0, i32 17
  %74 = load ptr, ptr %73, align 8, !tbaa !60
  %75 = icmp ne ptr %74, null
  br i1 %75, label %82, label %76

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

79:                                               ; preds = %76
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %83, label %82

82:                                               ; preds = %79, %76, %71, %68
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %818

83:                                               ; preds = %79
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.nk_context, ptr %84, i32 0, i32 1
  store ptr %85, ptr %14, align 8, !tbaa !5
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = call i32 @nk_strlen(ptr noundef %86)
  store i32 %87, ptr %16, align 4, !tbaa !9
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = call i32 @nk_murmur_hash(ptr noundef %88, i32 noundef %89, i32 noundef 64)
  store i32 %90, ptr %15, align 4, !tbaa !9
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = load i32, ptr %15, align 4, !tbaa !9
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = call ptr @nk_find_window(ptr noundef %91, i32 noundef %92, ptr noundef %93)
  store ptr %94, ptr %13, align 8, !tbaa !5
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %165, label %97

97:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %98 = load i32, ptr %16, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  store i64 %99, ptr %19, align 8, !tbaa !61
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = call ptr @nk_create_window(ptr noundef %100)
  store ptr %101, ptr %13, align 8, !tbaa !5
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %105

104:                                              ; preds = %97
  br label %106

105:                                              ; preds = %97
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.2, i32 noundef 16293, ptr noundef @__PRETTY_FUNCTION__.nk_begin_titled) #7
  unreachable

106:                                              ; preds = %104
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %162

110:                                              ; preds = %106
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = and i32 %111, 256
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %117

114:                                              ; preds = %110
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  call void @nk_insert_window(ptr noundef %115, ptr noundef %116, i32 noundef 1)
  br label %120

117:                                              ; preds = %110
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  call void @nk_insert_window(ptr noundef %118, ptr noundef %119, i32 noundef 0)
  br label %120

120:                                              ; preds = %117, %114
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.nk_window, ptr %121, i32 0, i32 6
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.nk_context, ptr %123, i32 0, i32 2
  call void @nk_command_buffer_init(ptr noundef %122, ptr noundef %124, i32 noundef 1)
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.nk_window, ptr %126, i32 0, i32 3
  store i32 %125, ptr %127, align 8, !tbaa !62
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.nk_window, ptr %128, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %129, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !69
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.nk_window, ptr %131, i32 0, i32 1
  store i32 %130, ptr %132, align 4, !tbaa !71
  %133 = load i64, ptr %19, align 8, !tbaa !61
  %134 = icmp ult i64 %133, 63
  br i1 %134, label %135, label %137

135:                                              ; preds = %120
  %136 = load i64, ptr %19, align 8, !tbaa !61
  br label %138

137:                                              ; preds = %120
  br label %138

138:                                              ; preds = %137, %135
  %139 = phi i64 [ %136, %135 ], [ 63, %137 ]
  store i64 %139, ptr %19, align 8, !tbaa !61
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.nk_window, ptr %140, i32 0, i32 2
  %142 = getelementptr inbounds [64 x i8], ptr %141, i64 0, i64 0
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = load i64, ptr %19, align 8, !tbaa !61
  %145 = call ptr @nk_memcopy(ptr noundef %142, ptr noundef %143, i64 noundef %144)
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.nk_window, ptr %146, i32 0, i32 2
  %148 = load i64, ptr %19, align 8, !tbaa !61
  %149 = getelementptr inbounds [64 x i8], ptr %147, i64 0, i64 %148
  store i8 0, ptr %149, align 1, !tbaa !72
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.nk_window, ptr %150, i32 0, i32 10
  %152 = getelementptr inbounds %struct.nk_popup_state, ptr %151, i32 0, i32 0
  store ptr null, ptr %152, align 8, !tbaa !73
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.nk_context, ptr %153, i32 0, i32 16
  %155 = load ptr, ptr %154, align 8, !tbaa !74
  %156 = icmp ne ptr %155, null
  br i1 %156, label %161, label %157

157:                                              ; preds = %138
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.nk_context, ptr %159, i32 0, i32 16
  store ptr %158, ptr %160, align 8, !tbaa !74
  br label %161

161:                                              ; preds = %157, %138
  store i32 0, ptr %18, align 4
  br label %162

162:                                              ; preds = %161, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %163 = load i32, ptr %18, align 4
  switch i32 %163, label %818 [
    i32 0, label %164
  ]

164:                                              ; preds = %162
  br label %217

165:                                              ; preds = %83
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.nk_window, ptr %166, i32 0, i32 3
  %168 = load i32, ptr %167, align 8, !tbaa !62
  %169 = and i32 %168, -2048
  store i32 %169, ptr %167, align 8, !tbaa !62
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = load ptr, ptr %13, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.nk_window, ptr %171, i32 0, i32 3
  %173 = load i32, ptr %172, align 8, !tbaa !62
  %174 = or i32 %173, %170
  store i32 %174, ptr %172, align 8, !tbaa !62
  %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 !62
  %178 = and i32 %177, 6
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %183, label %180

180:                                              ; preds = %165
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.nk_window, ptr %181, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %182, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !69
  br label %183

183:                                              ; preds = %180, %165
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.nk_window, ptr %184, i32 0, i32 0
  %186 = load i32, ptr %185, align 8, !tbaa !75
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.nk_context, ptr %187, i32 0, i32 20
  %189 = load i32, ptr %188, align 4, !tbaa !76
  %190 = icmp ne i32 %186, %189
  br i1 %190, label %191, label %192

191:                                              ; preds = %183
  br label %193

192:                                              ; preds = %183
  call void @__assert_fail(ptr noundef @.str.76, ptr noundef @.str.2, i32 noundef 16323, ptr noundef @__PRETTY_FUNCTION__.nk_begin_titled) #7
  unreachable

193:                                              ; preds = %191
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.nk_context, ptr %194, i32 0, i32 20
  %196 = load i32, ptr %195, align 4, !tbaa !76
  %197 = load ptr, ptr %13, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.nk_window, ptr %197, i32 0, i32 0
  store i32 %196, ptr %198, align 8, !tbaa !75
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.nk_context, ptr %199, i32 0, i32 16
  %201 = load ptr, ptr %200, align 8, !tbaa !74
  %202 = icmp ne ptr %201, null
  br i1 %202, label %216, label %203

203:                                              ; preds = %193
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.nk_window, ptr %204, i32 0, i32 3
  %206 = load i32, ptr %205, align 8, !tbaa !62
  %207 = and i32 %206, 8192
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %216, label %209

209:                                              ; preds = %203
  %210 = load ptr, ptr %13, align 8, !tbaa !5
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.nk_context, ptr %211, i32 0, i32 16
  store ptr %210, ptr %212, align 8, !tbaa !74
  %213 = load ptr, ptr %13, align 8, !tbaa !5
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.nk_context, ptr %214, i32 0, i32 15
  store ptr %213, ptr %215, align 8, !tbaa !77
  br label %216

216:                                              ; preds = %209, %203, %193
  br label %217

217:                                              ; preds = %216, %164
  %218 = load ptr, ptr %13, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.nk_window, ptr %218, i32 0, i32 3
  %220 = load i32, ptr %219, align 8, !tbaa !62
  %221 = and i32 %220, 8192
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %229

223:                                              ; preds = %217
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = load ptr, ptr %9, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.nk_context, ptr %225, i32 0, i32 17
  store ptr %224, ptr %226, align 8, !tbaa !60
  %227 = load ptr, ptr %13, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.nk_window, ptr %227, i32 0, i32 7
  store ptr null, ptr %228, align 8, !tbaa !78
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %818

229:                                              ; preds = %217
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = load ptr, ptr %13, align 8, !tbaa !5
  call void @nk_start(ptr noundef %230, ptr noundef %231)
  br label %232

232:                                              ; preds = %229
  %233 = load ptr, ptr %13, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.nk_window, ptr %233, i32 0, i32 3
  %235 = load i32, ptr %234, align 8, !tbaa !62
  %236 = and i32 %235, 8192
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %792, label %238

238:                                              ; preds = %232
  %239 = load ptr, ptr %13, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.nk_window, ptr %239, i32 0, i32 3
  %241 = load i32, ptr %240, align 8, !tbaa !62
  %242 = and i32 %241, 1024
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %792, label %244

244:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %245 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %245, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.nk_context, ptr %246, i32 0, i32 1
  %248 = getelementptr inbounds %struct.nk_style, ptr %247, i32 0, i32 0
  %249 = load ptr, ptr %248, align 8, !tbaa !11
  %250 = getelementptr inbounds %struct.nk_user_font, ptr %249, i32 0, i32 1
  %251 = load float, ptr %250, align 8, !tbaa !79
  %252 = load ptr, ptr %14, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.nk_style, ptr %252, i32 0, i32 21
  %254 = getelementptr inbounds %struct.nk_style_window, ptr %253, i32 0, i32 0
  %255 = getelementptr inbounds %struct.nk_style_window_header, ptr %254, i32 0, i32 12
  %256 = getelementptr inbounds %struct.nk_vec2, ptr %255, i32 0, i32 1
  %257 = load float, ptr %256, align 4, !tbaa !80
  %258 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %257, float %251)
  %259 = load ptr, ptr %14, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.nk_style, ptr %259, i32 0, i32 21
  %261 = getelementptr inbounds %struct.nk_style_window, ptr %260, i32 0, i32 0
  %262 = getelementptr inbounds %struct.nk_style_window_header, ptr %261, i32 0, i32 13
  %263 = getelementptr inbounds %struct.nk_vec2, ptr %262, i32 0, i32 1
  %264 = load float, ptr %263, align 4, !tbaa !81
  %265 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %264, float %258)
  store float %265, ptr %23, align 4, !tbaa !70
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  %266 = load ptr, ptr %13, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.nk_window, ptr %266, i32 0, i32 3
  %268 = load i32, ptr %267, align 8, !tbaa !62
  %269 = and i32 %268, 32768
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %274, label %271

271:                                              ; preds = %244
  %272 = load ptr, ptr %13, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.nk_window, ptr %272, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %273, i64 16, i1 false), !tbaa.struct !69
  br label %293

274:                                              ; preds = %244
  %275 = load ptr, ptr %13, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.nk_window, ptr %275, i32 0, i32 4
  %277 = getelementptr inbounds %struct.nk_rect, ptr %276, i32 0, i32 0
  %278 = load float, ptr %277, align 4, !tbaa !82
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.nk_window, ptr %279, i32 0, i32 4
  %281 = getelementptr inbounds %struct.nk_rect, ptr %280, i32 0, i32 1
  %282 = load float, ptr %281, align 4, !tbaa !83
  %283 = load ptr, ptr %13, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.nk_window, ptr %283, i32 0, i32 4
  %285 = getelementptr inbounds %struct.nk_rect, ptr %284, i32 0, i32 2
  %286 = load float, ptr %285, align 4, !tbaa !84
  %287 = load float, ptr %23, align 4, !tbaa !70
  %288 = call { <2 x float>, <2 x float> } @nk_rect(float noundef %278, float noundef %282, float noundef %286, float noundef %287)
  %289 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 0
  %290 = extractvalue { <2 x float>, <2 x float> } %288, 0
  store <2 x float> %290, ptr %289, align 4
  %291 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 1
  %292 = extractvalue { <2 x float>, <2 x float> } %288, 1
  store <2 x float> %292, ptr %291, align 4
  br label %293

293:                                              ; preds = %274, %271
  %294 = load ptr, ptr %9, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.nk_context, ptr %294, i32 0, i32 0
  %296 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 0
  %297 = load <2 x float>, ptr %296, align 4
  %298 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 1
  %299 = load <2 x float>, ptr %298, align 4
  %300 = call i32 @nk_input_has_mouse_click_down_in_rect(ptr noundef %295, i32 noundef 0, <2 x float> %297, <2 x float> %299, i32 noundef 1)
  store i32 %300, ptr %20, align 4, !tbaa !9
  %301 = load i32, ptr %20, align 4, !tbaa !9
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %303, label %312

303:                                              ; preds = %293
  %304 = load ptr, ptr %9, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.nk_context, ptr %304, i32 0, i32 0
  %306 = getelementptr inbounds %struct.nk_input, ptr %305, i32 0, i32 1
  %307 = getelementptr inbounds %struct.nk_mouse, ptr %306, i32 0, i32 0
  %308 = getelementptr inbounds [4 x %struct.nk_mouse_button], ptr %307, i64 0, i64 0
  %309 = getelementptr inbounds %struct.nk_mouse_button, ptr %308, i32 0, i32 1
  %310 = load i32, ptr %309, align 4, !tbaa !85
  %311 = icmp ne i32 %310, 0
  br label %312

312:                                              ; preds = %303, %293
  %313 = phi i1 [ false, %293 ], [ %311, %303 ]
  %314 = zext i1 %313 to i32
  store i32 %314, ptr %20, align 4, !tbaa !9
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.nk_context, ptr %315, i32 0, i32 0
  %317 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 0
  %318 = load <2 x float>, ptr %317, align 4
  %319 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 1
  %320 = load <2 x float>, ptr %319, align 4
  %321 = call i32 @nk_input_is_mouse_hovering_rect(ptr noundef %316, <2 x float> %318, <2 x float> %320)
  store i32 %321, ptr %21, align 4, !tbaa !9
  %322 = load ptr, ptr %13, align 8, !tbaa !5
  %323 = load ptr, ptr %9, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.nk_context, ptr %323, i32 0, i32 16
  %325 = load ptr, ptr %324, align 8, !tbaa !74
  %326 = icmp ne ptr %322, %325
  br i1 %326, label %327, label %514

327:                                              ; preds = %312
  %328 = load i32, ptr %21, align 4, !tbaa !9
  %329 = icmp ne i32 %328, 0
  br i1 %329, label %330, label %514

330:                                              ; preds = %327
  %331 = load ptr, ptr %9, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.nk_context, ptr %331, i32 0, i32 0
  %333 = getelementptr inbounds %struct.nk_input, ptr %332, i32 0, i32 1
  %334 = getelementptr inbounds %struct.nk_mouse, ptr %333, i32 0, i32 0
  %335 = getelementptr inbounds [4 x %struct.nk_mouse_button], ptr %334, i64 0, i64 0
  %336 = getelementptr inbounds %struct.nk_mouse_button, ptr %335, i32 0, i32 0
  %337 = load i32, ptr %336, align 4, !tbaa !87
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %514, label %339

339:                                              ; preds = %330
  %340 = load ptr, ptr %13, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.nk_window, ptr %340, i32 0, i32 15
  %342 = load ptr, ptr %341, align 8, !tbaa !88
  store ptr %342, ptr %22, align 8, !tbaa !5
  br label %343

343:                                              ; preds = %512, %339
  %344 = load ptr, ptr %22, align 8, !tbaa !5
  %345 = icmp ne ptr %344, null
  br i1 %345, label %346, label %513

346:                                              ; preds = %343
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %347 = load ptr, ptr %22, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.nk_window, ptr %347, i32 0, i32 3
  %349 = load i32, ptr %348, align 8, !tbaa !62
  %350 = and i32 %349, 32768
  %351 = icmp ne i32 %350, 0
  br i1 %351, label %355, label %352

352:                                              ; preds = %346
  %353 = load ptr, ptr %22, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.nk_window, ptr %353, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %354, i64 16, i1 false), !tbaa.struct !69
  br label %374

355:                                              ; preds = %346
  %356 = load ptr, ptr %22, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.nk_window, ptr %356, i32 0, i32 4
  %358 = getelementptr inbounds %struct.nk_rect, ptr %357, i32 0, i32 0
  %359 = load float, ptr %358, align 4, !tbaa !82
  %360 = load ptr, ptr %22, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.nk_window, ptr %360, i32 0, i32 4
  %362 = getelementptr inbounds %struct.nk_rect, ptr %361, i32 0, i32 1
  %363 = load float, ptr %362, align 4, !tbaa !83
  %364 = load ptr, ptr %22, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.nk_window, ptr %364, i32 0, i32 4
  %366 = getelementptr inbounds %struct.nk_rect, ptr %365, i32 0, i32 2
  %367 = load float, ptr %366, align 4, !tbaa !84
  %368 = load float, ptr %23, align 4, !tbaa !70
  %369 = call { <2 x float>, <2 x float> } @nk_rect(float noundef %359, float noundef %363, float noundef %367, float noundef %368)
  %370 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 0
  %371 = extractvalue { <2 x float>, <2 x float> } %369, 0
  store <2 x float> %371, ptr %370, align 4
  %372 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 1
  %373 = extractvalue { <2 x float>, <2 x float> } %369, 1
  store <2 x float> %373, ptr %372, align 4
  br label %374

374:                                              ; preds = %355, %352
  %375 = getelementptr inbounds %struct.nk_rect, ptr %25, i32 0, i32 0
  %376 = load float, ptr %375, align 4, !tbaa !89
  %377 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 0
  %378 = load float, ptr %377, align 4, !tbaa !89
  %379 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 2
  %380 = load float, ptr %379, align 4, !tbaa !90
  %381 = fadd float %378, %380
  %382 = fcmp ogt float %376, %381
  br i1 %382, label %417, label %383

383:                                              ; preds = %374
  %384 = getelementptr inbounds %struct.nk_rect, ptr %25, i32 0, i32 0
  %385 = load float, ptr %384, align 4, !tbaa !89
  %386 = getelementptr inbounds %struct.nk_rect, ptr %25, i32 0, i32 2
  %387 = load float, ptr %386, align 4, !tbaa !90
  %388 = fadd float %385, %387
  %389 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 0
  %390 = load float, ptr %389, align 4, !tbaa !89
  %391 = fcmp olt float %388, %390
  br i1 %391, label %417, label %392

392:                                              ; preds = %383
  %393 = getelementptr inbounds %struct.nk_rect, ptr %25, i32 0, i32 1
  %394 = load float, ptr %393, align 4, !tbaa !91
  %395 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 1
  %396 = load float, ptr %395, align 4, !tbaa !91
  %397 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 3
  %398 = load float, ptr %397, align 4, !tbaa !92
  %399 = fadd float %396, %398
  %400 = fcmp ogt float %394, %399
  br i1 %400, label %417, label %401

401:                                              ; preds = %392
  %402 = getelementptr inbounds %struct.nk_rect, ptr %25, i32 0, i32 1
  %403 = load float, ptr %402, align 4, !tbaa !91
  %404 = getelementptr inbounds %struct.nk_rect, ptr %25, i32 0, i32 3
  %405 = load float, ptr %404, align 4, !tbaa !92
  %406 = fadd float %403, %405
  %407 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 1
  %408 = load float, ptr %407, align 4, !tbaa !91
  %409 = fcmp olt float %406, %408
  br i1 %409, label %417, label %410

410:                                              ; preds = %401
  %411 = load ptr, ptr %22, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.nk_window, ptr %411, i32 0, i32 3
  %413 = load i32, ptr %412, align 8, !tbaa !62
  %414 = and i32 %413, 8192
  %415 = icmp ne i32 %414, 0
  br i1 %415, label %417, label %416

416:                                              ; preds = %410
  store i32 3, ptr %18, align 4
  br label %510

417:                                              ; preds = %410, %401, %392, %383, %374
  %418 = load ptr, ptr %22, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.nk_window, ptr %418, i32 0, i32 10
  %420 = getelementptr inbounds %struct.nk_popup_state, ptr %419, i32 0, i32 0
  %421 = load ptr, ptr %420, align 8, !tbaa !73
  %422 = icmp ne ptr %421, null
  br i1 %422, label %423, label %506

423:                                              ; preds = %417
  %424 = load ptr, ptr %22, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.nk_window, ptr %424, i32 0, i32 10
  %426 = getelementptr inbounds %struct.nk_popup_state, ptr %425, i32 0, i32 4
  %427 = load i32, ptr %426, align 4, !tbaa !93
  %428 = icmp ne i32 %427, 0
  br i1 %428, label %429, label %506

429:                                              ; preds = %423
  %430 = load ptr, ptr %22, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.nk_window, ptr %430, i32 0, i32 3
  %432 = load i32, ptr %431, align 8, !tbaa !62
  %433 = and i32 %432, 8192
  %434 = icmp ne i32 %433, 0
  br i1 %434, label %506, label %435

435:                                              ; preds = %429
  %436 = load ptr, ptr %22, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.nk_window, ptr %436, i32 0, i32 10
  %438 = getelementptr inbounds %struct.nk_popup_state, ptr %437, i32 0, i32 0
  %439 = load ptr, ptr %438, align 8, !tbaa !73
  %440 = getelementptr inbounds %struct.nk_window, ptr %439, i32 0, i32 4
  %441 = getelementptr inbounds %struct.nk_rect, ptr %440, i32 0, i32 0
  %442 = load float, ptr %441, align 4, !tbaa !82
  %443 = load ptr, ptr %13, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.nk_window, ptr %443, i32 0, i32 4
  %445 = getelementptr inbounds %struct.nk_rect, ptr %444, i32 0, i32 0
  %446 = load float, ptr %445, align 4, !tbaa !82
  %447 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 2
  %448 = load float, ptr %447, align 4, !tbaa !90
  %449 = fadd float %446, %448
  %450 = fcmp ogt float %442, %449
  br i1 %450, label %506, label %451

451:                                              ; preds = %435
  %452 = load ptr, ptr %22, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.nk_window, ptr %452, i32 0, i32 10
  %454 = getelementptr inbounds %struct.nk_popup_state, ptr %453, i32 0, i32 0
  %455 = load ptr, ptr %454, align 8, !tbaa !73
  %456 = getelementptr inbounds %struct.nk_window, ptr %455, i32 0, i32 4
  %457 = getelementptr inbounds %struct.nk_rect, ptr %456, i32 0, i32 0
  %458 = load float, ptr %457, align 4, !tbaa !82
  %459 = load ptr, ptr %22, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.nk_window, ptr %459, i32 0, i32 10
  %461 = getelementptr inbounds %struct.nk_popup_state, ptr %460, i32 0, i32 0
  %462 = load ptr, ptr %461, align 8, !tbaa !73
  %463 = getelementptr inbounds %struct.nk_window, ptr %462, i32 0, i32 4
  %464 = getelementptr inbounds %struct.nk_rect, ptr %463, i32 0, i32 2
  %465 = load float, ptr %464, align 4, !tbaa !84
  %466 = fadd float %458, %465
  %467 = load ptr, ptr %13, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.nk_window, ptr %467, i32 0, i32 4
  %469 = getelementptr inbounds %struct.nk_rect, ptr %468, i32 0, i32 0
  %470 = load float, ptr %469, align 4, !tbaa !82
  %471 = fcmp olt float %466, %470
  br i1 %471, label %506, label %472

472:                                              ; preds = %451
  %473 = load ptr, ptr %22, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.nk_window, ptr %473, i32 0, i32 10
  %475 = getelementptr inbounds %struct.nk_popup_state, ptr %474, i32 0, i32 0
  %476 = load ptr, ptr %475, align 8, !tbaa !73
  %477 = getelementptr inbounds %struct.nk_window, ptr %476, i32 0, i32 4
  %478 = getelementptr inbounds %struct.nk_rect, ptr %477, i32 0, i32 1
  %479 = load float, ptr %478, align 4, !tbaa !83
  %480 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 1
  %481 = load float, ptr %480, align 4, !tbaa !91
  %482 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 3
  %483 = load float, ptr %482, align 4, !tbaa !92
  %484 = fadd float %481, %483
  %485 = fcmp ogt float %479, %484
  br i1 %485, label %506, label %486

486:                                              ; preds = %472
  %487 = load ptr, ptr %22, align 8, !tbaa !5
  %488 = getelementptr inbounds %struct.nk_window, ptr %487, i32 0, i32 10
  %489 = getelementptr inbounds %struct.nk_popup_state, ptr %488, i32 0, i32 0
  %490 = load ptr, ptr %489, align 8, !tbaa !73
  %491 = getelementptr inbounds %struct.nk_window, ptr %490, i32 0, i32 4
  %492 = getelementptr inbounds %struct.nk_rect, ptr %491, i32 0, i32 1
  %493 = load float, ptr %492, align 4, !tbaa !83
  %494 = load ptr, ptr %22, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.nk_window, ptr %494, i32 0, i32 10
  %496 = getelementptr inbounds %struct.nk_popup_state, ptr %495, i32 0, i32 0
  %497 = load ptr, ptr %496, align 8, !tbaa !73
  %498 = getelementptr inbounds %struct.nk_window, ptr %497, i32 0, i32 4
  %499 = getelementptr inbounds %struct.nk_rect, ptr %498, i32 0, i32 3
  %500 = load float, ptr %499, align 4, !tbaa !94
  %501 = fadd float %493, %500
  %502 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 1
  %503 = load float, ptr %502, align 4, !tbaa !91
  %504 = fcmp olt float %501, %503
  br i1 %504, label %506, label %505

505:                                              ; preds = %486
  store i32 3, ptr %18, align 4
  br label %510

506:                                              ; preds = %486, %472, %451, %435, %429, %423, %417
  %507 = load ptr, ptr %22, align 8, !tbaa !5
  %508 = getelementptr inbounds %struct.nk_window, ptr %507, i32 0, i32 15
  %509 = load ptr, ptr %508, align 8, !tbaa !88
  store ptr %509, ptr %22, align 8, !tbaa !5
  store i32 0, ptr %18, align 4
  br label %510

510:                                              ; preds = %506, %505, %416
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  %511 = load i32, ptr %18, align 4
  switch i32 %511, label %820 [
    i32 0, label %512
    i32 3, label %513
  ]

512:                                              ; preds = %510
  br label %343, !llvm.loop !95

513:                                              ; preds = %510, %343
  br label %514

514:                                              ; preds = %513, %330, %327, %312
  %515 = load ptr, ptr %22, align 8, !tbaa !5
  %516 = icmp ne ptr %515, null
  br i1 %516, label %517, label %707

517:                                              ; preds = %514
  %518 = load i32, ptr %20, align 4, !tbaa !9
  %519 = icmp ne i32 %518, 0
  br i1 %519, label %520, label %707

520:                                              ; preds = %517
  %521 = load ptr, ptr %13, align 8, !tbaa !5
  %522 = load ptr, ptr %9, align 8, !tbaa !5
  %523 = getelementptr inbounds %struct.nk_context, ptr %522, i32 0, i32 15
  %524 = load ptr, ptr %523, align 8, !tbaa !77
  %525 = icmp ne ptr %521, %524
  br i1 %525, label %526, label %707

526:                                              ; preds = %520
  %527 = load ptr, ptr %13, align 8, !tbaa !5
  %528 = getelementptr inbounds %struct.nk_window, ptr %527, i32 0, i32 15
  %529 = load ptr, ptr %528, align 8, !tbaa !88
  store ptr %529, ptr %22, align 8, !tbaa !5
  br label %530

530:                                              ; preds = %705, %526
  %531 = load ptr, ptr %22, align 8, !tbaa !5
  %532 = icmp ne ptr %531, null
  br i1 %532, label %533, label %706

533:                                              ; preds = %530
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %534 = load ptr, ptr %22, align 8, !tbaa !5
  %535 = getelementptr inbounds %struct.nk_window, ptr %534, i32 0, i32 3
  %536 = load i32, ptr %535, align 8, !tbaa !62
  %537 = and i32 %536, 32768
  %538 = icmp ne i32 %537, 0
  br i1 %538, label %542, label %539

539:                                              ; preds = %533
  %540 = load ptr, ptr %22, align 8, !tbaa !5
  %541 = getelementptr inbounds %struct.nk_window, ptr %540, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %541, i64 16, i1 false), !tbaa.struct !69
  br label %561

542:                                              ; preds = %533
  %543 = load ptr, ptr %22, align 8, !tbaa !5
  %544 = getelementptr inbounds %struct.nk_window, ptr %543, i32 0, i32 4
  %545 = getelementptr inbounds %struct.nk_rect, ptr %544, i32 0, i32 0
  %546 = load float, ptr %545, align 4, !tbaa !82
  %547 = load ptr, ptr %22, align 8, !tbaa !5
  %548 = getelementptr inbounds %struct.nk_window, ptr %547, i32 0, i32 4
  %549 = getelementptr inbounds %struct.nk_rect, ptr %548, i32 0, i32 1
  %550 = load float, ptr %549, align 4, !tbaa !83
  %551 = load ptr, ptr %22, align 8, !tbaa !5
  %552 = getelementptr inbounds %struct.nk_window, ptr %551, i32 0, i32 4
  %553 = getelementptr inbounds %struct.nk_rect, ptr %552, i32 0, i32 2
  %554 = load float, ptr %553, align 4, !tbaa !84
  %555 = load float, ptr %23, align 4, !tbaa !70
  %556 = call { <2 x float>, <2 x float> } @nk_rect(float noundef %546, float noundef %550, float noundef %554, float noundef %555)
  %557 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 0
  %558 = extractvalue { <2 x float>, <2 x float> } %556, 0
  store <2 x float> %558, ptr %557, align 4
  %559 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 1
  %560 = extractvalue { <2 x float>, <2 x float> } %556, 1
  store <2 x float> %560, ptr %559, align 4
  br label %561

561:                                              ; preds = %542, %539
  %562 = getelementptr inbounds %struct.nk_rect, ptr %26, i32 0, i32 0
  %563 = load float, ptr %562, align 4, !tbaa !89
  %564 = load ptr, ptr %9, align 8, !tbaa !5
  %565 = getelementptr inbounds %struct.nk_context, ptr %564, i32 0, i32 0
  %566 = getelementptr inbounds %struct.nk_input, ptr %565, i32 0, i32 1
  %567 = getelementptr inbounds %struct.nk_mouse, ptr %566, i32 0, i32 1
  %568 = getelementptr inbounds %struct.nk_vec2, ptr %567, i32 0, i32 0
  %569 = load float, ptr %568, align 4, !tbaa !97
  %570 = fcmp ole float %563, %569
  br i1 %570, label %571, label %614

571:                                              ; preds = %561
  %572 = load ptr, ptr %9, align 8, !tbaa !5
  %573 = getelementptr inbounds %struct.nk_context, ptr %572, i32 0, i32 0
  %574 = getelementptr inbounds %struct.nk_input, ptr %573, i32 0, i32 1
  %575 = getelementptr inbounds %struct.nk_mouse, ptr %574, i32 0, i32 1
  %576 = getelementptr inbounds %struct.nk_vec2, ptr %575, i32 0, i32 0
  %577 = load float, ptr %576, align 4, !tbaa !97
  %578 = getelementptr inbounds %struct.nk_rect, ptr %26, i32 0, i32 0
  %579 = load float, ptr %578, align 4, !tbaa !89
  %580 = getelementptr inbounds %struct.nk_rect, ptr %26, i32 0, i32 2
  %581 = load float, ptr %580, align 4, !tbaa !90
  %582 = fadd float %579, %581
  %583 = fcmp olt float %577, %582
  br i1 %583, label %584, label %614

584:                                              ; preds = %571
  %585 = getelementptr inbounds %struct.nk_rect, ptr %26, i32 0, i32 1
  %586 = load float, ptr %585, align 4, !tbaa !91
  %587 = load ptr, ptr %9, align 8, !tbaa !5
  %588 = getelementptr inbounds %struct.nk_context, ptr %587, i32 0, i32 0
  %589 = getelementptr inbounds %struct.nk_input, ptr %588, i32 0, i32 1
  %590 = getelementptr inbounds %struct.nk_mouse, ptr %589, i32 0, i32 1
  %591 = getelementptr inbounds %struct.nk_vec2, ptr %590, i32 0, i32 1
  %592 = load float, ptr %591, align 4, !tbaa !98
  %593 = fcmp ole float %586, %592
  br i1 %593, label %594, label %614

594:                                              ; preds = %584
  %595 = load ptr, ptr %9, align 8, !tbaa !5
  %596 = getelementptr inbounds %struct.nk_context, ptr %595, i32 0, i32 0
  %597 = getelementptr inbounds %struct.nk_input, ptr %596, i32 0, i32 1
  %598 = getelementptr inbounds %struct.nk_mouse, ptr %597, i32 0, i32 1
  %599 = getelementptr inbounds %struct.nk_vec2, ptr %598, i32 0, i32 1
  %600 = load float, ptr %599, align 4, !tbaa !98
  %601 = getelementptr inbounds %struct.nk_rect, ptr %26, i32 0, i32 1
  %602 = load float, ptr %601, align 4, !tbaa !91
  %603 = getelementptr inbounds %struct.nk_rect, ptr %26, i32 0, i32 3
  %604 = load float, ptr %603, align 4, !tbaa !92
  %605 = fadd float %602, %604
  %606 = fcmp olt float %600, %605
  br i1 %606, label %607, label %614

607:                                              ; preds = %594
  %608 = load ptr, ptr %22, align 8, !tbaa !5
  %609 = getelementptr inbounds %struct.nk_window, ptr %608, i32 0, i32 3
  %610 = load i32, ptr %609, align 8, !tbaa !62
  %611 = and i32 %610, 8192
  %612 = icmp ne i32 %611, 0
  br i1 %612, label %614, label %613

613:                                              ; preds = %607
  store i32 5, ptr %18, align 4
  br label %703

614:                                              ; preds = %607, %594, %584, %571, %561
  %615 = load ptr, ptr %22, align 8, !tbaa !5
  %616 = getelementptr inbounds %struct.nk_window, ptr %615, i32 0, i32 10
  %617 = getelementptr inbounds %struct.nk_popup_state, ptr %616, i32 0, i32 0
  %618 = load ptr, ptr %617, align 8, !tbaa !73
  %619 = icmp ne ptr %618, null
  br i1 %619, label %620, label %699

620:                                              ; preds = %614
  %621 = load ptr, ptr %22, align 8, !tbaa !5
  %622 = getelementptr inbounds %struct.nk_window, ptr %621, i32 0, i32 10
  %623 = getelementptr inbounds %struct.nk_popup_state, ptr %622, i32 0, i32 4
  %624 = load i32, ptr %623, align 4, !tbaa !93
  %625 = icmp ne i32 %624, 0
  br i1 %625, label %626, label %699

626:                                              ; preds = %620
  %627 = load ptr, ptr %22, align 8, !tbaa !5
  %628 = getelementptr inbounds %struct.nk_window, ptr %627, i32 0, i32 3
  %629 = load i32, ptr %628, align 8, !tbaa !62
  %630 = and i32 %629, 8192
  %631 = icmp ne i32 %630, 0
  br i1 %631, label %699, label %632

632:                                              ; preds = %626
  %633 = load ptr, ptr %22, align 8, !tbaa !5
  %634 = getelementptr inbounds %struct.nk_window, ptr %633, i32 0, i32 10
  %635 = getelementptr inbounds %struct.nk_popup_state, ptr %634, i32 0, i32 0
  %636 = load ptr, ptr %635, align 8, !tbaa !73
  %637 = getelementptr inbounds %struct.nk_window, ptr %636, i32 0, i32 4
  %638 = getelementptr inbounds %struct.nk_rect, ptr %637, i32 0, i32 0
  %639 = load float, ptr %638, align 4, !tbaa !82
  %640 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 0
  %641 = load float, ptr %640, align 4, !tbaa !89
  %642 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 2
  %643 = load float, ptr %642, align 4, !tbaa !90
  %644 = fadd float %641, %643
  %645 = fcmp ogt float %639, %644
  br i1 %645, label %699, label %646

646:                                              ; preds = %632
  %647 = load ptr, ptr %22, align 8, !tbaa !5
  %648 = getelementptr inbounds %struct.nk_window, ptr %647, i32 0, i32 10
  %649 = getelementptr inbounds %struct.nk_popup_state, ptr %648, i32 0, i32 0
  %650 = load ptr, ptr %649, align 8, !tbaa !73
  %651 = getelementptr inbounds %struct.nk_window, ptr %650, i32 0, i32 4
  %652 = getelementptr inbounds %struct.nk_rect, ptr %651, i32 0, i32 0
  %653 = load float, ptr %652, align 4, !tbaa !82
  %654 = load ptr, ptr %22, align 8, !tbaa !5
  %655 = getelementptr inbounds %struct.nk_window, ptr %654, i32 0, i32 10
  %656 = getelementptr inbounds %struct.nk_popup_state, ptr %655, i32 0, i32 0
  %657 = load ptr, ptr %656, align 8, !tbaa !73
  %658 = getelementptr inbounds %struct.nk_window, ptr %657, i32 0, i32 4
  %659 = getelementptr inbounds %struct.nk_rect, ptr %658, i32 0, i32 2
  %660 = load float, ptr %659, align 4, !tbaa !84
  %661 = fadd float %653, %660
  %662 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 0
  %663 = load float, ptr %662, align 4, !tbaa !89
  %664 = fcmp olt float %661, %663
  br i1 %664, label %699, label %665

665:                                              ; preds = %646
  %666 = load ptr, ptr %22, align 8, !tbaa !5
  %667 = getelementptr inbounds %struct.nk_window, ptr %666, i32 0, i32 10
  %668 = getelementptr inbounds %struct.nk_popup_state, ptr %667, i32 0, i32 0
  %669 = load ptr, ptr %668, align 8, !tbaa !73
  %670 = getelementptr inbounds %struct.nk_window, ptr %669, i32 0, i32 4
  %671 = getelementptr inbounds %struct.nk_rect, ptr %670, i32 0, i32 1
  %672 = load float, ptr %671, align 4, !tbaa !83
  %673 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 1
  %674 = load float, ptr %673, align 4, !tbaa !91
  %675 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 3
  %676 = load float, ptr %675, align 4, !tbaa !92
  %677 = fadd float %674, %676
  %678 = fcmp ogt float %672, %677
  br i1 %678, label %699, label %679

679:                                              ; preds = %665
  %680 = load ptr, ptr %22, align 8, !tbaa !5
  %681 = getelementptr inbounds %struct.nk_window, ptr %680, i32 0, i32 10
  %682 = getelementptr inbounds %struct.nk_popup_state, ptr %681, i32 0, i32 0
  %683 = load ptr, ptr %682, align 8, !tbaa !73
  %684 = getelementptr inbounds %struct.nk_window, ptr %683, i32 0, i32 4
  %685 = getelementptr inbounds %struct.nk_rect, ptr %684, i32 0, i32 1
  %686 = load float, ptr %685, align 4, !tbaa !83
  %687 = load ptr, ptr %22, align 8, !tbaa !5
  %688 = getelementptr inbounds %struct.nk_window, ptr %687, i32 0, i32 10
  %689 = getelementptr inbounds %struct.nk_popup_state, ptr %688, i32 0, i32 0
  %690 = load ptr, ptr %689, align 8, !tbaa !73
  %691 = getelementptr inbounds %struct.nk_window, ptr %690, i32 0, i32 4
  %692 = getelementptr inbounds %struct.nk_rect, ptr %691, i32 0, i32 3
  %693 = load float, ptr %692, align 4, !tbaa !94
  %694 = fadd float %686, %693
  %695 = getelementptr inbounds %struct.nk_rect, ptr %24, i32 0, i32 1
  %696 = load float, ptr %695, align 4, !tbaa !91
  %697 = fcmp olt float %694, %696
  br i1 %697, label %699, label %698

698:                                              ; preds = %679
  store i32 5, ptr %18, align 4
  br label %703

699:                                              ; preds = %679, %665, %646, %632, %626, %620, %614
  %700 = load ptr, ptr %22, align 8, !tbaa !5
  %701 = getelementptr inbounds %struct.nk_window, ptr %700, i32 0, i32 15
  %702 = load ptr, ptr %701, align 8, !tbaa !88
  store ptr %702, ptr %22, align 8, !tbaa !5
  store i32 0, ptr %18, align 4
  br label %703

703:                                              ; preds = %699, %698, %613
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  %704 = load i32, ptr %18, align 4
  switch i32 %704, label %820 [
    i32 0, label %705
    i32 5, label %706
  ]

705:                                              ; preds = %703
  br label %530, !llvm.loop !99

706:                                              ; preds = %703, %530
  br label %707

707:                                              ; preds = %706, %520, %517, %514
  %708 = load ptr, ptr %22, align 8, !tbaa !5
  %709 = icmp ne ptr %708, null
  br i1 %709, label %710, label %745

710:                                              ; preds = %707
  %711 = load ptr, ptr %13, align 8, !tbaa !5
  %712 = getelementptr inbounds %struct.nk_window, ptr %711, i32 0, i32 3
  %713 = load i32, ptr %712, align 8, !tbaa !62
  %714 = and i32 %713, 4096
  %715 = icmp ne i32 %714, 0
  br i1 %715, label %745, label %716

716:                                              ; preds = %710
  %717 = load ptr, ptr %13, align 8, !tbaa !5
  %718 = getelementptr inbounds %struct.nk_window, ptr %717, i32 0, i32 3
  %719 = load i32, ptr %718, align 8, !tbaa !62
  %720 = and i32 %719, 256
  %721 = icmp ne i32 %720, 0
  br i1 %721, label %722, label %745

722:                                              ; preds = %716
  %723 = load ptr, ptr %13, align 8, !tbaa !5
  %724 = getelementptr inbounds %struct.nk_window, ptr %723, i32 0, i32 3
  %725 = load i32, ptr %724, align 8, !tbaa !62
  %726 = or i32 %725, 4096
  store i32 %726, ptr %724, align 8, !tbaa !62
  %727 = load ptr, ptr %22, align 8, !tbaa !5
  %728 = getelementptr inbounds %struct.nk_window, ptr %727, i32 0, i32 3
  %729 = load i32, ptr %728, align 8, !tbaa !62
  %730 = and i32 %729, -4097
  store i32 %730, ptr %728, align 8, !tbaa !62
  %731 = load ptr, ptr %22, align 8, !tbaa !5
  %732 = load ptr, ptr %9, align 8, !tbaa !5
  %733 = getelementptr inbounds %struct.nk_context, ptr %732, i32 0, i32 16
  store ptr %731, ptr %733, align 8, !tbaa !74
  %734 = load ptr, ptr %22, align 8, !tbaa !5
  %735 = getelementptr inbounds %struct.nk_window, ptr %734, i32 0, i32 3
  %736 = load i32, ptr %735, align 8, !tbaa !62
  %737 = and i32 %736, 256
  %738 = icmp ne i32 %737, 0
  br i1 %738, label %744, label %739

739:                                              ; preds = %722
  %740 = load ptr, ptr %9, align 8, !tbaa !5
  %741 = load ptr, ptr %22, align 8, !tbaa !5
  call void @nk_remove_window(ptr noundef %740, ptr noundef %741)
  %742 = load ptr, ptr %9, align 8, !tbaa !5
  %743 = load ptr, ptr %22, align 8, !tbaa !5
  call void @nk_insert_window(ptr noundef %742, ptr noundef %743, i32 noundef 0)
  br label %744

744:                                              ; preds = %739, %722
  br label %791

745:                                              ; preds = %716, %710, %707
  %746 = load ptr, ptr %22, align 8, !tbaa !5
  %747 = icmp ne ptr %746, null
  br i1 %747, label %773, label %748

748:                                              ; preds = %745
  %749 = load ptr, ptr %9, align 8, !tbaa !5
  %750 = getelementptr inbounds %struct.nk_context, ptr %749, i32 0, i32 15
  %751 = load ptr, ptr %750, align 8, !tbaa !77
  %752 = load ptr, ptr %13, align 8, !tbaa !5
  %753 = icmp ne ptr %751, %752
  br i1 %753, label %754, label %773

754:                                              ; preds = %748
  %755 = load ptr, ptr %13, align 8, !tbaa !5
  %756 = getelementptr inbounds %struct.nk_window, ptr %755, i32 0, i32 3
  %757 = load i32, ptr %756, align 8, !tbaa !62
  %758 = and i32 %757, 256
  %759 = icmp ne i32 %758, 0
  br i1 %759, label %765, label %760

760:                                              ; preds = %754
  %761 = load ptr, ptr %9, align 8, !tbaa !5
  %762 = load ptr, ptr %13, align 8, !tbaa !5
  call void @nk_remove_window(ptr noundef %761, ptr noundef %762)
  %763 = load ptr, ptr %9, align 8, !tbaa !5
  %764 = load ptr, ptr %13, align 8, !tbaa !5
  call void @nk_insert_window(ptr noundef %763, ptr noundef %764, i32 noundef 0)
  br label %765

765:                                              ; preds = %760, %754
  %766 = load ptr, ptr %13, align 8, !tbaa !5
  %767 = getelementptr inbounds %struct.nk_window, ptr %766, i32 0, i32 3
  %768 = load i32, ptr %767, align 8, !tbaa !62
  %769 = and i32 %768, -4097
  store i32 %769, ptr %767, align 8, !tbaa !62
  %770 = load ptr, ptr %13, align 8, !tbaa !5
  %771 = load ptr, ptr %9, align 8, !tbaa !5
  %772 = getelementptr inbounds %struct.nk_context, ptr %771, i32 0, i32 16
  store ptr %770, ptr %772, align 8, !tbaa !74
  br label %773

773:                                              ; preds = %765, %748, %745
  %774 = load ptr, ptr %9, align 8, !tbaa !5
  %775 = getelementptr inbounds %struct.nk_context, ptr %774, i32 0, i32 15
  %776 = load ptr, ptr %775, align 8, !tbaa !77
  %777 = load ptr, ptr %13, align 8, !tbaa !5
  %778 = icmp ne ptr %776, %777
  br i1 %778, label %779, label %790

779:                                              ; preds = %773
  %780 = load ptr, ptr %13, align 8, !tbaa !5
  %781 = getelementptr inbounds %struct.nk_window, ptr %780, i32 0, i32 3
  %782 = load i32, ptr %781, align 8, !tbaa !62
  %783 = and i32 %782, 256
  %784 = icmp ne i32 %783, 0
  br i1 %784, label %790, label %785

785:                                              ; preds = %779
  %786 = load ptr, ptr %13, align 8, !tbaa !5
  %787 = getelementptr inbounds %struct.nk_window, ptr %786, i32 0, i32 3
  %788 = load i32, ptr %787, align 8, !tbaa !62
  %789 = or i32 %788, 4096
  store i32 %789, ptr %787, align 8, !tbaa !62
  br label %790

790:                                              ; preds = %785, %779, %773
  br label %791

791:                                              ; preds = %790, %744
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %792

792:                                              ; preds = %791, %238, %232
  %793 = load ptr, ptr %9, align 8, !tbaa !5
  %794 = call ptr @nk_create_panel(ptr noundef %793)
  %795 = load ptr, ptr %13, align 8, !tbaa !5
  %796 = getelementptr inbounds %struct.nk_window, ptr %795, i32 0, i32 7
  store ptr %794, ptr %796, align 8, !tbaa !78
  %797 = load ptr, ptr %13, align 8, !tbaa !5
  %798 = load ptr, ptr %9, align 8, !tbaa !5
  %799 = getelementptr inbounds %struct.nk_context, ptr %798, i32 0, i32 17
  store ptr %797, ptr %799, align 8, !tbaa !60
  %800 = load ptr, ptr %9, align 8, !tbaa !5
  %801 = load ptr, ptr %11, align 8, !tbaa !5
  %802 = call i32 @nk_panel_begin(ptr noundef %800, ptr noundef %801, i32 noundef 1)
  store i32 %802, ptr %17, align 4, !tbaa !9
  %803 = load ptr, ptr %13, align 8, !tbaa !5
  %804 = getelementptr inbounds %struct.nk_window, ptr %803, i32 0, i32 5
  %805 = getelementptr inbounds %struct.nk_scroll, ptr %804, i32 0, i32 0
  %806 = load ptr, ptr %13, align 8, !tbaa !5
  %807 = getelementptr inbounds %struct.nk_window, ptr %806, i32 0, i32 7
  %808 = load ptr, ptr %807, align 8, !tbaa !78
  %809 = getelementptr inbounds %struct.nk_panel, ptr %808, i32 0, i32 3
  store ptr %805, ptr %809, align 8, !tbaa !100
  %810 = load ptr, ptr %13, align 8, !tbaa !5
  %811 = getelementptr inbounds %struct.nk_window, ptr %810, i32 0, i32 5
  %812 = getelementptr inbounds %struct.nk_scroll, ptr %811, i32 0, i32 1
  %813 = load ptr, ptr %13, align 8, !tbaa !5
  %814 = getelementptr inbounds %struct.nk_window, ptr %813, i32 0, i32 7
  %815 = load ptr, ptr %814, align 8, !tbaa !78
  %816 = getelementptr inbounds %struct.nk_panel, ptr %815, i32 0, i32 4
  store ptr %812, ptr %816, align 8, !tbaa !105
  %817 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %817, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %818

818:                                              ; preds = %792, %223, %162, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %819 = load i32, ptr %7, align 4
  ret i32 %819

820:                                              ; preds = %703, %510
  unreachable
}

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 360}
!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 16}
!59 = !{!"nk_user_font", !7, i64 0, !17, i64 8, !6, i64 16, !6, i64 24, !7, i64 32}
!60 = !{!12, !6, i64 16600}
!61 = !{!38, !38, i64 0}
!62 = !{!63, !10, i64 72}
!63 = !{!"nk_window", !10, i64 0, !10, i64 4, !7, i64 8, !10, i64 72, !49, i64 76, !64, i64 92, !56, i64 104, !6, i64 168, !17, i64 176, !65, i64 180, !66, i64 288, !68, i64 384, !10, i64 428, !6, i64 432, !10, i64 440, !6, i64 448, !6, i64 456, !6, i64 464}
!64 = !{!"nk_scroll", !10, i64 0, !10, i64 4}
!65 = !{!"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}
!66 = !{!"nk_popup_state", !6, i64 0, !10, i64 8, !67, i64 16, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !49, i64 80}
!67 = !{!"nk_popup_buffer", !38, i64 0, !38, i64 8, !38, i64 16, !38, i64 24, !10, i64 32}
!68 = !{!"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, !64, i64 32, !7, i64 40, !7, i64 41}
!69 = !{i64 0, i64 4, !70, i64 4, i64 4, !70, i64 8, i64 4, !70, i64 12, i64 4, !70}
!70 = !{!17, !17, i64 0}
!71 = !{!63, !10, i64 4}
!72 = !{!7, !7, i64 0}
!73 = !{!63, !6, i64 288}
!74 = !{!12, !6, i64 16592}
!75 = !{!63, !10, i64 0}
!76 = !{!12, !10, i64 16620}
!77 = !{!12, !6, i64 16584}
!78 = !{!63, !6, i64 168}
!79 = !{!59, !17, i64 8}
!80 = !{!18, !17, i64 7304}
!81 = !{!18, !17, i64 7312}
!82 = !{!63, !17, i64 76}
!83 = !{!63, !17, i64 80}
!84 = !{!63, !17, i64 84}
!85 = !{!86, !10, i64 4}
!86 = !{!"nk_mouse_button", !10, i64 0, !10, i64 4, !16, i64 8}
!87 = !{!86, !10, i64 0}
!88 = !{!63, !6, i64 448}
!89 = !{!49, !17, i64 0}
!90 = !{!49, !17, i64 8}
!91 = !{!49, !17, i64 4}
!92 = !{!49, !17, i64 12}
!93 = !{!63, !10, i64 348}
!94 = !{!63, !17, i64 88}
!95 = distinct !{!95, !96}
!96 = !{!"llvm.loop.mustprogress"}
!97 = !{!12, !17, i64 324}
!98 = !{!12, !17, i64 328}
!99 = distinct !{!99, !96}
!100 = !{!101, !6, i64 24}
!101 = !{!"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, !102, i64 84, !103, i64 112, !104, i64 248, !6, i64 432, !6, i64 440}
!102 = !{!"nk_menu_state", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !64, i64 16}
!103 = !{!"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}
!104 = !{!"nk_chart", !10, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !7, i64 20}
!105 = !{!101, !6, i64 32}


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

@.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_begin_titled = external hidden unnamed_addr constant [95 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @nk_rect(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @nk_memcopy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @nk_begin_titled(ptr noundef %0, ptr noundef %1, ptr noundef %2, <2 x float> %3, <2 x float> %4, i32 noundef %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 16276, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_begin_titled) #5
  unreachable

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

9:                                                ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.69, ptr noundef nonnull @.str.2, i32 noundef 16277, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_begin_titled) #5
  unreachable

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

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.70, ptr noundef nonnull @.str.2, i32 noundef 16278, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_begin_titled) #5
  unreachable

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

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

18:                                               ; preds = %15, %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.2, i32 noundef 16279, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_begin_titled) #5
  unreachable

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

22:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.2, i32 noundef 16280, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_begin_titled) #5
  unreachable

23:                                               ; preds = %19
  %24 = tail call i32 @nk_strlen(ptr noundef nonnull %1)
  %25 = tail call i32 @nk_murmur_hash(ptr noundef nonnull %1, i32 noundef %24, i32 noundef 64)
  %26 = tail call ptr @nk_find_window(ptr noundef nonnull %0, i32 noundef %25, ptr noundef nonnull %1)
  %.not251 = icmp eq ptr %26, null
  br i1 %.not251, label %27, label %46

27:                                               ; preds = %23
  %28 = tail call ptr @nk_create_window(ptr noundef nonnull %0)
  %.not252 = icmp eq ptr %28, null
  br i1 %.not252, label %29, label %30

29:                                               ; preds = %27
  tail call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.2, i32 noundef 16293, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_begin_titled) #5
  unreachable

30:                                               ; preds = %27
  %31 = lshr i32 %5, 8
  %.lobit = and i32 %31, 1
  tail call void @nk_insert_window(ptr noundef nonnull %0, ptr noundef nonnull %28, i32 noundef %.lobit)
  %32 = getelementptr inbounds i8, ptr %28, i64 104
  %33 = getelementptr inbounds i8, ptr %0, i64 7904
  tail call void @nk_command_buffer_init(ptr noundef nonnull %32, ptr noundef nonnull %33, i32 noundef 1)
  %34 = getelementptr inbounds i8, ptr %28, i64 72
  store i32 %5, ptr %34, align 8, !tbaa !59
  %35 = getelementptr inbounds i8, ptr %28, i64 76
  store <2 x float> %3, ptr %35, align 4
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %28, i64 84
  store <2 x float> %4, ptr %.sroa.3.0..sroa_idx, align 4
  %36 = getelementptr inbounds i8, ptr %28, i64 4
  store i32 %25, ptr %36, align 4, !tbaa !66
  %37 = tail call i32 @llvm.umin.i32(i32 %24, i32 63)
  %38 = zext nneg i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %28, i64 8
  %40 = tail call ptr @nk_memcopy(ptr noundef nonnull %39, ptr noundef nonnull %1, i64 noundef %38)
  %41 = getelementptr inbounds [64 x i8], ptr %39, i64 0, i64 %38
  store i8 0, ptr %41, align 1, !tbaa !67
  %42 = getelementptr inbounds i8, ptr %28, i64 288
  store ptr null, ptr %42, align 8, !tbaa !68
  %43 = getelementptr inbounds i8, ptr %0, i64 16592
  %44 = load ptr, ptr %43, align 8, !tbaa !69
  %.not254 = icmp eq ptr %44, null
  br i1 %.not254, label %45, label %65

45:                                               ; preds = %30
  store ptr %28, ptr %43, align 8, !tbaa !69
  br label %65

46:                                               ; preds = %23
  %47 = getelementptr inbounds i8, ptr %26, i64 72
  %48 = load i32, ptr %47, align 8, !tbaa !59
  %49 = and i32 %48, -2048
  %50 = or i32 %49, %5
  store i32 %50, ptr %47, align 8, !tbaa !59
  %51 = and i32 %5, 6
  %.not255 = icmp eq i32 %51, 0
  br i1 %.not255, label %52, label %54

52:                                               ; preds = %46
  %53 = getelementptr inbounds i8, ptr %26, i64 76
  store <2 x float> %3, ptr %53, align 4
  %.sroa.3.0..sroa_idx222 = getelementptr inbounds i8, ptr %26, i64 84
  store <2 x float> %4, ptr %.sroa.3.0..sroa_idx222, align 4
  br label %54

54:                                               ; preds = %52, %46
  %55 = load i32, ptr %26, align 8, !tbaa !70
  %56 = getelementptr inbounds i8, ptr %0, i64 16620
  %57 = load i32, ptr %56, align 4, !tbaa !71
  %.not256 = icmp eq i32 %55, %57
  br i1 %.not256, label %58, label %59

58:                                               ; preds = %54
  tail call void @__assert_fail(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.2, i32 noundef 16323, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_begin_titled) #5
  unreachable

59:                                               ; preds = %54
  store i32 %57, ptr %26, align 8, !tbaa !70
  %60 = getelementptr inbounds i8, ptr %0, i64 16592
  %61 = load ptr, ptr %60, align 8, !tbaa !69
  %.not257 = icmp eq ptr %61, null
  %62 = and i32 %50, 8192
  %.not258 = icmp eq i32 %62, 0
  %or.cond333 = select i1 %.not257, i1 %.not258, i1 false
  br i1 %or.cond333, label %63, label %65

63:                                               ; preds = %59
  store ptr %26, ptr %60, align 8, !tbaa !69
  %64 = getelementptr inbounds i8, ptr %0, i64 16584
  store ptr %26, ptr %64, align 8, !tbaa !72
  br label %65

65:                                               ; preds = %45, %30, %59, %63
  %.0227 = phi ptr [ %26, %59 ], [ %26, %63 ], [ %28, %30 ], [ %28, %45 ]
  %66 = getelementptr inbounds i8, ptr %.0227, i64 72
  %67 = load i32, ptr %66, align 8, !tbaa !59
  %68 = and i32 %67, 8192
  %.not259 = icmp eq i32 %68, 0
  br i1 %.not259, label %71, label %69

69:                                               ; preds = %65
  store ptr %.0227, ptr %20, align 8, !tbaa !58
  %70 = getelementptr inbounds i8, ptr %.0227, i64 168
  store ptr null, ptr %70, align 8, !tbaa !73
  br label %277

71:                                               ; preds = %65
  tail call void @nk_start(ptr noundef nonnull %0, ptr noundef nonnull %.0227)
  %72 = load i32, ptr %66, align 8, !tbaa !59
  %73 = and i32 %72, 9216
  %or.cond = icmp eq i32 %73, 0
  br i1 %or.cond, label %74, label %268

74:                                               ; preds = %71
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 8
  %77 = load float, ptr %76, align 8, !tbaa !74
  %78 = getelementptr inbounds i8, ptr %0, i64 7664
  %79 = load float, ptr %78, align 4, !tbaa !75
  %80 = tail call float @llvm.fmuladd.f32(float %79, float 2.000000e+00, float %77)
  %81 = getelementptr inbounds i8, ptr %0, i64 7672
  %82 = load float, ptr %81, align 4, !tbaa !76
  %83 = tail call float @llvm.fmuladd.f32(float %82, float 2.000000e+00, float %80)
  %84 = and i32 %72, 32768
  %.not262 = icmp eq i32 %84, 0
  %85 = getelementptr inbounds i8, ptr %.0227, i64 76
  br i1 %.not262, label %86, label %87

86:                                               ; preds = %74
  %.sroa.018.0.copyload = load <2 x float>, ptr %85, align 4
  %.sroa.16.0..sroa_idx = getelementptr inbounds i8, ptr %.0227, i64 84
  %.sroa.16.0.copyload = load <2 x float>, ptr %.sroa.16.0..sroa_idx, align 4
  br label %96

87:                                               ; preds = %74
  %88 = load float, ptr %85, align 4, !tbaa !77
  %89 = getelementptr inbounds i8, ptr %.0227, i64 80
  %90 = load float, ptr %89, align 4, !tbaa !78
  %91 = getelementptr inbounds i8, ptr %.0227, i64 84
  %92 = load float, ptr %91, align 4, !tbaa !79
  %93 = tail call { <2 x float>, <2 x float> } @nk_rect(float noundef %88, float noundef %90, float noundef %92, float noundef %83)
  %94 = extractvalue { <2 x float>, <2 x float> } %93, 0
  %95 = extractvalue { <2 x float>, <2 x float> } %93, 1
  br label %96

96:                                               ; preds = %87, %86
  %.sroa.16.0 = phi <2 x float> [ %95, %87 ], [ %.sroa.16.0.copyload, %86 ]
  %.sroa.018.0 = phi <2 x float> [ %94, %87 ], [ %.sroa.018.0.copyload, %86 ]
  %97 = tail call i32 @nk_input_has_mouse_click_down_in_rect(ptr noundef nonnull %0, i32 noundef 0, <2 x float> %.sroa.018.0, <2 x float> %.sroa.16.0, i32 noundef 1)
  %.not263 = icmp eq i32 %97, 0
  br i1 %.not263, label %102, label %98

98:                                               ; preds = %96
  %99 = getelementptr inbounds i8, ptr %0, i64 264
  %100 = load i32, ptr %99, align 4, !tbaa !80
  %101 = icmp ne i32 %100, 0
  br label %102

102:                                              ; preds = %98, %96
  %103 = phi i1 [ false, %96 ], [ %101, %98 ]
  %104 = tail call i32 @nk_input_is_mouse_hovering_rect(ptr noundef nonnull %0, <2 x float> %.sroa.018.0, <2 x float> %.sroa.16.0)
  %105 = getelementptr inbounds i8, ptr %0, i64 16592
  %106 = load ptr, ptr %105, align 8, !tbaa !69
  %107 = icmp ne ptr %.0227, %106
  %108 = icmp ne i32 %104, 0
  %or.cond5 = select i1 %107, i1 %108, i1 false
  br i1 %or.cond5, label %109, label %.thread

109:                                              ; preds = %102
  %110 = getelementptr inbounds i8, ptr %0, i64 260
  %111 = load i32, ptr %110, align 4, !tbaa !82
  %.not264 = icmp eq i32 %111, 0
  br i1 %.not264, label %.preheader314, label %.thread

.preheader314:                                    ; preds = %109
  %.0225.in318 = getelementptr inbounds i8, ptr %.0227, i64 448
  %.0225319 = load ptr, ptr %.0225.in318, align 8, !tbaa !83
  %.not265320 = icmp eq ptr %.0225319, null
  br i1 %.not265320, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader314
  %.sroa.018.0.vec.extract = extractelement <2 x float> %.sroa.018.0, i64 0
  %.sroa.16.8.vec.extract = extractelement <2 x float> %.sroa.16.0, i64 0
  %112 = fadd <2 x float> %.sroa.16.0, %.sroa.018.0
  %113 = extractelement <2 x float> %112, i64 0
  %.sroa.018.4.vec.extract = extractelement <2 x float> %.sroa.018.0, i64 1
  %114 = fadd <2 x float> %.sroa.16.0, %.sroa.018.0
  %115 = extractelement <2 x float> %114, i64 1
  %116 = getelementptr inbounds i8, ptr %.0227, i64 76
  br label %117

117:                                              ; preds = %.lr.ph, %174
  %.0225321 = phi ptr [ %.0225319, %.lr.ph ], [ %.0225, %174 ]
  %118 = getelementptr inbounds i8, ptr %.0225321, i64 72
  %119 = load i32, ptr %118, align 8, !tbaa !59
  %120 = and i32 %119, 32768
  %.not266 = icmp eq i32 %120, 0
  %121 = getelementptr inbounds i8, ptr %.0225321, i64 76
  br i1 %.not266, label %122, label %123

122:                                              ; preds = %117
  %.sroa.012.0.copyload = load <2 x float>, ptr %121, align 4
  %.sroa.817.0..sroa_idx = getelementptr inbounds i8, ptr %.0225321, i64 84
  %.sroa.817.0.copyload = load <2 x float>, ptr %.sroa.817.0..sroa_idx, align 4
  br label %132

123:                                              ; preds = %117
  %124 = load float, ptr %121, align 4, !tbaa !77
  %125 = getelementptr inbounds i8, ptr %.0225321, i64 80
  %126 = load float, ptr %125, align 4, !tbaa !78
  %127 = getelementptr inbounds i8, ptr %.0225321, i64 84
  %128 = load float, ptr %127, align 4, !tbaa !79
  %129 = tail call { <2 x float>, <2 x float> } @nk_rect(float noundef %124, float noundef %126, float noundef %128, float noundef %83)
  %130 = extractvalue { <2 x float>, <2 x float> } %129, 0
  %131 = extractvalue { <2 x float>, <2 x float> } %129, 1
  br label %132

132:                                              ; preds = %123, %122
  %.sroa.817.0 = phi <2 x float> [ %131, %123 ], [ %.sroa.817.0.copyload, %122 ]
  %.sroa.012.0 = phi <2 x float> [ %130, %123 ], [ %.sroa.012.0.copyload, %122 ]
  %.sroa.012.0.vec.extract = extractelement <2 x float> %.sroa.012.0, i64 0
  %133 = fcmp ogt float %.sroa.012.0.vec.extract, %113
  %134 = fadd <2 x float> %.sroa.817.0, %.sroa.012.0
  %135 = extractelement <2 x float> %134, i64 0
  %136 = fcmp olt float %135, %.sroa.018.0.vec.extract
  %or.cond287 = select i1 %133, i1 true, i1 %136
  br i1 %or.cond287, label %145, label %137

137:                                              ; preds = %132
  %.sroa.012.4.vec.extract = extractelement <2 x float> %.sroa.012.0, i64 1
  %138 = fcmp ogt float %.sroa.012.4.vec.extract, %115
  %139 = fadd <2 x float> %.sroa.817.0, %.sroa.012.0
  %140 = extractelement <2 x float> %139, i64 1
  %141 = fcmp olt float %140, %.sroa.018.4.vec.extract
  %or.cond289 = select i1 %138, i1 true, i1 %141
  br i1 %or.cond289, label %145, label %142

142:                                              ; preds = %137
  %143 = load i32, ptr %118, align 8, !tbaa !59
  %144 = and i32 %143, 8192
  %.not267 = icmp eq i32 %144, 0
  br i1 %.not267, label %.thread, label %145

145:                                              ; preds = %142, %137, %132
  %146 = getelementptr inbounds i8, ptr %.0225321, i64 288
  %147 = load ptr, ptr %146, align 8, !tbaa !68
  %.not268 = icmp eq ptr %147, null
  br i1 %.not268, label %174, label %148

148:                                              ; preds = %145
  %149 = getelementptr inbounds i8, ptr %.0225321, i64 348
  %150 = load i32, ptr %149, align 4, !tbaa !84
  %.not269 = icmp eq i32 %150, 0
  br i1 %.not269, label %174, label %151

151:                                              ; preds = %148
  %152 = load i32, ptr %118, align 8, !tbaa !59
  %153 = and i32 %152, 8192
  %.not270 = icmp eq i32 %153, 0
  br i1 %.not270, label %154, label %174

154:                                              ; preds = %151
  %155 = getelementptr inbounds i8, ptr %147, i64 76
  %156 = load float, ptr %155, align 4, !tbaa !77
  %157 = load float, ptr %116, align 4, !tbaa !77
  %158 = fadd float %.sroa.16.8.vec.extract, %157
  %159 = fcmp ogt float %156, %158
  br i1 %159, label %174, label %160

160:                                              ; preds = %154
  %161 = getelementptr inbounds i8, ptr %147, i64 84
  %162 = load float, ptr %161, align 4, !tbaa !79
  %163 = fadd float %156, %162
  %164 = fcmp olt float %163, %157
  br i1 %164, label %174, label %165

165:                                              ; preds = %160
  %166 = getelementptr inbounds i8, ptr %147, i64 80
  %167 = load float, ptr %166, align 4, !tbaa !78
  %168 = fcmp ogt float %167, %115
  br i1 %168, label %174, label %169

169:                                              ; preds = %165
  %170 = getelementptr inbounds i8, ptr %147, i64 88
  %171 = load float, ptr %170, align 4, !tbaa !85
  %172 = fadd float %167, %171
  %173 = fcmp olt float %172, %.sroa.018.4.vec.extract
  br i1 %173, label %174, label %.thread

174:                                              ; preds = %145, %148, %151, %154, %160, %165, %169
  %.0225.in = getelementptr inbounds i8, ptr %.0225321, i64 448
  %.0225 = load ptr, ptr %.0225.in, align 8, !tbaa !83
  %.not265 = icmp eq ptr %.0225, null
  br i1 %.not265, label %.critedge, label %117

.thread:                                          ; preds = %169, %142, %109, %102
  %.2 = phi ptr [ %.0227, %109 ], [ %.0227, %102 ], [ %.0225321, %142 ], [ %.0225321, %169 ]
  br i1 %103, label %175, label %.thread304

175:                                              ; preds = %.thread
  %176 = getelementptr inbounds i8, ptr %0, i64 16584
  %177 = load ptr, ptr %176, align 8, !tbaa !72
  %.not271 = icmp eq ptr %.0227, %177
  br i1 %.not271, label %.thread304, label %.preheader

.preheader:                                       ; preds = %175
  %.3.in322 = getelementptr inbounds i8, ptr %.0227, i64 448
  %.3323 = load ptr, ptr %.3.in322, align 8, !tbaa !83
  %.not272324 = icmp eq ptr %.3323, null
  br i1 %.not272324, label %.critedge, label %.lr.ph326

.lr.ph326:                                        ; preds = %.preheader
  %178 = getelementptr inbounds i8, ptr %0, i64 324
  %179 = getelementptr inbounds i8, ptr %0, i64 328
  %.sroa.018.0.vec.extract24 = extractelement <2 x float> %.sroa.018.0, i64 0
  %180 = fadd <2 x float> %.sroa.16.0, %.sroa.018.0
  %181 = extractelement <2 x float> %180, i64 0
  %.sroa.018.4.vec.extract34 = extractelement <2 x float> %.sroa.018.0, i64 1
  %182 = fadd <2 x float> %.sroa.16.0, %.sroa.018.0
  %183 = extractelement <2 x float> %182, i64 1
  br label %184

184:                                              ; preds = %.lr.ph326, %241
  %.3325 = phi ptr [ %.3323, %.lr.ph326 ], [ %.3, %241 ]
  %185 = getelementptr inbounds i8, ptr %.3325, i64 72
  %186 = load i32, ptr %185, align 8, !tbaa !59
  %187 = and i32 %186, 32768
  %.not273 = icmp eq i32 %187, 0
  %188 = getelementptr inbounds i8, ptr %.3325, i64 76
  br i1 %.not273, label %189, label %190

189:                                              ; preds = %184
  %.sroa.0.0.copyload = load <2 x float>, ptr %188, align 4
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %.3325, i64 84
  %.sroa.8.0.copyload = load <2 x float>, ptr %.sroa.8.0..sroa_idx, align 4
  br label %199

190:                                              ; preds = %184
  %191 = load float, ptr %188, align 4, !tbaa !77
  %192 = getelementptr inbounds i8, ptr %.3325, i64 80
  %193 = load float, ptr %192, align 4, !tbaa !78
  %194 = getelementptr inbounds i8, ptr %.3325, i64 84
  %195 = load float, ptr %194, align 4, !tbaa !79
  %196 = tail call { <2 x float>, <2 x float> } @nk_rect(float noundef %191, float noundef %193, float noundef %195, float noundef %83)
  %197 = extractvalue { <2 x float>, <2 x float> } %196, 0
  %198 = extractvalue { <2 x float>, <2 x float> } %196, 1
  br label %199

199:                                              ; preds = %190, %189
  %.sroa.8.0 = phi <2 x float> [ %198, %190 ], [ %.sroa.8.0.copyload, %189 ]
  %.sroa.0.0 = phi <2 x float> [ %197, %190 ], [ %.sroa.0.0.copyload, %189 ]
  %.sroa.0.0.vec.extract = extractelement <2 x float> %.sroa.0.0, i64 0
  %200 = load float, ptr %178, align 4, !tbaa !86
  %201 = fcmp ole float %.sroa.0.0.vec.extract, %200
  %202 = fadd <2 x float> %.sroa.8.0, %.sroa.0.0
  %203 = extractelement <2 x float> %202, i64 0
  %204 = fcmp olt float %200, %203
  %or.cond291 = select i1 %201, i1 %204, i1 false
  br i1 %or.cond291, label %205, label %214

205:                                              ; preds = %199
  %.sroa.0.4.vec.extract = extractelement <2 x float> %.sroa.0.0, i64 1
  %206 = load float, ptr %179, align 4, !tbaa !87
  %207 = fcmp ole float %.sroa.0.4.vec.extract, %206
  %208 = fadd <2 x float> %.sroa.8.0, %.sroa.0.0
  %209 = extractelement <2 x float> %208, i64 1
  %210 = fcmp olt float %206, %209
  %or.cond293 = select i1 %207, i1 %210, i1 false
  br i1 %or.cond293, label %211, label %214

211:                                              ; preds = %205
  %212 = load i32, ptr %185, align 8, !tbaa !59
  %213 = and i32 %212, 8192
  %.not274 = icmp eq i32 %213, 0
  br i1 %.not274, label %.thread304, label %214

214:                                              ; preds = %211, %205, %199
  %215 = getelementptr inbounds i8, ptr %.3325, i64 288
  %216 = load ptr, ptr %215, align 8, !tbaa !68
  %.not275 = icmp eq ptr %216, null
  br i1 %.not275, label %241, label %217

217:                                              ; preds = %214
  %218 = getelementptr inbounds i8, ptr %.3325, i64 348
  %219 = load i32, ptr %218, align 4, !tbaa !84
  %.not276 = icmp eq i32 %219, 0
  br i1 %.not276, label %241, label %220

220:                                              ; preds = %217
  %221 = load i32, ptr %185, align 8, !tbaa !59
  %222 = and i32 %221, 8192
  %.not277 = icmp eq i32 %222, 0
  br i1 %.not277, label %223, label %241

223:                                              ; preds = %220
  %224 = getelementptr inbounds i8, ptr %216, i64 76
  %225 = load float, ptr %224, align 4, !tbaa !77
  %226 = fcmp ogt float %225, %181
  br i1 %226, label %241, label %227

227:                                              ; preds = %223
  %228 = getelementptr inbounds i8, ptr %216, i64 84
  %229 = load float, ptr %228, align 4, !tbaa !79
  %230 = fadd float %225, %229
  %231 = fcmp olt float %230, %.sroa.018.0.vec.extract24
  br i1 %231, label %241, label %232

232:                                              ; preds = %227
  %233 = getelementptr inbounds i8, ptr %216, i64 80
  %234 = load float, ptr %233, align 4, !tbaa !78
  %235 = fcmp ogt float %234, %183
  br i1 %235, label %241, label %236

236:                                              ; preds = %232
  %237 = getelementptr inbounds i8, ptr %216, i64 88
  %238 = load float, ptr %237, align 4, !tbaa !85
  %239 = fadd float %234, %238
  %240 = fcmp olt float %239, %.sroa.018.4.vec.extract34
  br i1 %240, label %241, label %.thread304

241:                                              ; preds = %214, %217, %220, %223, %227, %232, %236
  %.3.in = getelementptr inbounds i8, ptr %.3325, i64 448
  %.3 = load ptr, ptr %.3.in, align 8, !tbaa !83
  %.not272 = icmp eq ptr %.3, null
  br i1 %.not272, label %.critedge, label %184

.thread304:                                       ; preds = %236, %211, %175, %.thread
  %.5.ph = phi ptr [ %.2, %.thread ], [ %.2, %175 ], [ %.3325, %211 ], [ %.3325, %236 ]
  %242 = load i32, ptr %66, align 8, !tbaa !59
  %243 = and i32 %242, 4352
  %or.cond296.not = icmp eq i32 %243, 256
  br i1 %or.cond296.not, label %244, label %260

244:                                              ; preds = %.thread304
  %245 = or disjoint i32 %242, 4096
  store i32 %245, ptr %66, align 8, !tbaa !59
  %246 = getelementptr inbounds i8, ptr %.5.ph, i64 72
  %247 = load i32, ptr %246, align 8, !tbaa !59
  %248 = and i32 %247, -4097
  store i32 %248, ptr %246, align 8, !tbaa !59
  store ptr %.5.ph, ptr %105, align 8, !tbaa !69
  %249 = and i32 %247, 256
  %.not281 = icmp eq i32 %249, 0
  br i1 %.not281, label %250, label %268

250:                                              ; preds = %244
  tail call void @nk_remove_window(ptr noundef nonnull %0, ptr noundef nonnull %.5.ph)
  tail call void @nk_insert_window(ptr noundef nonnull %0, ptr noundef nonnull %.5.ph, i32 noundef 0)
  br label %268

.critedge:                                        ; preds = %174, %241, %.preheader314, %.preheader
  %251 = getelementptr inbounds i8, ptr %0, i64 16584
  %252 = load ptr, ptr %251, align 8, !tbaa !72
  %.not282 = icmp eq ptr %252, %.0227
  br i1 %.not282, label %260, label %253

253:                                              ; preds = %.critedge
  %254 = load i32, ptr %66, align 8, !tbaa !59
  %255 = and i32 %254, 256
  %.not283 = icmp eq i32 %255, 0
  br i1 %.not283, label %256, label %257

256:                                              ; preds = %253
  tail call void @nk_remove_window(ptr noundef nonnull %0, ptr noundef nonnull %.0227)
  tail call void @nk_insert_window(ptr noundef nonnull %0, ptr noundef nonnull %.0227, i32 noundef 0)
  %.pre = load i32, ptr %66, align 8, !tbaa !59
  br label %257

257:                                              ; preds = %256, %253
  %258 = phi i32 [ %.pre, %256 ], [ %254, %253 ]
  %259 = and i32 %258, -4097
  store i32 %259, ptr %66, align 8, !tbaa !59
  store ptr %.0227, ptr %105, align 8, !tbaa !69
  br label %260

260:                                              ; preds = %.thread304, %257, %.critedge
  %261 = getelementptr inbounds i8, ptr %0, i64 16584
  %262 = load ptr, ptr %261, align 8, !tbaa !72
  %.not284 = icmp eq ptr %262, %.0227
  br i1 %.not284, label %268, label %263

263:                                              ; preds = %260
  %264 = load i32, ptr %66, align 8, !tbaa !59
  %265 = and i32 %264, 256
  %.not285 = icmp eq i32 %265, 0
  br i1 %.not285, label %266, label %268

266:                                              ; preds = %263
  %267 = or i32 %264, 4096
  store i32 %267, ptr %66, align 8, !tbaa !59
  br label %268

268:                                              ; preds = %250, %244, %266, %263, %260, %71
  %269 = tail call ptr @nk_create_panel(ptr noundef nonnull %0)
  %270 = getelementptr inbounds i8, ptr %.0227, i64 168
  store ptr %269, ptr %270, align 8, !tbaa !73
  store ptr %.0227, ptr %20, align 8, !tbaa !58
  %271 = tail call i32 @nk_panel_begin(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef 1)
  %272 = getelementptr inbounds i8, ptr %.0227, i64 92
  %273 = load ptr, ptr %270, align 8, !tbaa !73
  %274 = getelementptr inbounds i8, ptr %273, i64 24
  store ptr %272, ptr %274, align 8, !tbaa !88
  %275 = getelementptr inbounds i8, ptr %.0227, i64 96
  %276 = getelementptr inbounds i8, ptr %273, i64 32
  store ptr %275, ptr %276, align 8, !tbaa !93
  br label %277

277:                                              ; preds = %268, %69
  %.1 = phi i32 [ 0, %69 ], [ %271, %268 ]
  ret i32 %.1
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @nk_insert_window(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @nk_command_buffer_init(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #4

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 360}
!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 16}
!57 = !{!"nk_user_font", !9, i64 0, !14, i64 8, !16, i64 16, !16, i64 24, !9, i64 32}
!58 = !{!6, !16, i64 16600}
!59 = !{!60, !11, i64 72}
!60 = !{!"nk_window", !11, i64 0, !11, i64 4, !9, i64 8, !11, i64 72, !47, i64 76, !61, i64 92, !54, i64 104, !16, i64 168, !14, i64 176, !62, i64 180, !63, i64 288, !65, i64 384, !11, i64 428, !16, i64 432, !11, i64 440, !16, i64 448, !16, i64 456, !16, i64 464}
!61 = !{!"nk_scroll", !11, i64 0, !11, i64 4}
!62 = !{!"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}
!63 = !{!"nk_popup_state", !16, i64 0, !11, i64 8, !64, i64 16, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !47, i64 80}
!64 = !{!"nk_popup_buffer", !36, i64 0, !36, i64 8, !36, i64 16, !36, i64 24, !11, i64 32}
!65 = !{!"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, !61, i64 32, !9, i64 40, !9, i64 41}
!66 = !{!60, !11, i64 4}
!67 = !{!9, !9, i64 0}
!68 = !{!60, !16, i64 288}
!69 = !{!6, !16, i64 16592}
!70 = !{!60, !11, i64 0}
!71 = !{!6, !11, i64 16620}
!72 = !{!6, !16, i64 16584}
!73 = !{!60, !16, i64 168}
!74 = !{!57, !14, i64 8}
!75 = !{!15, !14, i64 7304}
!76 = !{!15, !14, i64 7312}
!77 = !{!60, !14, i64 76}
!78 = !{!60, !14, i64 80}
!79 = !{!60, !14, i64 84}
!80 = !{!81, !11, i64 4}
!81 = !{!"nk_mouse_button", !11, i64 0, !11, i64 4, !13, i64 8}
!82 = !{!81, !11, i64 0}
!83 = !{!60, !16, i64 448}
!84 = !{!60, !11, i64 348}
!85 = !{!60, !14, i64 88}
!86 = !{!6, !14, i64 324}
!87 = !{!6, !14, i64 328}
!88 = !{!89, !16, i64 24}
!89 = !{!"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, !90, i64 84, !91, i64 112, !92, i64 248, !16, i64 432, !16, i64 440}
!90 = !{!"nk_menu_state", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !61, i64 16}
!91 = !{!"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}
!92 = !{!"nk_chart", !11, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !9, i64 20}
!93 = !{!89, !16, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass