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

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 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
@_ZL8nk_white = external hidden constant %struct.nk_color, align 1
@__PRETTY_FUNCTION__.nk_combo_begin_image_text = external hidden unnamed_addr constant [107 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: mustprogress nounwind uwtable
declare dso_local <2 x float> @nk_vec2(float noundef, float noundef) #1

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL21nk_draw_button_symbolP17nk_command_bufferPK7nk_rectS3_jPK15nk_style_button14nk_symbol_typePK12nk_user_font(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @nk_combo_begin_image_text(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef byval(%struct.nk_image) align 8 %3, <2 x float> %4) #6 {
  %6 = alloca i32, align 4
  %7 = alloca %struct.nk_vec2, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %struct.nk_rect, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %struct.nk_text, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.nk_rect, align 4
  %21 = alloca %struct.nk_color, align 1
  %22 = alloca %struct.nk_rect, align 4
  %23 = alloca %struct.nk_color, align 1
  %24 = alloca %struct.nk_color, align 1
  %25 = alloca %struct.nk_rect, align 4
  %26 = alloca %struct.nk_color, align 1
  %27 = alloca %struct.nk_rect, align 4
  %28 = alloca %struct.nk_color, align 1
  %29 = alloca %struct.nk_rect, align 4
  %30 = alloca %struct.nk_color, align 1
  %31 = alloca %struct.nk_rect, align 4
  %32 = alloca %struct.nk_rect, align 4
  %33 = alloca %struct.nk_rect, align 4
  %34 = alloca %struct.nk_rect, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %struct.nk_rect, align 4
  %38 = alloca %struct.nk_color, align 1
  %39 = alloca %struct.nk_vec2, align 4
  %40 = alloca %struct.nk_rect, align 4
  %41 = alloca %struct.nk_vec2, align 4
  %42 = alloca %struct.nk_rect, align 4
  store <2 x float> %4, ptr %7, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %46

45:                                               ; preds = %5
  br label %48

46:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.1, i32 noundef 29215, ptr noundef @__PRETTY_FUNCTION__.nk_combo_begin_image_text) #9
  unreachable

47:                                               ; No predecessors!
  br label %48

48:                                               ; preds = %47, %45
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.nk_context, ptr %49, i32 0, i32 17
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %54

53:                                               ; preds = %48
  br label %56

54:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.84, ptr noundef @.str.1, i32 noundef 29216, ptr noundef @__PRETTY_FUNCTION__.nk_combo_begin_image_text) #9
  unreachable

55:                                               ; No predecessors!
  br label %56

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

63:                                               ; preds = %56
  br label %66

64:                                               ; preds = %56
  call void @__assert_fail(ptr noundef @.str.85, ptr noundef @.str.1, i32 noundef 29217, ptr noundef @__PRETTY_FUNCTION__.nk_combo_begin_image_text) #9
  unreachable

65:                                               ; No predecessors!
  br label %66

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

69:                                               ; preds = %66
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.nk_context, ptr %70, i32 0, i32 17
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %81

74:                                               ; preds = %69
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.nk_context, ptr %75, i32 0, i32 17
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct.nk_window, ptr %77, i32 0, i32 7
  %79 = load ptr, ptr %78, align 8, !tbaa !64
  %80 = icmp ne ptr %79, null
  br i1 %80, label %82, label %81

81:                                               ; preds = %74, %69, %66
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %469

82:                                               ; preds = %74
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.nk_context, ptr %83, i32 0, i32 17
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  store ptr %85, ptr %11, align 8, !tbaa !5
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.nk_context, ptr %86, i32 0, i32 1
  store ptr %87, ptr %12, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = call i32 @nk_widget(ptr noundef %14, ptr noundef %88)
  store i32 %89, ptr %16, align 4, !tbaa !72
  %90 = load i32, ptr %16, align 4, !tbaa !72
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %93, label %92

92:                                               ; preds = %82
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %469

93:                                               ; preds = %82
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.nk_window, ptr %94, i32 0, i32 7
  %96 = load ptr, ptr %95, align 8, !tbaa !64
  %97 = getelementptr inbounds %struct.nk_panel, ptr %96, i32 0, i32 1
  %98 = load i32, ptr %97, align 4, !tbaa !74
  %99 = and i32 %98, 4096
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %104, label %101

101:                                              ; preds = %93
  %102 = load i32, ptr %16, align 4, !tbaa !72
  %103 = icmp eq i32 %102, 2
  br i1 %103, label %104, label %105

104:                                              ; preds = %101, %93
  br label %108

105:                                              ; preds = %101
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.nk_context, ptr %106, i32 0, i32 0
  br label %108

108:                                              ; preds = %105, %104
  %109 = phi ptr [ null, %104 ], [ %107, %105 ]
  store ptr %109, ptr %13, align 8, !tbaa !5
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.nk_context, ptr %110, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %14, i64 16, i1 false), !tbaa.struct !80
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 0
  %114 = load <2 x float>, ptr %113, align 4
  %115 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 1
  %116 = load <2 x float>, ptr %115, align 4
  %117 = call noundef i32 @_ZL18nk_button_behaviorPj7nk_rectPK8nk_input18nk_button_behavior(ptr noundef %111, <2 x float> %114, <2 x float> %116, ptr noundef %112, i32 noundef 0)
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %108
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %119, %108
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.nk_context, ptr %121, i32 0, i32 4
  %123 = load i32, ptr %122, align 8, !tbaa !82
  %124 = and i32 %123, 32
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %134

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

134:                                              ; preds = %120
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.nk_context, ptr %135, i32 0, i32 4
  %137 = load i32, ptr %136, align 8, !tbaa !82
  %138 = and i32 %137, 16
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %148

140:                                              ; preds = %134
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.nk_style, ptr %141, i32 0, i32 20
  %143 = getelementptr inbounds %struct.nk_style_combo, ptr %142, i32 0, i32 1
  store ptr %143, ptr %17, align 8, !tbaa !5
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.nk_style, ptr %144, i32 0, i32 20
  %146 = getelementptr inbounds %struct.nk_style_combo, ptr %145, i32 0, i32 5
  %147 = getelementptr inbounds %struct.nk_text, ptr %18, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %147, ptr align 8 %146, i64 4, i1 false), !tbaa.struct !83
  br label %156

148:                                              ; preds = %134
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.nk_style, ptr %149, i32 0, i32 20
  %151 = getelementptr inbounds %struct.nk_style_combo, ptr %150, i32 0, i32 0
  store ptr %151, ptr %17, align 8, !tbaa !5
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.nk_style, ptr %152, i32 0, i32 20
  %154 = getelementptr inbounds %struct.nk_style_combo, ptr %153, i32 0, i32 4
  %155 = getelementptr inbounds %struct.nk_text, ptr %18, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %155, ptr align 4 %154, i64 4, i1 false), !tbaa.struct !83
  br label %156

156:                                              ; preds = %148, %140
  br label %157

157:                                              ; preds = %156, %126
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.nk_style_item, ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 8, !tbaa !85
  switch i32 %160, label %220 [
    i32 1, label %161
    i32 2, label %173
    i32 0, label %185
  ]

161:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %162 = call i32 @nk_rgba(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  store i32 %162, ptr %21, align 1
  %163 = getelementptr inbounds %struct.nk_text, ptr %18, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %163, ptr align 1 %21, i64 4, i1 false), !tbaa.struct !83
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.nk_window, ptr %164, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %14, i64 16, i1 false), !tbaa.struct !80
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.nk_style_item, ptr %166, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %23, ptr align 1 @_ZL8nk_white, i64 4, i1 false), !tbaa.struct !83
  %168 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 0
  %169 = load <2 x float>, ptr %168, align 4
  %170 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 1
  %171 = load <2 x float>, ptr %170, align 4
  %172 = load i32, ptr %23, align 1
  call void @nk_draw_image(ptr noundef %165, <2 x float> %169, <2 x float> %171, ptr noundef %167, i32 %172)
  br label %220

173:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %174 = call i32 @nk_rgba(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  store i32 %174, ptr %24, align 1
  %175 = getelementptr inbounds %struct.nk_text, ptr %18, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %175, ptr align 1 %24, i64 4, i1 false), !tbaa.struct !83
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.nk_window, ptr %176, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %14, i64 16, i1 false), !tbaa.struct !80
  %178 = load ptr, ptr %17, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.nk_style_item, ptr %178, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %26, ptr align 1 @_ZL8nk_white, i64 4, i1 false), !tbaa.struct !83
  %180 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 0
  %181 = load <2 x float>, ptr %180, align 4
  %182 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 1
  %183 = load <2 x float>, ptr %182, align 4
  %184 = load i32, ptr %26, align 1
  call void @nk_draw_nine_slice(ptr noundef %177, <2 x float> %181, <2 x float> %183, ptr noundef %179, i32 %184)
  br label %220

185:                                              ; preds = %157
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.nk_style_item, ptr %186, i32 0, i32 1
  %188 = getelementptr inbounds %struct.nk_text, ptr %18, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %188, ptr align 8 %187, i64 4, i1 false), !tbaa.struct !83
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.nk_window, ptr %189, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %14, i64 16, i1 false), !tbaa.struct !80
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.nk_style, ptr %191, i32 0, i32 20
  %193 = getelementptr inbounds %struct.nk_style_combo, ptr %192, i32 0, i32 15
  %194 = load float, ptr %193, align 8, !tbaa !86
  %195 = load ptr, ptr %17, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.nk_style_item, ptr %195, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %28, ptr align 8 %196, i64 4, i1 false), !tbaa.struct !83
  %197 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %27, i32 0, i32 0
  %198 = load <2 x float>, ptr %197, align 4
  %199 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %27, i32 0, i32 1
  %200 = load <2 x float>, ptr %199, align 4
  %201 = load i32, ptr %28, align 1
  call void @nk_fill_rect(ptr noundef %190, <2 x float> %198, <2 x float> %200, float noundef %194, i32 %201)
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.nk_window, ptr %202, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %14, i64 16, i1 false), !tbaa.struct !80
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.nk_style, ptr %204, i32 0, i32 20
  %206 = getelementptr inbounds %struct.nk_style_combo, ptr %205, i32 0, i32 15
  %207 = load float, ptr %206, align 8, !tbaa !86
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.nk_style, ptr %208, i32 0, i32 20
  %210 = getelementptr inbounds %struct.nk_style_combo, ptr %209, i32 0, i32 14
  %211 = load float, ptr %210, align 4, !tbaa !87
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.nk_style, ptr %212, i32 0, i32 20
  %214 = getelementptr inbounds %struct.nk_style_combo, ptr %213, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %30, ptr align 8 %214, i64 4, i1 false), !tbaa.struct !83
  %215 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %29, i32 0, i32 0
  %216 = load <2 x float>, ptr %215, align 4
  %217 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %29, i32 0, i32 1
  %218 = load <2 x float>, ptr %217, align 4
  %219 = load i32, ptr %30, align 1
  call void @nk_stroke_rect(ptr noundef %203, <2 x float> %216, <2 x float> %218, float noundef %207, float noundef %211, i32 %219)
  br label %220

220:                                              ; preds = %185, %173, %161, %157
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.nk_context, ptr %221, i32 0, i32 4
  %223 = load i32, ptr %222, align 8, !tbaa !82
  %224 = and i32 %223, 16
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %231

226:                                              ; preds = %220
  %227 = load ptr, ptr %12, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.nk_style, ptr %227, i32 0, i32 20
  %229 = getelementptr inbounds %struct.nk_style_combo, ptr %228, i32 0, i32 12
  %230 = load i32, ptr %229, align 4, !tbaa !88
  store i32 %230, ptr %36, align 4, !tbaa !89
  br label %245

231:                                              ; preds = %220
  %232 = load i32, ptr %15, align 4, !tbaa !9
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %234, label %239

234:                                              ; preds = %231
  %235 = load ptr, ptr %12, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.nk_style, ptr %235, i32 0, i32 20
  %237 = getelementptr inbounds %struct.nk_style_combo, ptr %236, i32 0, i32 13
  %238 = load i32, ptr %237, align 8, !tbaa !90
  store i32 %238, ptr %36, align 4, !tbaa !89
  br label %244

239:                                              ; preds = %231
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.nk_style, ptr %240, i32 0, i32 20
  %242 = getelementptr inbounds %struct.nk_style_combo, ptr %241, i32 0, i32 11
  %243 = load i32, ptr %242, align 8, !tbaa !91
  store i32 %243, ptr %36, align 4, !tbaa !89
  br label %244

244:                                              ; preds = %239, %234
  br label %245

245:                                              ; preds = %244, %226
  %246 = load i32, ptr %36, align 4, !tbaa !89
  %247 = icmp ne i32 %246, 0
  %248 = zext i1 %247 to i32
  store i32 %248, ptr %35, align 4, !tbaa !9
  %249 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 3
  %250 = load float, ptr %249, align 4, !tbaa !92
  %251 = load ptr, ptr %12, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.nk_style, ptr %251, i32 0, i32 20
  %253 = getelementptr inbounds %struct.nk_style_combo, ptr %252, i32 0, i32 17
  %254 = getelementptr inbounds %struct.nk_vec2, ptr %253, i32 0, i32 1
  %255 = load float, ptr %254, align 4, !tbaa !93
  %256 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %255, float %250)
  %257 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 2
  store float %256, ptr %257, align 4, !tbaa !94
  %258 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 0
  %259 = load float, ptr %258, align 4, !tbaa !95
  %260 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 2
  %261 = load float, ptr %260, align 4, !tbaa !94
  %262 = fadd float %259, %261
  %263 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 3
  %264 = load float, ptr %263, align 4, !tbaa !92
  %265 = fsub float %262, %264
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.nk_style, ptr %266, i32 0, i32 20
  %268 = getelementptr inbounds %struct.nk_style_combo, ptr %267, i32 0, i32 17
  %269 = getelementptr inbounds %struct.nk_vec2, ptr %268, i32 0, i32 0
  %270 = load float, ptr %269, align 4, !tbaa !96
  %271 = fsub float %265, %270
  %272 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 0
  store float %271, ptr %272, align 4, !tbaa !95
  %273 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 1
  %274 = load float, ptr %273, align 4, !tbaa !97
  %275 = load ptr, ptr %12, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.nk_style, ptr %275, i32 0, i32 20
  %277 = getelementptr inbounds %struct.nk_style_combo, ptr %276, i32 0, i32 17
  %278 = getelementptr inbounds %struct.nk_vec2, ptr %277, i32 0, i32 1
  %279 = load float, ptr %278, align 4, !tbaa !93
  %280 = fadd float %274, %279
  %281 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 1
  store float %280, ptr %281, align 4, !tbaa !97
  %282 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 2
  %283 = load float, ptr %282, align 4, !tbaa !94
  %284 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 3
  store float %283, ptr %284, align 4, !tbaa !92
  %285 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 0
  %286 = load float, ptr %285, align 4, !tbaa !95
  %287 = load ptr, ptr %12, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.nk_style, ptr %287, i32 0, i32 20
  %289 = getelementptr inbounds %struct.nk_style_combo, ptr %288, i32 0, i32 10
  %290 = getelementptr inbounds %struct.nk_style_button, ptr %289, i32 0, i32 11
  %291 = getelementptr inbounds %struct.nk_vec2, ptr %290, i32 0, i32 0
  %292 = load float, ptr %291, align 8, !tbaa !98
  %293 = fadd float %286, %292
  %294 = getelementptr inbounds %struct.nk_rect, ptr %31, i32 0, i32 0
  store float %293, ptr %294, align 4, !tbaa !95
  %295 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 1
  %296 = load float, ptr %295, align 4, !tbaa !97
  %297 = load ptr, ptr %12, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.nk_style, ptr %297, i32 0, i32 20
  %299 = getelementptr inbounds %struct.nk_style_combo, ptr %298, i32 0, i32 10
  %300 = getelementptr inbounds %struct.nk_style_button, ptr %299, i32 0, i32 11
  %301 = getelementptr inbounds %struct.nk_vec2, ptr %300, i32 0, i32 1
  %302 = load float, ptr %301, align 4, !tbaa !99
  %303 = fadd float %296, %302
  %304 = getelementptr inbounds %struct.nk_rect, ptr %31, i32 0, i32 1
  store float %303, ptr %304, align 4, !tbaa !97
  %305 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 2
  %306 = load float, ptr %305, align 4, !tbaa !94
  %307 = load ptr, ptr %12, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.nk_style, ptr %307, i32 0, i32 20
  %309 = getelementptr inbounds %struct.nk_style_combo, ptr %308, i32 0, i32 10
  %310 = getelementptr inbounds %struct.nk_style_button, ptr %309, i32 0, i32 11
  %311 = getelementptr inbounds %struct.nk_vec2, ptr %310, i32 0, i32 0
  %312 = load float, ptr %311, align 8, !tbaa !98
  %313 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %312, float %306)
  %314 = getelementptr inbounds %struct.nk_rect, ptr %31, i32 0, i32 2
  store float %313, ptr %314, align 4, !tbaa !94
  %315 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 3
  %316 = load float, ptr %315, align 4, !tbaa !92
  %317 = load ptr, ptr %12, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.nk_style, ptr %317, i32 0, i32 20
  %319 = getelementptr inbounds %struct.nk_style_combo, ptr %318, i32 0, i32 10
  %320 = getelementptr inbounds %struct.nk_style_button, ptr %319, i32 0, i32 11
  %321 = getelementptr inbounds %struct.nk_vec2, ptr %320, i32 0, i32 1
  %322 = load float, ptr %321, align 4, !tbaa !99
  %323 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %322, float %316)
  %324 = getelementptr inbounds %struct.nk_rect, ptr %31, i32 0, i32 3
  store float %323, ptr %324, align 4, !tbaa !92
  %325 = load i32, ptr %35, align 4, !tbaa !9
  %326 = icmp ne i32 %325, 0
  br i1 %326, label %327, label %341

327:                                              ; preds = %245
  %328 = load ptr, ptr %11, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.nk_window, ptr %328, i32 0, i32 6
  %330 = load ptr, ptr %8, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.nk_context, ptr %330, i32 0, i32 4
  %332 = load i32, ptr %331, align 8, !tbaa !82
  %333 = load ptr, ptr %8, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.nk_context, ptr %333, i32 0, i32 1
  %335 = getelementptr inbounds %struct.nk_style, ptr %334, i32 0, i32 20
  %336 = getelementptr inbounds %struct.nk_style_combo, ptr %335, i32 0, i32 10
  %337 = load i32, ptr %36, align 4, !tbaa !89
  %338 = load ptr, ptr %12, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.nk_style, ptr %338, i32 0, i32 0
  %340 = load ptr, ptr %339, align 8, !tbaa !100
  call void @_ZL21nk_draw_button_symbolP17nk_command_bufferPK7nk_rectS3_jPK15nk_style_button14nk_symbol_typePK12nk_user_font(ptr noundef %329, ptr noundef %32, ptr noundef %31, i32 noundef %332, ptr noundef %336, i32 noundef %337, ptr noundef %340)
  br label %341

341:                                              ; preds = %327, %245
  %342 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 0
  %343 = load float, ptr %342, align 4, !tbaa !95
  %344 = load ptr, ptr %12, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.nk_style, ptr %344, i32 0, i32 20
  %346 = getelementptr inbounds %struct.nk_style_combo, ptr %345, i32 0, i32 16
  %347 = getelementptr inbounds %struct.nk_vec2, ptr %346, i32 0, i32 0
  %348 = load float, ptr %347, align 4, !tbaa !101
  %349 = fadd float %343, %348
  %350 = getelementptr inbounds %struct.nk_rect, ptr %34, i32 0, i32 0
  store float %349, ptr %350, align 4, !tbaa !95
  %351 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 1
  %352 = load float, ptr %351, align 4, !tbaa !97
  %353 = load ptr, ptr %12, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.nk_style, ptr %353, i32 0, i32 20
  %355 = getelementptr inbounds %struct.nk_style_combo, ptr %354, i32 0, i32 16
  %356 = getelementptr inbounds %struct.nk_vec2, ptr %355, i32 0, i32 1
  %357 = load float, ptr %356, align 4, !tbaa !102
  %358 = fadd float %352, %357
  %359 = getelementptr inbounds %struct.nk_rect, ptr %34, i32 0, i32 1
  store float %358, ptr %359, align 4, !tbaa !97
  %360 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 3
  %361 = load float, ptr %360, align 4, !tbaa !92
  %362 = load ptr, ptr %12, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.nk_style, ptr %362, i32 0, i32 20
  %364 = getelementptr inbounds %struct.nk_style_combo, ptr %363, i32 0, i32 16
  %365 = getelementptr inbounds %struct.nk_vec2, ptr %364, i32 0, i32 1
  %366 = load float, ptr %365, align 4, !tbaa !102
  %367 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %366, float %361)
  %368 = getelementptr inbounds %struct.nk_rect, ptr %34, i32 0, i32 3
  store float %367, ptr %368, align 4, !tbaa !92
  %369 = getelementptr inbounds %struct.nk_rect, ptr %34, i32 0, i32 3
  %370 = load float, ptr %369, align 4, !tbaa !92
  %371 = getelementptr inbounds %struct.nk_rect, ptr %34, i32 0, i32 2
  store float %370, ptr %371, align 4, !tbaa !94
  %372 = load ptr, ptr %11, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.nk_window, ptr %372, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %34, i64 16, i1 false), !tbaa.struct !80
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %38, ptr align 1 @_ZL8nk_white, i64 4, i1 false), !tbaa.struct !83
  %374 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %37, i32 0, i32 0
  %375 = load <2 x float>, ptr %374, align 4
  %376 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %37, i32 0, i32 1
  %377 = load <2 x float>, ptr %376, align 4
  %378 = load i32, ptr %38, align 1
  call void @nk_draw_image(ptr noundef %373, <2 x float> %375, <2 x float> %377, ptr noundef %3, i32 %378)
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %379 = call <2 x float> @nk_vec2(float noundef 0.000000e+00, float noundef 0.000000e+00)
  store <2 x float> %379, ptr %39, align 4
  %380 = getelementptr inbounds %struct.nk_text, ptr %18, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %380, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !103
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  %381 = getelementptr inbounds %struct.nk_rect, ptr %34, i32 0, i32 0
  %382 = load float, ptr %381, align 4, !tbaa !95
  %383 = getelementptr inbounds %struct.nk_rect, ptr %34, i32 0, i32 2
  %384 = load float, ptr %383, align 4, !tbaa !94
  %385 = fadd float %382, %384
  %386 = load ptr, ptr %12, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.nk_style, ptr %386, i32 0, i32 20
  %388 = getelementptr inbounds %struct.nk_style_combo, ptr %387, i32 0, i32 18
  %389 = getelementptr inbounds %struct.nk_vec2, ptr %388, i32 0, i32 0
  %390 = load float, ptr %389, align 4, !tbaa !104
  %391 = fadd float %385, %390
  %392 = load ptr, ptr %12, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.nk_style, ptr %392, i32 0, i32 20
  %394 = getelementptr inbounds %struct.nk_style_combo, ptr %393, i32 0, i32 16
  %395 = getelementptr inbounds %struct.nk_vec2, ptr %394, i32 0, i32 0
  %396 = load float, ptr %395, align 4, !tbaa !101
  %397 = fadd float %391, %396
  %398 = getelementptr inbounds %struct.nk_rect, ptr %33, i32 0, i32 0
  store float %397, ptr %398, align 4, !tbaa !95
  %399 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 1
  %400 = load float, ptr %399, align 4, !tbaa !97
  %401 = load ptr, ptr %12, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.nk_style, ptr %401, i32 0, i32 20
  %403 = getelementptr inbounds %struct.nk_style_combo, ptr %402, i32 0, i32 16
  %404 = getelementptr inbounds %struct.nk_vec2, ptr %403, i32 0, i32 1
  %405 = load float, ptr %404, align 4, !tbaa !102
  %406 = fadd float %400, %405
  %407 = getelementptr inbounds %struct.nk_rect, ptr %33, i32 0, i32 1
  store float %406, ptr %407, align 4, !tbaa !97
  %408 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 3
  %409 = load float, ptr %408, align 4, !tbaa !92
  %410 = load ptr, ptr %12, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.nk_style, ptr %410, i32 0, i32 20
  %412 = getelementptr inbounds %struct.nk_style_combo, ptr %411, i32 0, i32 16
  %413 = getelementptr inbounds %struct.nk_vec2, ptr %412, i32 0, i32 1
  %414 = load float, ptr %413, align 4, !tbaa !102
  %415 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %414, float %409)
  %416 = getelementptr inbounds %struct.nk_rect, ptr %33, i32 0, i32 3
  store float %415, ptr %416, align 4, !tbaa !92
  %417 = load i32, ptr %35, align 4, !tbaa !9
  %418 = icmp ne i32 %417, 0
  br i1 %418, label %419, label %432

419:                                              ; preds = %341
  %420 = getelementptr inbounds %struct.nk_rect, ptr %32, i32 0, i32 0
  %421 = load float, ptr %420, align 4, !tbaa !95
  %422 = load ptr, ptr %12, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.nk_style, ptr %422, i32 0, i32 20
  %424 = getelementptr inbounds %struct.nk_style_combo, ptr %423, i32 0, i32 16
  %425 = getelementptr inbounds %struct.nk_vec2, ptr %424, i32 0, i32 0
  %426 = load float, ptr %425, align 4, !tbaa !101
  %427 = fsub float %421, %426
  %428 = getelementptr inbounds %struct.nk_rect, ptr %33, i32 0, i32 0
  %429 = load float, ptr %428, align 4, !tbaa !95
  %430 = fsub float %427, %429
  %431 = getelementptr inbounds %struct.nk_rect, ptr %33, i32 0, i32 2
  store float %430, ptr %431, align 4, !tbaa !94
  br label %448

432:                                              ; preds = %341
  %433 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 0
  %434 = load float, ptr %433, align 4, !tbaa !95
  %435 = getelementptr inbounds %struct.nk_rect, ptr %14, i32 0, i32 2
  %436 = load float, ptr %435, align 4, !tbaa !94
  %437 = fadd float %434, %436
  %438 = load ptr, ptr %12, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.nk_style, ptr %438, i32 0, i32 20
  %440 = getelementptr inbounds %struct.nk_style_combo, ptr %439, i32 0, i32 16
  %441 = getelementptr inbounds %struct.nk_vec2, ptr %440, i32 0, i32 0
  %442 = load float, ptr %441, align 4, !tbaa !101
  %443 = fsub float %437, %442
  %444 = getelementptr inbounds %struct.nk_rect, ptr %33, i32 0, i32 0
  %445 = load float, ptr %444, align 4, !tbaa !95
  %446 = fsub float %443, %445
  %447 = getelementptr inbounds %struct.nk_rect, ptr %33, i32 0, i32 2
  store float %446, ptr %447, align 4, !tbaa !94
  br label %448

448:                                              ; preds = %432, %419
  %449 = load ptr, ptr %11, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.nk_window, ptr %449, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %33, i64 16, i1 false), !tbaa.struct !80
  %451 = load ptr, ptr %9, align 8, !tbaa !5
  %452 = load i32, ptr %10, align 4, !tbaa !9
  %453 = load ptr, ptr %12, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.nk_style, ptr %453, i32 0, i32 0
  %455 = load ptr, ptr %454, align 8, !tbaa !100
  %456 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %457 = load <2 x float>, ptr %456, align 4
  %458 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %459 = load <2 x float>, ptr %458, align 4
  call void @_ZL14nk_widget_textP17nk_command_buffer7nk_rectPKciPK7nk_textjPK12nk_user_font(ptr noundef %450, <2 x float> %457, <2 x float> %459, ptr noundef %451, i32 noundef %452, ptr noundef %18, i32 noundef 17, ptr noundef %455)
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  %460 = load ptr, ptr %8, align 8, !tbaa !5
  %461 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !103
  %462 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %14, i64 16, i1 false), !tbaa.struct !80
  %463 = load <2 x float>, ptr %41, align 4
  %464 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 0
  %465 = load <2 x float>, ptr %464, align 4
  %466 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 1
  %467 = load <2 x float>, ptr %466, align 4
  %468 = call noundef i32 @_ZL14nk_combo_beginP10nk_contextP9nk_window7nk_vec2i7nk_rect(ptr noundef %460, ptr noundef %461, <2 x float> %463, i32 noundef %462, <2 x float> %465, <2 x float> %467)
  store i32 %468, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %469

469:                                              ; preds = %448, %92, %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  %470 = load i32, ptr %6, align 4
  ret i32 %470
}

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


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

%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%union.nk_handle = type { ptr }
%struct.nk_rect = type { float, float, float, float }
%struct.nk_text = type { %struct.nk_vec2, %struct.nk_color, %struct.nk_color }
%struct.nk_vec2 = type { float, float }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 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
@_ZL8nk_white = external hidden local_unnamed_addr constant %struct.nk_color, align 1
@__PRETTY_FUNCTION__.nk_combo_begin_image_text = external hidden unnamed_addr constant [107 x i8], align 1

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

; Function Attrs: mustprogress 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) local_unnamed_addr #2

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

; Function Attrs: mustprogress 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_rgba(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

10:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.1, i32 noundef 29215, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_begin_image_text) #9
  unreachable

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

14:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.84, ptr noundef nonnull @.str.1, i32 noundef 29216, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_begin_image_text) #9
  unreachable

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %13, i64 168
  %17 = load ptr, ptr %16, align 8, !tbaa !62
  %.not119 = icmp eq ptr %17, null
  br i1 %.not119, label %18, label %19

18:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.85, ptr noundef nonnull @.str.1, i32 noundef 29217, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_begin_image_text) #9
  unreachable

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %0, i64 360
  %21 = call i32 @nk_widget(ptr noundef nonnull %6, ptr noundef nonnull %0)
  %.not120 = icmp eq i32 %21, 0
  br i1 %.not120, label %135, label %22

22:                                               ; preds = %19
  %23 = load ptr, ptr %16, align 8, !tbaa !62
  %24 = getelementptr inbounds i8, ptr %23, i64 4
  %25 = load i32, ptr %24, align 4, !tbaa !70
  %26 = and i32 %25, 4096
  %27 = icmp ne i32 %26, 0
  %28 = icmp eq i32 %21, 2
  %or.cond = or i1 %28, %27
  %29 = select i1 %or.cond, ptr null, ptr %0
  %30 = getelementptr inbounds i8, ptr %0, i64 9144
  %.sroa.040.0.copyload = load <2 x float>, ptr %6, align 16
  %.sroa.241.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.241.0.copyload = load <2 x float>, ptr %.sroa.241.0..sroa_idx, align 8
  %31 = call noundef i32 @_ZL18nk_button_behaviorPj7nk_rectPK8nk_input18nk_button_behavior(ptr noundef nonnull %30, <2 x float> %.sroa.040.0.copyload, <2 x float> %.sroa.241.0.copyload, ptr noundef %29, i32 noundef 0)
  %.not121 = icmp ne i32 %31, 0
  %spec.select = zext i1 %.not121 to i32
  %32 = load i32, ptr %30, align 8, !tbaa !76
  %33 = and i32 %32, 32
  %.not122 = icmp eq i32 %33, 0
  %34 = getelementptr inbounds i8, ptr %7, i64 12
  %35 = and i32 %32, 16
  %.not123 = icmp eq i32 %35, 0
  %.134 = select i1 %.not123, i64 7792, i64 7832
  %.135 = select i1 %.not123, i64 7916, i64 7920
  %.sink133 = select i1 %.not122, i64 %.134, i64 7872
  %.sink132 = select i1 %.not122, i64 %.135, i64 7924
  %36 = getelementptr inbounds i8, ptr %0, i64 %.sink133
  %37 = getelementptr inbounds i8, ptr %0, i64 %.sink132
  %.sink131 = load i32, ptr %37, align 4
  store i32 %.sink131, ptr %34, align 4
  %38 = load i32, ptr %36, align 8, !tbaa !77
  switch i32 %38, label %60 [
    i32 1, label %39
    i32 2, label %44
    i32 0, label %49
  ]

39:                                               ; preds = %22
  %40 = call i32 @nk_rgba(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %41 = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %40, ptr %41, align 8
  %42 = getelementptr inbounds i8, ptr %13, i64 104
  %.sroa.037.0.copyload = load <2 x float>, ptr %6, align 16
  %.sroa.238.0.copyload = load <2 x float>, ptr %.sroa.241.0..sroa_idx, align 8
  %43 = getelementptr inbounds i8, ptr %36, i64 8
  %.sroa.036.0.copyload = load i32, ptr @_ZL8nk_white, align 1
  call void @nk_draw_image(ptr noundef nonnull %42, <2 x float> %.sroa.037.0.copyload, <2 x float> %.sroa.238.0.copyload, ptr noundef nonnull %43, i32 %.sroa.036.0.copyload)
  br label %60

44:                                               ; preds = %22
  %45 = call i32 @nk_rgba(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %46 = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %45, ptr %46, align 8
  %47 = getelementptr inbounds i8, ptr %13, i64 104
  %.sroa.033.0.copyload = load <2 x float>, ptr %6, align 16
  %.sroa.234.0.copyload = load <2 x float>, ptr %.sroa.241.0..sroa_idx, align 8
  %48 = getelementptr inbounds i8, ptr %36, i64 8
  %.sroa.032.0.copyload = load i32, ptr @_ZL8nk_white, align 1
  call void @nk_draw_nine_slice(ptr noundef nonnull %47, <2 x float> %.sroa.033.0.copyload, <2 x float> %.sroa.234.0.copyload, ptr noundef nonnull %48, i32 %.sroa.032.0.copyload)
  br label %60

49:                                               ; preds = %22
  %50 = getelementptr inbounds i8, ptr %36, i64 8
  %51 = getelementptr inbounds i8, ptr %7, i64 8
  %52 = load i32, ptr %50, align 8
  store i32 %52, ptr %51, align 8
  %53 = getelementptr inbounds i8, ptr %13, i64 104
  %.sroa.030.0.copyload = load <2 x float>, ptr %6, align 16
  %.sroa.231.0.copyload = load <2 x float>, ptr %.sroa.241.0..sroa_idx, align 8
  %54 = getelementptr inbounds i8, ptr %0, i64 8160
  %55 = load float, ptr %54, align 8, !tbaa !78
  call void @nk_fill_rect(ptr noundef nonnull %53, <2 x float> %.sroa.030.0.copyload, <2 x float> %.sroa.231.0.copyload, float noundef %55, i32 %52)
  %.sroa.027.0.copyload = load <2 x float>, ptr %6, align 16
  %.sroa.228.0.copyload = load <2 x float>, ptr %.sroa.241.0..sroa_idx, align 8
  %56 = load float, ptr %54, align 8, !tbaa !78
  %57 = getelementptr inbounds i8, ptr %0, i64 8156
  %58 = load float, ptr %57, align 4, !tbaa !79
  %59 = getelementptr inbounds i8, ptr %0, i64 7912
  %.sroa.026.0.copyload = load i32, ptr %59, align 8
  call void @nk_stroke_rect(ptr noundef nonnull %53, <2 x float> %.sroa.027.0.copyload, <2 x float> %.sroa.228.0.copyload, float noundef %56, float noundef %58, i32 %.sroa.026.0.copyload)
  br label %60

60:                                               ; preds = %49, %44, %39, %22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %61 = load i32, ptr %30, align 8, !tbaa !76
  %62 = and i32 %61, 16
  %.not124 = icmp eq i32 %62, 0
  %. = select i1 %.not121, i64 8152, i64 8144
  %.sink = select i1 %.not124, i64 %., i64 8148
  %63 = getelementptr inbounds i8, ptr %0, i64 %.sink
  %.0114 = load i32, ptr %63, align 4, !tbaa !80
  %.not126 = icmp eq i32 %.0114, 0
  %64 = getelementptr inbounds i8, ptr %6, i64 12
  %65 = load float, ptr %64, align 4, !tbaa !81
  %66 = getelementptr inbounds i8, ptr %0, i64 8172
  %67 = getelementptr inbounds i8, ptr %0, i64 8176
  %68 = load float, ptr %67, align 4, !tbaa !82
  %69 = call float @llvm.fmuladd.f32(float %68, float -2.000000e+00, float %65)
  %70 = getelementptr inbounds i8, ptr %9, i64 8
  store float %69, ptr %70, align 4, !tbaa !83
  %71 = load float, ptr %6, align 16, !tbaa !84
  %72 = load float, ptr %.sroa.241.0..sroa_idx, align 8, !tbaa !83
  %73 = fadd float %71, %72
  %74 = fsub float %73, %65
  %75 = load float, ptr %66, align 4, !tbaa !85
  %76 = fsub float %74, %75
  store float %76, ptr %9, align 4, !tbaa !84
  %77 = getelementptr inbounds i8, ptr %6, i64 4
  %78 = load float, ptr %77, align 4, !tbaa !86
  %79 = fadd float %68, %78
  %80 = getelementptr inbounds i8, ptr %9, i64 4
  store float %79, ptr %80, align 4, !tbaa !86
  %81 = getelementptr inbounds i8, ptr %9, i64 12
  store float %69, ptr %81, align 4, !tbaa !81
  %82 = getelementptr inbounds i8, ptr %0, i64 8096
  %83 = getelementptr inbounds i8, ptr %8, i64 4
  %84 = getelementptr inbounds i8, ptr %8, i64 8
  %85 = load <2 x float>, ptr %82, align 8, !tbaa !87
  %86 = extractelement <2 x float> %85, i64 0
  %87 = fadd float %76, %86
  store float %87, ptr %8, align 4, !tbaa !84
  %88 = extractelement <2 x float> %85, i64 1
  %89 = fadd float %79, %88
  store float %89, ptr %83, align 4, !tbaa !86
  %90 = insertelement <2 x float> poison, float %69, i64 0
  %91 = shufflevector <2 x float> %90, <2 x float> poison, <2 x i32> zeroinitializer
  %92 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %85, <2 x float> <float -2.000000e+00, float -2.000000e+00>, <2 x float> %91)
  store <2 x float> %92, ptr %84, align 4, !tbaa !87
  br i1 %.not126, label %97, label %93

93:                                               ; preds = %60
  %94 = getelementptr inbounds i8, ptr %0, i64 7944
  %95 = getelementptr inbounds i8, ptr %13, i64 104
  %96 = load ptr, ptr %20, align 8, !tbaa !88
  call void @_ZL21nk_draw_button_symbolP17nk_command_bufferPK7nk_rectS3_jPK15nk_style_button14nk_symbol_typePK12nk_user_font(ptr noundef nonnull %95, ptr noundef nonnull %9, ptr noundef nonnull %8, i32 noundef %61, ptr noundef nonnull %94, i32 noundef %.0114, ptr noundef %96)
  %.pre = load float, ptr %77, align 4, !tbaa !86
  %.pre127 = load float, ptr %64, align 4, !tbaa !81
  br label %97

97:                                               ; preds = %93, %60
  %98 = phi float [ %.pre127, %93 ], [ %65, %60 ]
  %99 = phi float [ %.pre, %93 ], [ %78, %60 ]
  %100 = load <4 x float>, ptr %6, align 16
  %101 = shufflevector <4 x float> %100, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %102 = getelementptr inbounds i8, ptr %0, i64 8164
  %103 = load <2 x float>, ptr %102, align 4, !tbaa !87
  %104 = insertelement <2 x float> %101, float %99, i64 1
  %105 = fadd <2 x float> %104, %103
  %106 = extractelement <2 x float> %103, i64 1
  %107 = call float @llvm.fmuladd.f32(float %106, float -2.000000e+00, float %98)
  %108 = insertelement <2 x float> poison, float %107, i64 0
  %.sroa.6.8.vec.insert = shufflevector <2 x float> %108, <2 x float> poison, <2 x i32> zeroinitializer
  %109 = getelementptr inbounds i8, ptr %13, i64 104
  %.sroa.06.0.copyload = load i32, ptr @_ZL8nk_white, align 1
  call void @nk_draw_image(ptr noundef nonnull %109, <2 x float> %105, <2 x float> %.sroa.6.8.vec.insert, ptr noundef nonnull %3, i32 %.sroa.06.0.copyload)
  %110 = call <2 x float> @nk_vec2(float noundef 0.000000e+00, float noundef 0.000000e+00)
  store <2 x float> %110, ptr %7, align 8
  %111 = extractelement <2 x float> %105, i64 0
  %112 = fadd float %111, %107
  %113 = getelementptr inbounds i8, ptr %0, i64 8180
  %114 = load float, ptr %113, align 4, !tbaa !89
  %115 = fadd float %112, %114
  %116 = load float, ptr %77, align 4, !tbaa !86
  %117 = load <2 x float>, ptr %102, align 4, !tbaa !87
  %118 = insertelement <2 x float> poison, float %115, i64 0
  %119 = insertelement <2 x float> %118, float %116, i64 1
  %120 = fadd <2 x float> %119, %117
  %121 = load float, ptr %64, align 4, !tbaa !81
  %122 = extractelement <2 x float> %117, i64 1
  %123 = call float @llvm.fmuladd.f32(float %122, float -2.000000e+00, float %121)
  %124 = load float, ptr %6, align 16
  %125 = load float, ptr %.sroa.241.0..sroa_idx, align 8
  %126 = fadd float %124, %125
  %127 = load float, ptr %9, align 4
  %.sink130 = select i1 %.not126, float %126, float %127
  %128 = extractelement <2 x float> %117, i64 0
  %129 = fsub float %.sink130, %128
  %130 = extractelement <2 x float> %120, i64 0
  %131 = fsub float %129, %130
  %132 = insertelement <2 x float> poison, float %131, i64 0
  %.sroa.7.8.vec.insert25 = insertelement <2 x float> %132, float %123, i64 1
  %133 = load ptr, ptr %20, align 8, !tbaa !88
  call void @_ZL14nk_widget_textP17nk_command_buffer7nk_rectPKciPK7nk_textjPK12nk_user_font(ptr noundef nonnull %109, <2 x float> %120, <2 x float> %.sroa.7.8.vec.insert25, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %7, i32 noundef 17, ptr noundef %133)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  %.sroa.0.0.copyload = load <2 x float>, ptr %6, align 16
  %.sroa.2.0.copyload = load <2 x float>, ptr %.sroa.241.0..sroa_idx, align 8
  %134 = call noundef i32 @_ZL14nk_combo_beginP10nk_contextP9nk_window7nk_vec2i7nk_rect(ptr noundef nonnull %0, ptr noundef nonnull %13, <2 x float> %4, i32 noundef %spec.select, <2 x float> %.sroa.0.0.copyload, <2 x float> %.sroa.2.0.copyload)
  br label %135

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

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

attributes #0 = { 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 #1 = { mustprogress 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { 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, !11, i64 4}
!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 = !{!6, !11, i64 9144}
!77 = !{!20, !21, i64 0}
!78 = !{!15, !14, i64 7800}
!79 = !{!15, !14, i64 7796}
!80 = !{!25, !25, i64 0}
!81 = !{!52, !14, i64 12}
!82 = !{!15, !14, i64 7816}
!83 = !{!52, !14, i64 8}
!84 = !{!52, !14, i64 0}
!85 = !{!15, !14, i64 7812}
!86 = !{!52, !14, i64 4}
!87 = !{!14, !14, i64 0}
!88 = !{!15, !16, i64 0}
!89 = !{!15, !14, i64 7820}


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