; 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_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%union.nk_handle = type { ptr }
%struct.nk_rect = type { float, float, float, float }
%struct.nk_vec2 = type { 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_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_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_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_command = type { i32, i64 }
%struct.nk_command_scissor = type { %struct.nk_command, i16, i16, i16, i16 }
%struct.nk_command_line = type { %struct.nk_command, i16, %struct.nk_vec2i, %struct.nk_vec2i, %struct.nk_color }
%struct.nk_vec2i = type { i16, i16 }
%struct.nk_command_curve = type { %struct.nk_command, i16, %struct.nk_vec2i, %struct.nk_vec2i, [2 x %struct.nk_vec2i], %struct.nk_color }
%struct.nk_command_rect = type { %struct.nk_command, i16, i16, i16, i16, i16, i16, %struct.nk_color }
%struct.nk_command_rect_filled = type { %struct.nk_command, i16, i16, i16, i16, i16, %struct.nk_color }
%struct.nk_command_rect_multi_color = type { %struct.nk_command, i16, i16, i16, i16, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color }
%struct.nk_command_circle = type { %struct.nk_command, i16, i16, i16, i16, i16, %struct.nk_color }
%struct.nk_command_circle_filled = type { %struct.nk_command, i16, i16, i16, i16, %struct.nk_color }
%struct.nk_command_arc = type { %struct.nk_command, i16, i16, i16, i16, [2 x float], %struct.nk_color }
%struct.nk_command_arc_filled = type { %struct.nk_command, i16, i16, i16, [2 x float], %struct.nk_color }
%struct.nk_command_triangle = type { %struct.nk_command, i16, %struct.nk_vec2i, %struct.nk_vec2i, %struct.nk_vec2i, %struct.nk_color }
%struct.nk_command_triangle_filled = type { %struct.nk_command, %struct.nk_vec2i, %struct.nk_vec2i, %struct.nk_vec2i, %struct.nk_color }
%struct.nk_command_polygon = type { %struct.nk_command, %struct.nk_color, i16, i16, [1 x %struct.nk_vec2i] }
%struct.nk_command_polygon_filled = type { %struct.nk_command, %struct.nk_color, i16, [1 x %struct.nk_vec2i] }
%struct.nk_command_polyline = type { %struct.nk_command, %struct.nk_color, i16, i16, [1 x %struct.nk_vec2i] }
%struct.nk_command_text = type { %struct.nk_command, ptr, %struct.nk_color, %struct.nk_color, i16, i16, i16, i16, float, i32, [1 x i8] }
%struct.nk_command_image = type { %struct.nk_command, i16, i16, i16, i16, %struct.nk_image, %struct.nk_color }
%struct.nk_command_custom = type { %struct.nk_command, i16, i16, i16, i16, %union.nk_handle, ptr }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__.nk_convert = external hidden unnamed_addr constant [135 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [20 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: nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @nk_rect(float noundef, float noundef, float noundef, float noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_draw_list_setup(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_draw_list_path_fill(ptr noundef, i32) #1

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_draw_list_add_image(ptr noundef, ptr noundef byval(%struct.nk_image) align 8, <2 x float>, <2 x float>, i32) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @nk_convert(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %struct.nk_rect, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %struct.nk_vec2, align 4
  %19 = alloca %struct.nk_vec2, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %struct.nk_vec2, align 4
  %22 = alloca %struct.nk_vec2, align 4
  %23 = alloca %struct.nk_vec2, align 4
  %24 = alloca %struct.nk_vec2, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %struct.nk_rect, align 4
  %27 = alloca ptr, align 8
  %28 = alloca %struct.nk_rect, align 4
  %29 = alloca ptr, align 8
  %30 = alloca %struct.nk_rect, align 4
  %31 = alloca ptr, align 8
  %32 = alloca %struct.nk_vec2, align 4
  %33 = alloca ptr, align 8
  %34 = alloca %struct.nk_vec2, align 4
  %35 = alloca ptr, align 8
  %36 = alloca %struct.nk_vec2, align 4
  %37 = alloca %struct.nk_vec2, align 4
  %38 = alloca ptr, align 8
  %39 = alloca %struct.nk_vec2, align 4
  %40 = alloca %struct.nk_vec2, align 4
  %41 = alloca ptr, align 8
  %42 = alloca %struct.nk_vec2, align 4
  %43 = alloca %struct.nk_vec2, align 4
  %44 = alloca %struct.nk_vec2, align 4
  %45 = alloca ptr, align 8
  %46 = alloca %struct.nk_vec2, align 4
  %47 = alloca %struct.nk_vec2, align 4
  %48 = alloca %struct.nk_vec2, align 4
  %49 = alloca i32, align 4
  %50 = alloca ptr, align 8
  %51 = alloca %struct.nk_vec2, align 4
  %52 = alloca i32, align 4
  %53 = alloca ptr, align 8
  %54 = alloca %struct.nk_vec2, align 4
  %55 = alloca i32, align 4
  %56 = alloca ptr, align 8
  %57 = alloca %struct.nk_vec2, align 4
  %58 = alloca ptr, align 8
  %59 = alloca %struct.nk_rect, align 4
  %60 = alloca ptr, align 8
  %61 = alloca %struct.nk_rect, align 4
  %62 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %66

65:                                               ; preds = %5
  br label %67

66:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 10395, ptr noundef @__PRETTY_FUNCTION__.nk_convert) #5
  unreachable

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

70:                                               ; preds = %67
  br label %72

71:                                               ; preds = %67
  call void @__assert_fail(ptr noundef @.str.29, ptr noundef @.str.2, i32 noundef 10396, ptr noundef @__PRETTY_FUNCTION__.nk_convert) #5
  unreachable

72:                                               ; preds = %70
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  br label %77

76:                                               ; preds = %72
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.2, i32 noundef 10397, ptr noundef @__PRETTY_FUNCTION__.nk_convert) #5
  unreachable

77:                                               ; preds = %75
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  br label %82

81:                                               ; preds = %77
  call void @__assert_fail(ptr noundef @.str.31, ptr noundef @.str.2, i32 noundef 10398, ptr noundef @__PRETTY_FUNCTION__.nk_convert) #5
  unreachable

82:                                               ; preds = %80
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %86

85:                                               ; preds = %82
  br label %87

86:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str.2, i32 noundef 10399, ptr noundef @__PRETTY_FUNCTION__.nk_convert) #5
  unreachable

87:                                               ; preds = %85
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.nk_convert_config, ptr %88, i32 0, i32 7
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %93

92:                                               ; preds = %87
  br label %94

93:                                               ; preds = %87
  call void @__assert_fail(ptr noundef @.str.34, ptr noundef @.str.2, i32 noundef 10400, ptr noundef @__PRETTY_FUNCTION__.nk_convert) #5
  unreachable

94:                                               ; preds = %92
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.nk_convert_config, ptr %95, i32 0, i32 8
  %97 = load i64, ptr %96, align 8, !tbaa !17
  %98 = icmp ne i64 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %94
  br label %101

100:                                              ; preds = %94
  call void @__assert_fail(ptr noundef @.str.35, ptr noundef @.str.2, i32 noundef 10401, ptr noundef @__PRETTY_FUNCTION__.nk_convert) #5
  unreachable

101:                                              ; preds = %99
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %121

104:                                              ; preds = %101
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %121

107:                                              ; preds = %104
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %121

110:                                              ; preds = %107
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %121

113:                                              ; preds = %110
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %121

116:                                              ; preds = %113
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.nk_convert_config, ptr %117, i32 0, i32 7
  %119 = load ptr, ptr %118, align 8, !tbaa !11
  %120 = icmp ne ptr %119, null
  br i1 %120, label %122, label %121

121:                                              ; preds = %116, %113, %110, %107, %104, %101
  store i32 1, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %931

122:                                              ; preds = %116
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.nk_context, ptr %123, i32 0, i32 8
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.nk_convert_config, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 4, !tbaa !18
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.nk_convert_config, ptr %132, i32 0, i32 2
  %134 = load i32, ptr %133, align 8, !tbaa !19
  call void @nk_draw_list_setup(ptr noundef %124, ptr noundef %125, ptr noundef %126, ptr noundef %127, ptr noundef %128, i32 noundef %131, i32 noundef %134)
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = call ptr @nk__begin(ptr noundef %135)
  store ptr %136, ptr %13, align 8, !tbaa !5
  br label %137

137:                                              ; preds = %883, %122
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = icmp ne ptr %138, null
  br i1 %139, label %140, label %887

140:                                              ; preds = %137
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.nk_command, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !20
  switch i32 %143, label %881 [
    i32 0, label %882
    i32 1, label %144
    i32 2, label %173
    i32 3, label %208
    i32 4, label %274
    i32 5, label %314
    i32 6, label %350
    i32 7, label %391
    i32 8, label %432
    i32 9, label %469
    i32 10, label %519
    i32 11, label %565
    i32 12, label %612
    i32 13, label %655
    i32 14, label %698
    i32 15, label %737
    i32 16, label %780
    i32 17, label %824
    i32 18, label %858
  ]

144:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %145, ptr %15, align 8, !tbaa !5
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.nk_context, ptr %146, i32 0, i32 8
  %148 = load ptr, ptr %15, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.nk_command_scissor, ptr %148, i32 0, i32 1
  %150 = load i16, ptr %149, align 8, !tbaa !22
  %151 = sitofp i16 %150 to float
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.nk_command_scissor, ptr %152, i32 0, i32 2
  %154 = load i16, ptr %153, align 2, !tbaa !25
  %155 = sitofp i16 %154 to float
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.nk_command_scissor, ptr %156, i32 0, i32 3
  %158 = load i16, ptr %157, align 4, !tbaa !26
  %159 = uitofp i16 %158 to float
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.nk_command_scissor, ptr %160, i32 0, i32 4
  %162 = load i16, ptr %161, align 2, !tbaa !27
  %163 = uitofp i16 %162 to float
  %164 = call { <2 x float>, <2 x float> } @nk_rect(float noundef %151, float noundef %155, float noundef %159, float noundef %163)
  %165 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %166 = extractvalue { <2 x float>, <2 x float> } %164, 0
  store <2 x float> %166, ptr %165, align 4
  %167 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %168 = extractvalue { <2 x float>, <2 x float> } %164, 1
  store <2 x float> %168, ptr %167, align 4
  %169 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %170 = load <2 x float>, ptr %169, align 4
  %171 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %172 = load <2 x float>, ptr %171, align 4
  call void @nk_draw_list_add_clip(ptr noundef %147, <2 x float> %170, <2 x float> %172)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %882

173:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %174, ptr %17, align 8, !tbaa !5
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.nk_context, ptr %175, i32 0, i32 8
  %177 = load ptr, ptr %17, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.nk_command_line, ptr %177, i32 0, i32 2
  %179 = getelementptr inbounds %struct.nk_vec2i, ptr %178, i32 0, i32 0
  %180 = load i16, ptr %179, align 2, !tbaa !28
  %181 = sitofp i16 %180 to float
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.nk_command_line, ptr %182, i32 0, i32 2
  %184 = getelementptr inbounds %struct.nk_vec2i, ptr %183, i32 0, i32 1
  %185 = load i16, ptr %184, align 2, !tbaa !32
  %186 = sitofp i16 %185 to float
  %187 = call <2 x float> @nk_vec2(float noundef %181, float noundef %186)
  store <2 x float> %187, ptr %18, align 4
  %188 = load ptr, ptr %17, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.nk_command_line, ptr %188, i32 0, i32 3
  %190 = getelementptr inbounds %struct.nk_vec2i, ptr %189, i32 0, i32 0
  %191 = load i16, ptr %190, align 2, !tbaa !33
  %192 = sitofp i16 %191 to float
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.nk_command_line, ptr %193, i32 0, i32 3
  %195 = getelementptr inbounds %struct.nk_vec2i, ptr %194, i32 0, i32 1
  %196 = load i16, ptr %195, align 2, !tbaa !34
  %197 = sitofp i16 %196 to float
  %198 = call <2 x float> @nk_vec2(float noundef %192, float noundef %197)
  store <2 x float> %198, ptr %19, align 4
  %199 = load ptr, ptr %17, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.nk_command_line, ptr %199, i32 0, i32 4
  %201 = load ptr, ptr %17, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.nk_command_line, ptr %201, i32 0, i32 1
  %203 = load i16, ptr %202, align 8, !tbaa !35
  %204 = uitofp i16 %203 to float
  %205 = load <2 x float>, ptr %18, align 4
  %206 = load <2 x float>, ptr %19, align 4
  %207 = load i32, ptr %200, align 2
  call void @nk_draw_list_stroke_line(ptr noundef %176, <2 x float> %205, <2 x float> %206, i32 %207, float noundef %204)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %882

208:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %209, ptr %20, align 8, !tbaa !5
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.nk_context, ptr %210, i32 0, i32 8
  %212 = load ptr, ptr %20, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.nk_command_curve, ptr %212, i32 0, i32 2
  %214 = getelementptr inbounds %struct.nk_vec2i, ptr %213, i32 0, i32 0
  %215 = load i16, ptr %214, align 2, !tbaa !36
  %216 = sitofp i16 %215 to float
  %217 = load ptr, ptr %20, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.nk_command_curve, ptr %217, i32 0, i32 2
  %219 = getelementptr inbounds %struct.nk_vec2i, ptr %218, i32 0, i32 1
  %220 = load i16, ptr %219, align 2, !tbaa !38
  %221 = sitofp i16 %220 to float
  %222 = call <2 x float> @nk_vec2(float noundef %216, float noundef %221)
  store <2 x float> %222, ptr %21, align 4
  %223 = load ptr, ptr %20, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.nk_command_curve, ptr %223, i32 0, i32 4
  %225 = getelementptr inbounds [2 x %struct.nk_vec2i], ptr %224, i64 0, i64 0
  %226 = getelementptr inbounds %struct.nk_vec2i, ptr %225, i32 0, i32 0
  %227 = load i16, ptr %226, align 2, !tbaa !39
  %228 = sitofp i16 %227 to float
  %229 = load ptr, ptr %20, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.nk_command_curve, ptr %229, i32 0, i32 4
  %231 = getelementptr inbounds [2 x %struct.nk_vec2i], ptr %230, i64 0, i64 0
  %232 = getelementptr inbounds %struct.nk_vec2i, ptr %231, i32 0, i32 1
  %233 = load i16, ptr %232, align 2, !tbaa !40
  %234 = sitofp i16 %233 to float
  %235 = call <2 x float> @nk_vec2(float noundef %228, float noundef %234)
  store <2 x float> %235, ptr %22, align 4
  %236 = load ptr, ptr %20, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.nk_command_curve, ptr %236, i32 0, i32 4
  %238 = getelementptr inbounds [2 x %struct.nk_vec2i], ptr %237, i64 0, i64 1
  %239 = getelementptr inbounds %struct.nk_vec2i, ptr %238, i32 0, i32 0
  %240 = load i16, ptr %239, align 2, !tbaa !39
  %241 = sitofp i16 %240 to float
  %242 = load ptr, ptr %20, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.nk_command_curve, ptr %242, i32 0, i32 4
  %244 = getelementptr inbounds [2 x %struct.nk_vec2i], ptr %243, i64 0, i64 1
  %245 = getelementptr inbounds %struct.nk_vec2i, ptr %244, i32 0, i32 1
  %246 = load i16, ptr %245, align 2, !tbaa !40
  %247 = sitofp i16 %246 to float
  %248 = call <2 x float> @nk_vec2(float noundef %241, float noundef %247)
  store <2 x float> %248, ptr %23, align 4
  %249 = load ptr, ptr %20, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.nk_command_curve, ptr %249, i32 0, i32 3
  %251 = getelementptr inbounds %struct.nk_vec2i, ptr %250, i32 0, i32 0
  %252 = load i16, ptr %251, align 2, !tbaa !41
  %253 = sitofp i16 %252 to float
  %254 = load ptr, ptr %20, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.nk_command_curve, ptr %254, i32 0, i32 3
  %256 = getelementptr inbounds %struct.nk_vec2i, ptr %255, i32 0, i32 1
  %257 = load i16, ptr %256, align 2, !tbaa !42
  %258 = sitofp i16 %257 to float
  %259 = call <2 x float> @nk_vec2(float noundef %253, float noundef %258)
  store <2 x float> %259, ptr %24, align 4
  %260 = load ptr, ptr %20, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.nk_command_curve, ptr %260, i32 0, i32 5
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.nk_convert_config, ptr %262, i32 0, i32 5
  %264 = load i32, ptr %263, align 4, !tbaa !43
  %265 = load ptr, ptr %20, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.nk_command_curve, ptr %265, i32 0, i32 1
  %267 = load i16, ptr %266, align 8, !tbaa !44
  %268 = uitofp i16 %267 to float
  %269 = load <2 x float>, ptr %21, align 4
  %270 = load <2 x float>, ptr %22, align 4
  %271 = load <2 x float>, ptr %23, align 4
  %272 = load <2 x float>, ptr %24, align 4
  %273 = load i32, ptr %261, align 2
  call void @nk_draw_list_stroke_curve(ptr noundef %211, <2 x float> %269, <2 x float> %270, <2 x float> %271, <2 x float> %272, i32 %273, i32 noundef %264, float noundef %268)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %882

274:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %275 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %275, ptr %25, align 8, !tbaa !5
  %276 = load ptr, ptr %7, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.nk_context, ptr %276, i32 0, i32 8
  %278 = load ptr, ptr %25, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.nk_command_rect, ptr %278, i32 0, i32 3
  %280 = load i16, ptr %279, align 4, !tbaa !45
  %281 = sitofp i16 %280 to float
  %282 = load ptr, ptr %25, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.nk_command_rect, ptr %282, i32 0, i32 4
  %284 = load i16, ptr %283, align 2, !tbaa !47
  %285 = sitofp i16 %284 to float
  %286 = load ptr, ptr %25, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.nk_command_rect, ptr %286, i32 0, i32 5
  %288 = load i16, ptr %287, align 8, !tbaa !48
  %289 = uitofp i16 %288 to float
  %290 = load ptr, ptr %25, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.nk_command_rect, ptr %290, i32 0, i32 6
  %292 = load i16, ptr %291, align 2, !tbaa !49
  %293 = uitofp i16 %292 to float
  %294 = call { <2 x float>, <2 x float> } @nk_rect(float noundef %281, float noundef %285, float noundef %289, float noundef %293)
  %295 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 0
  %296 = extractvalue { <2 x float>, <2 x float> } %294, 0
  store <2 x float> %296, ptr %295, align 4
  %297 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 1
  %298 = extractvalue { <2 x float>, <2 x float> } %294, 1
  store <2 x float> %298, ptr %297, align 4
  %299 = load ptr, ptr %25, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.nk_command_rect, ptr %299, i32 0, i32 7
  %301 = load ptr, ptr %25, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.nk_command_rect, ptr %301, i32 0, i32 1
  %303 = load i16, ptr %302, align 8, !tbaa !50
  %304 = uitofp i16 %303 to float
  %305 = load ptr, ptr %25, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.nk_command_rect, ptr %305, i32 0, i32 2
  %307 = load i16, ptr %306, align 2, !tbaa !51
  %308 = uitofp i16 %307 to float
  %309 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 0
  %310 = load <2 x float>, ptr %309, align 4
  %311 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 1
  %312 = load <2 x float>, ptr %311, align 4
  %313 = load i32, ptr %300, align 4
  call void @nk_draw_list_stroke_rect(ptr noundef %277, <2 x float> %310, <2 x float> %312, i32 %313, float noundef %304, float noundef %308)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %882

314:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %315 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %315, ptr %27, align 8, !tbaa !5
  %316 = load ptr, ptr %7, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.nk_context, ptr %316, i32 0, i32 8
  %318 = load ptr, ptr %27, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.nk_command_rect_filled, ptr %318, i32 0, i32 2
  %320 = load i16, ptr %319, align 2, !tbaa !52
  %321 = sitofp i16 %320 to float
  %322 = load ptr, ptr %27, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.nk_command_rect_filled, ptr %322, i32 0, i32 3
  %324 = load i16, ptr %323, align 4, !tbaa !54
  %325 = sitofp i16 %324 to float
  %326 = load ptr, ptr %27, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.nk_command_rect_filled, ptr %326, i32 0, i32 4
  %328 = load i16, ptr %327, align 2, !tbaa !55
  %329 = uitofp i16 %328 to float
  %330 = load ptr, ptr %27, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.nk_command_rect_filled, ptr %330, i32 0, i32 5
  %332 = load i16, ptr %331, align 8, !tbaa !56
  %333 = uitofp i16 %332 to float
  %334 = call { <2 x float>, <2 x float> } @nk_rect(float noundef %321, float noundef %325, float noundef %329, float noundef %333)
  %335 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 0
  %336 = extractvalue { <2 x float>, <2 x float> } %334, 0
  store <2 x float> %336, ptr %335, align 4
  %337 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 1
  %338 = extractvalue { <2 x float>, <2 x float> } %334, 1
  store <2 x float> %338, ptr %337, align 4
  %339 = load ptr, ptr %27, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.nk_command_rect_filled, ptr %339, i32 0, i32 6
  %341 = load ptr, ptr %27, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.nk_command_rect_filled, ptr %341, i32 0, i32 1
  %343 = load i16, ptr %342, align 8, !tbaa !57
  %344 = uitofp i16 %343 to float
  %345 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 0
  %346 = load <2 x float>, ptr %345, align 4
  %347 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 1
  %348 = load <2 x float>, ptr %347, align 4
  %349 = load i32, ptr %340, align 2
  call void @nk_draw_list_fill_rect(ptr noundef %317, <2 x float> %346, <2 x float> %348, i32 %349, float noundef %344)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  br label %882

350:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %351 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %351, ptr %29, align 8, !tbaa !5
  %352 = load ptr, ptr %7, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.nk_context, ptr %352, i32 0, i32 8
  %354 = load ptr, ptr %29, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.nk_command_rect_multi_color, ptr %354, i32 0, i32 1
  %356 = load i16, ptr %355, align 8, !tbaa !58
  %357 = sitofp i16 %356 to float
  %358 = load ptr, ptr %29, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.nk_command_rect_multi_color, ptr %358, i32 0, i32 2
  %360 = load i16, ptr %359, align 2, !tbaa !60
  %361 = sitofp i16 %360 to float
  %362 = load ptr, ptr %29, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.nk_command_rect_multi_color, ptr %362, i32 0, i32 3
  %364 = load i16, ptr %363, align 4, !tbaa !61
  %365 = uitofp i16 %364 to float
  %366 = load ptr, ptr %29, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.nk_command_rect_multi_color, ptr %366, i32 0, i32 4
  %368 = load i16, ptr %367, align 2, !tbaa !62
  %369 = uitofp i16 %368 to float
  %370 = call { <2 x float>, <2 x float> } @nk_rect(float noundef %357, float noundef %361, float noundef %365, float noundef %369)
  %371 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %30, i32 0, i32 0
  %372 = extractvalue { <2 x float>, <2 x float> } %370, 0
  store <2 x float> %372, ptr %371, align 4
  %373 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %30, i32 0, i32 1
  %374 = extractvalue { <2 x float>, <2 x float> } %370, 1
  store <2 x float> %374, ptr %373, align 4
  %375 = load ptr, ptr %29, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.nk_command_rect_multi_color, ptr %375, i32 0, i32 5
  %377 = load ptr, ptr %29, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.nk_command_rect_multi_color, ptr %377, i32 0, i32 6
  %379 = load ptr, ptr %29, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.nk_command_rect_multi_color, ptr %379, i32 0, i32 8
  %381 = load ptr, ptr %29, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.nk_command_rect_multi_color, ptr %381, i32 0, i32 7
  %383 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %30, i32 0, i32 0
  %384 = load <2 x float>, ptr %383, align 4
  %385 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %30, i32 0, i32 1
  %386 = load <2 x float>, ptr %385, align 4
  %387 = load i32, ptr %376, align 8
  %388 = load i32, ptr %378, align 4
  %389 = load i32, ptr %380, align 4
  %390 = load i32, ptr %382, align 8
  call void @nk_draw_list_fill_rect_multi_color(ptr noundef %353, <2 x float> %384, <2 x float> %386, i32 %387, i32 %388, i32 %389, i32 %390)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %882

391:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %392 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %392, ptr %31, align 8, !tbaa !5
  %393 = load ptr, ptr %7, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.nk_context, ptr %393, i32 0, i32 8
  %395 = load ptr, ptr %31, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.nk_command_circle, ptr %395, i32 0, i32 1
  %397 = load i16, ptr %396, align 8, !tbaa !63
  %398 = sitofp i16 %397 to float
  %399 = load ptr, ptr %31, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.nk_command_circle, ptr %399, i32 0, i32 4
  %401 = load i16, ptr %400, align 2, !tbaa !65
  %402 = uitofp i16 %401 to float
  %403 = fdiv float %402, 2.000000e+00
  %404 = fadd float %398, %403
  %405 = load ptr, ptr %31, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.nk_command_circle, ptr %405, i32 0, i32 2
  %407 = load i16, ptr %406, align 2, !tbaa !66
  %408 = sitofp i16 %407 to float
  %409 = load ptr, ptr %31, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.nk_command_circle, ptr %409, i32 0, i32 5
  %411 = load i16, ptr %410, align 8, !tbaa !67
  %412 = uitofp i16 %411 to float
  %413 = fdiv float %412, 2.000000e+00
  %414 = fadd float %408, %413
  %415 = call <2 x float> @nk_vec2(float noundef %404, float noundef %414)
  store <2 x float> %415, ptr %32, align 4
  %416 = load ptr, ptr %31, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.nk_command_circle, ptr %416, i32 0, i32 4
  %418 = load i16, ptr %417, align 2, !tbaa !65
  %419 = uitofp i16 %418 to float
  %420 = fdiv float %419, 2.000000e+00
  %421 = load ptr, ptr %31, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.nk_command_circle, ptr %421, i32 0, i32 6
  %423 = load ptr, ptr %11, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.nk_convert_config, ptr %423, i32 0, i32 3
  %425 = load i32, ptr %424, align 4, !tbaa !68
  %426 = load ptr, ptr %31, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.nk_command_circle, ptr %426, i32 0, i32 3
  %428 = load i16, ptr %427, align 4, !tbaa !69
  %429 = uitofp i16 %428 to float
  %430 = load <2 x float>, ptr %32, align 4
  %431 = load i32, ptr %422, align 2
  call void @nk_draw_list_stroke_circle(ptr noundef %394, <2 x float> %430, float noundef %420, i32 %431, i32 noundef %425, float noundef %429)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  br label %882

432:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %433 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %433, ptr %33, align 8, !tbaa !5
  %434 = load ptr, ptr %7, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.nk_context, ptr %434, i32 0, i32 8
  %436 = load ptr, ptr %33, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.nk_command_circle_filled, ptr %436, i32 0, i32 1
  %438 = load i16, ptr %437, align 8, !tbaa !70
  %439 = sitofp i16 %438 to float
  %440 = load ptr, ptr %33, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.nk_command_circle_filled, ptr %440, i32 0, i32 3
  %442 = load i16, ptr %441, align 4, !tbaa !72
  %443 = uitofp i16 %442 to float
  %444 = fdiv float %443, 2.000000e+00
  %445 = fadd float %439, %444
  %446 = load ptr, ptr %33, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.nk_command_circle_filled, ptr %446, i32 0, i32 2
  %448 = load i16, ptr %447, align 2, !tbaa !73
  %449 = sitofp i16 %448 to float
  %450 = load ptr, ptr %33, align 8, !tbaa !5
  %451 = getelementptr inbounds %struct.nk_command_circle_filled, ptr %450, i32 0, i32 4
  %452 = load i16, ptr %451, align 2, !tbaa !74
  %453 = uitofp i16 %452 to float
  %454 = fdiv float %453, 2.000000e+00
  %455 = fadd float %449, %454
  %456 = call <2 x float> @nk_vec2(float noundef %445, float noundef %455)
  store <2 x float> %456, ptr %34, align 4
  %457 = load ptr, ptr %33, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.nk_command_circle_filled, ptr %457, i32 0, i32 3
  %459 = load i16, ptr %458, align 4, !tbaa !72
  %460 = uitofp i16 %459 to float
  %461 = fdiv float %460, 2.000000e+00
  %462 = load ptr, ptr %33, align 8, !tbaa !5
  %463 = getelementptr inbounds %struct.nk_command_circle_filled, ptr %462, i32 0, i32 5
  %464 = load ptr, ptr %11, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.nk_convert_config, ptr %464, i32 0, i32 3
  %466 = load i32, ptr %465, align 4, !tbaa !68
  %467 = load <2 x float>, ptr %34, align 4
  %468 = load i32, ptr %463, align 8
  call void @nk_draw_list_fill_circle(ptr noundef %435, <2 x float> %467, float noundef %461, i32 %468, i32 noundef %466)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  br label %882

469:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %470 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %470, ptr %35, align 8, !tbaa !5
  %471 = load ptr, ptr %7, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.nk_context, ptr %471, i32 0, i32 8
  %473 = load ptr, ptr %35, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.nk_command_arc, ptr %473, i32 0, i32 1
  %475 = load i16, ptr %474, align 8, !tbaa !75
  %476 = sitofp i16 %475 to float
  %477 = load ptr, ptr %35, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.nk_command_arc, ptr %477, i32 0, i32 2
  %479 = load i16, ptr %478, align 2, !tbaa !77
  %480 = sitofp i16 %479 to float
  %481 = call <2 x float> @nk_vec2(float noundef %476, float noundef %480)
  store <2 x float> %481, ptr %36, align 4
  %482 = load <2 x float>, ptr %36, align 4
  call void @nk_draw_list_path_line_to(ptr noundef %472, <2 x float> %482)
  %483 = load ptr, ptr %7, align 8, !tbaa !5
  %484 = getelementptr inbounds %struct.nk_context, ptr %483, i32 0, i32 8
  %485 = load ptr, ptr %35, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.nk_command_arc, ptr %485, i32 0, i32 1
  %487 = load i16, ptr %486, align 8, !tbaa !75
  %488 = sitofp i16 %487 to float
  %489 = load ptr, ptr %35, align 8, !tbaa !5
  %490 = getelementptr inbounds %struct.nk_command_arc, ptr %489, i32 0, i32 2
  %491 = load i16, ptr %490, align 2, !tbaa !77
  %492 = sitofp i16 %491 to float
  %493 = call <2 x float> @nk_vec2(float noundef %488, float noundef %492)
  store <2 x float> %493, ptr %37, align 4
  %494 = load ptr, ptr %35, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.nk_command_arc, ptr %494, i32 0, i32 3
  %496 = load i16, ptr %495, align 4, !tbaa !78
  %497 = uitofp i16 %496 to float
  %498 = load ptr, ptr %35, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.nk_command_arc, ptr %498, i32 0, i32 5
  %500 = getelementptr inbounds [2 x float], ptr %499, i64 0, i64 0
  %501 = load float, ptr %500, align 8, !tbaa !79
  %502 = load ptr, ptr %35, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.nk_command_arc, ptr %502, i32 0, i32 5
  %504 = getelementptr inbounds [2 x float], ptr %503, i64 0, i64 1
  %505 = load float, ptr %504, align 4, !tbaa !79
  %506 = load ptr, ptr %11, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.nk_convert_config, ptr %506, i32 0, i32 4
  %508 = load i32, ptr %507, align 8, !tbaa !80
  %509 = load <2 x float>, ptr %37, align 4
  call void @nk_draw_list_path_arc_to(ptr noundef %484, <2 x float> %509, float noundef %497, float noundef %501, float noundef %505, i32 noundef %508)
  %510 = load ptr, ptr %7, align 8, !tbaa !5
  %511 = getelementptr inbounds %struct.nk_context, ptr %510, i32 0, i32 8
  %512 = load ptr, ptr %35, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.nk_command_arc, ptr %512, i32 0, i32 6
  %514 = load ptr, ptr %35, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.nk_command_arc, ptr %514, i32 0, i32 4
  %516 = load i16, ptr %515, align 2, !tbaa !81
  %517 = uitofp i16 %516 to float
  %518 = load i32, ptr %513, align 8
  call void @nk_draw_list_path_stroke(ptr noundef %511, i32 %518, i32 noundef 1, float noundef %517)
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  br label %882

519:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %520 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %520, ptr %38, align 8, !tbaa !5
  %521 = load ptr, ptr %7, align 8, !tbaa !5
  %522 = getelementptr inbounds %struct.nk_context, ptr %521, i32 0, i32 8
  %523 = load ptr, ptr %38, align 8, !tbaa !5
  %524 = getelementptr inbounds %struct.nk_command_arc_filled, ptr %523, i32 0, i32 1
  %525 = load i16, ptr %524, align 8, !tbaa !82
  %526 = sitofp i16 %525 to float
  %527 = load ptr, ptr %38, align 8, !tbaa !5
  %528 = getelementptr inbounds %struct.nk_command_arc_filled, ptr %527, i32 0, i32 2
  %529 = load i16, ptr %528, align 2, !tbaa !84
  %530 = sitofp i16 %529 to float
  %531 = call <2 x float> @nk_vec2(float noundef %526, float noundef %530)
  store <2 x float> %531, ptr %39, align 4
  %532 = load <2 x float>, ptr %39, align 4
  call void @nk_draw_list_path_line_to(ptr noundef %522, <2 x float> %532)
  %533 = load ptr, ptr %7, align 8, !tbaa !5
  %534 = getelementptr inbounds %struct.nk_context, ptr %533, i32 0, i32 8
  %535 = load ptr, ptr %38, align 8, !tbaa !5
  %536 = getelementptr inbounds %struct.nk_command_arc_filled, ptr %535, i32 0, i32 1
  %537 = load i16, ptr %536, align 8, !tbaa !82
  %538 = sitofp i16 %537 to float
  %539 = load ptr, ptr %38, align 8, !tbaa !5
  %540 = getelementptr inbounds %struct.nk_command_arc_filled, ptr %539, i32 0, i32 2
  %541 = load i16, ptr %540, align 2, !tbaa !84
  %542 = sitofp i16 %541 to float
  %543 = call <2 x float> @nk_vec2(float noundef %538, float noundef %542)
  store <2 x float> %543, ptr %40, align 4
  %544 = load ptr, ptr %38, align 8, !tbaa !5
  %545 = getelementptr inbounds %struct.nk_command_arc_filled, ptr %544, i32 0, i32 3
  %546 = load i16, ptr %545, align 4, !tbaa !85
  %547 = uitofp i16 %546 to float
  %548 = load ptr, ptr %38, align 8, !tbaa !5
  %549 = getelementptr inbounds %struct.nk_command_arc_filled, ptr %548, i32 0, i32 4
  %550 = getelementptr inbounds [2 x float], ptr %549, i64 0, i64 0
  %551 = load float, ptr %550, align 8, !tbaa !79
  %552 = load ptr, ptr %38, align 8, !tbaa !5
  %553 = getelementptr inbounds %struct.nk_command_arc_filled, ptr %552, i32 0, i32 4
  %554 = getelementptr inbounds [2 x float], ptr %553, i64 0, i64 1
  %555 = load float, ptr %554, align 4, !tbaa !79
  %556 = load ptr, ptr %11, align 8, !tbaa !5
  %557 = getelementptr inbounds %struct.nk_convert_config, ptr %556, i32 0, i32 4
  %558 = load i32, ptr %557, align 8, !tbaa !80
  %559 = load <2 x float>, ptr %40, align 4
  call void @nk_draw_list_path_arc_to(ptr noundef %534, <2 x float> %559, float noundef %547, float noundef %551, float noundef %555, i32 noundef %558)
  %560 = load ptr, ptr %7, align 8, !tbaa !5
  %561 = getelementptr inbounds %struct.nk_context, ptr %560, i32 0, i32 8
  %562 = load ptr, ptr %38, align 8, !tbaa !5
  %563 = getelementptr inbounds %struct.nk_command_arc_filled, ptr %562, i32 0, i32 5
  %564 = load i32, ptr %563, align 8
  call void @nk_draw_list_path_fill(ptr noundef %561, i32 %564)
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  br label %882

565:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  %566 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %566, ptr %41, align 8, !tbaa !5
  %567 = load ptr, ptr %7, align 8, !tbaa !5
  %568 = getelementptr inbounds %struct.nk_context, ptr %567, i32 0, i32 8
  %569 = load ptr, ptr %41, align 8, !tbaa !5
  %570 = getelementptr inbounds %struct.nk_command_triangle, ptr %569, i32 0, i32 2
  %571 = getelementptr inbounds %struct.nk_vec2i, ptr %570, i32 0, i32 0
  %572 = load i16, ptr %571, align 2, !tbaa !86
  %573 = sitofp i16 %572 to float
  %574 = load ptr, ptr %41, align 8, !tbaa !5
  %575 = getelementptr inbounds %struct.nk_command_triangle, ptr %574, i32 0, i32 2
  %576 = getelementptr inbounds %struct.nk_vec2i, ptr %575, i32 0, i32 1
  %577 = load i16, ptr %576, align 2, !tbaa !88
  %578 = sitofp i16 %577 to float
  %579 = call <2 x float> @nk_vec2(float noundef %573, float noundef %578)
  store <2 x float> %579, ptr %42, align 4
  %580 = load ptr, ptr %41, align 8, !tbaa !5
  %581 = getelementptr inbounds %struct.nk_command_triangle, ptr %580, i32 0, i32 3
  %582 = getelementptr inbounds %struct.nk_vec2i, ptr %581, i32 0, i32 0
  %583 = load i16, ptr %582, align 2, !tbaa !89
  %584 = sitofp i16 %583 to float
  %585 = load ptr, ptr %41, align 8, !tbaa !5
  %586 = getelementptr inbounds %struct.nk_command_triangle, ptr %585, i32 0, i32 3
  %587 = getelementptr inbounds %struct.nk_vec2i, ptr %586, i32 0, i32 1
  %588 = load i16, ptr %587, align 2, !tbaa !90
  %589 = sitofp i16 %588 to float
  %590 = call <2 x float> @nk_vec2(float noundef %584, float noundef %589)
  store <2 x float> %590, ptr %43, align 4
  %591 = load ptr, ptr %41, align 8, !tbaa !5
  %592 = getelementptr inbounds %struct.nk_command_triangle, ptr %591, i32 0, i32 4
  %593 = getelementptr inbounds %struct.nk_vec2i, ptr %592, i32 0, i32 0
  %594 = load i16, ptr %593, align 2, !tbaa !91
  %595 = sitofp i16 %594 to float
  %596 = load ptr, ptr %41, align 8, !tbaa !5
  %597 = getelementptr inbounds %struct.nk_command_triangle, ptr %596, i32 0, i32 4
  %598 = getelementptr inbounds %struct.nk_vec2i, ptr %597, i32 0, i32 1
  %599 = load i16, ptr %598, align 2, !tbaa !92
  %600 = sitofp i16 %599 to float
  %601 = call <2 x float> @nk_vec2(float noundef %595, float noundef %600)
  store <2 x float> %601, ptr %44, align 4
  %602 = load ptr, ptr %41, align 8, !tbaa !5
  %603 = getelementptr inbounds %struct.nk_command_triangle, ptr %602, i32 0, i32 5
  %604 = load ptr, ptr %41, align 8, !tbaa !5
  %605 = getelementptr inbounds %struct.nk_command_triangle, ptr %604, i32 0, i32 1
  %606 = load i16, ptr %605, align 8, !tbaa !93
  %607 = uitofp i16 %606 to float
  %608 = load <2 x float>, ptr %42, align 4
  %609 = load <2 x float>, ptr %43, align 4
  %610 = load <2 x float>, ptr %44, align 4
  %611 = load i32, ptr %603, align 2
  call void @nk_draw_list_stroke_triangle(ptr noundef %568, <2 x float> %608, <2 x float> %609, <2 x float> %610, i32 %611, float noundef %607)
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  br label %882

612:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  %613 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %613, ptr %45, align 8, !tbaa !5
  %614 = load ptr, ptr %7, align 8, !tbaa !5
  %615 = getelementptr inbounds %struct.nk_context, ptr %614, i32 0, i32 8
  %616 = load ptr, ptr %45, align 8, !tbaa !5
  %617 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %616, i32 0, i32 1
  %618 = getelementptr inbounds %struct.nk_vec2i, ptr %617, i32 0, i32 0
  %619 = load i16, ptr %618, align 8, !tbaa !94
  %620 = sitofp i16 %619 to float
  %621 = load ptr, ptr %45, align 8, !tbaa !5
  %622 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %621, i32 0, i32 1
  %623 = getelementptr inbounds %struct.nk_vec2i, ptr %622, i32 0, i32 1
  %624 = load i16, ptr %623, align 2, !tbaa !96
  %625 = sitofp i16 %624 to float
  %626 = call <2 x float> @nk_vec2(float noundef %620, float noundef %625)
  store <2 x float> %626, ptr %46, align 4
  %627 = load ptr, ptr %45, align 8, !tbaa !5
  %628 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %627, i32 0, i32 2
  %629 = getelementptr inbounds %struct.nk_vec2i, ptr %628, i32 0, i32 0
  %630 = load i16, ptr %629, align 4, !tbaa !97
  %631 = sitofp i16 %630 to float
  %632 = load ptr, ptr %45, align 8, !tbaa !5
  %633 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %632, i32 0, i32 2
  %634 = getelementptr inbounds %struct.nk_vec2i, ptr %633, i32 0, i32 1
  %635 = load i16, ptr %634, align 2, !tbaa !98
  %636 = sitofp i16 %635 to float
  %637 = call <2 x float> @nk_vec2(float noundef %631, float noundef %636)
  store <2 x float> %637, ptr %47, align 4
  %638 = load ptr, ptr %45, align 8, !tbaa !5
  %639 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %638, i32 0, i32 3
  %640 = getelementptr inbounds %struct.nk_vec2i, ptr %639, i32 0, i32 0
  %641 = load i16, ptr %640, align 8, !tbaa !99
  %642 = sitofp i16 %641 to float
  %643 = load ptr, ptr %45, align 8, !tbaa !5
  %644 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %643, i32 0, i32 3
  %645 = getelementptr inbounds %struct.nk_vec2i, ptr %644, i32 0, i32 1
  %646 = load i16, ptr %645, align 2, !tbaa !100
  %647 = sitofp i16 %646 to float
  %648 = call <2 x float> @nk_vec2(float noundef %642, float noundef %647)
  store <2 x float> %648, ptr %48, align 4
  %649 = load ptr, ptr %45, align 8, !tbaa !5
  %650 = getelementptr inbounds %struct.nk_command_triangle_filled, ptr %649, i32 0, i32 4
  %651 = load <2 x float>, ptr %46, align 4
  %652 = load <2 x float>, ptr %47, align 4
  %653 = load <2 x float>, ptr %48, align 4
  %654 = load i32, ptr %650, align 4
  call void @nk_draw_list_fill_triangle(ptr noundef %615, <2 x float> %651, <2 x float> %652, <2 x float> %653, i32 %654)
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  br label %882

655:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  %656 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %656, ptr %50, align 8, !tbaa !5
  store i32 0, ptr %49, align 4, !tbaa !9
  br label %657

657:                                              ; preds = %685, %655
  %658 = load i32, ptr %49, align 4, !tbaa !9
  %659 = load ptr, ptr %50, align 8, !tbaa !5
  %660 = getelementptr inbounds %struct.nk_command_polygon, ptr %659, i32 0, i32 3
  %661 = load i16, ptr %660, align 2, !tbaa !101
  %662 = zext i16 %661 to i32
  %663 = icmp slt i32 %658, %662
  br i1 %663, label %664, label %688

664:                                              ; preds = %657
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  %665 = load ptr, ptr %50, align 8, !tbaa !5
  %666 = getelementptr inbounds %struct.nk_command_polygon, ptr %665, i32 0, i32 4
  %667 = load i32, ptr %49, align 4, !tbaa !9
  %668 = sext i32 %667 to i64
  %669 = getelementptr inbounds [1 x %struct.nk_vec2i], ptr %666, i64 0, i64 %668
  %670 = getelementptr inbounds %struct.nk_vec2i, ptr %669, i32 0, i32 0
  %671 = load i16, ptr %670, align 4, !tbaa !39
  %672 = sitofp i16 %671 to float
  %673 = load ptr, ptr %50, align 8, !tbaa !5
  %674 = getelementptr inbounds %struct.nk_command_polygon, ptr %673, i32 0, i32 4
  %675 = load i32, ptr %49, align 4, !tbaa !9
  %676 = sext i32 %675 to i64
  %677 = getelementptr inbounds [1 x %struct.nk_vec2i], ptr %674, i64 0, i64 %676
  %678 = getelementptr inbounds %struct.nk_vec2i, ptr %677, i32 0, i32 1
  %679 = load i16, ptr %678, align 2, !tbaa !40
  %680 = sitofp i16 %679 to float
  %681 = call <2 x float> @nk_vec2(float noundef %672, float noundef %680)
  store <2 x float> %681, ptr %51, align 4
  %682 = load ptr, ptr %7, align 8, !tbaa !5
  %683 = getelementptr inbounds %struct.nk_context, ptr %682, i32 0, i32 8
  %684 = load <2 x float>, ptr %51, align 4
  call void @nk_draw_list_path_line_to(ptr noundef %683, <2 x float> %684)
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  br label %685

685:                                              ; preds = %664
  %686 = load i32, ptr %49, align 4, !tbaa !9
  %687 = add nsw i32 %686, 1
  store i32 %687, ptr %49, align 4, !tbaa !9
  br label %657, !llvm.loop !103

688:                                              ; preds = %657
  %689 = load ptr, ptr %7, align 8, !tbaa !5
  %690 = getelementptr inbounds %struct.nk_context, ptr %689, i32 0, i32 8
  %691 = load ptr, ptr %50, align 8, !tbaa !5
  %692 = getelementptr inbounds %struct.nk_command_polygon, ptr %691, i32 0, i32 1
  %693 = load ptr, ptr %50, align 8, !tbaa !5
  %694 = getelementptr inbounds %struct.nk_command_polygon, ptr %693, i32 0, i32 2
  %695 = load i16, ptr %694, align 4, !tbaa !105
  %696 = uitofp i16 %695 to float
  %697 = load i32, ptr %692, align 8
  call void @nk_draw_list_path_stroke(ptr noundef %690, i32 %697, i32 noundef 1, float noundef %696)
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #4
  br label %882

698:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #4
  %699 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %699, ptr %53, align 8, !tbaa !5
  store i32 0, ptr %52, align 4, !tbaa !9
  br label %700

700:                                              ; preds = %728, %698
  %701 = load i32, ptr %52, align 4, !tbaa !9
  %702 = load ptr, ptr %53, align 8, !tbaa !5
  %703 = getelementptr inbounds %struct.nk_command_polygon_filled, ptr %702, i32 0, i32 2
  %704 = load i16, ptr %703, align 4, !tbaa !106
  %705 = zext i16 %704 to i32
  %706 = icmp slt i32 %701, %705
  br i1 %706, label %707, label %731

707:                                              ; preds = %700
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #4
  %708 = load ptr, ptr %53, align 8, !tbaa !5
  %709 = getelementptr inbounds %struct.nk_command_polygon_filled, ptr %708, i32 0, i32 3
  %710 = load i32, ptr %52, align 4, !tbaa !9
  %711 = sext i32 %710 to i64
  %712 = getelementptr inbounds [1 x %struct.nk_vec2i], ptr %709, i64 0, i64 %711
  %713 = getelementptr inbounds %struct.nk_vec2i, ptr %712, i32 0, i32 0
  %714 = load i16, ptr %713, align 2, !tbaa !39
  %715 = sitofp i16 %714 to float
  %716 = load ptr, ptr %53, align 8, !tbaa !5
  %717 = getelementptr inbounds %struct.nk_command_polygon_filled, ptr %716, i32 0, i32 3
  %718 = load i32, ptr %52, align 4, !tbaa !9
  %719 = sext i32 %718 to i64
  %720 = getelementptr inbounds [1 x %struct.nk_vec2i], ptr %717, i64 0, i64 %719
  %721 = getelementptr inbounds %struct.nk_vec2i, ptr %720, i32 0, i32 1
  %722 = load i16, ptr %721, align 2, !tbaa !40
  %723 = sitofp i16 %722 to float
  %724 = call <2 x float> @nk_vec2(float noundef %715, float noundef %723)
  store <2 x float> %724, ptr %54, align 4
  %725 = load ptr, ptr %7, align 8, !tbaa !5
  %726 = getelementptr inbounds %struct.nk_context, ptr %725, i32 0, i32 8
  %727 = load <2 x float>, ptr %54, align 4
  call void @nk_draw_list_path_line_to(ptr noundef %726, <2 x float> %727)
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #4
  br label %728

728:                                              ; preds = %707
  %729 = load i32, ptr %52, align 4, !tbaa !9
  %730 = add nsw i32 %729, 1
  store i32 %730, ptr %52, align 4, !tbaa !9
  br label %700, !llvm.loop !108

731:                                              ; preds = %700
  %732 = load ptr, ptr %7, align 8, !tbaa !5
  %733 = getelementptr inbounds %struct.nk_context, ptr %732, i32 0, i32 8
  %734 = load ptr, ptr %53, align 8, !tbaa !5
  %735 = getelementptr inbounds %struct.nk_command_polygon_filled, ptr %734, i32 0, i32 1
  %736 = load i32, ptr %735, align 8
  call void @nk_draw_list_path_fill(ptr noundef %733, i32 %736)
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #4
  br label %882

737:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #4
  %738 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %738, ptr %56, align 8, !tbaa !5
  store i32 0, ptr %55, align 4, !tbaa !9
  br label %739

739:                                              ; preds = %767, %737
  %740 = load i32, ptr %55, align 4, !tbaa !9
  %741 = load ptr, ptr %56, align 8, !tbaa !5
  %742 = getelementptr inbounds %struct.nk_command_polyline, ptr %741, i32 0, i32 3
  %743 = load i16, ptr %742, align 2, !tbaa !109
  %744 = zext i16 %743 to i32
  %745 = icmp slt i32 %740, %744
  br i1 %745, label %746, label %770

746:                                              ; preds = %739
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #4
  %747 = load ptr, ptr %56, align 8, !tbaa !5
  %748 = getelementptr inbounds %struct.nk_command_polyline, ptr %747, i32 0, i32 4
  %749 = load i32, ptr %55, align 4, !tbaa !9
  %750 = sext i32 %749 to i64
  %751 = getelementptr inbounds [1 x %struct.nk_vec2i], ptr %748, i64 0, i64 %750
  %752 = getelementptr inbounds %struct.nk_vec2i, ptr %751, i32 0, i32 0
  %753 = load i16, ptr %752, align 4, !tbaa !39
  %754 = sitofp i16 %753 to float
  %755 = load ptr, ptr %56, align 8, !tbaa !5
  %756 = getelementptr inbounds %struct.nk_command_polyline, ptr %755, i32 0, i32 4
  %757 = load i32, ptr %55, align 4, !tbaa !9
  %758 = sext i32 %757 to i64
  %759 = getelementptr inbounds [1 x %struct.nk_vec2i], ptr %756, i64 0, i64 %758
  %760 = getelementptr inbounds %struct.nk_vec2i, ptr %759, i32 0, i32 1
  %761 = load i16, ptr %760, align 2, !tbaa !40
  %762 = sitofp i16 %761 to float
  %763 = call <2 x float> @nk_vec2(float noundef %754, float noundef %762)
  store <2 x float> %763, ptr %57, align 4
  %764 = load ptr, ptr %7, align 8, !tbaa !5
  %765 = getelementptr inbounds %struct.nk_context, ptr %764, i32 0, i32 8
  %766 = load <2 x float>, ptr %57, align 4
  call void @nk_draw_list_path_line_to(ptr noundef %765, <2 x float> %766)
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #4
  br label %767

767:                                              ; preds = %746
  %768 = load i32, ptr %55, align 4, !tbaa !9
  %769 = add nsw i32 %768, 1
  store i32 %769, ptr %55, align 4, !tbaa !9
  br label %739, !llvm.loop !111

770:                                              ; preds = %739
  %771 = load ptr, ptr %7, align 8, !tbaa !5
  %772 = getelementptr inbounds %struct.nk_context, ptr %771, i32 0, i32 8
  %773 = load ptr, ptr %56, align 8, !tbaa !5
  %774 = getelementptr inbounds %struct.nk_command_polyline, ptr %773, i32 0, i32 1
  %775 = load ptr, ptr %56, align 8, !tbaa !5
  %776 = getelementptr inbounds %struct.nk_command_polyline, ptr %775, i32 0, i32 2
  %777 = load i16, ptr %776, align 4, !tbaa !112
  %778 = uitofp i16 %777 to float
  %779 = load i32, ptr %774, align 8
  call void @nk_draw_list_path_stroke(ptr noundef %772, i32 %779, i32 noundef 0, float noundef %778)
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #4
  br label %882

780:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #4
  %781 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %781, ptr %58, align 8, !tbaa !5
  %782 = load ptr, ptr %7, align 8, !tbaa !5
  %783 = getelementptr inbounds %struct.nk_context, ptr %782, i32 0, i32 8
  %784 = load ptr, ptr %58, align 8, !tbaa !5
  %785 = getelementptr inbounds %struct.nk_command_text, ptr %784, i32 0, i32 1
  %786 = load ptr, ptr %785, align 8, !tbaa !113
  %787 = load ptr, ptr %58, align 8, !tbaa !5
  %788 = getelementptr inbounds %struct.nk_command_text, ptr %787, i32 0, i32 4
  %789 = load i16, ptr %788, align 8, !tbaa !115
  %790 = sitofp i16 %789 to float
  %791 = load ptr, ptr %58, align 8, !tbaa !5
  %792 = getelementptr inbounds %struct.nk_command_text, ptr %791, i32 0, i32 5
  %793 = load i16, ptr %792, align 2, !tbaa !116
  %794 = sitofp i16 %793 to float
  %795 = load ptr, ptr %58, align 8, !tbaa !5
  %796 = getelementptr inbounds %struct.nk_command_text, ptr %795, i32 0, i32 6
  %797 = load i16, ptr %796, align 4, !tbaa !117
  %798 = uitofp i16 %797 to float
  %799 = load ptr, ptr %58, align 8, !tbaa !5
  %800 = getelementptr inbounds %struct.nk_command_text, ptr %799, i32 0, i32 7
  %801 = load i16, ptr %800, align 2, !tbaa !118
  %802 = uitofp i16 %801 to float
  %803 = call { <2 x float>, <2 x float> } @nk_rect(float noundef %790, float noundef %794, float noundef %798, float noundef %802)
  %804 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %59, i32 0, i32 0
  %805 = extractvalue { <2 x float>, <2 x float> } %803, 0
  store <2 x float> %805, ptr %804, align 4
  %806 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %59, i32 0, i32 1
  %807 = extractvalue { <2 x float>, <2 x float> } %803, 1
  store <2 x float> %807, ptr %806, align 4
  %808 = load ptr, ptr %58, align 8, !tbaa !5
  %809 = getelementptr inbounds %struct.nk_command_text, ptr %808, i32 0, i32 10
  %810 = getelementptr inbounds [1 x i8], ptr %809, i64 0, i64 0
  %811 = load ptr, ptr %58, align 8, !tbaa !5
  %812 = getelementptr inbounds %struct.nk_command_text, ptr %811, i32 0, i32 9
  %813 = load i32, ptr %812, align 4, !tbaa !119
  %814 = load ptr, ptr %58, align 8, !tbaa !5
  %815 = getelementptr inbounds %struct.nk_command_text, ptr %814, i32 0, i32 8
  %816 = load float, ptr %815, align 8, !tbaa !120
  %817 = load ptr, ptr %58, align 8, !tbaa !5
  %818 = getelementptr inbounds %struct.nk_command_text, ptr %817, i32 0, i32 3
  %819 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %59, i32 0, i32 0
  %820 = load <2 x float>, ptr %819, align 4
  %821 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %59, i32 0, i32 1
  %822 = load <2 x float>, ptr %821, align 4
  %823 = load i32, ptr %818, align 4
  call void @nk_draw_list_add_text(ptr noundef %783, ptr noundef %786, <2 x float> %820, <2 x float> %822, ptr noundef %810, i32 noundef %813, float noundef %816, i32 %823)
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #4
  br label %882

824:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #4
  %825 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %825, ptr %60, align 8, !tbaa !5
  %826 = load ptr, ptr %7, align 8, !tbaa !5
  %827 = getelementptr inbounds %struct.nk_context, ptr %826, i32 0, i32 8
  %828 = load ptr, ptr %60, align 8, !tbaa !5
  %829 = getelementptr inbounds %struct.nk_command_image, ptr %828, i32 0, i32 5
  %830 = load ptr, ptr %60, align 8, !tbaa !5
  %831 = getelementptr inbounds %struct.nk_command_image, ptr %830, i32 0, i32 1
  %832 = load i16, ptr %831, align 8, !tbaa !121
  %833 = sitofp i16 %832 to float
  %834 = load ptr, ptr %60, align 8, !tbaa !5
  %835 = getelementptr inbounds %struct.nk_command_image, ptr %834, i32 0, i32 2
  %836 = load i16, ptr %835, align 2, !tbaa !124
  %837 = sitofp i16 %836 to float
  %838 = load ptr, ptr %60, align 8, !tbaa !5
  %839 = getelementptr inbounds %struct.nk_command_image, ptr %838, i32 0, i32 3
  %840 = load i16, ptr %839, align 4, !tbaa !125
  %841 = uitofp i16 %840 to float
  %842 = load ptr, ptr %60, align 8, !tbaa !5
  %843 = getelementptr inbounds %struct.nk_command_image, ptr %842, i32 0, i32 4
  %844 = load i16, ptr %843, align 2, !tbaa !126
  %845 = uitofp i16 %844 to float
  %846 = call { <2 x float>, <2 x float> } @nk_rect(float noundef %833, float noundef %837, float noundef %841, float noundef %845)
  %847 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %61, i32 0, i32 0
  %848 = extractvalue { <2 x float>, <2 x float> } %846, 0
  store <2 x float> %848, ptr %847, align 4
  %849 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %61, i32 0, i32 1
  %850 = extractvalue { <2 x float>, <2 x float> } %846, 1
  store <2 x float> %850, ptr %849, align 4
  %851 = load ptr, ptr %60, align 8, !tbaa !5
  %852 = getelementptr inbounds %struct.nk_command_image, ptr %851, i32 0, i32 6
  %853 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %61, i32 0, i32 0
  %854 = load <2 x float>, ptr %853, align 4
  %855 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %61, i32 0, i32 1
  %856 = load <2 x float>, ptr %855, align 4
  %857 = load i32, ptr %852, align 8
  call void @nk_draw_list_add_image(ptr noundef %827, ptr noundef byval(%struct.nk_image) align 8 %829, <2 x float> %854, <2 x float> %856, i32 %857)
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #4
  br label %882

858:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #4
  %859 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %859, ptr %62, align 8, !tbaa !5
  %860 = load ptr, ptr %62, align 8, !tbaa !5
  %861 = getelementptr inbounds %struct.nk_command_custom, ptr %860, i32 0, i32 6
  %862 = load ptr, ptr %861, align 8, !tbaa !127
  %863 = load ptr, ptr %7, align 8, !tbaa !5
  %864 = getelementptr inbounds %struct.nk_context, ptr %863, i32 0, i32 8
  %865 = load ptr, ptr %62, align 8, !tbaa !5
  %866 = getelementptr inbounds %struct.nk_command_custom, ptr %865, i32 0, i32 1
  %867 = load i16, ptr %866, align 8, !tbaa !129
  %868 = load ptr, ptr %62, align 8, !tbaa !5
  %869 = getelementptr inbounds %struct.nk_command_custom, ptr %868, i32 0, i32 2
  %870 = load i16, ptr %869, align 2, !tbaa !130
  %871 = load ptr, ptr %62, align 8, !tbaa !5
  %872 = getelementptr inbounds %struct.nk_command_custom, ptr %871, i32 0, i32 3
  %873 = load i16, ptr %872, align 4, !tbaa !131
  %874 = load ptr, ptr %62, align 8, !tbaa !5
  %875 = getelementptr inbounds %struct.nk_command_custom, ptr %874, i32 0, i32 4
  %876 = load i16, ptr %875, align 2, !tbaa !132
  %877 = load ptr, ptr %62, align 8, !tbaa !5
  %878 = getelementptr inbounds %struct.nk_command_custom, ptr %877, i32 0, i32 5
  %879 = getelementptr inbounds %union.nk_handle, ptr %878, i32 0, i32 0
  %880 = load ptr, ptr %879, align 8
  call void %862(ptr noundef %864, i16 noundef signext %867, i16 noundef signext %870, i16 noundef zeroext %873, i16 noundef zeroext %876, ptr %880)
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #4
  br label %882

881:                                              ; preds = %140
  br label %882

882:                                              ; preds = %881, %858, %824, %780, %770, %731, %688, %612, %565, %519, %469, %432, %391, %350, %314, %274, %208, %173, %144, %140
  br label %883

883:                                              ; preds = %882
  %884 = load ptr, ptr %7, align 8, !tbaa !5
  %885 = load ptr, ptr %13, align 8, !tbaa !5
  %886 = call ptr @nk__next(ptr noundef %884, ptr noundef %885)
  store ptr %886, ptr %13, align 8, !tbaa !5
  br label %137, !llvm.loop !133

887:                                              ; preds = %137
  %888 = load ptr, ptr %8, align 8, !tbaa !5
  %889 = getelementptr inbounds %struct.nk_buffer, ptr %888, i32 0, i32 6
  %890 = load i64, ptr %889, align 8, !tbaa !134
  %891 = load ptr, ptr %8, align 8, !tbaa !5
  %892 = getelementptr inbounds %struct.nk_buffer, ptr %891, i32 0, i32 5
  %893 = load i64, ptr %892, align 8, !tbaa !138
  %894 = load ptr, ptr %8, align 8, !tbaa !5
  %895 = getelementptr inbounds %struct.nk_buffer, ptr %894, i32 0, i32 3
  %896 = getelementptr inbounds %struct.nk_memory, ptr %895, i32 0, i32 1
  %897 = load i64, ptr %896, align 8, !tbaa !139
  %898 = load ptr, ptr %8, align 8, !tbaa !5
  %899 = getelementptr inbounds %struct.nk_buffer, ptr %898, i32 0, i32 8
  %900 = load i64, ptr %899, align 8, !tbaa !140
  %901 = sub i64 %897, %900
  %902 = add i64 %893, %901
  %903 = icmp ugt i64 %890, %902
  %904 = zext i1 %903 to i64
  %905 = select i1 %903, i32 2, i32 0
  %906 = load i32, ptr %12, align 4, !tbaa !9
  %907 = or i32 %906, %905
  store i32 %907, ptr %12, align 4, !tbaa !9
  %908 = load ptr, ptr %9, align 8, !tbaa !5
  %909 = getelementptr inbounds %struct.nk_buffer, ptr %908, i32 0, i32 6
  %910 = load i64, ptr %909, align 8, !tbaa !134
  %911 = load ptr, ptr %9, align 8, !tbaa !5
  %912 = getelementptr inbounds %struct.nk_buffer, ptr %911, i32 0, i32 5
  %913 = load i64, ptr %912, align 8, !tbaa !138
  %914 = icmp ugt i64 %910, %913
  %915 = zext i1 %914 to i64
  %916 = select i1 %914, i32 4, i32 0
  %917 = load i32, ptr %12, align 4, !tbaa !9
  %918 = or i32 %917, %916
  store i32 %918, ptr %12, align 4, !tbaa !9
  %919 = load ptr, ptr %10, align 8, !tbaa !5
  %920 = getelementptr inbounds %struct.nk_buffer, ptr %919, i32 0, i32 6
  %921 = load i64, ptr %920, align 8, !tbaa !134
  %922 = load ptr, ptr %10, align 8, !tbaa !5
  %923 = getelementptr inbounds %struct.nk_buffer, ptr %922, i32 0, i32 5
  %924 = load i64, ptr %923, align 8, !tbaa !138
  %925 = icmp ugt i64 %921, %924
  %926 = zext i1 %925 to i64
  %927 = select i1 %925, i32 8, i32 0
  %928 = load i32, ptr %12, align 4, !tbaa !9
  %929 = or i32 %928, %927
  store i32 %929, ptr %12, align 4, !tbaa !9
  %930 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %930, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %931

931:                                              ; preds = %887, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %932 = load i32, ptr %6, align 4
  ret i32 %932
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @nk__begin(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @nk__next(ptr noundef, ptr noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!12, !6, i64 40}
!12 = !{!"nk_convert_config", !13, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !14, i64 24, !6, i64 40, !16, i64 48, !16, i64 56}
!13 = !{!"float", !7, i64 0}
!14 = !{!"nk_draw_null_texture", !7, i64 0, !15, i64 8}
!15 = !{!"nk_vec2", !13, i64 0, !13, i64 4}
!16 = !{!"long", !7, i64 0}
!17 = !{!12, !16, i64 48}
!18 = !{!12, !10, i64 4}
!19 = !{!12, !10, i64 8}
!20 = !{!21, !10, i64 0}
!21 = !{!"nk_command", !10, i64 0, !16, i64 8}
!22 = !{!23, !24, i64 16}
!23 = !{!"nk_command_scissor", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !24, i64 22}
!24 = !{!"short", !7, i64 0}
!25 = !{!23, !24, i64 18}
!26 = !{!23, !24, i64 20}
!27 = !{!23, !24, i64 22}
!28 = !{!29, !24, i64 18}
!29 = !{!"nk_command_line", !21, i64 0, !24, i64 16, !30, i64 18, !30, i64 22, !31, i64 26}
!30 = !{!"nk_vec2i", !24, i64 0, !24, i64 2}
!31 = !{!"nk_color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!32 = !{!29, !24, i64 20}
!33 = !{!29, !24, i64 22}
!34 = !{!29, !24, i64 24}
!35 = !{!29, !24, i64 16}
!36 = !{!37, !24, i64 18}
!37 = !{!"nk_command_curve", !21, i64 0, !24, i64 16, !30, i64 18, !30, i64 22, !7, i64 26, !31, i64 34}
!38 = !{!37, !24, i64 20}
!39 = !{!30, !24, i64 0}
!40 = !{!30, !24, i64 2}
!41 = !{!37, !24, i64 22}
!42 = !{!37, !24, i64 24}
!43 = !{!12, !10, i64 20}
!44 = !{!37, !24, i64 16}
!45 = !{!46, !24, i64 20}
!46 = !{!"nk_command_rect", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !24, i64 22, !24, i64 24, !24, i64 26, !31, i64 28}
!47 = !{!46, !24, i64 22}
!48 = !{!46, !24, i64 24}
!49 = !{!46, !24, i64 26}
!50 = !{!46, !24, i64 16}
!51 = !{!46, !24, i64 18}
!52 = !{!53, !24, i64 18}
!53 = !{!"nk_command_rect_filled", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !24, i64 22, !24, i64 24, !31, i64 26}
!54 = !{!53, !24, i64 20}
!55 = !{!53, !24, i64 22}
!56 = !{!53, !24, i64 24}
!57 = !{!53, !24, i64 16}
!58 = !{!59, !24, i64 16}
!59 = !{!"nk_command_rect_multi_color", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !24, i64 22, !31, i64 24, !31, i64 28, !31, i64 32, !31, i64 36}
!60 = !{!59, !24, i64 18}
!61 = !{!59, !24, i64 20}
!62 = !{!59, !24, i64 22}
!63 = !{!64, !24, i64 16}
!64 = !{!"nk_command_circle", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !24, i64 22, !24, i64 24, !31, i64 26}
!65 = !{!64, !24, i64 22}
!66 = !{!64, !24, i64 18}
!67 = !{!64, !24, i64 24}
!68 = !{!12, !10, i64 12}
!69 = !{!64, !24, i64 20}
!70 = !{!71, !24, i64 16}
!71 = !{!"nk_command_circle_filled", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !24, i64 22, !31, i64 24}
!72 = !{!71, !24, i64 20}
!73 = !{!71, !24, i64 18}
!74 = !{!71, !24, i64 22}
!75 = !{!76, !24, i64 16}
!76 = !{!"nk_command_arc", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !24, i64 22, !7, i64 24, !31, i64 32}
!77 = !{!76, !24, i64 18}
!78 = !{!76, !24, i64 20}
!79 = !{!13, !13, i64 0}
!80 = !{!12, !10, i64 16}
!81 = !{!76, !24, i64 22}
!82 = !{!83, !24, i64 16}
!83 = !{!"nk_command_arc_filled", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !7, i64 24, !31, i64 32}
!84 = !{!83, !24, i64 18}
!85 = !{!83, !24, i64 20}
!86 = !{!87, !24, i64 18}
!87 = !{!"nk_command_triangle", !21, i64 0, !24, i64 16, !30, i64 18, !30, i64 22, !30, i64 26, !31, i64 30}
!88 = !{!87, !24, i64 20}
!89 = !{!87, !24, i64 22}
!90 = !{!87, !24, i64 24}
!91 = !{!87, !24, i64 26}
!92 = !{!87, !24, i64 28}
!93 = !{!87, !24, i64 16}
!94 = !{!95, !24, i64 16}
!95 = !{!"nk_command_triangle_filled", !21, i64 0, !30, i64 16, !30, i64 20, !30, i64 24, !31, i64 28}
!96 = !{!95, !24, i64 18}
!97 = !{!95, !24, i64 20}
!98 = !{!95, !24, i64 22}
!99 = !{!95, !24, i64 24}
!100 = !{!95, !24, i64 26}
!101 = !{!102, !24, i64 22}
!102 = !{!"nk_command_polygon", !21, i64 0, !31, i64 16, !24, i64 20, !24, i64 22, !7, i64 24}
!103 = distinct !{!103, !104}
!104 = !{!"llvm.loop.mustprogress"}
!105 = !{!102, !24, i64 20}
!106 = !{!107, !24, i64 20}
!107 = !{!"nk_command_polygon_filled", !21, i64 0, !31, i64 16, !24, i64 20, !7, i64 22}
!108 = distinct !{!108, !104}
!109 = !{!110, !24, i64 22}
!110 = !{!"nk_command_polyline", !21, i64 0, !31, i64 16, !24, i64 20, !24, i64 22, !7, i64 24}
!111 = distinct !{!111, !104}
!112 = !{!110, !24, i64 20}
!113 = !{!114, !6, i64 16}
!114 = !{!"nk_command_text", !21, i64 0, !6, i64 16, !31, i64 24, !31, i64 28, !24, i64 32, !24, i64 34, !24, i64 36, !24, i64 38, !13, i64 40, !10, i64 44, !7, i64 48}
!115 = !{!114, !24, i64 32}
!116 = !{!114, !24, i64 34}
!117 = !{!114, !24, i64 36}
!118 = !{!114, !24, i64 38}
!119 = !{!114, !10, i64 44}
!120 = !{!114, !13, i64 40}
!121 = !{!122, !24, i64 16}
!122 = !{!"nk_command_image", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !24, i64 22, !123, i64 24, !31, i64 48}
!123 = !{!"nk_image", !7, i64 0, !24, i64 8, !24, i64 10, !7, i64 12}
!124 = !{!122, !24, i64 18}
!125 = !{!122, !24, i64 20}
!126 = !{!122, !24, i64 22}
!127 = !{!128, !6, i64 32}
!128 = !{!"nk_command_custom", !21, i64 0, !24, i64 16, !24, i64 18, !24, i64 20, !24, i64 22, !7, i64 24, !6, i64 32}
!129 = !{!128, !24, i64 16}
!130 = !{!128, !24, i64 18}
!131 = !{!128, !24, i64 20}
!132 = !{!128, !24, i64 22}
!133 = distinct !{!133, !104}
!134 = !{!135, !16, i64 96}
!135 = !{!"nk_buffer", !7, i64 0, !136, i64 32, !10, i64 56, !137, i64 64, !13, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112}
!136 = !{!"nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!137 = !{!"nk_memory", !6, i64 0, !16, i64 8}
!138 = !{!135, !16, i64 88}
!139 = !{!135, !16, i64 72}
!140 = !{!135, !16, i64 112}


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

%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%union.nk_handle = type { ptr }
%struct.nk_vec2i = type { i16, i16 }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__.nk_convert = external hidden unnamed_addr constant [135 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_draw_list_setup(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_draw_list_path_fill(ptr noundef, i32) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @nk_draw_list_add_image(ptr noundef, ptr noundef byval(%struct.nk_image) align 8, <2 x float>, <2 x float>, i32) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 16) i32 @nk_convert(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.2, i32 noundef 10395, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_convert) #3
  unreachable

7:                                                ; preds = %5
  %.not265 = icmp eq ptr %1, null
  br i1 %.not265, label %8, label %9

8:                                                ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.2, i32 noundef 10396, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_convert) #3
  unreachable

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

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

11:                                               ; preds = %9
  %.not267 = icmp eq ptr %3, null
  br i1 %.not267, label %12, label %13

12:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.2, i32 noundef 10398, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_convert) #3
  unreachable

13:                                               ; preds = %11
  %.not268 = icmp eq ptr %4, null
  br i1 %.not268, label %14, label %15

14:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.2, i32 noundef 10399, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_convert) #3
  unreachable

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %4, i64 40
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %.not269 = icmp eq ptr %17, null
  br i1 %.not269, label %18, label %19

18:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.2, i32 noundef 10400, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_convert) #3
  unreachable

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %4, i64 48
  %21 = load i64, ptr %20, align 8, !tbaa !15
  %.not270 = icmp eq i64 %21, 0
  br i1 %.not270, label %22, label %23

22:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.35, ptr noundef nonnull @.str.2, i32 noundef 10401, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_convert) #3
  unreachable

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 10808
  %25 = getelementptr inbounds i8, ptr %4, i64 4
  %26 = load i32, ptr %25, align 4, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %4, i64 8
  %28 = load i32, ptr %27, align 8, !tbaa !17
  tail call void @nk_draw_list_setup(ptr noundef nonnull %24, ptr noundef nonnull %4, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %26, i32 noundef %28)
  %29 = tail call ptr @nk__begin(ptr noundef nonnull %0)
  %.not271281 = icmp eq ptr %29, null
  br i1 %.not271281, label %._crit_edge285, label %.lr.ph284

.lr.ph284:                                        ; preds = %23
  %30 = getelementptr inbounds i8, ptr %4, i64 16
  %31 = getelementptr inbounds i8, ptr %4, i64 12
  %32 = getelementptr inbounds i8, ptr %4, i64 20
  br label %33

33:                                               ; preds = %.lr.ph284, %437
  %.0256282 = phi ptr [ %29, %.lr.ph284 ], [ %438, %437 ]
  %34 = load i32, ptr %.0256282, align 8, !tbaa !18
  switch i32 %34, label %437 [
    i32 18, label %424
    i32 1, label %44
    i32 2, label %60
    i32 3, label %80
    i32 4, label %115
    i32 5, label %139
    i32 6, label %160
    i32 7, label %184
    i32 8, label %211
    i32 9, label %235
    i32 10, label %261
    i32 11, label %284
    i32 12, label %311
    i32 13, label %.preheader
    i32 14, label %.preheader272
    i32 15, label %.preheader273
    i32 16, label %380
    i32 17, label %405
  ]

.preheader273:                                    ; preds = %33
  %35 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %36 = load i16, ptr %35, align 2, !tbaa !20
  %.not286 = icmp eq i16 %36, 0
  br i1 %.not286, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader273
  %37 = getelementptr inbounds i8, ptr %.0256282, i64 24
  br label %364

.preheader272:                                    ; preds = %33
  %38 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %39 = load i16, ptr %38, align 4, !tbaa !24
  %.not287 = icmp eq i16 %39, 0
  br i1 %.not287, label %._crit_edge277, label %.lr.ph276

.lr.ph276:                                        ; preds = %.preheader272
  %40 = getelementptr inbounds i8, ptr %.0256282, i64 22
  br label %351

.preheader:                                       ; preds = %33
  %41 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %42 = load i16, ptr %41, align 2, !tbaa !26
  %.not288 = icmp eq i16 %42, 0
  br i1 %.not288, label %._crit_edge280, label %.lr.ph279

.lr.ph279:                                        ; preds = %.preheader
  %43 = getelementptr inbounds i8, ptr %.0256282, i64 24
  br label %335

44:                                               ; preds = %33
  %45 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %46 = load i16, ptr %45, align 8, !tbaa !28
  %47 = sitofp i16 %46 to float
  %48 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %49 = load i16, ptr %48, align 2, !tbaa !30
  %50 = sitofp i16 %49 to float
  %51 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %52 = load i16, ptr %51, align 4, !tbaa !31
  %53 = uitofp i16 %52 to float
  %54 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %55 = load i16, ptr %54, align 2, !tbaa !32
  %56 = uitofp i16 %55 to float
  %57 = tail call { <2 x float>, <2 x float> } @nk_rect(float noundef %47, float noundef %50, float noundef %53, float noundef %56)
  %58 = extractvalue { <2 x float>, <2 x float> } %57, 0
  %59 = extractvalue { <2 x float>, <2 x float> } %57, 1
  tail call void @nk_draw_list_add_clip(ptr noundef nonnull %24, <2 x float> %58, <2 x float> %59)
  br label %437

60:                                               ; preds = %33
  %61 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %62 = load i16, ptr %61, align 2, !tbaa !33
  %63 = sitofp i16 %62 to float
  %64 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %65 = load i16, ptr %64, align 2, !tbaa !36
  %66 = sitofp i16 %65 to float
  %67 = tail call <2 x float> @nk_vec2(float noundef %63, float noundef %66)
  %68 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %69 = load i16, ptr %68, align 2, !tbaa !37
  %70 = sitofp i16 %69 to float
  %71 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %72 = load i16, ptr %71, align 2, !tbaa !38
  %73 = sitofp i16 %72 to float
  %74 = tail call <2 x float> @nk_vec2(float noundef %70, float noundef %73)
  %75 = getelementptr inbounds i8, ptr %.0256282, i64 26
  %76 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %77 = load i16, ptr %76, align 8, !tbaa !39
  %78 = uitofp i16 %77 to float
  %79 = load i32, ptr %75, align 2
  tail call void @nk_draw_list_stroke_line(ptr noundef nonnull %24, <2 x float> %67, <2 x float> %74, i32 %79, float noundef %78)
  br label %437

80:                                               ; preds = %33
  %81 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %82 = load i16, ptr %81, align 2, !tbaa !40
  %83 = sitofp i16 %82 to float
  %84 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %85 = load i16, ptr %84, align 2, !tbaa !42
  %86 = sitofp i16 %85 to float
  %87 = tail call <2 x float> @nk_vec2(float noundef %83, float noundef %86)
  %88 = getelementptr inbounds i8, ptr %.0256282, i64 26
  %89 = load i16, ptr %88, align 2, !tbaa !43
  %90 = sitofp i16 %89 to float
  %91 = getelementptr inbounds i8, ptr %.0256282, i64 28
  %92 = load i16, ptr %91, align 2, !tbaa !44
  %93 = sitofp i16 %92 to float
  %94 = tail call <2 x float> @nk_vec2(float noundef %90, float noundef %93)
  %95 = getelementptr inbounds i8, ptr %.0256282, i64 30
  %96 = load i16, ptr %95, align 2, !tbaa !43
  %97 = sitofp i16 %96 to float
  %98 = getelementptr inbounds i8, ptr %.0256282, i64 32
  %99 = load i16, ptr %98, align 2, !tbaa !44
  %100 = sitofp i16 %99 to float
  %101 = tail call <2 x float> @nk_vec2(float noundef %97, float noundef %100)
  %102 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %103 = load i16, ptr %102, align 2, !tbaa !45
  %104 = sitofp i16 %103 to float
  %105 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %106 = load i16, ptr %105, align 2, !tbaa !46
  %107 = sitofp i16 %106 to float
  %108 = tail call <2 x float> @nk_vec2(float noundef %104, float noundef %107)
  %109 = getelementptr inbounds i8, ptr %.0256282, i64 34
  %110 = load i32, ptr %32, align 4, !tbaa !47
  %111 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %112 = load i16, ptr %111, align 8, !tbaa !48
  %113 = uitofp i16 %112 to float
  %114 = load i32, ptr %109, align 2
  tail call void @nk_draw_list_stroke_curve(ptr noundef nonnull %24, <2 x float> %87, <2 x float> %94, <2 x float> %101, <2 x float> %108, i32 %114, i32 noundef %110, float noundef %113)
  br label %437

115:                                              ; preds = %33
  %116 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %117 = load i16, ptr %116, align 4, !tbaa !49
  %118 = sitofp i16 %117 to float
  %119 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %120 = load i16, ptr %119, align 2, !tbaa !51
  %121 = sitofp i16 %120 to float
  %122 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %123 = load i16, ptr %122, align 8, !tbaa !52
  %124 = uitofp i16 %123 to float
  %125 = getelementptr inbounds i8, ptr %.0256282, i64 26
  %126 = load i16, ptr %125, align 2, !tbaa !53
  %127 = uitofp i16 %126 to float
  %128 = tail call { <2 x float>, <2 x float> } @nk_rect(float noundef %118, float noundef %121, float noundef %124, float noundef %127)
  %129 = extractvalue { <2 x float>, <2 x float> } %128, 0
  %130 = extractvalue { <2 x float>, <2 x float> } %128, 1
  %131 = getelementptr inbounds i8, ptr %.0256282, i64 28
  %132 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %133 = load i16, ptr %132, align 8, !tbaa !54
  %134 = uitofp i16 %133 to float
  %135 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %136 = load i16, ptr %135, align 2, !tbaa !55
  %137 = uitofp i16 %136 to float
  %138 = load i32, ptr %131, align 4
  tail call void @nk_draw_list_stroke_rect(ptr noundef nonnull %24, <2 x float> %129, <2 x float> %130, i32 %138, float noundef %134, float noundef %137)
  br label %437

139:                                              ; preds = %33
  %140 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %141 = load i16, ptr %140, align 2, !tbaa !56
  %142 = sitofp i16 %141 to float
  %143 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %144 = load i16, ptr %143, align 4, !tbaa !58
  %145 = sitofp i16 %144 to float
  %146 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %147 = load i16, ptr %146, align 2, !tbaa !59
  %148 = uitofp i16 %147 to float
  %149 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %150 = load i16, ptr %149, align 8, !tbaa !60
  %151 = uitofp i16 %150 to float
  %152 = tail call { <2 x float>, <2 x float> } @nk_rect(float noundef %142, float noundef %145, float noundef %148, float noundef %151)
  %153 = extractvalue { <2 x float>, <2 x float> } %152, 0
  %154 = extractvalue { <2 x float>, <2 x float> } %152, 1
  %155 = getelementptr inbounds i8, ptr %.0256282, i64 26
  %156 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %157 = load i16, ptr %156, align 8, !tbaa !61
  %158 = uitofp i16 %157 to float
  %159 = load i32, ptr %155, align 2
  tail call void @nk_draw_list_fill_rect(ptr noundef nonnull %24, <2 x float> %153, <2 x float> %154, i32 %159, float noundef %158)
  br label %437

160:                                              ; preds = %33
  %161 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %162 = load i16, ptr %161, align 8, !tbaa !62
  %163 = sitofp i16 %162 to float
  %164 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %165 = load i16, ptr %164, align 2, !tbaa !64
  %166 = sitofp i16 %165 to float
  %167 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %168 = load i16, ptr %167, align 4, !tbaa !65
  %169 = uitofp i16 %168 to float
  %170 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %171 = load i16, ptr %170, align 2, !tbaa !66
  %172 = uitofp i16 %171 to float
  %173 = tail call { <2 x float>, <2 x float> } @nk_rect(float noundef %163, float noundef %166, float noundef %169, float noundef %172)
  %174 = extractvalue { <2 x float>, <2 x float> } %173, 0
  %175 = extractvalue { <2 x float>, <2 x float> } %173, 1
  %176 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %177 = getelementptr inbounds i8, ptr %.0256282, i64 28
  %178 = getelementptr inbounds i8, ptr %.0256282, i64 36
  %179 = getelementptr inbounds i8, ptr %.0256282, i64 32
  %180 = load i32, ptr %176, align 8
  %181 = load i32, ptr %177, align 4
  %182 = load i32, ptr %178, align 4
  %183 = load i32, ptr %179, align 8
  tail call void @nk_draw_list_fill_rect_multi_color(ptr noundef nonnull %24, <2 x float> %174, <2 x float> %175, i32 %180, i32 %181, i32 %182, i32 %183)
  br label %437

184:                                              ; preds = %33
  %185 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %186 = load i16, ptr %185, align 8, !tbaa !67
  %187 = sitofp i16 %186 to float
  %188 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %189 = load i16, ptr %188, align 2, !tbaa !69
  %190 = uitofp i16 %189 to float
  %191 = fmul float %190, 5.000000e-01
  %192 = fadd float %191, %187
  %193 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %194 = load i16, ptr %193, align 2, !tbaa !70
  %195 = sitofp i16 %194 to float
  %196 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %197 = load i16, ptr %196, align 8, !tbaa !71
  %198 = uitofp i16 %197 to float
  %199 = fmul float %198, 5.000000e-01
  %200 = fadd float %199, %195
  %201 = tail call <2 x float> @nk_vec2(float noundef %192, float noundef %200)
  %202 = load i16, ptr %188, align 2, !tbaa !69
  %203 = uitofp i16 %202 to float
  %204 = fmul float %203, 5.000000e-01
  %205 = getelementptr inbounds i8, ptr %.0256282, i64 26
  %206 = load i32, ptr %31, align 4, !tbaa !72
  %207 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %208 = load i16, ptr %207, align 4, !tbaa !73
  %209 = uitofp i16 %208 to float
  %210 = load i32, ptr %205, align 2
  tail call void @nk_draw_list_stroke_circle(ptr noundef nonnull %24, <2 x float> %201, float noundef %204, i32 %210, i32 noundef %206, float noundef %209)
  br label %437

211:                                              ; preds = %33
  %212 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %213 = load i16, ptr %212, align 8, !tbaa !74
  %214 = sitofp i16 %213 to float
  %215 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %216 = load i16, ptr %215, align 4, !tbaa !76
  %217 = uitofp i16 %216 to float
  %218 = fmul float %217, 5.000000e-01
  %219 = fadd float %218, %214
  %220 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %221 = load i16, ptr %220, align 2, !tbaa !77
  %222 = sitofp i16 %221 to float
  %223 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %224 = load i16, ptr %223, align 2, !tbaa !78
  %225 = uitofp i16 %224 to float
  %226 = fmul float %225, 5.000000e-01
  %227 = fadd float %226, %222
  %228 = tail call <2 x float> @nk_vec2(float noundef %219, float noundef %227)
  %229 = load i16, ptr %215, align 4, !tbaa !76
  %230 = uitofp i16 %229 to float
  %231 = fmul float %230, 5.000000e-01
  %232 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %233 = load i32, ptr %31, align 4, !tbaa !72
  %234 = load i32, ptr %232, align 8
  tail call void @nk_draw_list_fill_circle(ptr noundef nonnull %24, <2 x float> %228, float noundef %231, i32 %234, i32 noundef %233)
  br label %437

235:                                              ; preds = %33
  %236 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %237 = load i16, ptr %236, align 8, !tbaa !79
  %238 = sitofp i16 %237 to float
  %239 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %240 = load i16, ptr %239, align 2, !tbaa !81
  %241 = sitofp i16 %240 to float
  %242 = tail call <2 x float> @nk_vec2(float noundef %238, float noundef %241)
  tail call void @nk_draw_list_path_line_to(ptr noundef nonnull %24, <2 x float> %242)
  %243 = load i16, ptr %236, align 8, !tbaa !79
  %244 = sitofp i16 %243 to float
  %245 = load i16, ptr %239, align 2, !tbaa !81
  %246 = sitofp i16 %245 to float
  %247 = tail call <2 x float> @nk_vec2(float noundef %244, float noundef %246)
  %248 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %249 = load i16, ptr %248, align 4, !tbaa !82
  %250 = uitofp i16 %249 to float
  %251 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %252 = load float, ptr %251, align 8, !tbaa !83
  %253 = getelementptr inbounds i8, ptr %.0256282, i64 28
  %254 = load float, ptr %253, align 4, !tbaa !83
  %255 = load i32, ptr %30, align 8, !tbaa !84
  tail call void @nk_draw_list_path_arc_to(ptr noundef nonnull %24, <2 x float> %247, float noundef %250, float noundef %252, float noundef %254, i32 noundef %255)
  %256 = getelementptr inbounds i8, ptr %.0256282, i64 32
  %257 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %258 = load i16, ptr %257, align 2, !tbaa !85
  %259 = uitofp i16 %258 to float
  %260 = load i32, ptr %256, align 8
  tail call void @nk_draw_list_path_stroke(ptr noundef nonnull %24, i32 %260, i32 noundef 1, float noundef %259)
  br label %437

261:                                              ; preds = %33
  %262 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %263 = load i16, ptr %262, align 8, !tbaa !86
  %264 = sitofp i16 %263 to float
  %265 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %266 = load i16, ptr %265, align 2, !tbaa !88
  %267 = sitofp i16 %266 to float
  %268 = tail call <2 x float> @nk_vec2(float noundef %264, float noundef %267)
  tail call void @nk_draw_list_path_line_to(ptr noundef nonnull %24, <2 x float> %268)
  %269 = load i16, ptr %262, align 8, !tbaa !86
  %270 = sitofp i16 %269 to float
  %271 = load i16, ptr %265, align 2, !tbaa !88
  %272 = sitofp i16 %271 to float
  %273 = tail call <2 x float> @nk_vec2(float noundef %270, float noundef %272)
  %274 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %275 = load i16, ptr %274, align 4, !tbaa !89
  %276 = uitofp i16 %275 to float
  %277 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %278 = load float, ptr %277, align 8, !tbaa !83
  %279 = getelementptr inbounds i8, ptr %.0256282, i64 28
  %280 = load float, ptr %279, align 4, !tbaa !83
  %281 = load i32, ptr %30, align 8, !tbaa !84
  tail call void @nk_draw_list_path_arc_to(ptr noundef nonnull %24, <2 x float> %273, float noundef %276, float noundef %278, float noundef %280, i32 noundef %281)
  %282 = getelementptr inbounds i8, ptr %.0256282, i64 32
  %283 = load i32, ptr %282, align 8
  tail call void @nk_draw_list_path_fill(ptr noundef nonnull %24, i32 %283)
  br label %437

284:                                              ; preds = %33
  %285 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %286 = load i16, ptr %285, align 2, !tbaa !90
  %287 = sitofp i16 %286 to float
  %288 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %289 = load i16, ptr %288, align 2, !tbaa !92
  %290 = sitofp i16 %289 to float
  %291 = tail call <2 x float> @nk_vec2(float noundef %287, float noundef %290)
  %292 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %293 = load i16, ptr %292, align 2, !tbaa !93
  %294 = sitofp i16 %293 to float
  %295 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %296 = load i16, ptr %295, align 2, !tbaa !94
  %297 = sitofp i16 %296 to float
  %298 = tail call <2 x float> @nk_vec2(float noundef %294, float noundef %297)
  %299 = getelementptr inbounds i8, ptr %.0256282, i64 26
  %300 = load i16, ptr %299, align 2, !tbaa !95
  %301 = sitofp i16 %300 to float
  %302 = getelementptr inbounds i8, ptr %.0256282, i64 28
  %303 = load i16, ptr %302, align 2, !tbaa !96
  %304 = sitofp i16 %303 to float
  %305 = tail call <2 x float> @nk_vec2(float noundef %301, float noundef %304)
  %306 = getelementptr inbounds i8, ptr %.0256282, i64 30
  %307 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %308 = load i16, ptr %307, align 8, !tbaa !97
  %309 = uitofp i16 %308 to float
  %310 = load i32, ptr %306, align 2
  tail call void @nk_draw_list_stroke_triangle(ptr noundef nonnull %24, <2 x float> %291, <2 x float> %298, <2 x float> %305, i32 %310, float noundef %309)
  br label %437

311:                                              ; preds = %33
  %312 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %313 = load i16, ptr %312, align 8, !tbaa !98
  %314 = sitofp i16 %313 to float
  %315 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %316 = load i16, ptr %315, align 2, !tbaa !100
  %317 = sitofp i16 %316 to float
  %318 = tail call <2 x float> @nk_vec2(float noundef %314, float noundef %317)
  %319 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %320 = load i16, ptr %319, align 4, !tbaa !101
  %321 = sitofp i16 %320 to float
  %322 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %323 = load i16, ptr %322, align 2, !tbaa !102
  %324 = sitofp i16 %323 to float
  %325 = tail call <2 x float> @nk_vec2(float noundef %321, float noundef %324)
  %326 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %327 = load i16, ptr %326, align 8, !tbaa !103
  %328 = sitofp i16 %327 to float
  %329 = getelementptr inbounds i8, ptr %.0256282, i64 26
  %330 = load i16, ptr %329, align 2, !tbaa !104
  %331 = sitofp i16 %330 to float
  %332 = tail call <2 x float> @nk_vec2(float noundef %328, float noundef %331)
  %333 = getelementptr inbounds i8, ptr %.0256282, i64 28
  %334 = load i32, ptr %333, align 4
  tail call void @nk_draw_list_fill_triangle(ptr noundef nonnull %24, <2 x float> %318, <2 x float> %325, <2 x float> %332, i32 %334)
  br label %437

335:                                              ; preds = %.lr.ph279, %335
  %indvars.iv293 = phi i64 [ 0, %.lr.ph279 ], [ %indvars.iv.next294, %335 ]
  %336 = getelementptr inbounds [1 x %struct.nk_vec2i], ptr %43, i64 0, i64 %indvars.iv293
  %337 = load i16, ptr %336, align 4, !tbaa !43
  %338 = sitofp i16 %337 to float
  %339 = getelementptr inbounds i8, ptr %336, i64 2
  %340 = load i16, ptr %339, align 2, !tbaa !44
  %341 = sitofp i16 %340 to float
  %342 = tail call <2 x float> @nk_vec2(float noundef %338, float noundef %341)
  tail call void @nk_draw_list_path_line_to(ptr noundef nonnull %24, <2 x float> %342)
  %indvars.iv.next294 = add nuw nsw i64 %indvars.iv293, 1
  %343 = load i16, ptr %41, align 2, !tbaa !26
  %344 = zext i16 %343 to i64
  %345 = icmp ult i64 %indvars.iv.next294, %344
  br i1 %345, label %335, label %._crit_edge280, !llvm.loop !105

._crit_edge280:                                   ; preds = %335, %.preheader
  %346 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %347 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %348 = load i16, ptr %347, align 4, !tbaa !107
  %349 = uitofp i16 %348 to float
  %350 = load i32, ptr %346, align 8
  tail call void @nk_draw_list_path_stroke(ptr noundef nonnull %24, i32 %350, i32 noundef 1, float noundef %349)
  br label %437

351:                                              ; preds = %.lr.ph276, %351
  %indvars.iv290 = phi i64 [ 0, %.lr.ph276 ], [ %indvars.iv.next291, %351 ]
  %352 = getelementptr inbounds [1 x %struct.nk_vec2i], ptr %40, i64 0, i64 %indvars.iv290
  %353 = load i16, ptr %352, align 2, !tbaa !43
  %354 = sitofp i16 %353 to float
  %355 = getelementptr inbounds i8, ptr %352, i64 2
  %356 = load i16, ptr %355, align 2, !tbaa !44
  %357 = sitofp i16 %356 to float
  %358 = tail call <2 x float> @nk_vec2(float noundef %354, float noundef %357)
  tail call void @nk_draw_list_path_line_to(ptr noundef nonnull %24, <2 x float> %358)
  %indvars.iv.next291 = add nuw nsw i64 %indvars.iv290, 1
  %359 = load i16, ptr %38, align 4, !tbaa !24
  %360 = zext i16 %359 to i64
  %361 = icmp ult i64 %indvars.iv.next291, %360
  br i1 %361, label %351, label %._crit_edge277, !llvm.loop !108

._crit_edge277:                                   ; preds = %351, %.preheader272
  %362 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %363 = load i32, ptr %362, align 8
  tail call void @nk_draw_list_path_fill(ptr noundef nonnull %24, i32 %363)
  br label %437

364:                                              ; preds = %.lr.ph, %364
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %364 ]
  %365 = getelementptr inbounds [1 x %struct.nk_vec2i], ptr %37, i64 0, i64 %indvars.iv
  %366 = load i16, ptr %365, align 4, !tbaa !43
  %367 = sitofp i16 %366 to float
  %368 = getelementptr inbounds i8, ptr %365, i64 2
  %369 = load i16, ptr %368, align 2, !tbaa !44
  %370 = sitofp i16 %369 to float
  %371 = tail call <2 x float> @nk_vec2(float noundef %367, float noundef %370)
  tail call void @nk_draw_list_path_line_to(ptr noundef nonnull %24, <2 x float> %371)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %372 = load i16, ptr %35, align 2, !tbaa !20
  %373 = zext i16 %372 to i64
  %374 = icmp ult i64 %indvars.iv.next, %373
  br i1 %374, label %364, label %._crit_edge, !llvm.loop !109

._crit_edge:                                      ; preds = %364, %.preheader273
  %375 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %376 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %377 = load i16, ptr %376, align 4, !tbaa !110
  %378 = uitofp i16 %377 to float
  %379 = load i32, ptr %375, align 8
  tail call void @nk_draw_list_path_stroke(ptr noundef nonnull %24, i32 %379, i32 noundef 0, float noundef %378)
  br label %437

380:                                              ; preds = %33
  %381 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %382 = load ptr, ptr %381, align 8, !tbaa !111
  %383 = getelementptr inbounds i8, ptr %.0256282, i64 32
  %384 = load i16, ptr %383, align 8, !tbaa !113
  %385 = sitofp i16 %384 to float
  %386 = getelementptr inbounds i8, ptr %.0256282, i64 34
  %387 = load i16, ptr %386, align 2, !tbaa !114
  %388 = sitofp i16 %387 to float
  %389 = getelementptr inbounds i8, ptr %.0256282, i64 36
  %390 = load i16, ptr %389, align 4, !tbaa !115
  %391 = uitofp i16 %390 to float
  %392 = getelementptr inbounds i8, ptr %.0256282, i64 38
  %393 = load i16, ptr %392, align 2, !tbaa !116
  %394 = uitofp i16 %393 to float
  %395 = tail call { <2 x float>, <2 x float> } @nk_rect(float noundef %385, float noundef %388, float noundef %391, float noundef %394)
  %396 = extractvalue { <2 x float>, <2 x float> } %395, 0
  %397 = extractvalue { <2 x float>, <2 x float> } %395, 1
  %398 = getelementptr inbounds i8, ptr %.0256282, i64 48
  %399 = getelementptr inbounds i8, ptr %.0256282, i64 44
  %400 = load i32, ptr %399, align 4, !tbaa !117
  %401 = getelementptr inbounds i8, ptr %.0256282, i64 40
  %402 = load float, ptr %401, align 8, !tbaa !118
  %403 = getelementptr inbounds i8, ptr %.0256282, i64 28
  %404 = load i32, ptr %403, align 4
  tail call void @nk_draw_list_add_text(ptr noundef nonnull %24, ptr noundef %382, <2 x float> %396, <2 x float> %397, ptr noundef nonnull %398, i32 noundef %400, float noundef %402, i32 %404)
  br label %437

405:                                              ; preds = %33
  %406 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %407 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %408 = load i16, ptr %407, align 8, !tbaa !119
  %409 = sitofp i16 %408 to float
  %410 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %411 = load i16, ptr %410, align 2, !tbaa !122
  %412 = sitofp i16 %411 to float
  %413 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %414 = load i16, ptr %413, align 4, !tbaa !123
  %415 = uitofp i16 %414 to float
  %416 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %417 = load i16, ptr %416, align 2, !tbaa !124
  %418 = uitofp i16 %417 to float
  %419 = tail call { <2 x float>, <2 x float> } @nk_rect(float noundef %409, float noundef %412, float noundef %415, float noundef %418)
  %420 = extractvalue { <2 x float>, <2 x float> } %419, 0
  %421 = extractvalue { <2 x float>, <2 x float> } %419, 1
  %422 = getelementptr inbounds i8, ptr %.0256282, i64 48
  %423 = load i32, ptr %422, align 8
  tail call void @nk_draw_list_add_image(ptr noundef nonnull %24, ptr noundef nonnull byval(%struct.nk_image) align 8 %406, <2 x float> %420, <2 x float> %421, i32 %423)
  br label %437

424:                                              ; preds = %33
  %425 = getelementptr inbounds i8, ptr %.0256282, i64 32
  %426 = load ptr, ptr %425, align 8, !tbaa !125
  %427 = getelementptr inbounds i8, ptr %.0256282, i64 16
  %428 = load i16, ptr %427, align 8, !tbaa !127
  %429 = getelementptr inbounds i8, ptr %.0256282, i64 18
  %430 = load i16, ptr %429, align 2, !tbaa !128
  %431 = getelementptr inbounds i8, ptr %.0256282, i64 20
  %432 = load i16, ptr %431, align 4, !tbaa !129
  %433 = getelementptr inbounds i8, ptr %.0256282, i64 22
  %434 = load i16, ptr %433, align 2, !tbaa !130
  %435 = getelementptr inbounds i8, ptr %.0256282, i64 24
  %436 = load ptr, ptr %435, align 8
  tail call void %426(ptr noundef nonnull %24, i16 noundef signext %428, i16 noundef signext %430, i16 noundef zeroext %432, i16 noundef zeroext %434, ptr %436) #4
  br label %437

437:                                              ; preds = %44, %60, %80, %115, %139, %160, %184, %211, %235, %261, %284, %311, %._crit_edge280, %._crit_edge277, %._crit_edge, %380, %405, %424, %33
  %438 = tail call ptr @nk__next(ptr noundef nonnull %0, ptr noundef nonnull %.0256282)
  %.not271 = icmp eq ptr %438, null
  br i1 %.not271, label %._crit_edge285, label %33, !llvm.loop !131

._crit_edge285:                                   ; preds = %437, %23
  %439 = getelementptr inbounds i8, ptr %1, i64 96
  %440 = load i64, ptr %439, align 8, !tbaa !132
  %441 = getelementptr inbounds i8, ptr %1, i64 88
  %442 = load i64, ptr %441, align 8, !tbaa !136
  %443 = getelementptr inbounds i8, ptr %1, i64 72
  %444 = load i64, ptr %443, align 8, !tbaa !137
  %445 = getelementptr inbounds i8, ptr %1, i64 112
  %446 = load i64, ptr %445, align 8, !tbaa !138
  %447 = add i64 %444, %442
  %448 = sub i64 %447, %446
  %449 = icmp ugt i64 %440, %448
  %450 = select i1 %449, i32 2, i32 0
  %451 = getelementptr inbounds i8, ptr %2, i64 96
  %452 = load i64, ptr %451, align 8, !tbaa !132
  %453 = getelementptr inbounds i8, ptr %2, i64 88
  %454 = load i64, ptr %453, align 8, !tbaa !136
  %455 = icmp ugt i64 %452, %454
  %456 = select i1 %455, i32 4, i32 0
  %457 = or disjoint i32 %450, %456
  %458 = getelementptr inbounds i8, ptr %3, i64 96
  %459 = load i64, ptr %458, align 8, !tbaa !132
  %460 = getelementptr inbounds i8, ptr %3, i64 88
  %461 = load i64, ptr %460, align 8, !tbaa !136
  %462 = icmp ugt i64 %459, %461
  %463 = select i1 %462, i32 8, i32 0
  %464 = or disjoint i32 %457, %463
  ret i32 %464
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @nk__begin(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @nk__next(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #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 = { 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 = { noreturn nounwind }
attributes #4 = { 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, !13, i64 40}
!6 = !{!"nk_convert_config", !7, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !13, i64 40, !14, i64 48, !14, i64 56}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"nk_draw_null_texture", !8, i64 0, !12, i64 8}
!12 = !{!"nk_vec2", !7, i64 0, !7, i64 4}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!6, !14, i64 48}
!16 = !{!6, !10, i64 4}
!17 = !{!6, !10, i64 8}
!18 = !{!19, !10, i64 0}
!19 = !{!"nk_command", !10, i64 0, !14, i64 8}
!20 = !{!21, !23, i64 22}
!21 = !{!"nk_command_polyline", !19, i64 0, !22, i64 16, !23, i64 20, !23, i64 22, !8, i64 24}
!22 = !{!"nk_color", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3}
!23 = !{!"short", !8, i64 0}
!24 = !{!25, !23, i64 20}
!25 = !{!"nk_command_polygon_filled", !19, i64 0, !22, i64 16, !23, i64 20, !8, i64 22}
!26 = !{!27, !23, i64 22}
!27 = !{!"nk_command_polygon", !19, i64 0, !22, i64 16, !23, i64 20, !23, i64 22, !8, i64 24}
!28 = !{!29, !23, i64 16}
!29 = !{!"nk_command_scissor", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !23, i64 22}
!30 = !{!29, !23, i64 18}
!31 = !{!29, !23, i64 20}
!32 = !{!29, !23, i64 22}
!33 = !{!34, !23, i64 18}
!34 = !{!"nk_command_line", !19, i64 0, !23, i64 16, !35, i64 18, !35, i64 22, !22, i64 26}
!35 = !{!"nk_vec2i", !23, i64 0, !23, i64 2}
!36 = !{!34, !23, i64 20}
!37 = !{!34, !23, i64 22}
!38 = !{!34, !23, i64 24}
!39 = !{!34, !23, i64 16}
!40 = !{!41, !23, i64 18}
!41 = !{!"nk_command_curve", !19, i64 0, !23, i64 16, !35, i64 18, !35, i64 22, !8, i64 26, !22, i64 34}
!42 = !{!41, !23, i64 20}
!43 = !{!35, !23, i64 0}
!44 = !{!35, !23, i64 2}
!45 = !{!41, !23, i64 22}
!46 = !{!41, !23, i64 24}
!47 = !{!6, !10, i64 20}
!48 = !{!41, !23, i64 16}
!49 = !{!50, !23, i64 20}
!50 = !{!"nk_command_rect", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !23, i64 22, !23, i64 24, !23, i64 26, !22, i64 28}
!51 = !{!50, !23, i64 22}
!52 = !{!50, !23, i64 24}
!53 = !{!50, !23, i64 26}
!54 = !{!50, !23, i64 16}
!55 = !{!50, !23, i64 18}
!56 = !{!57, !23, i64 18}
!57 = !{!"nk_command_rect_filled", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !23, i64 22, !23, i64 24, !22, i64 26}
!58 = !{!57, !23, i64 20}
!59 = !{!57, !23, i64 22}
!60 = !{!57, !23, i64 24}
!61 = !{!57, !23, i64 16}
!62 = !{!63, !23, i64 16}
!63 = !{!"nk_command_rect_multi_color", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !23, i64 22, !22, i64 24, !22, i64 28, !22, i64 32, !22, i64 36}
!64 = !{!63, !23, i64 18}
!65 = !{!63, !23, i64 20}
!66 = !{!63, !23, i64 22}
!67 = !{!68, !23, i64 16}
!68 = !{!"nk_command_circle", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !23, i64 22, !23, i64 24, !22, i64 26}
!69 = !{!68, !23, i64 22}
!70 = !{!68, !23, i64 18}
!71 = !{!68, !23, i64 24}
!72 = !{!6, !10, i64 12}
!73 = !{!68, !23, i64 20}
!74 = !{!75, !23, i64 16}
!75 = !{!"nk_command_circle_filled", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !23, i64 22, !22, i64 24}
!76 = !{!75, !23, i64 20}
!77 = !{!75, !23, i64 18}
!78 = !{!75, !23, i64 22}
!79 = !{!80, !23, i64 16}
!80 = !{!"nk_command_arc", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !23, i64 22, !8, i64 24, !22, i64 32}
!81 = !{!80, !23, i64 18}
!82 = !{!80, !23, i64 20}
!83 = !{!7, !7, i64 0}
!84 = !{!6, !10, i64 16}
!85 = !{!80, !23, i64 22}
!86 = !{!87, !23, i64 16}
!87 = !{!"nk_command_arc_filled", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !8, i64 24, !22, i64 32}
!88 = !{!87, !23, i64 18}
!89 = !{!87, !23, i64 20}
!90 = !{!91, !23, i64 18}
!91 = !{!"nk_command_triangle", !19, i64 0, !23, i64 16, !35, i64 18, !35, i64 22, !35, i64 26, !22, i64 30}
!92 = !{!91, !23, i64 20}
!93 = !{!91, !23, i64 22}
!94 = !{!91, !23, i64 24}
!95 = !{!91, !23, i64 26}
!96 = !{!91, !23, i64 28}
!97 = !{!91, !23, i64 16}
!98 = !{!99, !23, i64 16}
!99 = !{!"nk_command_triangle_filled", !19, i64 0, !35, i64 16, !35, i64 20, !35, i64 24, !22, i64 28}
!100 = !{!99, !23, i64 18}
!101 = !{!99, !23, i64 20}
!102 = !{!99, !23, i64 22}
!103 = !{!99, !23, i64 24}
!104 = !{!99, !23, i64 26}
!105 = distinct !{!105, !106}
!106 = !{!"llvm.loop.mustprogress"}
!107 = !{!27, !23, i64 20}
!108 = distinct !{!108, !106}
!109 = distinct !{!109, !106}
!110 = !{!21, !23, i64 20}
!111 = !{!112, !13, i64 16}
!112 = !{!"nk_command_text", !19, i64 0, !13, i64 16, !22, i64 24, !22, i64 28, !23, i64 32, !23, i64 34, !23, i64 36, !23, i64 38, !7, i64 40, !10, i64 44, !8, i64 48}
!113 = !{!112, !23, i64 32}
!114 = !{!112, !23, i64 34}
!115 = !{!112, !23, i64 36}
!116 = !{!112, !23, i64 38}
!117 = !{!112, !10, i64 44}
!118 = !{!112, !7, i64 40}
!119 = !{!120, !23, i64 16}
!120 = !{!"nk_command_image", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !23, i64 22, !121, i64 24, !22, i64 48}
!121 = !{!"nk_image", !8, i64 0, !23, i64 8, !23, i64 10, !8, i64 12}
!122 = !{!120, !23, i64 18}
!123 = !{!120, !23, i64 20}
!124 = !{!120, !23, i64 22}
!125 = !{!126, !13, i64 32}
!126 = !{!"nk_command_custom", !19, i64 0, !23, i64 16, !23, i64 18, !23, i64 20, !23, i64 22, !8, i64 24, !13, i64 32}
!127 = !{!126, !23, i64 16}
!128 = !{!126, !23, i64 18}
!129 = !{!126, !23, i64 20}
!130 = !{!126, !23, i64 22}
!131 = distinct !{!131, !106}
!132 = !{!133, !14, i64 96}
!133 = !{!"nk_buffer", !8, i64 0, !134, i64 32, !10, i64 56, !135, i64 64, !7, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112}
!134 = !{!"nk_allocator", !8, i64 0, !13, i64 8, !13, i64 16}
!135 = !{!"nk_memory", !13, i64 0, !14, i64 8}
!136 = !{!133, !14, i64 88}
!137 = !{!133, !14, i64 72}
!138 = !{!133, !14, i64 112}


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