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

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

%struct.nk_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_image }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%union.nk_handle = type { ptr }
%struct.nk_style_toggle = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, float, float, %union.nk_handle, ptr, ptr }
%struct.nk_style_selectable = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_slider = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_progress = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_property = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, i32, float, float, %struct.nk_vec2, %struct.nk_style_edit, %struct.nk_style_button, %struct.nk_style_button, %union.nk_handle, ptr, ptr }
%struct.nk_style_edit = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_scrollbar, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, float, %struct.nk_vec2, %struct.nk_vec2, float }
%struct.nk_style_chart = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, %struct.nk_vec2 }
%struct.nk_style_scrollbar = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_tab = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, i32, i32, float, float, float, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_combo = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, i32, i32, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window = type { %struct.nk_style_window_header, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, float, float, float, float, float, float, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window_header = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_button, %struct.nk_style_button, i32, i32, i32, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_buffer = type { [2 x %struct.nk_buffer_marker], %struct.nk_allocator, i32, %struct.nk_memory, float, i64, i64, i64, i64 }
%struct.nk_buffer_marker = type { i32, i64 }
%struct.nk_allocator = type { %union.nk_handle, ptr, ptr }
%struct.nk_memory = type { ptr, i64 }
%struct.nk_clipboard = type { %union.nk_handle, ptr, ptr }
%struct.nk_configuration_stacks = type { %struct.nk_config_stack_style_item, %struct.nk_config_stack_float, %struct.nk_config_stack_vec2, %struct.nk_config_stack_flags, %struct.nk_config_stack_color, %struct.nk_config_stack_user_font, %struct.nk_config_stack_button_behavior }
%struct.nk_config_stack_style_item = type { i32, [16 x %struct.nk_config_stack_style_item_element] }
%struct.nk_config_stack_style_item_element = type { ptr, %struct.nk_style_item }
%struct.nk_config_stack_float = type { i32, [32 x %struct.nk_config_stack_float_element] }
%struct.nk_config_stack_float_element = type { ptr, float }
%struct.nk_config_stack_vec2 = type { i32, [16 x %struct.nk_config_stack_vec2_element] }
%struct.nk_config_stack_vec2_element = type { ptr, %struct.nk_vec2 }
%struct.nk_config_stack_flags = type { i32, [32 x %struct.nk_config_stack_flags_element] }
%struct.nk_config_stack_flags_element = type { ptr, i32 }
%struct.nk_config_stack_color = type { i32, [32 x %struct.nk_config_stack_color_element] }
%struct.nk_config_stack_color_element = type { ptr, %struct.nk_color }
%struct.nk_config_stack_user_font = type { i32, [8 x %struct.nk_config_stack_user_font_element] }
%struct.nk_config_stack_user_font_element = type { ptr, ptr }
%struct.nk_config_stack_button_behavior = type { i32, [8 x %struct.nk_config_stack_button_behavior_element] }
%struct.nk_config_stack_button_behavior_element = type { ptr, i32 }
%struct.nk_draw_list = type { %struct.nk_rect, [12 x %struct.nk_vec2], %struct.nk_convert_config, ptr, ptr, ptr, i32, i32, i32, i64, i32, i32, i32, i32 }
%struct.nk_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.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = 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.137 = external hidden unnamed_addr constant [29 x i8], align 1

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind 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) #3 {
  %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
  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) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %7
  br label %29

28:                                               ; preds = %7
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 25204, ptr noundef @__PRETTY_FUNCTION__.nk_combo_separator) #6
  unreachable

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

32:                                               ; preds = %29
  br label %34

33:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.137, ptr noundef @.str.2, i32 noundef 25205, ptr noundef @__PRETTY_FUNCTION__.nk_combo_separator) #6
  unreachable

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

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

40:                                               ; preds = %37, %34
  %41 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %41, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %192

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

82:                                               ; preds = %42
  %83 = getelementptr inbounds %struct.nk_vec2, ptr %9, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !72
  br label %88

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

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

92:                                               ; preds = %128, %88
  %93 = load i32, ptr %16, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %96, label %131

96:                                               ; preds = %92
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %97, ptr %21, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %111, %96
  %99 = load ptr, ptr %21, align 8, !tbaa !5
  %100 = load i8, ptr %99, align 1, !tbaa !73
  %101 = sext i8 %100 to i32
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %109

103:                                              ; preds = %98
  %104 = load ptr, ptr %21, align 8, !tbaa !5
  %105 = load i8, ptr %104, align 1, !tbaa !73
  %106 = sext i8 %105 to i32
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = icmp ne i32 %106, %107
  br label %109

109:                                              ; preds = %103, %98
  %110 = phi i1 [ false, %98 ], [ %108, %103 ]
  br i1 %110, label %111, label %114

111:                                              ; preds = %109
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i32 1
  store ptr %113, ptr %21, align 8, !tbaa !5
  br label %98, !llvm.loop !74

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

124:                                              ; preds = %114
  br label %131

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

128:                                              ; preds = %125
  %129 = load i32, ptr %16, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %16, align 4, !tbaa !9
  br label %92, !llvm.loop !76

131:                                              ; preds = %124, %92
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = load ptr, ptr %20, align 8, !tbaa !5
  %134 = load i32, ptr %22, align 4, !tbaa !9
  %135 = load <2 x float>, ptr %9, align 4
  %136 = call i32 @nk_combo_begin_text(ptr noundef %132, ptr noundef %133, i32 noundef %134, <2 x float> %135)
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %190

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

143:                                              ; preds = %185, %138
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = load i32, ptr %14, align 4, !tbaa !9
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %147, label %188

147:                                              ; preds = %143
  %148 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %148, ptr %21, align 8, !tbaa !5
  br label %149

149:                                              ; preds = %162, %147
  %150 = load ptr, ptr %21, align 8, !tbaa !5
  %151 = load i8, ptr %150, align 1, !tbaa !73
  %152 = sext i8 %151 to i32
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %160

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

160:                                              ; preds = %154, %149
  %161 = phi i1 [ false, %149 ], [ %159, %154 ]
  br i1 %161, label %162, label %165

162:                                              ; preds = %160
  %163 = load ptr, ptr %21, align 8, !tbaa !5
  %164 = getelementptr inbounds i8, ptr %163, i32 1
  store ptr %164, ptr %21, align 8, !tbaa !5
  br label %149, !llvm.loop !77

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

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

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

185:                                              ; preds = %179
  %186 = load i32, ptr %16, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %16, align 4, !tbaa !9
  br label %143, !llvm.loop !78

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

190:                                              ; preds = %188, %131
  %191 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %191, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %192

192:                                              ; preds = %190, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %193 = load i32, ptr %8, align 4
  ret i32 %193
}

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

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

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


; 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.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = 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.137 = 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: nounwind uwtable
declare hidden <2 x float> @nk_panel_get_padding(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nounwind 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 #1 {
  %.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.33, ptr noundef nonnull @.str.2, i32 noundef 25204, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_separator) #3
  unreachable

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

10:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.137, ptr noundef nonnull @.str.2, i32 noundef 25205, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_combo_separator) #3
  unreachable

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 360
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 7824
  %.sroa.3.0.copyload = load float, ptr %.sroa.3.0..sroa_idx, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 16600
  %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 !57
  %17 = load i32, ptr %16, align 8, !tbaa !64
  %18 = tail call <2 x float> @nk_panel_get_padding(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.021.4.vec.extract = extractelement <2 x float> %18, i64 1
  %22 = fptosi float %.sroa.021.4.vec.extract to i32
  %23 = add i32 %22, %19
  %24 = shl i32 %23, 1
  %25 = add nsw i32 %24, %21
  %.sroa.057.4.vec.extract = extractelement <2 x float> %6, i64 1
  %26 = sitofp i32 %25 to float
  %27 = fcmp olt float %.sroa.057.4.vec.extract, %26
  %28 = select i1 %27, float %.sroa.057.4.vec.extract, float %26
  %.sroa.057.4.vec.insert = insertelement <2 x float> %6, float %28, i64 1
  %29 = icmp sgt i32 %4, 0
  br i1 %29, label %.preheader83, label %45

.preheader83:                                     ; preds = %11, %35
  %.06585 = phi ptr [ %33, %35 ], [ %1, %11 ]
  %.06984 = phi i32 [ %36, %35 ], [ 0, %11 ]
  br label %30

30:                                               ; preds = %30, %.preheader83
  %.063 = phi ptr [ %33, %30 ], [ %.06585, %.preheader83 ]
  %31 = load i8, ptr %.063, align 1, !tbaa !69
  %.not76 = icmp eq i8 %31, 0
  %32 = sext i8 %31 to i32
  %.not77 = icmp eq i32 %32, %2
  %or.cond = or i1 %.not76, %.not77
  %33 = getelementptr inbounds i8, ptr %.063, i64 1
  br i1 %or.cond, label %.critedge, label %30, !llvm.loop !70

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

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

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

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

45:                                               ; preds = %._crit_edge, %.critedge._crit_edge, %11
  %.065.lcssa = phi ptr [ %.06585, %.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 %.065.lcssa, i32 noundef %.1, <2 x float> %.sroa.057.4.vec.insert)
  %.not78 = icmp eq i32 %46, 0
  br i1 %.not78, 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_edge99

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

49:                                               ; preds = %49, %.preheader
  %.164 = phi ptr [ %52, %49 ], [ %.16698, %.preheader ]
  %50 = load i8, ptr %.164, align 1, !tbaa !69
  %.not79 = icmp eq i8 %50, 0
  %51 = sext i8 %50 to i32
  %.not80 = icmp eq i32 %51, %2
  %or.cond82 = or i1 %.not79, %.not80
  %52 = getelementptr inbounds i8, ptr %.164, i64 1
  br i1 %or.cond82, label %.critedge3, label %49, !llvm.loop !73

.critedge3:                                       ; preds = %49
  %53 = ptrtoint ptr %.164 to i64
  %54 = ptrtoint ptr %.16698 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 %.16698, i32 noundef %56, i32 noundef 17)
  %.not81 = icmp eq i32 %57, 0
  %spec.select = select i1 %.not81, i32 %.06797, i32 %.17096
  %sext = shl i64 %55, 32
  %58 = ashr exact i64 %sext, 32
  %59 = getelementptr inbounds i8, ptr %.16698, i64 %58
  %60 = getelementptr inbounds i8, ptr %59, i64 1
  %61 = add nuw nsw i32 %.17096, 1
  %exitcond103.not = icmp eq i32 %61, %4
  br i1 %exitcond103.not, label %._crit_edge99, label %.preheader, !llvm.loop !74

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


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