; 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_separator = external hidden unnamed_addr constant [94 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [29 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_text(ptr noundef, ptr noundef, i32 noundef, <2 x float>) #5

; Function Attrs: mustprogress uwtable
declare dso_local i32 @nk_combo_item_text(ptr noundef, ptr noundef, i32 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_separator(ptr noundef %0, ptr noundef %1, i32 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 i32, align 4
  %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 ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.nk_vec2, align 4
  %25 = 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 i32 %2, ptr %12, align 4, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %7
  br label %31

29:                                               ; preds = %7
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.1, i32 noundef 29404, ptr noundef @__PRETTY_FUNCTION__.nk_combo_separator) #7
  unreachable

30:                                               ; No predecessors!
  br label %31

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

34:                                               ; preds = %31
  br label %37

35:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.143, ptr noundef @.str.1, i32 noundef 29405, ptr noundef @__PRETTY_FUNCTION__.nk_combo_separator) #7
  unreachable

36:                                               ; No predecessors!
  br label %37

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

40:                                               ; preds = %37
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %45, label %43

43:                                               ; preds = %40, %37
  %44 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %44, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %193

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

85:                                               ; preds = %45
  %86 = getelementptr inbounds %struct.nk_vec2, ptr %9, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !80
  br label %91

88:                                               ; preds = %45
  %89 = load i32, ptr %17, align 4, !tbaa !9
  %90 = sitofp i32 %89 to float
  br label %91

91:                                               ; preds = %88, %85
  %92 = phi float [ %87, %85 ], [ %90, %88 ]
  %93 = getelementptr inbounds %struct.nk_vec2, ptr %9, i32 0, i32 1
  store float %92, ptr %93, align 4, !tbaa !80
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %94, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %130, %91
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %99, label %133

99:                                               ; preds = %95
  %100 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %100, ptr %21, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %113, %99
  %102 = load ptr, ptr %21, align 8, !tbaa !5
  %103 = load i8, ptr %102, align 1, !tbaa !81
  %104 = icmp ne i8 %103, 0
  br i1 %104, label %105, label %111

105:                                              ; preds = %101
  %106 = load ptr, ptr %21, align 8, !tbaa !5
  %107 = load i8, ptr %106, align 1, !tbaa !81
  %108 = sext i8 %107 to i32
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = icmp ne i32 %108, %109
  br label %111

111:                                              ; preds = %105, %101
  %112 = phi i1 [ false, %101 ], [ %110, %105 ]
  br i1 %112, label %113, label %116

113:                                              ; preds = %111
  %114 = load ptr, ptr %21, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i32 1
  store ptr %115, ptr %21, align 8, !tbaa !5
  br label %101, !llvm.loop !82

116:                                              ; preds = %111
  %117 = load ptr, ptr %21, align 8, !tbaa !5
  %118 = load ptr, ptr %20, align 8, !tbaa !5
  %119 = ptrtoint ptr %117 to i64
  %120 = ptrtoint ptr %118 to i64
  %121 = sub i64 %119, %120
  %122 = trunc i64 %121 to i32
  store i32 %122, ptr %22, align 4, !tbaa !9
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = icmp eq i32 %123, %124
  br i1 %125, label %126, label %127

126:                                              ; preds = %116
  br label %133

127:                                              ; preds = %116
  %128 = load ptr, ptr %21, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 1
  store ptr %129, ptr %20, align 8, !tbaa !5
  br label %130

130:                                              ; preds = %127
  %131 = load i32, ptr %16, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %16, align 4, !tbaa !9
  br label %95, !llvm.loop !84

133:                                              ; preds = %126, %95
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = load i32, ptr %22, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !11
  %137 = load <2 x float>, ptr %25, align 4
  %138 = call i32 @nk_combo_begin_text(ptr noundef %134, ptr noundef %135, i32 noundef %136, <2 x float> %137)
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %191

140:                                              ; preds = %133
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %141, ptr %20, align 8, !tbaa !5
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = sitofp i32 %143 to float
  call void @nk_layout_row_dynamic(ptr noundef %142, float noundef %144, i32 noundef 1)
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %186, %140
  %146 = load i32, ptr %16, align 4, !tbaa !9
  %147 = load i32, ptr %14, align 4, !tbaa !9
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %149, label %189

149:                                              ; preds = %145
  %150 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %150, ptr %21, align 8, !tbaa !5
  br label %151

151:                                              ; preds = %163, %149
  %152 = load ptr, ptr %21, align 8, !tbaa !5
  %153 = load i8, ptr %152, align 1, !tbaa !81
  %154 = icmp ne i8 %153, 0
  br i1 %154, label %155, label %161

155:                                              ; preds = %151
  %156 = load ptr, ptr %21, align 8, !tbaa !5
  %157 = load i8, ptr %156, align 1, !tbaa !81
  %158 = sext i8 %157 to i32
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = icmp ne i32 %158, %159
  br label %161

161:                                              ; preds = %155, %151
  %162 = phi i1 [ false, %151 ], [ %160, %155 ]
  br i1 %162, label %163, label %166

163:                                              ; preds = %161
  %164 = load ptr, ptr %21, align 8, !tbaa !5
  %165 = getelementptr inbounds i8, ptr %164, i32 1
  store ptr %165, ptr %21, align 8, !tbaa !5
  br label %151, !llvm.loop !85

166:                                              ; preds = %161
  %167 = load ptr, ptr %21, align 8, !tbaa !5
  %168 = load ptr, ptr %20, align 8, !tbaa !5
  %169 = ptrtoint ptr %167 to i64
  %170 = ptrtoint ptr %168 to i64
  %171 = sub i64 %169, %170
  %172 = trunc i64 %171 to i32
  store i32 %172, ptr %22, align 4, !tbaa !9
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = load ptr, ptr %20, align 8, !tbaa !5
  %175 = load i32, ptr %22, align 4, !tbaa !9
  %176 = call i32 @nk_combo_item_text(ptr noundef %173, ptr noundef %174, i32 noundef %175, i32 noundef 17)
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %180

178:                                              ; preds = %166
  %179 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %179, ptr %13, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %178, %166
  %181 = load ptr, ptr %20, align 8, !tbaa !5
  %182 = load i32, ptr %22, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %181, i64 %183
  %185 = getelementptr inbounds i8, ptr %184, i64 1
  store ptr %185, ptr %20, align 8, !tbaa !5
  br label %186

186:                                              ; preds = %180
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %16, align 4, !tbaa !9
  br label %145, !llvm.loop !86

189:                                              ; preds = %145
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  call void @nk_combo_end(ptr noundef %190)
  br label %191

191:                                              ; preds = %189, %133
  %192 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %192, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %193

193:                                              ; preds = %191, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  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
  %194 = load i32, ptr %8, align 4
  ret i32 %194
}

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 = !{!7, !7, i64 0}
!82 = distinct !{!82, !83}
!83 = !{!"llvm.loop.mustprogress"}
!84 = distinct !{!84, !83}
!85 = distinct !{!85, !83}
!86 = distinct !{!86, !83}


; 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_separator = external hidden unnamed_addr constant [94 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [29 x i8], align 1

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

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

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

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

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

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

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

8:                                                ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.1, i32 noundef 29404, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_separator) #4
  unreachable

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

10:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.143, ptr noundef nonnull @.str.1, i32 noundef 29405, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_separator) #4
  unreachable

11:                                               ; preds = %9
  %12 = 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
  %13 = getelementptr inbounds i8, ptr %0, i64 17824
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %14, i64 168
  %16 = load ptr, ptr %15, align 8, !tbaa !63
  %17 = load i32, ptr %16, align 8, !tbaa !71
  %18 = tail call <2 x float> @_ZL20nk_panel_get_paddingPK8nk_style13nk_panel_type(ptr noundef nonnull %12, i32 noundef %17)
  %19 = fptosi float %.sroa.3.0.copyload to i32
  %20 = add i32 %19, %5
  %21 = mul i32 %20, %4
  %.sroa.022.4.vec.extract = extractelement <2 x float> %18, i64 1
  %22 = fptosi float %.sroa.022.4.vec.extract to i32
  %23 = add i32 %22, %19
  %24 = shl i32 %23, 1
  %25 = add nsw i32 %24, %21
  %.sroa.058.4.vec.extract = extractelement <2 x float> %6, i64 1
  %26 = sitofp i32 %25 to float
  %27 = fcmp olt float %.sroa.058.4.vec.extract, %26
  %28 = select i1 %27, float %.sroa.058.4.vec.extract, float %26
  %.sroa.058.4.vec.insert = insertelement <2 x float> %6, float %28, i64 1
  %29 = icmp sgt i32 %4, 0
  br i1 %29, label %.preheader84, label %45

.preheader84:                                     ; preds = %11, %35
  %.06686 = phi ptr [ %33, %35 ], [ %1, %11 ]
  %.07085 = phi i32 [ %36, %35 ], [ 0, %11 ]
  br label %30

30:                                               ; preds = %30, %.preheader84
  %.064 = phi ptr [ %33, %30 ], [ %.06686, %.preheader84 ]
  %31 = load i8, ptr %.064, align 1, !tbaa !77
  %.not77 = icmp eq i8 %31, 0
  %32 = sext i8 %31 to i32
  %.not78 = icmp eq i32 %32, %2
  %or.cond = or i1 %.not77, %.not78
  %33 = getelementptr inbounds i8, ptr %.064, i64 1
  br i1 %or.cond, label %.critedge, label %30, !llvm.loop !78

.critedge:                                        ; preds = %30
  %34 = icmp eq i32 %.07085, %3
  br i1 %34, label %.critedge._crit_edge, label %35

35:                                               ; preds = %.critedge
  %36 = add nuw nsw i32 %.07085, 1
  %exitcond.not = icmp eq i32 %36, %4
  br i1 %exitcond.not, label %._crit_edge, label %.preheader84, !llvm.loop !80

.critedge._crit_edge:                             ; preds = %.critedge
  %37 = ptrtoint ptr %.064 to i64
  %38 = ptrtoint ptr %.06686 to i64
  %39 = sub i64 %37, %38
  %40 = trunc i64 %39 to i32
  br label %45

._crit_edge:                                      ; preds = %35
  %41 = ptrtoint ptr %.064 to i64
  %42 = ptrtoint ptr %.06686 to i64
  %43 = sub i64 %41, %42
  %44 = trunc i64 %43 to i32
  br label %45

45:                                               ; preds = %._crit_edge, %.critedge._crit_edge, %11
  %.066.lcssa = phi ptr [ %.06686, %.critedge._crit_edge ], [ %33, %._crit_edge ], [ %1, %11 ]
  %.1 = phi i32 [ %40, %.critedge._crit_edge ], [ %44, %._crit_edge ], [ 0, %11 ]
  %46 = tail call i32 @nk_combo_begin_text(ptr noundef nonnull %0, ptr noundef nonnull %.066.lcssa, i32 noundef %.1, <2 x float> %.sroa.058.4.vec.insert)
  %.not79 = icmp eq i32 %46, 0
  br i1 %.not79, label %62, label %47

47:                                               ; preds = %45
  %48 = sitofp i32 %5 to float
  tail call void @nk_layout_row_dynamic(ptr noundef nonnull %0, float noundef %48, i32 noundef 1)
  br i1 %29, label %.preheader, label %._crit_edge100

.preheader:                                       ; preds = %47, %.critedge3
  %.16799 = phi ptr [ %60, %.critedge3 ], [ %1, %47 ]
  %.06898 = phi i32 [ %spec.select, %.critedge3 ], [ %3, %47 ]
  %.17197 = phi i32 [ %61, %.critedge3 ], [ 0, %47 ]
  br label %49

49:                                               ; preds = %49, %.preheader
  %.165 = phi ptr [ %52, %49 ], [ %.16799, %.preheader ]
  %50 = load i8, ptr %.165, align 1, !tbaa !77
  %.not80 = icmp eq i8 %50, 0
  %51 = sext i8 %50 to i32
  %.not81 = icmp eq i32 %51, %2
  %or.cond83 = or i1 %.not80, %.not81
  %52 = getelementptr inbounds i8, ptr %.165, i64 1
  br i1 %or.cond83, label %.critedge3, label %49, !llvm.loop !81

.critedge3:                                       ; preds = %49
  %53 = ptrtoint ptr %.165 to i64
  %54 = ptrtoint ptr %.16799 to i64
  %55 = sub i64 %53, %54
  %56 = trunc i64 %55 to i32
  %57 = tail call i32 @nk_combo_item_text(ptr noundef nonnull %0, ptr noundef nonnull %.16799, i32 noundef %56, i32 noundef 17)
  %.not82 = icmp eq i32 %57, 0
  %spec.select = select i1 %.not82, i32 %.06898, i32 %.17197
  %sext = shl i64 %55, 32
  %58 = ashr exact i64 %sext, 32
  %59 = getelementptr inbounds i8, ptr %.16799, i64 %58
  %60 = getelementptr inbounds i8, ptr %59, i64 1
  %61 = add nuw nsw i32 %.17197, 1
  %exitcond104.not = icmp eq i32 %61, %4
  br i1 %exitcond104.not, label %._crit_edge100, label %.preheader, !llvm.loop !82

._crit_edge100:                                   ; preds = %.critedge3, %47
  %.068.lcssa = phi i32 [ %3, %47 ], [ %spec.select, %.critedge3 ]
  tail call void @nk_combo_end(ptr noundef nonnull %0)
  br label %62

62:                                               ; preds = %45, %._crit_edge100
  %.2 = phi i32 [ %.068.lcssa, %._crit_edge100 ], [ %3, %45 ]
  ret i32 %.2
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!7, !7, i64 0}
!78 = distinct !{!78, !79}
!79 = !{!"llvm.loop.mustprogress"}
!80 = distinct !{!80, !79}
!81 = distinct !{!81, !79}
!82 = distinct !{!82, !79}


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