; LLVM IR from unitreerobotics/kinect_teleoperate :: src/extern/glfw/src/tests (gamma)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.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
@__PRETTY_FUNCTION__.nk_widget = external hidden unnamed_addr constant [84 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @nk_widget(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.nk_rect, align 4
  %7 = alloca %struct.nk_rect, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  br label %16

15:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 19144, ptr noundef @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

16:                                               ; preds = %14
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.nk_context, ptr %17, i32 0, i32 17
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %16
  br label %23

22:                                               ; preds = %16
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str.2, i32 noundef 19145, ptr noundef @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

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

30:                                               ; preds = %23
  br label %32

31:                                               ; preds = %23
  call void @__assert_fail(ptr noundef @.str.80, ptr noundef @.str.2, i32 noundef 19146, ptr noundef @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

32:                                               ; preds = %30
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %47

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

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

47:                                               ; preds = %40, %35, %32
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %239

48:                                               ; preds = %40
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  call void @nk_panel_alloc_space(ptr noundef %49, ptr noundef %50)
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.nk_context, ptr %51, i32 0, i32 17
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  store ptr %53, ptr %8, align 8, !tbaa !5
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.nk_window, ptr %54, i32 0, i32 7
  %56 = load ptr, ptr %55, align 8, !tbaa !57
  store ptr %56, ptr %9, align 8, !tbaa !5
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.nk_context, ptr %57, i32 0, i32 0
  store ptr %58, ptr %10, align 8, !tbaa !5
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.nk_panel, ptr %59, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %60, i64 16, i1 false), !tbaa.struct !64
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.nk_panel, ptr %61, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !66
  %64 = and i32 %63, 32768
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %67, label %66

66:                                               ; preds = %48
  br label %68

67:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.106, ptr noundef @.str.2, i32 noundef 19162, ptr noundef @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

68:                                               ; preds = %66
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.nk_panel, ptr %69, i32 0, i32 1
  %71 = load i32, ptr %70, align 4, !tbaa !66
  %72 = and i32 %71, 8192
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %75, label %74

74:                                               ; preds = %68
  br label %76

75:                                               ; preds = %68
  call void @__assert_fail(ptr noundef @.str.107, ptr noundef @.str.2, i32 noundef 19163, ptr noundef @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

76:                                               ; preds = %74
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.nk_panel, ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 4, !tbaa !66
  %80 = and i32 %79, 16384
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %83, label %82

82:                                               ; preds = %76
  br label %84

83:                                               ; preds = %76
  call void @__assert_fail(ptr noundef @.str.108, ptr noundef @.str.2, i32 noundef 19164, ptr noundef @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

84:                                               ; preds = %82
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.nk_rect, ptr %85, i32 0, i32 0
  %87 = load float, ptr %86, align 4, !tbaa !71
  %88 = fptosi float %87 to i32
  %89 = sitofp i32 %88 to float
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.nk_rect, ptr %90, i32 0, i32 0
  store float %89, ptr %91, align 4, !tbaa !71
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.nk_rect, ptr %92, i32 0, i32 1
  %94 = load float, ptr %93, align 4, !tbaa !72
  %95 = fptosi float %94 to i32
  %96 = sitofp i32 %95 to float
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.nk_rect, ptr %97, i32 0, i32 1
  store float %96, ptr %98, align 4, !tbaa !72
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.nk_rect, ptr %99, i32 0, i32 2
  %101 = load float, ptr %100, align 4, !tbaa !73
  %102 = fptosi float %101 to i32
  %103 = sitofp i32 %102 to float
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.nk_rect, ptr %104, i32 0, i32 2
  store float %103, ptr %105, align 4, !tbaa !73
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.nk_rect, ptr %106, i32 0, i32 3
  %108 = load float, ptr %107, align 4, !tbaa !74
  %109 = fptosi float %108 to i32
  %110 = sitofp i32 %109 to float
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.nk_rect, ptr %111, i32 0, i32 3
  store float %110, ptr %112, align 4, !tbaa !74
  %113 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 0
  %114 = load float, ptr %113, align 4, !tbaa !71
  %115 = fptosi float %114 to i32
  %116 = sitofp i32 %115 to float
  %117 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 0
  store float %116, ptr %117, align 4, !tbaa !71
  %118 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 1
  %119 = load float, ptr %118, align 4, !tbaa !72
  %120 = fptosi float %119 to i32
  %121 = sitofp i32 %120 to float
  %122 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 1
  store float %121, ptr %122, align 4, !tbaa !72
  %123 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 2
  %124 = load float, ptr %123, align 4, !tbaa !73
  %125 = fptosi float %124 to i32
  %126 = sitofp i32 %125 to float
  %127 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 2
  store float %126, ptr %127, align 4, !tbaa !73
  %128 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 3
  %129 = load float, ptr %128, align 4, !tbaa !74
  %130 = fptosi float %129 to i32
  %131 = sitofp i32 %130 to float
  %132 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 3
  store float %131, ptr %132, align 4, !tbaa !74
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.nk_rect, ptr %133, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !71
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.nk_rect, ptr %136, i32 0, i32 1
  %138 = load float, ptr %137, align 4, !tbaa !72
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.nk_rect, ptr %139, i32 0, i32 0
  %141 = load float, ptr %140, align 4, !tbaa !71
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.nk_rect, ptr %142, i32 0, i32 2
  %144 = load float, ptr %143, align 4, !tbaa !73
  %145 = fadd float %141, %144
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.nk_rect, ptr %146, i32 0, i32 1
  %148 = load float, ptr %147, align 4, !tbaa !72
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.nk_rect, ptr %149, i32 0, i32 3
  %151 = load float, ptr %150, align 4, !tbaa !74
  %152 = fadd float %148, %151
  call void @nk_unify(ptr noundef %7, ptr noundef %6, float noundef %135, float noundef %138, float noundef %145, float noundef %152)
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.nk_rect, ptr %153, i32 0, i32 0
  %155 = load float, ptr %154, align 4, !tbaa !71
  %156 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 0
  %157 = load float, ptr %156, align 4, !tbaa !71
  %158 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 2
  %159 = load float, ptr %158, align 4, !tbaa !73
  %160 = fadd float %157, %159
  %161 = fcmp ogt float %155, %160
  br i1 %161, label %194, label %162

162:                                              ; preds = %84
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.nk_rect, ptr %163, i32 0, i32 0
  %165 = load float, ptr %164, align 4, !tbaa !71
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.nk_rect, ptr %166, i32 0, i32 2
  %168 = load float, ptr %167, align 4, !tbaa !73
  %169 = fadd float %165, %168
  %170 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 0
  %171 = load float, ptr %170, align 4, !tbaa !71
  %172 = fcmp olt float %169, %171
  br i1 %172, label %194, label %173

173:                                              ; preds = %162
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.nk_rect, ptr %174, i32 0, i32 1
  %176 = load float, ptr %175, align 4, !tbaa !72
  %177 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 1
  %178 = load float, ptr %177, align 4, !tbaa !72
  %179 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 3
  %180 = load float, ptr %179, align 4, !tbaa !74
  %181 = fadd float %178, %180
  %182 = fcmp ogt float %176, %181
  br i1 %182, label %194, label %183

183:                                              ; preds = %173
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.nk_rect, ptr %184, i32 0, i32 1
  %186 = load float, ptr %185, align 4, !tbaa !72
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.nk_rect, ptr %187, i32 0, i32 3
  %189 = load float, ptr %188, align 4, !tbaa !74
  %190 = fadd float %186, %189
  %191 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 1
  %192 = load float, ptr %191, align 4, !tbaa !72
  %193 = fcmp olt float %190, %192
  br i1 %193, label %194, label %195

194:                                              ; preds = %183, %173, %162, %84
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %239

195:                                              ; preds = %183
  %196 = getelementptr inbounds %struct.nk_rect, ptr %7, i32 0, i32 0
  %197 = load float, ptr %196, align 4, !tbaa !71
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.nk_input, ptr %198, i32 0, i32 1
  %200 = getelementptr inbounds %struct.nk_mouse, ptr %199, i32 0, i32 1
  %201 = getelementptr inbounds %struct.nk_vec2, ptr %200, i32 0, i32 0
  %202 = load float, ptr %201, align 4, !tbaa !75
  %203 = fcmp ole float %197, %202
  br i1 %203, label %204, label %237

204:                                              ; preds = %195
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.nk_input, ptr %205, i32 0, i32 1
  %207 = getelementptr inbounds %struct.nk_mouse, ptr %206, i32 0, i32 1
  %208 = getelementptr inbounds %struct.nk_vec2, ptr %207, i32 0, i32 0
  %209 = load float, ptr %208, align 4, !tbaa !75
  %210 = getelementptr inbounds %struct.nk_rect, ptr %7, i32 0, i32 0
  %211 = load float, ptr %210, align 4, !tbaa !71
  %212 = getelementptr inbounds %struct.nk_rect, ptr %7, i32 0, i32 2
  %213 = load float, ptr %212, align 4, !tbaa !73
  %214 = fadd float %211, %213
  %215 = fcmp olt float %209, %214
  br i1 %215, label %216, label %237

216:                                              ; preds = %204
  %217 = getelementptr inbounds %struct.nk_rect, ptr %7, i32 0, i32 1
  %218 = load float, ptr %217, align 4, !tbaa !72
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.nk_input, ptr %219, i32 0, i32 1
  %221 = getelementptr inbounds %struct.nk_mouse, ptr %220, i32 0, i32 1
  %222 = getelementptr inbounds %struct.nk_vec2, ptr %221, i32 0, i32 1
  %223 = load float, ptr %222, align 4, !tbaa !76
  %224 = fcmp ole float %218, %223
  br i1 %224, label %225, label %237

225:                                              ; preds = %216
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.nk_input, ptr %226, i32 0, i32 1
  %228 = getelementptr inbounds %struct.nk_mouse, ptr %227, i32 0, i32 1
  %229 = getelementptr inbounds %struct.nk_vec2, ptr %228, i32 0, i32 1
  %230 = load float, ptr %229, align 4, !tbaa !76
  %231 = getelementptr inbounds %struct.nk_rect, ptr %7, i32 0, i32 1
  %232 = load float, ptr %231, align 4, !tbaa !72
  %233 = getelementptr inbounds %struct.nk_rect, ptr %7, i32 0, i32 3
  %234 = load float, ptr %233, align 4, !tbaa !74
  %235 = fadd float %232, %234
  %236 = fcmp olt float %230, %235
  br i1 %236, label %238, label %237

237:                                              ; preds = %225, %216, %204, %195
  store i32 2, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %239

238:                                              ; preds = %225
  store i32 1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %239

239:                                              ; preds = %238, %237, %194, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #4
  %240 = load i32, ptr %3, align 4
  ret i32 %240
}

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

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

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

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

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


; 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
@__PRETTY_FUNCTION__.nk_widget = external hidden unnamed_addr constant [84 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [36 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 3) i32 @nk_widget(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca %struct.nk_rect, align 16
  %4 = alloca %struct.nk_rect, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %5, label %6

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

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

9:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.2, i32 noundef 19145, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

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

13:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.2, i32 noundef 19146, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

14:                                               ; preds = %10
  tail call void @nk_panel_alloc_space(ptr noundef %0, ptr noundef nonnull %1)
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 168
  %17 = load ptr, ptr %16, align 8, !tbaa !56
  %18 = getelementptr inbounds i8, ptr %17, i64 68
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %18, i64 16, i1 false), !tbaa.struct !63
  %19 = getelementptr inbounds i8, ptr %17, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !65
  %21 = and i32 %20, 32768
  %.not49 = icmp eq i32 %21, 0
  br i1 %.not49, label %23, label %22

22:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.106, ptr noundef nonnull @.str.2, i32 noundef 19162, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

23:                                               ; preds = %14
  %24 = and i32 %20, 8192
  %.not50 = icmp eq i32 %24, 0
  br i1 %.not50, label %26, label %25

25:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str.107, ptr noundef nonnull @.str.2, i32 noundef 19163, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

26:                                               ; preds = %23
  %27 = and i32 %20, 16384
  %.not51 = icmp eq i32 %27, 0
  br i1 %.not51, label %29, label %28

28:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.108, ptr noundef nonnull @.str.2, i32 noundef 19164, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_widget) #5
  unreachable

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 4
  %31 = getelementptr inbounds i8, ptr %0, i64 12
  %32 = load <4 x float>, ptr %0, align 4, !tbaa !64
  %33 = fptosi <4 x float> %32 to <4 x i32>
  %34 = sitofp <4 x i32> %33 to <4 x float>
  store <4 x float> %34, ptr %0, align 4, !tbaa !64
  %35 = getelementptr inbounds i8, ptr %3, i64 4
  %36 = getelementptr inbounds i8, ptr %3, i64 8
  %37 = getelementptr inbounds i8, ptr %3, i64 12
  %38 = load <4 x float>, ptr %3, align 16, !tbaa !64
  %39 = fptosi <4 x float> %38 to <4 x i32>
  %40 = sitofp <4 x i32> %39 to <4 x float>
  store <4 x float> %40, ptr %3, align 16, !tbaa !64
  %41 = extractelement <4 x float> %34, i64 0
  %shift = shufflevector <4 x float> %34, <4 x float> poison, <4 x i32> <i32 2, i32 poison, i32 poison, i32 poison>
  %42 = fadd <4 x float> %shift, %34
  %43 = extractelement <4 x float> %42, i64 0
  %44 = extractelement <4 x float> %34, i64 1
  %45 = extractelement <4 x float> %34, i64 3
  %46 = fadd float %44, %45
  call void @nk_unify(ptr noundef nonnull %4, ptr noundef nonnull %3, float noundef %41, float noundef %44, float noundef %43, float noundef %46)
  %47 = load float, ptr %0, align 4, !tbaa !70
  %48 = load float, ptr %3, align 16, !tbaa !70
  %49 = load float, ptr %36, align 8, !tbaa !71
  %50 = fadd float %48, %49
  %51 = fcmp ogt float %47, %50
  br i1 %51, label %89, label %52

52:                                               ; preds = %29
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  %54 = load float, ptr %53, align 4, !tbaa !71
  %55 = fadd float %47, %54
  %56 = fcmp olt float %55, %48
  br i1 %56, label %89, label %57

57:                                               ; preds = %52
  %58 = load float, ptr %30, align 4, !tbaa !72
  %59 = load float, ptr %35, align 4, !tbaa !72
  %60 = load float, ptr %37, align 4, !tbaa !73
  %61 = fadd float %59, %60
  %62 = fcmp ogt float %58, %61
  br i1 %62, label %89, label %63

63:                                               ; preds = %57
  %64 = load float, ptr %31, align 4, !tbaa !73
  %65 = fadd float %58, %64
  %66 = fcmp olt float %65, %59
  br i1 %66, label %89, label %67

67:                                               ; preds = %63
  %68 = load float, ptr %4, align 4, !tbaa !70
  %69 = getelementptr inbounds i8, ptr %1, i64 324
  %70 = load float, ptr %69, align 4, !tbaa !74
  %71 = fcmp ugt float %68, %70
  br i1 %71, label %89, label %72

72:                                               ; preds = %67
  %73 = getelementptr inbounds i8, ptr %4, i64 8
  %74 = load float, ptr %73, align 4, !tbaa !71
  %75 = fadd float %68, %74
  %76 = fcmp olt float %70, %75
  br i1 %76, label %77, label %89

77:                                               ; preds = %72
  %78 = getelementptr inbounds i8, ptr %4, i64 4
  %79 = load float, ptr %78, align 4, !tbaa !72
  %80 = getelementptr inbounds i8, ptr %1, i64 328
  %81 = load float, ptr %80, align 4, !tbaa !75
  %82 = fcmp ugt float %79, %81
  br i1 %82, label %89, label %83

83:                                               ; preds = %77
  %84 = getelementptr inbounds i8, ptr %4, i64 12
  %85 = load float, ptr %84, align 4, !tbaa !73
  %86 = fadd float %79, %85
  %87 = fcmp olt float %81, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %83
  br label %89

89:                                               ; preds = %67, %72, %77, %83, %29, %52, %57, %63, %88
  %.0 = phi i32 [ 1, %88 ], [ 0, %63 ], [ 0, %57 ], [ 0, %52 ], [ 0, %29 ], [ 2, %83 ], [ 2, %77 ], [ 2, %72 ], [ 2, %67 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  ret i32 %.0
}

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !16, i64 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 = !{i64 0, i64 4, !64, i64 4, i64 4, !64, i64 8, i64 4, !64, i64 12, i64 4, !64}
!64 = !{!14, !14, i64 0}
!65 = !{!66, !11, i64 4}
!66 = !{!"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, !67, i64 84, !68, i64 112, !69, i64 248, !16, i64 432, !16, i64 440}
!67 = !{!"nk_menu_state", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !58, i64 16}
!68 = !{!"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}
!69 = !{!"nk_chart", !11, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !9, i64 20}
!70 = !{!47, !14, i64 0}
!71 = !{!47, !14, i64 8}
!72 = !{!47, !14, i64 4}
!73 = !{!47, !14, i64 12}
!74 = !{!7, !14, i64 324}
!75 = !{!7, !14, i64 328}


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