; 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_vec2 = type { float, float }
%struct.nk_context = type { %struct.nk_input, %struct.nk_style, %struct.nk_buffer, %struct.nk_clipboard, i32, i32, %struct.nk_configuration_stacks, float, %struct.nk_draw_list, %struct.nk_text_edit, %struct.nk_command_buffer, i32, i32, %struct.nk_pool, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.nk_input = type { %struct.nk_keyboard, %struct.nk_mouse }
%struct.nk_keyboard = type { [30 x %struct.nk_key], [16 x i8], i32 }
%struct.nk_key = type { i32, i32 }
%struct.nk_mouse = type { [4 x %struct.nk_mouse_button], %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i8, i8, i8 }
%struct.nk_mouse_button = type { i32, i32, %struct.nk_vec2 }
%struct.nk_style = type { ptr, [7 x ptr], ptr, ptr, i32, %struct.nk_style_text, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_toggle, %struct.nk_style_toggle, %struct.nk_style_selectable, %struct.nk_style_slider, %struct.nk_style_progress, %struct.nk_style_property, %struct.nk_style_edit, %struct.nk_style_chart, %struct.nk_style_scrollbar, %struct.nk_style_scrollbar, %struct.nk_style_tab, %struct.nk_style_combo, %struct.nk_style_window }
%struct.nk_style_text = type { %struct.nk_color, %struct.nk_vec2 }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_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_rect = type { float, float, float, float }
%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.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__.nk_combo_callback = external hidden unnamed_addr constant [120 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [12 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 hidden <2 x float> @_ZL20nk_panel_get_paddingPK8nk_style13nk_panel_type(ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @nk_layout_row_dynamic(ptr noundef, float noundef, i32 noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @nk_combo_item_label(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @nk_combo_end(ptr noundef) #4

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

26:                                               ; preds = %7
  br label %29

27:                                               ; preds = %7
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.1, i32 noundef 29457, ptr noundef @__PRETTY_FUNCTION__.nk_combo_callback) #7
  unreachable

28:                                               ; No predecessors!
  br label %29

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

32:                                               ; preds = %29
  br label %35

33:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.144, ptr noundef @.str.1, i32 noundef 29458, ptr noundef @__PRETTY_FUNCTION__.nk_combo_callback) #7
  unreachable

34:                                               ; No predecessors!
  br label %35

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

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

41:                                               ; preds = %38, %35
  %42 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %42, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %126

43:                                               ; preds = %38
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.nk_context, ptr %44, i32 0, i32 1
  %46 = getelementptr inbounds %struct.nk_style, ptr %45, i32 0, i32 21
  %47 = getelementptr inbounds %struct.nk_style_window, ptr %46, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.nk_context, ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.nk_context, ptr %50, i32 0, i32 17
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = getelementptr inbounds %struct.nk_window, ptr %52, i32 0, i32 7
  %54 = load ptr, ptr %53, align 8, !tbaa !66
  %55 = getelementptr inbounds %struct.nk_panel, ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 8, !tbaa !74
  %57 = call <2 x float> @_ZL20nk_panel_get_paddingPK8nk_style13nk_panel_type(ptr noundef %49, i32 noundef %56)
  store <2 x float> %57, ptr %22, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = mul nsw i32 %58, %59
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = getelementptr inbounds %struct.nk_vec2, ptr %18, i32 0, i32 1
  %63 = load float, ptr %62, align 4, !tbaa !80
  %64 = fptosi float %63 to i32
  %65 = mul nsw i32 %61, %64
  %66 = add nsw i32 %60, %65
  store i32 %66, ptr %17, align 4, !tbaa !9
  %67 = getelementptr inbounds %struct.nk_vec2, ptr %18, i32 0, i32 1
  %68 = load float, ptr %67, align 4, !tbaa !80
  %69 = fptosi float %68 to i32
  %70 = mul nsw i32 %69, 2
  %71 = getelementptr inbounds %struct.nk_vec2, ptr %19, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !80
  %73 = fptosi float %72 to i32
  %74 = mul nsw i32 %73, 2
  %75 = add nsw i32 %70, %74
  %76 = load i32, ptr %17, align 4, !tbaa !9
  %77 = add nsw i32 %76, %75
  store i32 %77, ptr %17, align 4, !tbaa !9
  %78 = getelementptr inbounds %struct.nk_vec2, ptr %9, i32 0, i32 1
  %79 = load float, ptr %78, align 4, !tbaa !80
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = sitofp i32 %80 to float
  %82 = fcmp olt float %79, %81
  br i1 %82, label %83, label %86

83:                                               ; preds = %43
  %84 = getelementptr inbounds %struct.nk_vec2, ptr %9, i32 0, i32 1
  %85 = load float, ptr %84, align 4, !tbaa !80
  br label %89

86:                                               ; preds = %43
  %87 = load i32, ptr %17, align 4, !tbaa !9
  %88 = sitofp i32 %87 to float
  br label %89

89:                                               ; preds = %86, %83
  %90 = phi float [ %85, %83 ], [ %88, %86 ]
  %91 = getelementptr inbounds %struct.nk_vec2, ptr %9, i32 0, i32 1
  store float %90, ptr %91, align 4, !tbaa !80
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = load i32, ptr %13, align 4, !tbaa !9
  call void %92(ptr noundef %93, i32 noundef %94, ptr noundef %20)
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !11
  %97 = load <2 x float>, ptr %23, align 4
  %98 = call i32 @nk_combo_begin_label(ptr noundef %95, ptr noundef %96, <2 x float> %97)
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %124

100:                                              ; preds = %89
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = sitofp i32 %102 to float
  call void @nk_layout_row_dynamic(ptr noundef %101, float noundef %103, i32 noundef 1)
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %119, %100
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %122

108:                                              ; preds = %104
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = load i32, ptr %16, align 4, !tbaa !9
  call void %109(ptr noundef %110, i32 noundef %111, ptr noundef %20)
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load ptr, ptr %20, align 8, !tbaa !5
  %114 = call i32 @nk_combo_item_label(ptr noundef %112, ptr noundef %113, i32 noundef 17)
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %108
  %117 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %117, ptr %13, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %116, %108
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %16, align 4, !tbaa !9
  br label %104, !llvm.loop !81

122:                                              ; preds = %104
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  call void @nk_combo_end(ptr noundef %123)
  br label %124

124:                                              ; preds = %122, %89
  %125 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %125, ptr %8, align 4
  store i32 1, ptr %21, align 4
  br label %126

126:                                              ; preds = %124, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  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
  %127 = load i32, ptr %8, align 4
  ret i32 %127
}

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"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !6, i64 17824}
!15 = !{!"_ZTS10nk_context", !16, i64 0, !20, i64 360, !40, i64 9000, !45, i64 9120, !10, i64 9144, !46, i64 9148, !47, i64 9152, !13, i64 12024, !55, i64 12032, !60, i64 12272, !64, i64 17656, !10, i64 17720, !10, i64 17724, !65, i64 17728, !6, i64 17800, !6, i64 17808, !6, i64 17816, !6, i64 17824, !6, i64 17832, !10, i64 17840, !10, i64 17844}
!16 = !{!"_ZTS8nk_input", !17, i64 0, !18, i64 260}
!17 = !{!"_ZTS11nk_keyboard", !7, i64 0, !7, i64 240, !10, i64 256}
!18 = !{!"_ZTS8nk_mouse", !7, i64 0, !19, i64 64, !19, i64 72, !19, i64 80, !19, i64 88, !7, i64 96, !7, i64 97, !7, i64 98}
!19 = !{!"_ZTS7nk_vec2", !13, i64 0, !13, i64 4}
!20 = !{!"_ZTS8nk_style", !6, i64 0, !7, i64 8, !6, i64 64, !6, i64 72, !10, 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, !19, 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, !10, i64 140, !13, i64 144, !13, i64 148, !19, i64 152, !19, i64 160, !19, 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, !10, i64 224, !19, i64 228, !19, i64 236, !13, i64 244, !13, 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, !10, i64 268, !13, i64 272, !19, i64 276, !19, i64 284, !19, 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, !13, i64 264, !13, i64 268, !13, i64 272, !19, i64 276, !19, i64 284, !19, i64 292, !10, 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, !13, i64 252, !13, i64 256, !13, i64 260, !13, i64 264, !19, 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, !13, i64 144, !13, i64 148, !19, 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, !13, i64 884, !13, i64 888, !13, i64 892, !19, i64 896, !19, i64 904, !13, 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, !13, i64 252, !13, i64 256, !13, i64 260, !13, i64 264, !19, i64 268, !10, 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, !13, i64 52, !13, i64 56, !19, 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, !13, i64 856, !13, i64 860, !13, i64 864, !19, i64 868, !19, 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, !13, i64 364, !13, i64 368, !19, i64 372, !19, i64 380, !19, 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, !13, i64 688, !13, i64 692, !13, i64 696, !13, i64 700, !13, i64 704, !13, i64 708, !13, i64 712, !13, i64 716, !13, i64 720, !19, i64 724, !19, i64 732, !19, i64 740, !19, i64 748, !19, i64 756, !19, i64 764, !19, i64 772, !19, i64 780, !19, i64 788, !19, 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, !19, i64 548, !19, i64 556, !19, 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, !13, 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", !10, i64 0, !7, i64 8}
!49 = !{!"_ZTS21nk_config_stack_float", !10, i64 0, !7, i64 8}
!50 = !{!"_ZTS20nk_config_stack_vec2", !10, i64 0, !7, i64 8}
!51 = !{!"_ZTS21nk_config_stack_flags", !10, i64 0, !7, i64 8}
!52 = !{!"_ZTS21nk_config_stack_color", !10, i64 0, !7, i64 8}
!53 = !{!"_ZTS25nk_config_stack_user_font", !10, i64 0, !7, i64 8}
!54 = !{!"_ZTS31nk_config_stack_button_behavior", !10, 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, !10, i64 200, !10, i64 204, !10, i64 208, !44, i64 216, !10, i64 224, !10, i64 228, !58, i64 232, !58, i64 236}
!56 = !{!"_ZTS7nk_rect", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!57 = !{!"_ZTS17nk_convert_config", !13, i64 0, !58, i64 4, !58, i64 8, !10, i64 12, !10, i64 16, !10, 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, !19, i64 8}
!60 = !{!"_ZTS12nk_text_edit", !45, i64 0, !61, i64 24, !6, i64 152, !19, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !7, i64 184, !7, i64 185, !7, i64 186, !13, i64 188, !62, i64 192}
!61 = !{!"_ZTS6nk_str", !40, i64 0, !10, 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, !10, i64 24, !7, i64 32, !44, i64 40, !44, i64 48, !44, i64 56}
!65 = !{!"_ZTS7nk_pool", !41, i64 0, !42, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !10, i64 48, !44, i64 56, !44, i64 64}
!66 = !{!67, !6, i64 168}
!67 = !{!"_ZTS9nk_window", !10, i64 0, !10, i64 4, !7, i64 8, !10, i64 72, !56, i64 76, !68, i64 92, !64, i64 104, !6, i64 168, !13, i64 176, !69, i64 180, !70, i64 288, !73, i64 384, !10, i64 428, !6, i64 432, !10, i64 440, !6, i64 448, !6, i64 456, !6, i64 464}
!68 = !{!"_ZTS9nk_scroll", !10, i64 0, !10, i64 4}
!69 = !{!"_ZTS17nk_property_state", !10, i64 0, !10, i64 4, !7, i64 8, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100}
!70 = !{!"_ZTS14nk_popup_state", !6, i64 0, !71, i64 8, !72, i64 16, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, 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, !10, i64 32}
!73 = !{!"_ZTS13nk_edit_state", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !68, i64 32, !7, i64 40, !7, i64 41}
!74 = !{!75, !71, i64 0}
!75 = !{!"_ZTS8nk_panel", !71, i64 0, !10, i64 4, !56, i64 8, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !10, i64 64, !56, i64 68, !76, i64 84, !77, i64 112, !79, i64 248, !6, i64 432, !6, i64 440}
!76 = !{!"_ZTS13nk_menu_state", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !68, i64 16}
!77 = !{!"_ZTS13nk_row_layout", !78, i64 0, !10, i64 4, !13, i64 8, !13, i64 12, !10, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !56, i64 48, !10, i64 64, !7, i64 68}
!78 = !{!"_ZTS24nk_panel_row_layout_type", !7, i64 0}
!79 = !{!"_ZTS8nk_chart", !10, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !7, i64 20}
!80 = !{!19, !13, i64 4}
!81 = distinct !{!81, !82}
!82 = !{!"llvm.loop.mustprogress"}


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

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__.nk_combo_callback = external hidden unnamed_addr constant [120 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [12 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @nk_layout_row_dynamic(ptr noundef, float noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @nk_combo_end(ptr noundef) local_unnamed_addr #3

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

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

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

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.144, ptr noundef nonnull @.str.1, i32 noundef 29458, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_callback) #6
  unreachable

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 360
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8920
  %.sroa.3.0.copyload = load float, ptr %.sroa.3.0..sroa_idx, align 4, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 17824
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %15, i64 168
  %17 = load ptr, ptr %16, align 8, !tbaa !63
  %18 = load i32, ptr %17, align 8, !tbaa !71
  %19 = tail call <2 x float> @_ZL20nk_panel_get_paddingPK8nk_style13nk_panel_type(ptr noundef nonnull %13, i32 noundef %18)
  %20 = fptosi float %.sroa.3.0.copyload to i32
  %21 = add i32 %20, %5
  %22 = mul i32 %21, %4
  %.sroa.03.4.vec.extract = extractelement <2 x float> %19, i64 1
  %23 = fptosi float %.sroa.03.4.vec.extract to i32
  %24 = add i32 %23, %20
  %25 = shl i32 %24, 1
  %26 = add nsw i32 %25, %22
  %.sroa.034.4.vec.extract = extractelement <2 x float> %6, i64 1
  %27 = sitofp i32 %26 to float
  %28 = fcmp olt float %.sroa.034.4.vec.extract, %27
  %29 = select i1 %28, float %.sroa.034.4.vec.extract, float %27
  %.sroa.034.4.vec.insert = insertelement <2 x float> %6, float %29, i64 1
  call void %1(ptr noundef %2, i32 noundef %3, ptr noundef nonnull %8)
  %30 = load ptr, ptr %8, align 8, !tbaa !77
  %31 = call i32 @nk_combo_begin_label(ptr noundef nonnull %0, ptr noundef %30, <2 x float> %.sroa.034.4.vec.insert)
  %.not44 = icmp eq i32 %31, 0
  br i1 %.not44, label %38, label %32

32:                                               ; preds = %12
  %33 = sitofp i32 %5 to float
  call void @nk_layout_row_dynamic(ptr noundef nonnull %0, float noundef %33, i32 noundef 1)
  %34 = icmp sgt i32 %4, 0
  br i1 %34, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %32, %.lr.ph
  %.03947 = phi i32 [ %spec.select, %.lr.ph ], [ %3, %32 ]
  %.04046 = phi i32 [ %37, %.lr.ph ], [ 0, %32 ]
  call void %1(ptr noundef %2, i32 noundef %.04046, ptr noundef nonnull %8)
  %35 = load ptr, ptr %8, align 8, !tbaa !77
  %36 = call i32 @nk_combo_item_label(ptr noundef nonnull %0, ptr noundef %35, i32 noundef 17)
  %.not45 = icmp eq i32 %36, 0
  %spec.select = select i1 %.not45, i32 %.03947, i32 %.04046
  %37 = add nuw nsw i32 %.04046, 1
  %exitcond.not = icmp eq i32 %37, %4
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !78

._crit_edge:                                      ; preds = %.lr.ph, %32
  %.039.lcssa = phi i32 [ %3, %32 ], [ %spec.select, %.lr.ph ]
  call void @nk_combo_end(ptr noundef nonnull %0)
  br label %38

38:                                               ; preds = %12, %._crit_edge
  %.2 = phi i32 [ %.039.lcssa, %._crit_edge ], [ %3, %12 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  ret i32 %.2
}

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


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