; 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_color = type { i8, i8, i8, i8 }
%struct.nk_vec2 = type { float, float }
%struct.nk_rect = type { float, float, float, float }
%struct.nk_text = type { %struct.nk_vec2, %struct.nk_color, %struct.nk_color }
%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_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_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_image }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%union.nk_handle = type { ptr }
%struct.nk_style_toggle = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, float, float, %union.nk_handle, ptr, ptr }
%struct.nk_style_selectable = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_slider = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_progress = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_property = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, i32, float, float, %struct.nk_vec2, %struct.nk_style_edit, %struct.nk_style_button, %struct.nk_style_button, %union.nk_handle, ptr, ptr }
%struct.nk_style_edit = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_scrollbar, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, float, %struct.nk_vec2, %struct.nk_vec2, float }
%struct.nk_style_chart = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, %struct.nk_vec2 }
%struct.nk_style_scrollbar = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_tab = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, i32, i32, float, float, float, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_combo = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, i32, i32, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window = type { %struct.nk_style_window_header, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, float, float, float, float, float, float, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window_header = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_button, %struct.nk_style_button, i32, i32, i32, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_buffer = type { [2 x %struct.nk_buffer_marker], %struct.nk_allocator, i32, %struct.nk_memory, float, i64, i64, i64, i64 }
%struct.nk_buffer_marker = type { i32, i64 }
%struct.nk_allocator = type { %union.nk_handle, ptr, ptr }
%struct.nk_memory = type { ptr, i64 }
%struct.nk_clipboard = type { %union.nk_handle, ptr, ptr }
%struct.nk_configuration_stacks = type { %struct.nk_config_stack_style_item, %struct.nk_config_stack_float, %struct.nk_config_stack_vec2, %struct.nk_config_stack_flags, %struct.nk_config_stack_color, %struct.nk_config_stack_user_font, %struct.nk_config_stack_button_behavior }
%struct.nk_config_stack_style_item = type { i32, [16 x %struct.nk_config_stack_style_item_element] }
%struct.nk_config_stack_style_item_element = type { ptr, %struct.nk_style_item }
%struct.nk_config_stack_float = type { i32, [32 x %struct.nk_config_stack_float_element] }
%struct.nk_config_stack_float_element = type { ptr, float }
%struct.nk_config_stack_vec2 = type { i32, [16 x %struct.nk_config_stack_vec2_element] }
%struct.nk_config_stack_vec2_element = type { ptr, %struct.nk_vec2 }
%struct.nk_config_stack_flags = type { i32, [32 x %struct.nk_config_stack_flags_element] }
%struct.nk_config_stack_flags_element = type { ptr, i32 }
%struct.nk_config_stack_color = type { i32, [32 x %struct.nk_config_stack_color_element] }
%struct.nk_config_stack_color_element = type { ptr, %struct.nk_color }
%struct.nk_config_stack_user_font = type { i32, [8 x %struct.nk_config_stack_user_font_element] }
%struct.nk_config_stack_user_font_element = type { ptr, ptr }
%struct.nk_config_stack_button_behavior = type { i32, [8 x %struct.nk_config_stack_button_behavior_element] }
%struct.nk_config_stack_button_behavior_element = type { ptr, i32 }
%struct.nk_draw_list = type { %struct.nk_rect, [12 x %struct.nk_vec2], %struct.nk_convert_config, ptr, ptr, ptr, i32, i32, i32, i64, i32, i32, i32, i32 }
%struct.nk_convert_config = type { float, i32, i32, i32, i32, i32, %struct.nk_draw_null_texture, ptr, i64, i64 }
%struct.nk_draw_null_texture = type { %union.nk_handle, %struct.nk_vec2 }
%struct.nk_text_edit = type { %struct.nk_clipboard, %struct.nk_str, ptr, %struct.nk_vec2, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, float, %struct.nk_text_undo_state }
%struct.nk_str = type { %struct.nk_buffer, i32 }
%struct.nk_text_undo_state = type { [99 x %struct.nk_text_undo_record], [999 x i32], i16, i16, i16, i16 }
%struct.nk_text_undo_record = type { i32, i16, i16, i16 }
%struct.nk_command_buffer = type { ptr, %struct.nk_rect, i32, %union.nk_handle, i64, i64, i64 }
%struct.nk_pool = type { %struct.nk_allocator, i32, i32, ptr, ptr, i32, i64, i64 }
%struct.nk_window = type { i32, i32, [64 x i8], i32, %struct.nk_rect, %struct.nk_scroll, %struct.nk_command_buffer, ptr, float, %struct.nk_property_state, %struct.nk_popup_state, %struct.nk_edit_state, i32, ptr, i32, ptr, ptr, ptr }
%struct.nk_scroll = type { i32, i32 }
%struct.nk_property_state = type { i32, i32, [64 x i8], i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.nk_popup_state = type { ptr, i32, %struct.nk_popup_buffer, i32, i32, i32, i32, i32, i32, %struct.nk_rect }
%struct.nk_popup_buffer = type { i64, i64, i64, i64, i32 }
%struct.nk_edit_state = type { i32, i32, i32, i32, i32, i32, i32, i32, %struct.nk_scroll, i8, i8 }
%struct.nk_panel = type { i32, i32, %struct.nk_rect, ptr, ptr, float, float, float, float, float, float, i32, %struct.nk_rect, %struct.nk_menu_state, %struct.nk_row_layout, %struct.nk_chart, ptr, ptr }
%struct.nk_menu_state = type { float, float, float, float, %struct.nk_scroll }
%struct.nk_row_layout = type { i32, i32, float, float, i32, ptr, float, float, float, float, %struct.nk_rect, i32, [16 x float] }
%struct.nk_chart = type { i32, float, float, float, float, [4 x %struct.nk_chart_slot] }
%struct.nk_chart_slot = type { i32, %struct.nk_color, %struct.nk_color, float, float, float, i32, %struct.nk_vec2, i32 }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [21 x i8], align 1
@nk_white = external hidden constant %struct.nk_color, align 1
@__PRETTY_FUNCTION__.nk_combo_begin_text = external hidden unnamed_addr constant [80 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [9 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> @nk_vec2(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_rgba(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #5

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @nk_widget_text(ptr noundef, <2 x float>, <2 x float>, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

27:                                               ; preds = %4
  br label %29

28:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 24600, ptr noundef @__PRETTY_FUNCTION__.nk_combo_begin_text) #7
  unreachable

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

32:                                               ; preds = %29
  br label %34

33:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.135, ptr noundef @.str.2, i32 noundef 24601, ptr noundef @__PRETTY_FUNCTION__.nk_combo_begin_text) #7
  unreachable

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

39:                                               ; preds = %34
  br label %41

40:                                               ; preds = %34
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str.2, i32 noundef 24602, ptr noundef @__PRETTY_FUNCTION__.nk_combo_begin_text) #7
  unreachable

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

48:                                               ; preds = %41
  br label %50

49:                                               ; preds = %41
  call void @__assert_fail(ptr noundef @.str.80, ptr noundef @.str.2, i32 noundef 24603, ptr noundef @__PRETTY_FUNCTION__.nk_combo_begin_text) #7
  unreachable

50:                                               ; preds = %48
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %68

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

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

65:                                               ; preds = %58
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %69, label %68

68:                                               ; preds = %65, %58, %53, %50
  store i32 0, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %379

69:                                               ; preds = %65
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.nk_context, ptr %70, i32 0, i32 17
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  store ptr %72, ptr %11, align 8, !tbaa !5
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.nk_context, ptr %73, i32 0, i32 1
  store ptr %74, ptr %12, align 8, !tbaa !5
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = call i32 @nk_widget(ptr noundef %15, ptr noundef %75)
  store i32 %76, ptr %13, align 4, !tbaa !9
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %69
  store i32 0, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %379

80:                                               ; preds = %69
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.nk_window, ptr %81, i32 0, i32 7
  %83 = load ptr, ptr %82, align 8, !tbaa !58
  %84 = getelementptr inbounds %struct.nk_panel, ptr %83, i32 0, i32 1
  %85 = load i32, ptr %84, align 4, !tbaa !65
  %86 = and i32 %85, 4096
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %91, label %88

88:                                               ; preds = %80
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = icmp eq i32 %89, 2
  br i1 %90, label %91, label %92

91:                                               ; preds = %88, %80
  br label %95

92:                                               ; preds = %88
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.nk_context, ptr %93, i32 0, i32 0
  br label %95

95:                                               ; preds = %92, %91
  %96 = phi ptr [ null, %91 ], [ %94, %92 ]
  store ptr %96, ptr %10, align 8, !tbaa !5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.nk_context, ptr %97, i32 0, i32 4
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %101 = load <2 x float>, ptr %100, align 4
  %102 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %103 = load <2 x float>, ptr %102, align 4
  %104 = call i32 @nk_button_behavior(ptr noundef %98, <2 x float> %101, <2 x float> %103, ptr noundef %99, i32 noundef 0)
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %107

106:                                              ; preds = %95
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %106, %95
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.nk_context, ptr %108, i32 0, i32 4
  %110 = load i32, ptr %109, align 8, !tbaa !70
  %111 = and i32 %110, 32
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %121

113:                                              ; preds = %107
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.nk_style, ptr %114, i32 0, i32 20
  %116 = getelementptr inbounds %struct.nk_style_combo, ptr %115, i32 0, i32 2
  store ptr %116, ptr %16, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.nk_text, ptr %17, i32 0, i32 2
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.nk_style, ptr %118, i32 0, i32 20
  %120 = getelementptr inbounds %struct.nk_style_combo, ptr %119, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %117, ptr align 4 %120, i64 4, i1 false), !tbaa.struct !71
  br label %144

121:                                              ; preds = %107
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.nk_context, ptr %122, i32 0, i32 4
  %124 = load i32, ptr %123, align 8, !tbaa !70
  %125 = and i32 %124, 16
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %135

127:                                              ; preds = %121
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.nk_style, ptr %128, i32 0, i32 20
  %130 = getelementptr inbounds %struct.nk_style_combo, ptr %129, i32 0, i32 1
  store ptr %130, ptr %16, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.nk_text, ptr %17, i32 0, i32 2
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.nk_style, ptr %132, i32 0, i32 20
  %134 = getelementptr inbounds %struct.nk_style_combo, ptr %133, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %131, ptr align 8 %134, i64 4, i1 false), !tbaa.struct !71
  br label %143

135:                                              ; preds = %121
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.nk_style, ptr %136, i32 0, i32 20
  %138 = getelementptr inbounds %struct.nk_style_combo, ptr %137, i32 0, i32 0
  store ptr %138, ptr %16, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.nk_text, ptr %17, i32 0, i32 2
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.nk_style, ptr %140, i32 0, i32 20
  %142 = getelementptr inbounds %struct.nk_style_combo, ptr %141, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %139, ptr align 4 %142, i64 4, i1 false), !tbaa.struct !71
  br label %143

143:                                              ; preds = %135, %127
  br label %144

144:                                              ; preds = %143, %113
  %145 = load ptr, ptr %16, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.nk_style_item, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !73
  %148 = icmp eq i32 %147, 1
  br i1 %148, label %149, label %161

149:                                              ; preds = %144
  %150 = getelementptr inbounds %struct.nk_text, ptr %17, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %151 = call i32 @nk_rgba(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  store i32 %151, ptr %19, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %150, ptr align 1 %19, i64 4, i1 false), !tbaa.struct !71
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.nk_window, ptr %152, i32 0, i32 6
  %154 = load ptr, ptr %16, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.nk_style_item, ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %157 = load <2 x float>, ptr %156, align 4
  %158 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %159 = load <2 x float>, ptr %158, align 4
  %160 = load i32, ptr @nk_white, align 1
  call void @nk_draw_image(ptr noundef %153, <2 x float> %157, <2 x float> %159, ptr noundef %155, i32 %160)
  br label %196

161:                                              ; preds = %144
  %162 = getelementptr inbounds %struct.nk_text, ptr %17, i32 0, i32 1
  %163 = load ptr, ptr %16, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.nk_style_item, ptr %163, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %162, ptr align 8 %164, i64 4, i1 false), !tbaa.struct !71
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.nk_window, ptr %165, i32 0, i32 6
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.nk_style, ptr %167, i32 0, i32 20
  %169 = getelementptr inbounds %struct.nk_style_combo, ptr %168, i32 0, i32 15
  %170 = load float, ptr %169, align 8, !tbaa !74
  %171 = load ptr, ptr %16, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.nk_style_item, ptr %171, i32 0, i32 1
  %173 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %174 = load <2 x float>, ptr %173, align 4
  %175 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %176 = load <2 x float>, ptr %175, align 4
  %177 = load i32, ptr %172, align 8
  call void @nk_fill_rect(ptr noundef %166, <2 x float> %174, <2 x float> %176, float noundef %170, i32 %177)
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.nk_window, ptr %178, i32 0, i32 6
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.nk_style, ptr %180, i32 0, i32 20
  %182 = getelementptr inbounds %struct.nk_style_combo, ptr %181, i32 0, i32 15
  %183 = load float, ptr %182, align 8, !tbaa !74
  %184 = load ptr, ptr %12, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.nk_style, ptr %184, i32 0, i32 20
  %186 = getelementptr inbounds %struct.nk_style_combo, ptr %185, i32 0, i32 14
  %187 = load float, ptr %186, align 4, !tbaa !75
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.nk_style, ptr %188, i32 0, i32 20
  %190 = getelementptr inbounds %struct.nk_style_combo, ptr %189, i32 0, i32 3
  %191 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %192 = load <2 x float>, ptr %191, align 4
  %193 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %194 = load <2 x float>, ptr %193, align 4
  %195 = load i32, ptr %190, align 8
  call void @nk_stroke_rect(ptr noundef %179, <2 x float> %192, <2 x float> %194, float noundef %183, float noundef %187, i32 %195)
  br label %196

196:                                              ; preds = %161, %149
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.nk_context, ptr %197, i32 0, i32 4
  %199 = load i32, ptr %198, align 8, !tbaa !70
  %200 = and i32 %199, 16
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %207

202:                                              ; preds = %196
  %203 = load ptr, ptr %12, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.nk_style, ptr %203, i32 0, i32 20
  %205 = getelementptr inbounds %struct.nk_style_combo, ptr %204, i32 0, i32 12
  %206 = load i32, ptr %205, align 4, !tbaa !76
  store i32 %206, ptr %23, align 4, !tbaa !9
  br label %221

207:                                              ; preds = %196
  %208 = load i32, ptr %14, align 4, !tbaa !9
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %215

210:                                              ; preds = %207
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.nk_style, ptr %211, i32 0, i32 20
  %213 = getelementptr inbounds %struct.nk_style_combo, ptr %212, i32 0, i32 13
  %214 = load i32, ptr %213, align 8, !tbaa !77
  store i32 %214, ptr %23, align 4, !tbaa !9
  br label %220

215:                                              ; preds = %207
  %216 = load ptr, ptr %12, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.nk_style, ptr %216, i32 0, i32 20
  %218 = getelementptr inbounds %struct.nk_style_combo, ptr %217, i32 0, i32 11
  %219 = load i32, ptr %218, align 8, !tbaa !78
  store i32 %219, ptr %23, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %215, %210
  br label %221

221:                                              ; preds = %220, %202
  %222 = getelementptr inbounds %struct.nk_rect, ptr %15, i32 0, i32 3
  %223 = load float, ptr %222, align 4, !tbaa !79
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.nk_style, ptr %224, i32 0, i32 20
  %226 = getelementptr inbounds %struct.nk_style_combo, ptr %225, i32 0, i32 17
  %227 = getelementptr inbounds %struct.nk_vec2, ptr %226, i32 0, i32 1
  %228 = load float, ptr %227, align 4, !tbaa !80
  %229 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %228, float %223)
  %230 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 2
  store float %229, ptr %230, align 4, !tbaa !81
  %231 = getelementptr inbounds %struct.nk_rect, ptr %15, i32 0, i32 0
  %232 = load float, ptr %231, align 4, !tbaa !82
  %233 = getelementptr inbounds %struct.nk_rect, ptr %15, i32 0, i32 2
  %234 = load float, ptr %233, align 4, !tbaa !81
  %235 = fadd float %232, %234
  %236 = getelementptr inbounds %struct.nk_rect, ptr %15, i32 0, i32 3
  %237 = load float, ptr %236, align 4, !tbaa !79
  %238 = fsub float %235, %237
  %239 = load ptr, ptr %12, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.nk_style, ptr %239, i32 0, i32 20
  %241 = getelementptr inbounds %struct.nk_style_combo, ptr %240, i32 0, i32 17
  %242 = getelementptr inbounds %struct.nk_vec2, ptr %241, i32 0, i32 0
  %243 = load float, ptr %242, align 4, !tbaa !83
  %244 = fsub float %238, %243
  %245 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 0
  store float %244, ptr %245, align 4, !tbaa !82
  %246 = getelementptr inbounds %struct.nk_rect, ptr %15, i32 0, i32 1
  %247 = load float, ptr %246, align 4, !tbaa !84
  %248 = load ptr, ptr %12, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.nk_style, ptr %248, i32 0, i32 20
  %250 = getelementptr inbounds %struct.nk_style_combo, ptr %249, i32 0, i32 17
  %251 = getelementptr inbounds %struct.nk_vec2, ptr %250, i32 0, i32 1
  %252 = load float, ptr %251, align 4, !tbaa !80
  %253 = fadd float %247, %252
  %254 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 1
  store float %253, ptr %254, align 4, !tbaa !84
  %255 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 2
  %256 = load float, ptr %255, align 4, !tbaa !81
  %257 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 3
  store float %256, ptr %257, align 4, !tbaa !79
  %258 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 0
  %259 = load float, ptr %258, align 4, !tbaa !82
  %260 = load ptr, ptr %12, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.nk_style, ptr %260, i32 0, i32 20
  %262 = getelementptr inbounds %struct.nk_style_combo, ptr %261, i32 0, i32 10
  %263 = getelementptr inbounds %struct.nk_style_button, ptr %262, i32 0, i32 11
  %264 = getelementptr inbounds %struct.nk_vec2, ptr %263, i32 0, i32 0
  %265 = load float, ptr %264, align 8, !tbaa !85
  %266 = fadd float %259, %265
  %267 = getelementptr inbounds %struct.nk_rect, ptr %22, i32 0, i32 0
  store float %266, ptr %267, align 4, !tbaa !82
  %268 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 1
  %269 = load float, ptr %268, align 4, !tbaa !84
  %270 = load ptr, ptr %12, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.nk_style, ptr %270, i32 0, i32 20
  %272 = getelementptr inbounds %struct.nk_style_combo, ptr %271, i32 0, i32 10
  %273 = getelementptr inbounds %struct.nk_style_button, ptr %272, i32 0, i32 11
  %274 = getelementptr inbounds %struct.nk_vec2, ptr %273, i32 0, i32 1
  %275 = load float, ptr %274, align 4, !tbaa !86
  %276 = fadd float %269, %275
  %277 = getelementptr inbounds %struct.nk_rect, ptr %22, i32 0, i32 1
  store float %276, ptr %277, align 4, !tbaa !84
  %278 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 2
  %279 = load float, ptr %278, align 4, !tbaa !81
  %280 = load ptr, ptr %12, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.nk_style, ptr %280, i32 0, i32 20
  %282 = getelementptr inbounds %struct.nk_style_combo, ptr %281, i32 0, i32 10
  %283 = getelementptr inbounds %struct.nk_style_button, ptr %282, i32 0, i32 11
  %284 = getelementptr inbounds %struct.nk_vec2, ptr %283, i32 0, i32 0
  %285 = load float, ptr %284, align 8, !tbaa !85
  %286 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %285, float %279)
  %287 = getelementptr inbounds %struct.nk_rect, ptr %22, i32 0, i32 2
  store float %286, ptr %287, align 4, !tbaa !81
  %288 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 3
  %289 = load float, ptr %288, align 4, !tbaa !79
  %290 = load ptr, ptr %12, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.nk_style, ptr %290, i32 0, i32 20
  %292 = getelementptr inbounds %struct.nk_style_combo, ptr %291, i32 0, i32 10
  %293 = getelementptr inbounds %struct.nk_style_button, ptr %292, i32 0, i32 11
  %294 = getelementptr inbounds %struct.nk_vec2, ptr %293, i32 0, i32 1
  %295 = load float, ptr %294, align 4, !tbaa !86
  %296 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %295, float %289)
  %297 = getelementptr inbounds %struct.nk_rect, ptr %22, i32 0, i32 3
  store float %296, ptr %297, align 4, !tbaa !79
  %298 = getelementptr inbounds %struct.nk_text, ptr %17, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %299 = call <2 x float> @nk_vec2(float noundef 0.000000e+00, float noundef 0.000000e+00)
  store <2 x float> %299, ptr %24, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %298, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !87
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %300 = getelementptr inbounds %struct.nk_rect, ptr %15, i32 0, i32 0
  %301 = load float, ptr %300, align 4, !tbaa !82
  %302 = load ptr, ptr %12, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.nk_style, ptr %302, i32 0, i32 20
  %304 = getelementptr inbounds %struct.nk_style_combo, ptr %303, i32 0, i32 16
  %305 = getelementptr inbounds %struct.nk_vec2, ptr %304, i32 0, i32 0
  %306 = load float, ptr %305, align 4, !tbaa !89
  %307 = fadd float %301, %306
  %308 = getelementptr inbounds %struct.nk_rect, ptr %20, i32 0, i32 0
  store float %307, ptr %308, align 4, !tbaa !82
  %309 = getelementptr inbounds %struct.nk_rect, ptr %15, i32 0, i32 1
  %310 = load float, ptr %309, align 4, !tbaa !84
  %311 = load ptr, ptr %12, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.nk_style, ptr %311, i32 0, i32 20
  %313 = getelementptr inbounds %struct.nk_style_combo, ptr %312, i32 0, i32 16
  %314 = getelementptr inbounds %struct.nk_vec2, ptr %313, i32 0, i32 1
  %315 = load float, ptr %314, align 4, !tbaa !90
  %316 = fadd float %310, %315
  %317 = getelementptr inbounds %struct.nk_rect, ptr %20, i32 0, i32 1
  store float %316, ptr %317, align 4, !tbaa !84
  %318 = getelementptr inbounds %struct.nk_rect, ptr %21, i32 0, i32 0
  %319 = load float, ptr %318, align 4, !tbaa !82
  %320 = load ptr, ptr %12, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.nk_style, ptr %320, i32 0, i32 20
  %322 = getelementptr inbounds %struct.nk_style_combo, ptr %321, i32 0, i32 16
  %323 = getelementptr inbounds %struct.nk_vec2, ptr %322, i32 0, i32 0
  %324 = load float, ptr %323, align 4, !tbaa !89
  %325 = load ptr, ptr %12, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.nk_style, ptr %325, i32 0, i32 20
  %327 = getelementptr inbounds %struct.nk_style_combo, ptr %326, i32 0, i32 18
  %328 = getelementptr inbounds %struct.nk_vec2, ptr %327, i32 0, i32 0
  %329 = load float, ptr %328, align 4, !tbaa !91
  %330 = fadd float %324, %329
  %331 = fsub float %319, %330
  %332 = getelementptr inbounds %struct.nk_rect, ptr %20, i32 0, i32 0
  %333 = load float, ptr %332, align 4, !tbaa !82
  %334 = fsub float %331, %333
  %335 = getelementptr inbounds %struct.nk_rect, ptr %20, i32 0, i32 2
  store float %334, ptr %335, align 4, !tbaa !81
  %336 = getelementptr inbounds %struct.nk_rect, ptr %15, i32 0, i32 3
  %337 = load float, ptr %336, align 4, !tbaa !79
  %338 = load ptr, ptr %12, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.nk_style, ptr %338, i32 0, i32 20
  %340 = getelementptr inbounds %struct.nk_style_combo, ptr %339, i32 0, i32 16
  %341 = getelementptr inbounds %struct.nk_vec2, ptr %340, i32 0, i32 1
  %342 = load float, ptr %341, align 4, !tbaa !90
  %343 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %342, float %337)
  %344 = getelementptr inbounds %struct.nk_rect, ptr %20, i32 0, i32 3
  store float %343, ptr %344, align 4, !tbaa !79
  %345 = load ptr, ptr %11, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.nk_window, ptr %345, i32 0, i32 6
  %347 = load ptr, ptr %8, align 8, !tbaa !5
  %348 = load i32, ptr %9, align 4, !tbaa !9
  %349 = load ptr, ptr %7, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.nk_context, ptr %349, i32 0, i32 1
  %351 = getelementptr inbounds %struct.nk_style, ptr %350, i32 0, i32 0
  %352 = load ptr, ptr %351, align 8, !tbaa !92
  %353 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 0
  %354 = load <2 x float>, ptr %353, align 4
  %355 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 1
  %356 = load <2 x float>, ptr %355, align 4
  call void @nk_widget_text(ptr noundef %346, <2 x float> %354, <2 x float> %356, ptr noundef %347, i32 noundef %348, ptr noundef %17, i32 noundef 17, ptr noundef %352)
  %357 = load ptr, ptr %11, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.nk_window, ptr %357, i32 0, i32 6
  %359 = load ptr, ptr %7, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.nk_context, ptr %359, i32 0, i32 4
  %361 = load i32, ptr %360, align 8, !tbaa !70
  %362 = load ptr, ptr %7, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.nk_context, ptr %362, i32 0, i32 1
  %364 = getelementptr inbounds %struct.nk_style, ptr %363, i32 0, i32 20
  %365 = getelementptr inbounds %struct.nk_style_combo, ptr %364, i32 0, i32 10
  %366 = load i32, ptr %23, align 4, !tbaa !9
  %367 = load ptr, ptr %12, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.nk_style, ptr %367, i32 0, i32 0
  %369 = load ptr, ptr %368, align 8, !tbaa !93
  call void @nk_draw_button_symbol(ptr noundef %358, ptr noundef %21, ptr noundef %22, i32 noundef %361, ptr noundef %365, i32 noundef %366, ptr noundef %369)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  %370 = load ptr, ptr %7, align 8, !tbaa !5
  %371 = load ptr, ptr %11, align 8, !tbaa !5
  %372 = load i32, ptr %14, align 4, !tbaa !9
  %373 = load <2 x float>, ptr %6, align 4
  %374 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %375 = load <2 x float>, ptr %374, align 4
  %376 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %377 = load <2 x float>, ptr %376, align 4
  %378 = call i32 @nk_combo_begin(ptr noundef %370, ptr noundef %371, <2 x float> %373, i32 noundef %372, <2 x float> %375, <2 x float> %377)
  store i32 %378, ptr %5, align 4
  store i32 1, ptr %18, align 4
  br label %379

379:                                              ; preds = %221, %79, %68
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %380 = load i32, ptr %5, align 4
  ret i32 %380
}

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

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

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

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"="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 #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"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_rect = type { float, float, float, float }
%struct.nk_text = type { %struct.nk_vec2, %struct.nk_color, %struct.nk_color }
%struct.nk_vec2 = type { float, float }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [21 x i8], align 1
@nk_white = external hidden local_unnamed_addr constant %struct.nk_color, align 1
@__PRETTY_FUNCTION__.nk_combo_begin_text = external hidden unnamed_addr constant [80 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local <2 x float> @nk_vec2(float noundef, float noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @nk_rgba(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @nk_widget_text(ptr noundef, <2 x float>, <2 x float>, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @nk_combo_begin_text(ptr noundef %0, ptr noundef %1, i32 noundef %2, <2 x float> %3) local_unnamed_addr #1 {
  %5 = alloca %struct.nk_rect, align 8
  %6 = alloca %struct.nk_text, align 8
  %7 = alloca %struct.nk_rect, align 4
  %8 = alloca %struct.nk_rect, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %9, label %10

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

10:                                               ; preds = %4
  %.not81 = icmp eq ptr %1, null
  br i1 %.not81, label %11, label %12

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.135, ptr noundef nonnull @.str.2, i32 noundef 24601, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_begin_text) #7
  unreachable

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

15:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.2, i32 noundef 24602, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_begin_text) #7
  unreachable

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

19:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.2, i32 noundef 24603, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_begin_text) #7
  unreachable

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %0, i64 360
  %22 = call i32 @nk_widget(ptr noundef nonnull %5, ptr noundef nonnull %0)
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %135, label %24

24:                                               ; preds = %20
  %25 = load ptr, ptr %17, align 8, !tbaa !56
  %26 = getelementptr inbounds i8, ptr %25, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !63
  %28 = and i32 %27, 4096
  %29 = icmp ne i32 %28, 0
  %30 = icmp eq i32 %22, 2
  %or.cond3 = or i1 %30, %29
  %31 = select i1 %or.cond3, ptr null, ptr %0
  %32 = getelementptr inbounds i8, ptr %0, i64 8048
  %33 = load <2 x float>, ptr %5, align 8
  %34 = getelementptr inbounds i8, ptr %5, i64 8
  %35 = load <2 x float>, ptr %34, align 8
  %36 = call i32 @nk_button_behavior(ptr noundef nonnull %32, <2 x float> %33, <2 x float> %35, ptr noundef %31, i32 noundef 0)
  %.not84 = icmp ne i32 %36, 0
  %spec.select = zext i1 %.not84 to i32
  %37 = load i32, ptr %32, align 8, !tbaa !68
  %38 = and i32 %37, 32
  %.not85 = icmp eq i32 %38, 0
  br i1 %.not85, label %44, label %39

39:                                               ; preds = %24
  %40 = getelementptr inbounds i8, ptr %0, i64 6896
  %41 = getelementptr inbounds i8, ptr %6, i64 12
  %42 = getelementptr inbounds i8, ptr %0, i64 6940
  %43 = load i32, ptr %42, align 4
  store i32 %43, ptr %41, align 4
  br label %55

44:                                               ; preds = %24
  %45 = and i32 %37, 16
  %.not86 = icmp eq i32 %45, 0
  %46 = getelementptr inbounds i8, ptr %6, i64 12
  br i1 %.not86, label %51, label %47

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %0, i64 6864
  %49 = getelementptr inbounds i8, ptr %0, i64 6936
  %50 = load i32, ptr %49, align 8
  store i32 %50, ptr %46, align 4
  br label %55

51:                                               ; preds = %44
  %52 = getelementptr inbounds i8, ptr %0, i64 6832
  %53 = getelementptr inbounds i8, ptr %0, i64 6932
  %54 = load i32, ptr %53, align 4
  store i32 %54, ptr %46, align 4
  br label %55

55:                                               ; preds = %47, %51, %39
  %.076 = phi ptr [ %40, %39 ], [ %48, %47 ], [ %52, %51 ]
  %56 = load i32, ptr %.076, align 8, !tbaa !69
  %57 = icmp eq i32 %56, 1
  %58 = getelementptr inbounds i8, ptr %6, i64 8
  br i1 %57, label %59, label %66

59:                                               ; preds = %55
  %60 = call i32 @nk_rgba(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  store i32 %60, ptr %58, align 8
  %61 = getelementptr inbounds i8, ptr %14, i64 104
  %62 = getelementptr inbounds i8, ptr %.076, i64 8
  %63 = load <2 x float>, ptr %5, align 8
  %64 = load <2 x float>, ptr %34, align 8
  %65 = load i32, ptr @nk_white, align 1
  call void @nk_draw_image(ptr noundef nonnull %61, <2 x float> %63, <2 x float> %64, ptr noundef nonnull %62, i32 %65)
  br label %81

66:                                               ; preds = %55
  %67 = getelementptr inbounds i8, ptr %.076, i64 8
  %68 = load i32, ptr %67, align 8
  store i32 %68, ptr %58, align 8
  %69 = getelementptr inbounds i8, ptr %14, i64 104
  %70 = getelementptr inbounds i8, ptr %0, i64 7152
  %71 = load float, ptr %70, align 8, !tbaa !70
  %72 = load <2 x float>, ptr %5, align 8
  %73 = load <2 x float>, ptr %34, align 8
  call void @nk_fill_rect(ptr noundef nonnull %69, <2 x float> %72, <2 x float> %73, float noundef %71, i32 %68)
  %74 = load float, ptr %70, align 8, !tbaa !70
  %75 = getelementptr inbounds i8, ptr %0, i64 7148
  %76 = load float, ptr %75, align 4, !tbaa !71
  %77 = getelementptr inbounds i8, ptr %0, i64 6928
  %78 = load <2 x float>, ptr %5, align 8
  %79 = load <2 x float>, ptr %34, align 8
  %80 = load i32, ptr %77, align 8
  call void @nk_stroke_rect(ptr noundef nonnull %69, <2 x float> %78, <2 x float> %79, float noundef %74, float noundef %76, i32 %80)
  br label %81

81:                                               ; preds = %66, %59
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %82 = load i32, ptr %32, align 8, !tbaa !68
  %83 = and i32 %82, 16
  %.not87 = icmp eq i32 %83, 0
  %. = select i1 %.not84, i64 7144, i64 7136
  %.sink = select i1 %.not87, i64 %., i64 7140
  %84 = getelementptr inbounds i8, ptr %0, i64 %.sink
  %.074 = load i32, ptr %84, align 4, !tbaa !72
  %85 = getelementptr inbounds i8, ptr %5, i64 12
  %86 = load float, ptr %85, align 4, !tbaa !73
  %87 = getelementptr inbounds i8, ptr %0, i64 7164
  %88 = getelementptr inbounds i8, ptr %0, i64 7168
  %89 = load float, ptr %88, align 4, !tbaa !74
  %90 = call float @llvm.fmuladd.f32(float %89, float -2.000000e+00, float %86)
  %91 = getelementptr inbounds i8, ptr %7, i64 8
  store float %90, ptr %91, align 4, !tbaa !75
  %92 = load float, ptr %5, align 8, !tbaa !76
  %93 = load float, ptr %34, align 8, !tbaa !75
  %94 = fadd float %92, %93
  %95 = fsub float %94, %86
  %96 = load float, ptr %87, align 4, !tbaa !77
  %97 = fsub float %95, %96
  store float %97, ptr %7, align 4, !tbaa !76
  %98 = getelementptr inbounds i8, ptr %5, i64 4
  %99 = load float, ptr %98, align 4, !tbaa !78
  %100 = fadd float %89, %99
  %101 = getelementptr inbounds i8, ptr %7, i64 4
  store float %100, ptr %101, align 4, !tbaa !78
  %102 = getelementptr inbounds i8, ptr %7, i64 12
  store float %90, ptr %102, align 4, !tbaa !73
  %103 = getelementptr inbounds i8, ptr %0, i64 6960
  %104 = getelementptr inbounds i8, ptr %0, i64 7088
  %105 = load <2 x float>, ptr %104, align 8, !tbaa !79
  %106 = insertelement <2 x float> poison, float %97, i64 0
  %107 = insertelement <2 x float> %106, float %100, i64 1
  %108 = fadd <2 x float> %107, %105
  store <2 x float> %108, ptr %8, align 8, !tbaa !79
  %109 = getelementptr inbounds i8, ptr %8, i64 8
  %110 = insertelement <2 x float> poison, float %90, i64 0
  %111 = shufflevector <2 x float> %110, <2 x float> poison, <2 x i32> zeroinitializer
  %112 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %105, <2 x float> <float -2.000000e+00, float -2.000000e+00>, <2 x float> %111)
  store <2 x float> %112, ptr %109, align 8, !tbaa !79
  %113 = call <2 x float> @nk_vec2(float noundef 0.000000e+00, float noundef 0.000000e+00)
  store <2 x float> %113, ptr %6, align 8
  %114 = getelementptr inbounds i8, ptr %0, i64 7156
  %115 = load <2 x float>, ptr %5, align 8, !tbaa !79
  %116 = load <2 x float>, ptr %114, align 4, !tbaa !79
  %117 = fadd <2 x float> %115, %116
  %118 = getelementptr inbounds i8, ptr %0, i64 7172
  %119 = load float, ptr %118, align 4, !tbaa !80
  %120 = extractelement <2 x float> %116, i64 0
  %121 = fadd float %120, %119
  %122 = fsub float %97, %121
  %123 = extractelement <2 x float> %117, i64 0
  %124 = fsub float %122, %123
  %.sroa.6.8.vec.insert = insertelement <2 x float> poison, float %124, i64 0
  %125 = load float, ptr %85, align 4, !tbaa !73
  %126 = extractelement <2 x float> %116, i64 1
  %127 = call float @llvm.fmuladd.f32(float %126, float -2.000000e+00, float %125)
  %.sroa.6.12.vec.insert = insertelement <2 x float> %.sroa.6.8.vec.insert, float %127, i64 1
  %128 = getelementptr inbounds i8, ptr %14, i64 104
  %129 = load ptr, ptr %21, align 8, !tbaa !81
  call void @nk_widget_text(ptr noundef nonnull %128, <2 x float> %117, <2 x float> %.sroa.6.12.vec.insert, ptr noundef nonnull %1, i32 noundef %2, ptr noundef nonnull %6, i32 noundef 17, ptr noundef %129)
  %130 = load i32, ptr %32, align 8, !tbaa !68
  %131 = load ptr, ptr %21, align 8, !tbaa !82
  call void @nk_draw_button_symbol(ptr noundef nonnull %128, ptr noundef nonnull %7, ptr noundef nonnull %8, i32 noundef %130, ptr noundef nonnull %103, i32 noundef %.074, ptr noundef %131)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  %132 = load <2 x float>, ptr %5, align 8
  %133 = load <2 x float>, ptr %34, align 8
  %134 = call i32 @nk_combo_begin(ptr noundef nonnull %0, ptr noundef nonnull %14, <2 x float> %3, i32 noundef %spec.select, <2 x float> %132, <2 x float> %133)
  br label %135

135:                                              ; preds = %20, %81
  %.0 = phi i32 [ %134, %81 ], [ 0, %20 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @nk_button_behavior(ptr noundef, <2 x float>, <2 x float>, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @nk_combo_begin(ptr noundef, ptr noundef, <2 x float>, i32 noundef, <2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #5

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass