; LLVM IR from ClementineAccount/Albuquerque :: src/HelloSDL (main)

; 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_nine_slice }
%struct.nk_nine_slice = type { %struct.nk_image, i16, i16, i16, i16 }
%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 }

@_ZL12nk_null_rect = external hidden constant %struct.nk_rect, align 4
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__.nk_popup_begin = external hidden unnamed_addr constant [104 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [79 x i8], align 1

; 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) #0

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL7nk_zeroPvm(ptr noundef, i64 noundef) #4

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL16nk_create_windowP10nk_context(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL15nk_create_panelP10nk_context(ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13nk_free_panelP10nk_contextP8nk_panel(ptr noundef, ptr noundef) #4

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

27:                                               ; preds = %6
  br label %30

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

29:                                               ; No predecessors!
  br label %30

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

33:                                               ; preds = %30
  br label %36

34:                                               ; preds = %30
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.1, i32 noundef 20755, ptr noundef @__PRETTY_FUNCTION__.nk_popup_begin) #7
  unreachable

35:                                               ; No predecessors!
  br label %36

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

41:                                               ; preds = %36
  br label %44

42:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.84, ptr noundef @.str.1, i32 noundef 20756, ptr noundef @__PRETTY_FUNCTION__.nk_popup_begin) #7
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.nk_context, ptr %45, i32 0, i32 17
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = getelementptr inbounds %struct.nk_window, ptr %47, i32 0, i32 7
  %49 = load ptr, ptr %48, align 8, !tbaa !66
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %44
  br label %54

52:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str.85, ptr noundef @.str.1, i32 noundef 20757, ptr noundef @__PRETTY_FUNCTION__.nk_popup_begin) #7
  unreachable

53:                                               ; No predecessors!
  br label %54

54:                                               ; preds = %53, %51
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %69

57:                                               ; preds = %54
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.nk_context, ptr %58, i32 0, i32 17
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %69

62:                                               ; preds = %57
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.nk_context, ptr %63, i32 0, i32 17
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = getelementptr inbounds %struct.nk_window, ptr %65, i32 0, i32 7
  %67 = load ptr, ptr %66, align 8, !tbaa !66
  %68 = icmp ne ptr %67, null
  br i1 %68, label %70, label %69

69:                                               ; preds = %62, %57, %54
  store i32 0, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %294

70:                                               ; preds = %62
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.nk_context, ptr %71, i32 0, i32 17
  %73 = load ptr, ptr %72, align 8, !tbaa !13
  store ptr %73, ptr %14, align 8, !tbaa !5
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.nk_window, ptr %74, i32 0, i32 7
  %76 = load ptr, ptr %75, align 8, !tbaa !66
  store ptr %76, ptr %15, align 8, !tbaa !5
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.nk_panel, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !74
  %80 = and i32 %79, 244
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %83, label %82

82:                                               ; preds = %70
  br label %83

83:                                               ; preds = %82, %70
  %84 = phi i1 [ false, %70 ], [ true, %82 ]
  br i1 %84, label %85, label %86

85:                                               ; preds = %83
  br label %88

86:                                               ; preds = %83
  call void @__assert_fail(ptr noundef @.str.91, ptr noundef @.str.1, i32 noundef 20763, ptr noundef @__PRETTY_FUNCTION__.nk_popup_begin) #7
  unreachable

87:                                               ; No predecessors!
  br label %88

88:                                               ; preds = %87, %85
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = call i32 @nk_strlen(ptr noundef %89)
  store i32 %90, ptr %16, align 4, !tbaa !11
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load i32, ptr %16, align 4, !tbaa !11
  %93 = call i32 @nk_murmur_hash(ptr noundef %91, i32 noundef %92, i32 noundef 4)
  store i32 %93, ptr %17, align 4, !tbaa !11
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.nk_window, ptr %94, i32 0, i32 10
  %96 = getelementptr inbounds %struct.nk_popup_state, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !80
  store ptr %97, ptr %13, align 8, !tbaa !5
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = icmp ne ptr %98, null
  br i1 %99, label %116, label %100

100:                                              ; preds = %88
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = call noundef ptr @_ZL16nk_create_windowP10nk_context(ptr noundef %101)
  store ptr %102, ptr %13, align 8, !tbaa !5
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.nk_window, ptr %104, i32 0, i32 17
  store ptr %103, ptr %105, align 8, !tbaa !81
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.nk_window, ptr %107, i32 0, i32 10
  %109 = getelementptr inbounds %struct.nk_popup_state, ptr %108, i32 0, i32 0
  store ptr %106, ptr %109, align 8, !tbaa !80
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.nk_window, ptr %110, i32 0, i32 10
  %112 = getelementptr inbounds %struct.nk_popup_state, ptr %111, i32 0, i32 4
  store i32 0, ptr %112, align 4, !tbaa !82
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.nk_window, ptr %113, i32 0, i32 10
  %115 = getelementptr inbounds %struct.nk_popup_state, ptr %114, i32 0, i32 1
  store i32 4, ptr %115, align 8, !tbaa !83
  br label %116

116:                                              ; preds = %100, %88
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.nk_window, ptr %117, i32 0, i32 10
  %119 = getelementptr inbounds %struct.nk_popup_state, ptr %118, i32 0, i32 3
  %120 = load i32, ptr %119, align 8, !tbaa !84
  %121 = load i32, ptr %17, align 4, !tbaa !11
  %122 = icmp ne i32 %120, %121
  br i1 %122, label %123, label %143

123:                                              ; preds = %116
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.nk_window, ptr %124, i32 0, i32 10
  %126 = getelementptr inbounds %struct.nk_popup_state, ptr %125, i32 0, i32 4
  %127 = load i32, ptr %126, align 4, !tbaa !82
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %141, label %129

129:                                              ; preds = %123
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZL7nk_zeroPvm(ptr noundef %130, i64 noundef 472)
  %131 = load i32, ptr %17, align 4, !tbaa !11
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.nk_window, ptr %132, i32 0, i32 10
  %134 = getelementptr inbounds %struct.nk_popup_state, ptr %133, i32 0, i32 3
  store i32 %131, ptr %134, align 8, !tbaa !84
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.nk_window, ptr %135, i32 0, i32 10
  %137 = getelementptr inbounds %struct.nk_popup_state, ptr %136, i32 0, i32 4
  store i32 1, ptr %137, align 4, !tbaa !82
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.nk_window, ptr %138, i32 0, i32 10
  %140 = getelementptr inbounds %struct.nk_popup_state, ptr %139, i32 0, i32 1
  store i32 4, ptr %140, align 8, !tbaa !83
  br label %142

141:                                              ; preds = %123
  store i32 0, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %294

142:                                              ; preds = %129
  br label %143

143:                                              ; preds = %142, %116
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.nk_context, ptr %145, i32 0, i32 17
  store ptr %144, ptr %146, align 8, !tbaa !13
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.nk_window, ptr %147, i32 0, i32 7
  %149 = load ptr, ptr %148, align 8, !tbaa !66
  %150 = getelementptr inbounds %struct.nk_panel, ptr %149, i32 0, i32 12
  %151 = getelementptr inbounds %struct.nk_rect, ptr %150, i32 0, i32 0
  %152 = load float, ptr %151, align 4, !tbaa !85
  %153 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 0
  %154 = load float, ptr %153, align 4, !tbaa !86
  %155 = fadd float %154, %152
  store float %155, ptr %153, align 4, !tbaa !86
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.nk_window, ptr %156, i32 0, i32 7
  %158 = load ptr, ptr %157, align 8, !tbaa !66
  %159 = getelementptr inbounds %struct.nk_panel, ptr %158, i32 0, i32 12
  %160 = getelementptr inbounds %struct.nk_rect, ptr %159, i32 0, i32 1
  %161 = load float, ptr %160, align 4, !tbaa !87
  %162 = getelementptr inbounds %struct.nk_rect, ptr %8, i32 0, i32 1
  %163 = load float, ptr %162, align 4, !tbaa !88
  %164 = fadd float %163, %161
  store float %164, ptr %162, align 4, !tbaa !88
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.nk_window, ptr %166, i32 0, i32 17
  store ptr %165, ptr %167, align 8, !tbaa !81
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.nk_window, ptr %168, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %169, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !89
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.nk_context, ptr %170, i32 0, i32 20
  %172 = load i32, ptr %171, align 4, !tbaa !91
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.nk_window, ptr %173, i32 0, i32 0
  store i32 %172, ptr %174, align 8, !tbaa !92
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = call noundef ptr @_ZL15nk_create_panelP10nk_context(ptr noundef %175)
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.nk_window, ptr %177, i32 0, i32 7
  store ptr %176, ptr %178, align 8, !tbaa !66
  %179 = load i32, ptr %12, align 4, !tbaa !11
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.nk_window, ptr %180, i32 0, i32 3
  store i32 %179, ptr %181, align 8, !tbaa !93
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.nk_window, ptr %182, i32 0, i32 3
  %184 = load i32, ptr %183, align 8, !tbaa !93
  %185 = or i32 %184, 1
  store i32 %185, ptr %183, align 8, !tbaa !93
  %186 = load i32, ptr %10, align 4, !tbaa !9
  %187 = icmp eq i32 %186, 1
  br i1 %187, label %188, label %193

188:                                              ; preds = %143
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.nk_window, ptr %189, i32 0, i32 3
  %191 = load i32, ptr %190, align 8, !tbaa !93
  %192 = or i32 %191, 2048
  store i32 %192, ptr %190, align 8, !tbaa !93
  br label %193

193:                                              ; preds = %188, %143
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.nk_window, ptr %194, i32 0, i32 6
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.nk_window, ptr %196, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %197, ptr align 8 %195, i64 64, i1 false), !tbaa.struct !94
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZL14nk_start_popupP10nk_contextP9nk_window(ptr noundef %198, ptr noundef %199)
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.nk_context, ptr %200, i32 0, i32 2
  %202 = getelementptr inbounds %struct.nk_buffer, ptr %201, i32 0, i32 5
  %203 = load i64, ptr %202, align 8, !tbaa !97
  store i64 %203, ptr %18, align 8, !tbaa !96
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.nk_window, ptr %204, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 @_ZL12nk_null_rect, i64 16, i1 false), !tbaa.struct !89
  %206 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 0
  %207 = load <2 x float>, ptr %206, align 4
  %208 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 1
  %209 = load <2 x float>, ptr %208, align 4
  call void @nk_push_scissor(ptr noundef %205, <2 x float> %207, <2 x float> %209)
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = call noundef i32 @_ZL14nk_panel_beginP10nk_contextPKc13nk_panel_type(ptr noundef %210, ptr noundef %211, i32 noundef 4)
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %258

214:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %215 = load ptr, ptr %14, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.nk_window, ptr %215, i32 0, i32 7
  %217 = load ptr, ptr %216, align 8, !tbaa !66
  store ptr %217, ptr %21, align 8, !tbaa !5
  br label %218

218:                                              ; preds = %221, %214
  %219 = load ptr, ptr %21, align 8, !tbaa !5
  %220 = icmp ne ptr %219, null
  br i1 %220, label %221, label %233

221:                                              ; preds = %218
  %222 = load ptr, ptr %21, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.nk_panel, ptr %222, i32 0, i32 1
  %224 = load i32, ptr %223, align 4, !tbaa !98
  %225 = or i32 %224, 4096
  store i32 %225, ptr %223, align 4, !tbaa !98
  %226 = load ptr, ptr %21, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.nk_panel, ptr %226, i32 0, i32 1
  %228 = load i32, ptr %227, align 4, !tbaa !98
  %229 = and i32 %228, -65537
  store i32 %229, ptr %227, align 4, !tbaa !98
  %230 = load ptr, ptr %21, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.nk_panel, ptr %230, i32 0, i32 17
  %232 = load ptr, ptr %231, align 8, !tbaa !99
  store ptr %232, ptr %21, align 8, !tbaa !5
  br label %218, !llvm.loop !100

233:                                              ; preds = %218
  %234 = load ptr, ptr %14, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.nk_window, ptr %234, i32 0, i32 10
  %236 = getelementptr inbounds %struct.nk_popup_state, ptr %235, i32 0, i32 4
  store i32 1, ptr %236, align 4, !tbaa !82
  %237 = load ptr, ptr %13, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.nk_window, ptr %237, i32 0, i32 5
  %239 = getelementptr inbounds %struct.nk_scroll, ptr %238, i32 0, i32 0
  %240 = load ptr, ptr %13, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.nk_window, ptr %240, i32 0, i32 7
  %242 = load ptr, ptr %241, align 8, !tbaa !66
  %243 = getelementptr inbounds %struct.nk_panel, ptr %242, i32 0, i32 3
  store ptr %239, ptr %243, align 8, !tbaa !102
  %244 = load ptr, ptr %13, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.nk_window, ptr %244, i32 0, i32 5
  %246 = getelementptr inbounds %struct.nk_scroll, ptr %245, i32 0, i32 1
  %247 = load ptr, ptr %13, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.nk_window, ptr %247, i32 0, i32 7
  %249 = load ptr, ptr %248, align 8, !tbaa !66
  %250 = getelementptr inbounds %struct.nk_panel, ptr %249, i32 0, i32 4
  store ptr %246, ptr %250, align 8, !tbaa !103
  %251 = load ptr, ptr %14, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.nk_window, ptr %251, i32 0, i32 7
  %253 = load ptr, ptr %252, align 8, !tbaa !66
  %254 = load ptr, ptr %13, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.nk_window, ptr %254, i32 0, i32 7
  %256 = load ptr, ptr %255, align 8, !tbaa !66
  %257 = getelementptr inbounds %struct.nk_panel, ptr %256, i32 0, i32 17
  store ptr %253, ptr %257, align 8, !tbaa !99
  store i32 1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %294

258:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %259 = load ptr, ptr %14, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.nk_window, ptr %259, i32 0, i32 7
  %261 = load ptr, ptr %260, align 8, !tbaa !66
  store ptr %261, ptr %22, align 8, !tbaa !5
  br label %262

262:                                              ; preds = %265, %258
  %263 = load ptr, ptr %22, align 8, !tbaa !5
  %264 = icmp ne ptr %263, null
  br i1 %264, label %265, label %273

265:                                              ; preds = %262
  %266 = load ptr, ptr %22, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.nk_panel, ptr %266, i32 0, i32 1
  %268 = load i32, ptr %267, align 4, !tbaa !98
  %269 = or i32 %268, 65536
  store i32 %269, ptr %267, align 4, !tbaa !98
  %270 = load ptr, ptr %22, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.nk_panel, ptr %270, i32 0, i32 17
  %272 = load ptr, ptr %271, align 8, !tbaa !99
  store ptr %272, ptr %22, align 8, !tbaa !5
  br label %262, !llvm.loop !104

273:                                              ; preds = %262
  %274 = load ptr, ptr %14, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.nk_window, ptr %274, i32 0, i32 10
  %276 = getelementptr inbounds %struct.nk_popup_state, ptr %275, i32 0, i32 2
  %277 = getelementptr inbounds %struct.nk_popup_buffer, ptr %276, i32 0, i32 4
  store i32 0, ptr %277, align 8, !tbaa !105
  %278 = load ptr, ptr %14, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.nk_window, ptr %278, i32 0, i32 10
  %280 = getelementptr inbounds %struct.nk_popup_state, ptr %279, i32 0, i32 4
  store i32 0, ptr %280, align 4, !tbaa !82
  %281 = load i64, ptr %18, align 8, !tbaa !96
  %282 = load ptr, ptr %9, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.nk_context, ptr %282, i32 0, i32 2
  %284 = getelementptr inbounds %struct.nk_buffer, ptr %283, i32 0, i32 5
  store i64 %281, ptr %284, align 8, !tbaa !97
  %285 = load ptr, ptr %14, align 8, !tbaa !5
  %286 = load ptr, ptr %9, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.nk_context, ptr %286, i32 0, i32 17
  store ptr %285, ptr %287, align 8, !tbaa !13
  %288 = load ptr, ptr %9, align 8, !tbaa !5
  %289 = load ptr, ptr %13, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.nk_window, ptr %289, i32 0, i32 7
  %291 = load ptr, ptr %290, align 8, !tbaa !66
  call void @_ZL13nk_free_panelP10nk_contextP8nk_panel(ptr noundef %288, ptr noundef %291)
  %292 = load ptr, ptr %13, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.nk_window, ptr %292, i32 0, i32 7
  store ptr null, ptr %293, align 8, !tbaa !66
  store i32 0, ptr %7, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %294

294:                                              ; preds = %273, %233, %141, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %295 = load i32, ptr %7, align 4
  ret i32 %295
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS13nk_popup_type", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 17824}
!14 = !{!"_ZTS10nk_context", !15, i64 0, !20, i64 360, !40, i64 9000, !45, i64 9120, !12, i64 9144, !46, i64 9148, !47, i64 9152, !19, i64 12024, !55, i64 12032, !60, i64 12272, !64, i64 17656, !12, i64 17720, !12, i64 17724, !65, i64 17728, !6, i64 17800, !6, i64 17808, !6, i64 17816, !6, i64 17824, !6, i64 17832, !12, i64 17840, !12, i64 17844}
!15 = !{!"_ZTS8nk_input", !16, i64 0, !17, i64 260}
!16 = !{!"_ZTS11nk_keyboard", !7, i64 0, !7, i64 240, !12, i64 256}
!17 = !{!"_ZTS8nk_mouse", !7, i64 0, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !7, i64 96, !7, i64 97, !7, i64 98}
!18 = !{!"_ZTS7nk_vec2", !19, i64 0, !19, i64 4}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTS8nk_style", !6, i64 0, !7, i64 8, !6, i64 64, !6, i64 72, !12, i64 80, !21, i64 84, !23, i64 96, !23, i64 296, !23, i64 496, !26, i64 696, !26, i64 976, !27, i64 1256, !28, i64 1584, !30, i64 2320, !31, i64 2624, !32, i64 4128, !34, i64 5048, !33, i64 5120, !33, i64 5832, !35, i64 6544, !36, i64 7432, !37, i64 7832}
!21 = !{!"_ZTS13nk_style_text", !22, i64 0, !18, i64 4}
!22 = !{!"_ZTS8nk_color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!23 = !{!"_ZTS15nk_style_button", !24, i64 0, !24, i64 40, !24, i64 80, !22, i64 120, !22, i64 124, !22, i64 128, !22, i64 132, !22, i64 136, !12, i64 140, !19, i64 144, !19, i64 148, !18, i64 152, !18, i64 160, !18, i64 168, !7, i64 176, !6, i64 184, !6, i64 192}
!24 = !{!"_ZTS13nk_style_item", !25, i64 0, !7, i64 8}
!25 = !{!"_ZTS18nk_style_item_type", !7, i64 0}
!26 = !{!"_ZTS15nk_style_toggle", !24, i64 0, !24, i64 40, !24, i64 80, !22, i64 120, !24, i64 128, !24, i64 168, !22, i64 208, !22, i64 212, !22, i64 216, !22, i64 220, !12, i64 224, !18, i64 228, !18, i64 236, !19, i64 244, !19, i64 248, !7, i64 256, !6, i64 264, !6, i64 272}
!27 = !{!"_ZTS19nk_style_selectable", !24, i64 0, !24, i64 40, !24, i64 80, !24, i64 120, !24, i64 160, !24, i64 200, !22, i64 240, !22, i64 244, !22, i64 248, !22, i64 252, !22, i64 256, !22, i64 260, !22, i64 264, !12, i64 268, !19, i64 272, !18, i64 276, !18, i64 284, !18, i64 292, !7, i64 304, !6, i64 312, !6, i64 320}
!28 = !{!"_ZTS15nk_style_slider", !24, i64 0, !24, i64 40, !24, i64 80, !22, i64 120, !22, i64 124, !22, i64 128, !22, i64 132, !22, i64 136, !24, i64 144, !24, i64 184, !24, i64 224, !19, i64 264, !19, i64 268, !19, i64 272, !18, i64 276, !18, i64 284, !18, i64 292, !12, i64 300, !23, i64 304, !23, i64 504, !29, i64 704, !29, i64 708, !7, i64 712, !6, i64 720, !6, i64 728}
!29 = !{!"_ZTS14nk_symbol_type", !7, i64 0}
!30 = !{!"_ZTS17nk_style_progress", !24, i64 0, !24, i64 40, !24, i64 80, !22, i64 120, !24, i64 128, !24, i64 168, !24, i64 208, !22, i64 248, !19, i64 252, !19, i64 256, !19, i64 260, !19, i64 264, !18, i64 268, !7, i64 280, !6, i64 288, !6, i64 296}
!31 = !{!"_ZTS17nk_style_property", !24, i64 0, !24, i64 40, !24, i64 80, !22, i64 120, !22, i64 124, !22, i64 128, !22, i64 132, !29, i64 136, !29, i64 140, !19, i64 144, !19, i64 148, !18, i64 152, !32, i64 160, !23, i64 1080, !23, i64 1280, !7, i64 1480, !6, i64 1488, !6, i64 1496}
!32 = !{!"_ZTS13nk_style_edit", !24, i64 0, !24, i64 40, !24, i64 80, !22, i64 120, !33, i64 128, !22, i64 840, !22, i64 844, !22, i64 848, !22, i64 852, !22, i64 856, !22, i64 860, !22, i64 864, !22, i64 868, !22, i64 872, !22, i64 876, !22, i64 880, !19, i64 884, !19, i64 888, !19, i64 892, !18, i64 896, !18, i64 904, !19, i64 912}
!33 = !{!"_ZTS18nk_style_scrollbar", !24, i64 0, !24, i64 40, !24, i64 80, !22, i64 120, !24, i64 128, !24, i64 168, !24, i64 208, !22, i64 248, !19, i64 252, !19, i64 256, !19, i64 260, !19, i64 264, !18, i64 268, !12, i64 276, !23, i64 280, !23, i64 480, !29, i64 680, !29, i64 684, !7, i64 688, !6, i64 696, !6, i64 704}
!34 = !{!"_ZTS14nk_style_chart", !24, i64 0, !22, i64 40, !22, i64 44, !22, i64 48, !19, i64 52, !19, i64 56, !18, i64 60}
!35 = !{!"_ZTS12nk_style_tab", !24, i64 0, !22, i64 40, !22, i64 44, !23, i64 48, !23, i64 248, !23, i64 448, !23, i64 648, !29, i64 848, !29, i64 852, !19, i64 856, !19, i64 860, !19, i64 864, !18, i64 868, !18, i64 876}
!36 = !{!"_ZTS14nk_style_combo", !24, i64 0, !24, i64 40, !24, i64 80, !22, i64 120, !22, i64 124, !22, i64 128, !22, i64 132, !22, i64 136, !22, i64 140, !22, i64 144, !23, i64 152, !29, i64 352, !29, i64 356, !29, i64 360, !19, i64 364, !19, i64 368, !18, i64 372, !18, i64 380, !18, i64 388}
!37 = !{!"_ZTS15nk_style_window", !38, i64 0, !24, i64 576, !22, i64 616, !22, i64 620, !22, i64 624, !22, i64 628, !22, i64 632, !22, i64 636, !22, i64 640, !22, i64 644, !24, i64 648, !19, i64 688, !19, i64 692, !19, i64 696, !19, i64 700, !19, i64 704, !19, i64 708, !19, i64 712, !19, i64 716, !19, i64 720, !18, i64 724, !18, i64 732, !18, i64 740, !18, i64 748, !18, i64 756, !18, i64 764, !18, i64 772, !18, i64 780, !18, i64 788, !18, i64 796}
!38 = !{!"_ZTS22nk_style_window_header", !24, i64 0, !24, i64 40, !24, i64 80, !23, i64 120, !23, i64 320, !29, i64 520, !29, i64 524, !29, i64 528, !22, i64 532, !22, i64 536, !22, i64 540, !39, i64 544, !18, i64 548, !18, i64 556, !18, i64 564}
!39 = !{!"_ZTS21nk_style_header_align", !7, i64 0}
!40 = !{!"_ZTS9nk_buffer", !7, i64 0, !41, i64 32, !42, i64 56, !43, i64 64, !19, i64 80, !44, i64 88, !44, i64 96, !44, i64 104, !44, i64 112}
!41 = !{!"_ZTS12nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTS18nk_allocation_type", !7, i64 0}
!43 = !{!"_ZTS9nk_memory", !6, i64 0, !44, i64 8}
!44 = !{!"long", !7, i64 0}
!45 = !{!"_ZTS12nk_clipboard", !7, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTS18nk_button_behavior", !7, i64 0}
!47 = !{!"_ZTS23nk_configuration_stacks", !48, i64 0, !49, i64 776, !50, i64 1296, !51, i64 1560, !52, i64 2080, !53, i64 2600, !54, i64 2736}
!48 = !{!"_ZTS26nk_config_stack_style_item", !12, i64 0, !7, i64 8}
!49 = !{!"_ZTS21nk_config_stack_float", !12, i64 0, !7, i64 8}
!50 = !{!"_ZTS20nk_config_stack_vec2", !12, i64 0, !7, i64 8}
!51 = !{!"_ZTS21nk_config_stack_flags", !12, i64 0, !7, i64 8}
!52 = !{!"_ZTS21nk_config_stack_color", !12, i64 0, !7, i64 8}
!53 = !{!"_ZTS25nk_config_stack_user_font", !12, i64 0, !7, i64 8}
!54 = !{!"_ZTS31nk_config_stack_button_behavior", !12, i64 0, !7, i64 8}
!55 = !{!"_ZTS12nk_draw_list", !56, i64 0, !7, i64 16, !57, i64 112, !6, i64 176, !6, i64 184, !6, i64 192, !12, i64 200, !12, i64 204, !12, i64 208, !44, i64 216, !12, i64 224, !12, i64 228, !58, i64 232, !58, i64 236}
!56 = !{!"_ZTS7nk_rect", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12}
!57 = !{!"_ZTS17nk_convert_config", !19, i64 0, !58, i64 4, !58, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !59, i64 24, !6, i64 40, !44, i64 48, !44, i64 56}
!58 = !{!"_ZTS16nk_anti_aliasing", !7, i64 0}
!59 = !{!"_ZTS20nk_draw_null_texture", !7, i64 0, !18, i64 8}
!60 = !{!"_ZTS12nk_text_edit", !45, i64 0, !61, i64 24, !6, i64 152, !18, i64 160, !12, i64 168, !12, i64 172, !12, i64 176, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !7, i64 184, !7, i64 185, !7, i64 186, !19, i64 188, !62, i64 192}
!61 = !{!"_ZTS6nk_str", !40, i64 0, !12, i64 120}
!62 = !{!"_ZTS18nk_text_undo_state", !7, i64 0, !7, i64 1188, !63, i64 5184, !63, i64 5186, !63, i64 5188, !63, i64 5190}
!63 = !{!"short", !7, i64 0}
!64 = !{!"_ZTS17nk_command_buffer", !6, i64 0, !56, i64 8, !12, i64 24, !7, i64 32, !44, i64 40, !44, i64 48, !44, i64 56}
!65 = !{!"_ZTS7nk_pool", !41, i64 0, !42, i64 24, !12, i64 28, !6, i64 32, !6, i64 40, !12, i64 48, !44, i64 56, !44, i64 64}
!66 = !{!67, !6, i64 168}
!67 = !{!"_ZTS9nk_window", !12, i64 0, !12, i64 4, !7, i64 8, !12, i64 72, !56, i64 76, !68, i64 92, !64, i64 104, !6, i64 168, !19, i64 176, !69, i64 180, !70, i64 288, !73, i64 384, !12, i64 428, !6, i64 432, !12, i64 440, !6, i64 448, !6, i64 456, !6, i64 464}
!68 = !{!"_ZTS9nk_scroll", !12, i64 0, !12, i64 4}
!69 = !{!"_ZTS17nk_property_state", !12, i64 0, !12, i64 4, !7, i64 8, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100}
!70 = !{!"_ZTS14nk_popup_state", !6, i64 0, !71, i64 8, !72, i64 16, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !56, i64 80}
!71 = !{!"_ZTS13nk_panel_type", !7, i64 0}
!72 = !{!"_ZTS15nk_popup_buffer", !44, i64 0, !44, i64 8, !44, i64 16, !44, i64 24, !12, i64 32}
!73 = !{!"_ZTS13nk_edit_state", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !68, i64 32, !7, i64 40, !7, i64 41}
!74 = !{!75, !71, i64 0}
!75 = !{!"_ZTS8nk_panel", !71, i64 0, !12, i64 4, !56, i64 8, !6, i64 24, !6, i64 32, !19, i64 40, !19, i64 44, !19, i64 48, !19, i64 52, !19, i64 56, !19, i64 60, !12, i64 64, !56, i64 68, !76, i64 84, !77, i64 112, !79, i64 248, !6, i64 432, !6, i64 440}
!76 = !{!"_ZTS13nk_menu_state", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12, !68, i64 16}
!77 = !{!"_ZTS13nk_row_layout", !78, i64 0, !12, i64 4, !19, i64 8, !19, i64 12, !12, i64 16, !6, i64 24, !19, i64 32, !19, i64 36, !19, i64 40, !19, i64 44, !56, i64 48, !12, i64 64, !7, i64 68}
!78 = !{!"_ZTS24nk_panel_row_layout_type", !7, i64 0}
!79 = !{!"_ZTS8nk_chart", !12, i64 0, !19, i64 4, !19, i64 8, !19, i64 12, !19, i64 16, !7, i64 20}
!80 = !{!67, !6, i64 288}
!81 = !{!67, !6, i64 464}
!82 = !{!67, !12, i64 348}
!83 = !{!67, !71, i64 296}
!84 = !{!67, !12, i64 344}
!85 = !{!75, !19, i64 68}
!86 = !{!56, !19, i64 0}
!87 = !{!75, !19, i64 72}
!88 = !{!56, !19, i64 4}
!89 = !{i64 0, i64 4, !90, i64 4, i64 4, !90, i64 8, i64 4, !90, i64 12, i64 4, !90}
!90 = !{!19, !19, i64 0}
!91 = !{!14, !12, i64 17844}
!92 = !{!67, !12, i64 0}
!93 = !{!67, !12, i64 72}
!94 = !{i64 0, i64 8, !5, i64 8, i64 4, !90, i64 12, i64 4, !90, i64 16, i64 4, !90, i64 20, i64 4, !90, i64 24, i64 4, !11, i64 32, i64 8, !95, i64 40, i64 8, !96, i64 48, i64 8, !96, i64 56, i64 8, !96}
!95 = !{!7, !7, i64 0}
!96 = !{!44, !44, i64 0}
!97 = !{!14, !44, i64 9088}
!98 = !{!75, !12, i64 4}
!99 = !{!75, !6, i64 440}
!100 = distinct !{!100, !101}
!101 = !{!"llvm.loop.mustprogress"}
!102 = !{!75, !6, i64 24}
!103 = !{!75, !6, i64 32}
!104 = distinct !{!104, !101}
!105 = !{!67, !12, i64 336}


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

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

@_ZL12nk_null_rect = external hidden local_unnamed_addr constant %struct.nk_rect, align 4
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__.nk_popup_begin = external hidden unnamed_addr constant [104 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [79 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL7nk_zeroPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL16nk_create_windowP10nk_context(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL15nk_create_panelP10nk_context(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14nk_panel_beginP10nk_contextPKc13nk_panel_type(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

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

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

7:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.1, i32 noundef 20754, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #5
  unreachable

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

9:                                                ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.1, i32 noundef 20755, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #5
  unreachable

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

13:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.84, ptr noundef nonnull @.str.1, i32 noundef 20756, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #5
  unreachable

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

17:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.85, ptr noundef nonnull @.str.1, i32 noundef 20757, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #5
  unreachable

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

21:                                               ; preds = %18
  tail call void @__assert_fail(ptr noundef nonnull @.str.91, ptr noundef nonnull @.str.1, i32 noundef 20763, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_popup_begin) #5
  unreachable

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

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

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

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

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

40:                                               ; preds = %38, %32
  store ptr %.084, ptr %11, align 8, !tbaa !5
  %41 = load ptr, ptr %15, align 8, !tbaa !62
  %42 = getelementptr inbounds i8, ptr %41, i64 68
  %43 = load <2 x float>, ptr %42, align 4, !tbaa !81
  %44 = fadd <2 x float> %43, %4
  %45 = getelementptr inbounds i8, ptr %.084, i64 464
  store ptr %12, ptr %45, align 8, !tbaa !77
  %46 = getelementptr inbounds i8, ptr %.084, i64 76
  store <2 x float> %44, ptr %46, align 4
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %.084, i64 84
  store <2 x float> %5, ptr %.sroa.6.0..sroa_idx, align 4
  %47 = getelementptr inbounds i8, ptr %0, i64 17844
  %48 = load i32, ptr %47, align 4, !tbaa !82
  store i32 %48, ptr %.084, align 8, !tbaa !83
  %49 = tail call noundef ptr @_ZL15nk_create_panelP10nk_context(ptr noundef nonnull %0)
  %50 = getelementptr inbounds i8, ptr %.084, i64 168
  store ptr %49, ptr %50, align 8, !tbaa !62
  %51 = getelementptr inbounds i8, ptr %.084, i64 72
  %52 = icmp eq i32 %1, 1
  %spec.select.v = select i1 %52, i32 2049, i32 1
  %spec.select = or i32 %spec.select.v, %3
  store i32 %spec.select, ptr %51, align 8, !tbaa !84
  %53 = getelementptr inbounds i8, ptr %12, i64 104
  %54 = getelementptr inbounds i8, ptr %.084, i64 104
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %54, ptr noundef nonnull align 8 dereferenceable(64) %53, i64 64, i1 false), !tbaa.struct !85
  tail call void @_ZL14nk_start_popupP10nk_contextP9nk_window(ptr noundef nonnull %0, ptr noundef nonnull %12)
  %55 = getelementptr inbounds i8, ptr %0, i64 9088
  %56 = load i64, ptr %55, align 8, !tbaa !90
  %.sroa.0.0.copyload = load <2 x float>, ptr @_ZL12nk_null_rect, align 4
  %.sroa.2.0.copyload = load <2 x float>, ptr getelementptr inbounds (i8, ptr @_ZL12nk_null_rect, i64 8), align 4
  tail call void @nk_push_scissor(ptr noundef nonnull %54, <2 x float> %.sroa.0.0.copyload, <2 x float> %.sroa.2.0.copyload)
  %57 = tail call noundef i32 @_ZL14nk_panel_beginP10nk_contextPKc13nk_panel_type(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef 4)
  %.not98 = icmp eq i32 %57, 0
  %.0105 = load ptr, ptr %15, align 8, !tbaa !86
  %.not99106 = icmp eq ptr %.0105, null
  br i1 %.not98, label %.preheader, label %.preheader101

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

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

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

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

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader101
  %63 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ null, %.preheader101 ]
  %64 = getelementptr inbounds i8, ptr %12, i64 348
  store i32 1, ptr %64, align 4, !tbaa !78
  %65 = getelementptr inbounds i8, ptr %.084, i64 92
  %66 = load ptr, ptr %50, align 8, !tbaa !62
  %67 = getelementptr inbounds i8, ptr %66, i64 24
  store ptr %65, ptr %67, align 8, !tbaa !94
  %68 = getelementptr inbounds i8, ptr %.084, i64 96
  %69 = getelementptr inbounds i8, ptr %66, i64 32
  store ptr %68, ptr %69, align 8, !tbaa !95
  %70 = getelementptr inbounds i8, ptr %66, i64 440
  store ptr %63, ptr %70, align 8, !tbaa !96
  br label %78

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 17824}
!6 = !{!"_ZTS10nk_context", !7, i64 0, !15, i64 360, !36, i64 9000, !41, i64 9120, !11, i64 9144, !42, i64 9148, !43, i64 9152, !14, i64 12024, !51, i64 12032, !56, i64 12272, !60, i64 17656, !11, i64 17720, !11, i64 17724, !61, i64 17728, !16, i64 17800, !16, i64 17808, !16, i64 17816, !16, i64 17824, !16, i64 17832, !11, i64 17840, !11, i64 17844}
!7 = !{!"_ZTS8nk_input", !8, i64 0, !12, i64 260}
!8 = !{!"_ZTS11nk_keyboard", !9, i64 0, !9, i64 240, !11, i64 256}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS8nk_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 = !{!"_ZTS7nk_vec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !9, i64 0}
!15 = !{!"_ZTS8nk_style", !16, i64 0, !9, i64 8, !16, i64 64, !16, i64 72, !11, i64 80, !17, i64 84, !19, i64 96, !19, i64 296, !19, i64 496, !22, i64 696, !22, i64 976, !23, i64 1256, !24, i64 1584, !26, i64 2320, !27, i64 2624, !28, i64 4128, !30, i64 5048, !29, i64 5120, !29, i64 5832, !31, i64 6544, !32, i64 7432, !33, i64 7832}
!16 = !{!"any pointer", !9, i64 0}
!17 = !{!"_ZTS13nk_style_text", !18, i64 0, !13, i64 4}
!18 = !{!"_ZTS8nk_color", !9, i64 0, !9, i64 1, !9, i64 2, !9, i64 3}
!19 = !{!"_ZTS15nk_style_button", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !11, i64 140, !14, i64 144, !14, i64 148, !13, i64 152, !13, i64 160, !13, i64 168, !9, i64 176, !16, i64 184, !16, i64 192}
!20 = !{!"_ZTS13nk_style_item", !21, i64 0, !9, i64 8}
!21 = !{!"_ZTS18nk_style_item_type", !9, i64 0}
!22 = !{!"_ZTS15nk_style_toggle", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !20, i64 128, !20, i64 168, !18, i64 208, !18, i64 212, !18, i64 216, !18, i64 220, !11, i64 224, !13, i64 228, !13, i64 236, !14, i64 244, !14, i64 248, !9, i64 256, !16, i64 264, !16, i64 272}
!23 = !{!"_ZTS19nk_style_selectable", !20, i64 0, !20, i64 40, !20, i64 80, !20, i64 120, !20, i64 160, !20, i64 200, !18, i64 240, !18, i64 244, !18, i64 248, !18, i64 252, !18, i64 256, !18, i64 260, !18, i64 264, !11, i64 268, !14, i64 272, !13, i64 276, !13, i64 284, !13, i64 292, !9, i64 304, !16, i64 312, !16, i64 320}
!24 = !{!"_ZTS15nk_style_slider", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !20, i64 144, !20, i64 184, !20, i64 224, !14, i64 264, !14, i64 268, !14, i64 272, !13, i64 276, !13, i64 284, !13, i64 292, !11, i64 300, !19, i64 304, !19, i64 504, !25, i64 704, !25, i64 708, !9, i64 712, !16, i64 720, !16, i64 728}
!25 = !{!"_ZTS14nk_symbol_type", !9, i64 0}
!26 = !{!"_ZTS17nk_style_progress", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !20, i64 128, !20, i64 168, !20, i64 208, !18, i64 248, !14, i64 252, !14, i64 256, !14, i64 260, !14, i64 264, !13, i64 268, !9, i64 280, !16, i64 288, !16, i64 296}
!27 = !{!"_ZTS17nk_style_property", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !25, i64 136, !25, i64 140, !14, i64 144, !14, i64 148, !13, i64 152, !28, i64 160, !19, i64 1080, !19, i64 1280, !9, i64 1480, !16, i64 1488, !16, i64 1496}
!28 = !{!"_ZTS13nk_style_edit", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !29, i64 128, !18, i64 840, !18, i64 844, !18, i64 848, !18, i64 852, !18, i64 856, !18, i64 860, !18, i64 864, !18, i64 868, !18, i64 872, !18, i64 876, !18, i64 880, !14, i64 884, !14, i64 888, !14, i64 892, !13, i64 896, !13, i64 904, !14, i64 912}
!29 = !{!"_ZTS18nk_style_scrollbar", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !20, i64 128, !20, i64 168, !20, i64 208, !18, i64 248, !14, i64 252, !14, i64 256, !14, i64 260, !14, i64 264, !13, i64 268, !11, i64 276, !19, i64 280, !19, i64 480, !25, i64 680, !25, i64 684, !9, i64 688, !16, i64 696, !16, i64 704}
!30 = !{!"_ZTS14nk_style_chart", !20, i64 0, !18, i64 40, !18, i64 44, !18, i64 48, !14, i64 52, !14, i64 56, !13, i64 60}
!31 = !{!"_ZTS12nk_style_tab", !20, i64 0, !18, i64 40, !18, i64 44, !19, i64 48, !19, i64 248, !19, i64 448, !19, i64 648, !25, i64 848, !25, i64 852, !14, i64 856, !14, i64 860, !14, i64 864, !13, i64 868, !13, i64 876}
!32 = !{!"_ZTS14nk_style_combo", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !19, i64 152, !25, i64 352, !25, i64 356, !25, i64 360, !14, i64 364, !14, i64 368, !13, i64 372, !13, i64 380, !13, i64 388}
!33 = !{!"_ZTS15nk_style_window", !34, i64 0, !20, i64 576, !18, i64 616, !18, i64 620, !18, i64 624, !18, i64 628, !18, i64 632, !18, i64 636, !18, i64 640, !18, i64 644, !20, i64 648, !14, i64 688, !14, i64 692, !14, i64 696, !14, i64 700, !14, i64 704, !14, i64 708, !14, i64 712, !14, i64 716, !14, i64 720, !13, i64 724, !13, i64 732, !13, i64 740, !13, i64 748, !13, i64 756, !13, i64 764, !13, i64 772, !13, i64 780, !13, i64 788, !13, i64 796}
!34 = !{!"_ZTS22nk_style_window_header", !20, i64 0, !20, i64 40, !20, i64 80, !19, i64 120, !19, i64 320, !25, i64 520, !25, i64 524, !25, i64 528, !18, i64 532, !18, i64 536, !18, i64 540, !35, i64 544, !13, i64 548, !13, i64 556, !13, i64 564}
!35 = !{!"_ZTS21nk_style_header_align", !9, i64 0}
!36 = !{!"_ZTS9nk_buffer", !9, i64 0, !37, i64 32, !38, i64 56, !39, i64 64, !14, i64 80, !40, i64 88, !40, i64 96, !40, i64 104, !40, i64 112}
!37 = !{!"_ZTS12nk_allocator", !9, i64 0, !16, i64 8, !16, i64 16}
!38 = !{!"_ZTS18nk_allocation_type", !9, i64 0}
!39 = !{!"_ZTS9nk_memory", !16, i64 0, !40, i64 8}
!40 = !{!"long", !9, i64 0}
!41 = !{!"_ZTS12nk_clipboard", !9, i64 0, !16, i64 8, !16, i64 16}
!42 = !{!"_ZTS18nk_button_behavior", !9, i64 0}
!43 = !{!"_ZTS23nk_configuration_stacks", !44, i64 0, !45, i64 776, !46, i64 1296, !47, i64 1560, !48, i64 2080, !49, i64 2600, !50, i64 2736}
!44 = !{!"_ZTS26nk_config_stack_style_item", !11, i64 0, !9, i64 8}
!45 = !{!"_ZTS21nk_config_stack_float", !11, i64 0, !9, i64 8}
!46 = !{!"_ZTS20nk_config_stack_vec2", !11, i64 0, !9, i64 8}
!47 = !{!"_ZTS21nk_config_stack_flags", !11, i64 0, !9, i64 8}
!48 = !{!"_ZTS21nk_config_stack_color", !11, i64 0, !9, i64 8}
!49 = !{!"_ZTS25nk_config_stack_user_font", !11, i64 0, !9, i64 8}
!50 = !{!"_ZTS31nk_config_stack_button_behavior", !11, i64 0, !9, i64 8}
!51 = !{!"_ZTS12nk_draw_list", !52, i64 0, !9, i64 16, !53, i64 112, !16, i64 176, !16, i64 184, !16, i64 192, !11, i64 200, !11, i64 204, !11, i64 208, !40, i64 216, !11, i64 224, !11, i64 228, !54, i64 232, !54, i64 236}
!52 = !{!"_ZTS7nk_rect", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!53 = !{!"_ZTS17nk_convert_config", !14, i64 0, !54, i64 4, !54, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !55, i64 24, !16, i64 40, !40, i64 48, !40, i64 56}
!54 = !{!"_ZTS16nk_anti_aliasing", !9, i64 0}
!55 = !{!"_ZTS20nk_draw_null_texture", !9, i64 0, !13, i64 8}
!56 = !{!"_ZTS12nk_text_edit", !41, i64 0, !57, 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, !58, i64 192}
!57 = !{!"_ZTS6nk_str", !36, i64 0, !11, i64 120}
!58 = !{!"_ZTS18nk_text_undo_state", !9, i64 0, !9, i64 1188, !59, i64 5184, !59, i64 5186, !59, i64 5188, !59, i64 5190}
!59 = !{!"short", !9, i64 0}
!60 = !{!"_ZTS17nk_command_buffer", !16, i64 0, !52, i64 8, !11, i64 24, !9, i64 32, !40, i64 40, !40, i64 48, !40, i64 56}
!61 = !{!"_ZTS7nk_pool", !37, i64 0, !38, i64 24, !11, i64 28, !16, i64 32, !16, i64 40, !11, i64 48, !40, i64 56, !40, i64 64}
!62 = !{!63, !16, i64 168}
!63 = !{!"_ZTS9nk_window", !11, i64 0, !11, i64 4, !9, i64 8, !11, i64 72, !52, i64 76, !64, i64 92, !60, i64 104, !16, i64 168, !14, i64 176, !65, i64 180, !66, i64 288, !69, i64 384, !11, i64 428, !16, i64 432, !11, i64 440, !16, i64 448, !16, i64 456, !16, i64 464}
!64 = !{!"_ZTS9nk_scroll", !11, i64 0, !11, i64 4}
!65 = !{!"_ZTS17nk_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}
!66 = !{!"_ZTS14nk_popup_state", !16, i64 0, !67, i64 8, !68, i64 16, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !52, i64 80}
!67 = !{!"_ZTS13nk_panel_type", !9, i64 0}
!68 = !{!"_ZTS15nk_popup_buffer", !40, i64 0, !40, i64 8, !40, i64 16, !40, i64 24, !11, i64 32}
!69 = !{!"_ZTS13nk_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, !64, i64 32, !9, i64 40, !9, i64 41}
!70 = !{!71, !67, i64 0}
!71 = !{!"_ZTS8nk_panel", !67, i64 0, !11, i64 4, !52, 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, !52, i64 68, !72, i64 84, !73, i64 112, !75, i64 248, !16, i64 432, !16, i64 440}
!72 = !{!"_ZTS13nk_menu_state", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !64, i64 16}
!73 = !{!"_ZTS13nk_row_layout", !74, 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, !52, i64 48, !11, i64 64, !9, i64 68}
!74 = !{!"_ZTS24nk_panel_row_layout_type", !9, i64 0}
!75 = !{!"_ZTS8nk_chart", !11, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !9, i64 20}
!76 = !{!63, !16, i64 288}
!77 = !{!63, !16, i64 464}
!78 = !{!63, !11, i64 348}
!79 = !{!63, !67, i64 296}
!80 = !{!63, !11, i64 344}
!81 = !{!14, !14, i64 0}
!82 = !{!6, !11, i64 17844}
!83 = !{!63, !11, i64 0}
!84 = !{!63, !11, i64 72}
!85 = !{i64 0, i64 8, !86, i64 8, i64 4, !81, i64 12, i64 4, !81, i64 16, i64 4, !81, i64 20, i64 4, !81, i64 24, i64 4, !87, i64 32, i64 8, !88, i64 40, i64 8, !89, i64 48, i64 8, !89, i64 56, i64 8, !89}
!86 = !{!16, !16, i64 0}
!87 = !{!11, !11, i64 0}
!88 = !{!9, !9, i64 0}
!89 = !{!40, !40, i64 0}
!90 = !{!6, !40, i64 9088}
!91 = !{!71, !11, i64 4}
!92 = distinct !{!92, !93}
!93 = !{!"llvm.loop.mustprogress"}
!94 = !{!71, !16, i64 24}
!95 = !{!71, !16, i64 32}
!96 = !{!71, !16, i64 440}
!97 = distinct !{!97, !93}
!98 = !{!63, !11, i64 336}


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