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

@.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_contextual_begin.null_rect = external hidden constant %struct.nk_rect, align 4
@__PRETTY_FUNCTION__.nk_contextual_begin = external hidden unnamed_addr constant [87 x i8], align 1

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

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

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

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

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

22:                                               ; preds = %5
  br label %24

23:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 17078, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_begin) #4
  unreachable

24:                                               ; preds = %22
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.nk_context, ptr %25, i32 0, i32 17
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %24
  br label %31

30:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str.2, i32 noundef 17079, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_begin) #4
  unreachable

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

38:                                               ; preds = %31
  br label %40

39:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.80, ptr noundef @.str.2, i32 noundef 17080, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_begin) #4
  unreachable

40:                                               ; preds = %38
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %55

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

48:                                               ; preds = %43
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.nk_context, ptr %49, i32 0, i32 17
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.nk_window, ptr %51, i32 0, i32 7
  %53 = load ptr, ptr %52, align 8, !tbaa !58
  %54 = icmp ne ptr %53, null
  br i1 %54, label %56, label %55

55:                                               ; preds = %48, %43, %40
  store i32 0, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %212

56:                                               ; preds = %48
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.nk_context, ptr %57, i32 0, i32 17
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  store ptr %59, ptr %11, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.nk_window, ptr %60, i32 0, i32 10
  %62 = getelementptr inbounds %struct.nk_popup_state, ptr %61, i32 0, i32 6
  %63 = load i32, ptr %62, align 4, !tbaa !65
  %64 = add i32 %63, 1
  store i32 %64, ptr %62, align 4, !tbaa !65
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.nk_context, ptr %65, i32 0, i32 17
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.nk_context, ptr %68, i32 0, i32 16
  %70 = load ptr, ptr %69, align 8, !tbaa !66
  %71 = icmp ne ptr %67, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %56
  store i32 0, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %212

73:                                               ; preds = %56
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.nk_window, ptr %74, i32 0, i32 10
  %76 = getelementptr inbounds %struct.nk_popup_state, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !67
  store ptr %77, ptr %12, align 8, !tbaa !5
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %86

80:                                               ; preds = %73
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.nk_window, ptr %81, i32 0, i32 10
  %83 = getelementptr inbounds %struct.nk_popup_state, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 8, !tbaa !68
  %85 = icmp eq i32 %84, 16
  br label %86

86:                                               ; preds = %80, %73
  %87 = phi i1 [ false, %73 ], [ %85, %80 ]
  %88 = zext i1 %87 to i32
  store i32 %88, ptr %15, align 4, !tbaa !9
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.nk_context, ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  %92 = load <2 x float>, ptr %91, align 4
  %93 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  %94 = load <2 x float>, ptr %93, align 4
  %95 = call i32 @nk_input_mouse_clicked(ptr noundef %90, i32 noundef 2, <2 x float> %92, <2 x float> %94)
  store i32 %95, ptr %14, align 4, !tbaa !9
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.nk_window, ptr %96, i32 0, i32 10
  %98 = getelementptr inbounds %struct.nk_popup_state, ptr %97, i32 0, i32 8
  %99 = load i32, ptr %98, align 4, !tbaa !69
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %112

101:                                              ; preds = %86
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.nk_window, ptr %102, i32 0, i32 10
  %104 = getelementptr inbounds %struct.nk_popup_state, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %104, align 4, !tbaa !65
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.nk_window, ptr %106, i32 0, i32 10
  %108 = getelementptr inbounds %struct.nk_popup_state, ptr %107, i32 0, i32 8
  %109 = load i32, ptr %108, align 4, !tbaa !69
  %110 = icmp ne i32 %105, %109
  br i1 %110, label %111, label %112

111:                                              ; preds = %101
  store i32 0, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %212

112:                                              ; preds = %101, %86
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %125, label %115

115:                                              ; preds = %112
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.nk_window, ptr %116, i32 0, i32 10
  %118 = getelementptr inbounds %struct.nk_popup_state, ptr %117, i32 0, i32 8
  %119 = load i32, ptr %118, align 4, !tbaa !69
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %125

121:                                              ; preds = %115
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.nk_window, ptr %122, i32 0, i32 10
  %124 = getelementptr inbounds %struct.nk_popup_state, ptr %123, i32 0, i32 8
  store i32 0, ptr %124, align 4, !tbaa !69
  br label %125

125:                                              ; preds = %121, %115, %112
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %132, label %128

128:                                              ; preds = %125
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %132, label %131

131:                                              ; preds = %128
  store i32 0, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %212

132:                                              ; preds = %128, %125
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.nk_window, ptr %133, i32 0, i32 10
  %135 = getelementptr inbounds %struct.nk_popup_state, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %135, align 4, !tbaa !65
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.nk_window, ptr %137, i32 0, i32 10
  %139 = getelementptr inbounds %struct.nk_popup_state, ptr %138, i32 0, i32 8
  store i32 %136, ptr %139, align 4, !tbaa !69
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %157

142:                                              ; preds = %132
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.nk_context, ptr %143, i32 0, i32 0
  %145 = getelementptr inbounds %struct.nk_input, ptr %144, i32 0, i32 1
  %146 = getelementptr inbounds %struct.nk_mouse, ptr %145, i32 0, i32 1
  %147 = getelementptr inbounds %struct.nk_vec2, ptr %146, i32 0, i32 0
  %148 = load float, ptr %147, align 4, !tbaa !70
  %149 = getelementptr inbounds %struct.nk_rect, ptr %13, i32 0, i32 0
  store float %148, ptr %149, align 4, !tbaa !71
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.nk_context, ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds %struct.nk_input, ptr %151, i32 0, i32 1
  %153 = getelementptr inbounds %struct.nk_mouse, ptr %152, i32 0, i32 1
  %154 = getelementptr inbounds %struct.nk_vec2, ptr %153, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !72
  %156 = getelementptr inbounds %struct.nk_rect, ptr %13, i32 0, i32 1
  store float %155, ptr %156, align 4, !tbaa !73
  br label %168

157:                                              ; preds = %132
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.nk_window, ptr %158, i32 0, i32 4
  %160 = getelementptr inbounds %struct.nk_rect, ptr %159, i32 0, i32 0
  %161 = load float, ptr %160, align 4, !tbaa !74
  %162 = getelementptr inbounds %struct.nk_rect, ptr %13, i32 0, i32 0
  store float %161, ptr %162, align 4, !tbaa !71
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.nk_window, ptr %163, i32 0, i32 4
  %165 = getelementptr inbounds %struct.nk_rect, ptr %164, i32 0, i32 1
  %166 = load float, ptr %165, align 4, !tbaa !75
  %167 = getelementptr inbounds %struct.nk_rect, ptr %13, i32 0, i32 1
  store float %166, ptr %167, align 4, !tbaa !73
  br label %168

168:                                              ; preds = %157, %142
  %169 = getelementptr inbounds %struct.nk_vec2, ptr %7, i32 0, i32 0
  %170 = load float, ptr %169, align 4, !tbaa !76
  %171 = getelementptr inbounds %struct.nk_rect, ptr %13, i32 0, i32 2
  store float %170, ptr %171, align 4, !tbaa !77
  %172 = getelementptr inbounds %struct.nk_vec2, ptr %7, i32 0, i32 1
  %173 = load float, ptr %172, align 4, !tbaa !78
  %174 = getelementptr inbounds %struct.nk_rect, ptr %13, i32 0, i32 3
  store float %173, ptr %174, align 4, !tbaa !79
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = or i32 %176, 32
  %178 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %13, i32 0, i32 0
  %179 = load <2 x float>, ptr %178, align 4
  %180 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %13, i32 0, i32 1
  %181 = load <2 x float>, ptr %180, align 4
  %182 = load <2 x float>, ptr @nk_contextual_begin.null_rect, align 4
  %183 = load <2 x float>, ptr getelementptr inbounds ({ <2 x float>, <2 x float> }, ptr @nk_contextual_begin.null_rect, i32 0, i32 1), align 4
  %184 = call i32 @nk_nonblock_begin(ptr noundef %175, i32 noundef %177, <2 x float> %179, <2 x float> %181, <2 x float> %182, <2 x float> %183, i32 noundef 16)
  store i32 %184, ptr %16, align 4, !tbaa !9
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %187, label %191

187:                                              ; preds = %168
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.nk_window, ptr %188, i32 0, i32 10
  %190 = getelementptr inbounds %struct.nk_popup_state, ptr %189, i32 0, i32 1
  store i32 16, ptr %190, align 8, !tbaa !68
  br label %210

191:                                              ; preds = %168
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.nk_window, ptr %192, i32 0, i32 10
  %194 = getelementptr inbounds %struct.nk_popup_state, ptr %193, i32 0, i32 8
  store i32 0, ptr %194, align 4, !tbaa !69
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.nk_window, ptr %195, i32 0, i32 10
  %197 = getelementptr inbounds %struct.nk_popup_state, ptr %196, i32 0, i32 1
  store i32 0, ptr %197, align 8, !tbaa !68
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.nk_window, ptr %198, i32 0, i32 10
  %200 = getelementptr inbounds %struct.nk_popup_state, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !67
  %202 = icmp ne ptr %201, null
  br i1 %202, label %203, label %209

203:                                              ; preds = %191
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.nk_window, ptr %204, i32 0, i32 10
  %206 = getelementptr inbounds %struct.nk_popup_state, ptr %205, i32 0, i32 0
  %207 = load ptr, ptr %206, align 8, !tbaa !67
  %208 = getelementptr inbounds %struct.nk_window, ptr %207, i32 0, i32 3
  store i32 0, ptr %208, align 8, !tbaa !80
  br label %209

209:                                              ; preds = %203, %191
  br label %210

210:                                              ; preds = %209, %187
  %211 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %211, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %212

212:                                              ; preds = %210, %131, %111, %72, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %213 = load i32, ptr %6, align 4
  ret i32 %213
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="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 = { nounwind }
attributes #4 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !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 = !{!59, !10, i64 356}
!66 = !{!12, !6, i64 16592}
!67 = !{!59, !6, i64 288}
!68 = !{!59, !10, i64 296}
!69 = !{!59, !10, i64 364}
!70 = !{!12, !17, i64 324}
!71 = !{!49, !17, i64 0}
!72 = !{!12, !17, i64 328}
!73 = !{!49, !17, i64 4}
!74 = !{!59, !17, i64 76}
!75 = !{!59, !17, i64 80}
!76 = !{!16, !17, i64 0}
!77 = !{!49, !17, i64 8}
!78 = !{!16, !17, i64 4}
!79 = !{!49, !17, i64 12}
!80 = !{!59, !10, i64 72}


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

%struct.nk_rect = type { float, float, float, float }

@.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_contextual_begin.null_rect = external hidden local_unnamed_addr constant %struct.nk_rect, align 4
@__PRETTY_FUNCTION__.nk_contextual_begin = external hidden unnamed_addr constant [87 x i8], align 1

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

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

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

6:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.2, i32 noundef 17078, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_begin) #2
  unreachable

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

10:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.2, i32 noundef 17079, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_begin) #2
  unreachable

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %9, i64 168
  %13 = load ptr, ptr %12, align 8, !tbaa !56
  %.not52 = icmp eq ptr %13, null
  br i1 %.not52, label %14, label %15

14:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.2, i32 noundef 17080, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_begin) #2
  unreachable

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %9, i64 288
  %17 = getelementptr inbounds i8, ptr %9, i64 356
  %18 = load i32, ptr %17, align 4, !tbaa !63
  %19 = add i32 %18, 1
  store i32 %19, ptr %17, align 4, !tbaa !63
  %20 = getelementptr inbounds i8, ptr %0, i64 16592
  %21 = load ptr, ptr %20, align 8, !tbaa !64
  %.not53 = icmp eq ptr %9, %21
  br i1 %.not53, label %22, label %69

22:                                               ; preds = %15
  %23 = load ptr, ptr %16, align 8, !tbaa !65
  %.not54 = icmp eq ptr %23, null
  br i1 %.not54, label %.thread63, label %24

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %9, i64 296
  %26 = load i32, ptr %25, align 8, !tbaa !66
  %27 = icmp eq i32 %26, 16
  %28 = tail call i32 @nk_input_mouse_clicked(ptr noundef nonnull %0, i32 noundef 2, <2 x float> %3, <2 x float> %4)
  %29 = getelementptr inbounds i8, ptr %9, i64 364
  %30 = load i32, ptr %29, align 4, !tbaa !67
  %.not55 = icmp eq i32 %30, 0
  br i1 %.not55, label %.thread65, label %34

.thread63:                                        ; preds = %22
  %31 = tail call i32 @nk_input_mouse_clicked(ptr noundef nonnull %0, i32 noundef 2, <2 x float> %3, <2 x float> %4)
  %32 = getelementptr inbounds i8, ptr %9, i64 364
  %33 = load i32, ptr %32, align 4, !tbaa !67
  %.not5564 = icmp eq i32 %33, 0
  br i1 %.not5564, label %.thread65, label %.thread66

34:                                               ; preds = %24
  %35 = load i32, ptr %17, align 4, !tbaa !63
  %.not56 = icmp eq i32 %35, %30
  br i1 %.not56, label %.thread, label %69

.thread66:                                        ; preds = %.thread63
  %36 = load i32, ptr %17, align 4, !tbaa !63
  %.not5667 = icmp eq i32 %36, %33
  br i1 %.not5667, label %.thread.thread, label %69

.thread:                                          ; preds = %34
  br i1 %27, label %.thread61, label %.thread.thread

.thread61:                                        ; preds = %.thread
  %.not68 = icmp eq i32 %28, 0
  br i1 %.not68, label %50, label %45

.thread.thread:                                   ; preds = %.thread66, %.thread
  %37 = phi ptr [ %29, %.thread ], [ %32, %.thread66 ]
  %38 = phi i32 [ %28, %.thread ], [ %31, %.thread66 ]
  store i32 0, ptr %37, align 4, !tbaa !67
  br label %.thread65

.thread65:                                        ; preds = %24, %.thread63, %.thread.thread
  %39 = phi ptr [ %37, %.thread.thread ], [ %32, %.thread63 ], [ %29, %24 ]
  %40 = phi i32 [ %38, %.thread.thread ], [ %31, %.thread63 ], [ %28, %24 ]
  %41 = phi i1 [ false, %.thread.thread ], [ false, %.thread63 ], [ %27, %24 ]
  %42 = icmp ne i32 %40, 0
  %or.cond = select i1 %41, i1 true, i1 %42
  br i1 %or.cond, label %43, label %69

43:                                               ; preds = %.thread65
  %44 = load i32, ptr %17, align 4, !tbaa !63
  store i32 %44, ptr %39, align 4, !tbaa !67
  br i1 %42, label %45, label %50

45:                                               ; preds = %.thread61, %43
  %46 = phi ptr [ %29, %.thread61 ], [ %39, %43 ]
  %47 = getelementptr inbounds i8, ptr %0, i64 324
  %48 = load float, ptr %47, align 4, !tbaa !68
  %.sroa.0.0.vec.insert = insertelement <2 x float> poison, float %48, i64 0
  %49 = getelementptr inbounds i8, ptr %0, i64 328
  br label %55

50:                                               ; preds = %.thread61, %43
  %51 = phi ptr [ %29, %.thread61 ], [ %39, %43 ]
  %52 = getelementptr inbounds i8, ptr %23, i64 76
  %53 = load float, ptr %52, align 4, !tbaa !69
  %.sroa.0.0.vec.insert9 = insertelement <2 x float> poison, float %53, i64 0
  %54 = getelementptr inbounds i8, ptr %23, i64 80
  br label %55

55:                                               ; preds = %50, %45
  %.sink69 = phi ptr [ %54, %50 ], [ %49, %45 ]
  %.sroa.0.0.vec.insert9.sink = phi <2 x float> [ %.sroa.0.0.vec.insert9, %50 ], [ %.sroa.0.0.vec.insert, %45 ]
  %56 = phi ptr [ %51, %50 ], [ %46, %45 ]
  %57 = load float, ptr %.sink69, align 4, !tbaa !70
  %.sroa.0.4.vec.insert11 = insertelement <2 x float> %.sroa.0.0.vec.insert9.sink, float %57, i64 1
  %58 = or i32 %1, 32
  %59 = load <2 x float>, ptr @nk_contextual_begin.null_rect, align 4
  %60 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @nk_contextual_begin.null_rect, i64 8), align 4
  %61 = tail call i32 @nk_nonblock_begin(ptr noundef nonnull %0, i32 noundef %58, <2 x float> %.sroa.0.4.vec.insert11, <2 x float> %2, <2 x float> %59, <2 x float> %60, i32 noundef 16)
  %.not58 = icmp eq i32 %61, 0
  br i1 %.not58, label %64, label %62

62:                                               ; preds = %55
  %63 = getelementptr inbounds i8, ptr %9, i64 296
  store i32 16, ptr %63, align 8, !tbaa !66
  br label %69

64:                                               ; preds = %55
  store i32 0, ptr %56, align 4, !tbaa !67
  %65 = getelementptr inbounds i8, ptr %9, i64 296
  store i32 0, ptr %65, align 8, !tbaa !66
  %66 = load ptr, ptr %16, align 8, !tbaa !65
  %.not59 = icmp eq ptr %66, null
  br i1 %.not59, label %69, label %67

67:                                               ; preds = %64
  %68 = getelementptr inbounds i8, ptr %66, i64 72
  store i32 0, ptr %68, align 8, !tbaa !71
  br label %69

69:                                               ; preds = %.thread66, %62, %67, %64, %.thread65, %34, %15
  %.0 = phi i32 [ 0, %15 ], [ 0, %34 ], [ 0, %.thread65 ], [ 0, %64 ], [ 0, %67 ], [ %61, %62 ], [ 0, %.thread66 ]
  ret i32 %.0
}

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

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

!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 = !{!57, !11, i64 356}
!64 = !{!6, !16, i64 16592}
!65 = !{!57, !16, i64 288}
!66 = !{!57, !11, i64 296}
!67 = !{!57, !11, i64 364}
!68 = !{!6, !14, i64 324}
!69 = !{!57, !14, i64 76}
!70 = !{!14, !14, i64 0}
!71 = !{!57, !11, i64 72}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass