; LLVM IR from ClementineAccount/Albuquerque :: src/HelloSDL/main.ll (Z19nk_sdl_handle_eventP9SDL_Event)

; 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_sdl = type { ptr, ptr, %struct.nk_sdl_device, %struct.nk_context, %struct.nk_font_atlas }
%struct.nk_sdl_device = type { %struct.nk_buffer, %struct.nk_draw_null_texture, ptr }
%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 }
%union.nk_handle = type { ptr }
%struct.nk_memory = type { ptr, i64 }
%struct.nk_draw_null_texture = type { %union.nk_handle, %struct.nk_vec2 }
%struct.nk_vec2 = type { float, float }
%struct.nk_context = type { %struct.nk_input, %struct.nk_style, %struct.nk_buffer, %struct.nk_clipboard, i32, i32, %struct.nk_configuration_stacks, float, %struct.nk_draw_list, %struct.nk_text_edit, %struct.nk_command_buffer, i32, i32, %struct.nk_pool, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.nk_input = type { %struct.nk_keyboard, %struct.nk_mouse }
%struct.nk_keyboard = type { [30 x %struct.nk_key], [16 x i8], i32 }
%struct.nk_key = type { i32, i32 }
%struct.nk_mouse = type { [4 x %struct.nk_mouse_button], %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i8, i8, i8 }
%struct.nk_mouse_button = type { i32, i32, %struct.nk_vec2 }
%struct.nk_style = type { ptr, [7 x ptr], ptr, ptr, i32, %struct.nk_style_text, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_toggle, %struct.nk_style_toggle, %struct.nk_style_selectable, %struct.nk_style_slider, %struct.nk_style_progress, %struct.nk_style_property, %struct.nk_style_edit, %struct.nk_style_chart, %struct.nk_style_scrollbar, %struct.nk_style_scrollbar, %struct.nk_style_tab, %struct.nk_style_combo, %struct.nk_style_window }
%struct.nk_style_text = type { %struct.nk_color, %struct.nk_vec2 }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_nine_slice }
%struct.nk_nine_slice = type { %struct.nk_image, i16, i16, i16, i16 }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%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_clipboard = type { %union.nk_handle, ptr, ptr }
%struct.nk_configuration_stacks = type { %struct.nk_config_stack_style_item, %struct.nk_config_stack_float, %struct.nk_config_stack_vec2, %struct.nk_config_stack_flags, %struct.nk_config_stack_color, %struct.nk_config_stack_user_font, %struct.nk_config_stack_button_behavior }
%struct.nk_config_stack_style_item = type { i32, [16 x %struct.nk_config_stack_style_item_element] }
%struct.nk_config_stack_style_item_element = type { ptr, %struct.nk_style_item }
%struct.nk_config_stack_float = type { i32, [32 x %struct.nk_config_stack_float_element] }
%struct.nk_config_stack_float_element = type { ptr, float }
%struct.nk_config_stack_vec2 = type { i32, [16 x %struct.nk_config_stack_vec2_element] }
%struct.nk_config_stack_vec2_element = type { ptr, %struct.nk_vec2 }
%struct.nk_config_stack_flags = type { i32, [32 x %struct.nk_config_stack_flags_element] }
%struct.nk_config_stack_flags_element = type { ptr, i32 }
%struct.nk_config_stack_color = type { i32, [32 x %struct.nk_config_stack_color_element] }
%struct.nk_config_stack_color_element = type { ptr, %struct.nk_color }
%struct.nk_config_stack_user_font = type { i32, [8 x %struct.nk_config_stack_user_font_element] }
%struct.nk_config_stack_user_font_element = type { ptr, ptr }
%struct.nk_config_stack_button_behavior = type { i32, [8 x %struct.nk_config_stack_button_behavior_element] }
%struct.nk_config_stack_button_behavior_element = type { ptr, i32 }
%struct.nk_draw_list = type { %struct.nk_rect, [12 x %struct.nk_vec2], %struct.nk_convert_config, ptr, ptr, ptr, i32, i32, i32, i64, i32, i32, i32, i32 }
%struct.nk_rect = type { float, float, float, float }
%struct.nk_convert_config = type { float, i32, i32, i32, i32, i32, %struct.nk_draw_null_texture, ptr, i64, i64 }
%struct.nk_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_font_atlas = type { ptr, i32, i32, %struct.nk_allocator, %struct.nk_allocator, %struct.nk_recti, [7 x %struct.nk_cursor], i32, ptr, ptr, ptr, ptr, i32 }
%struct.nk_recti = type { i16, i16, i16, i16 }
%struct.nk_cursor = type { %struct.nk_image, %struct.nk_vec2, %struct.nk_vec2 }
%struct.SDL_KeyboardEvent = type { i32, i32, i32, i8, i8, i8, i8, %struct.SDL_Keysym }
%struct.SDL_Keysym = type { i32, i32, i16, i32 }
%struct.SDL_MouseButtonEvent = type { i32, i32, i32, i32, i8, i8, i8, i8, i32, i32 }
%struct.SDL_MouseMotionEvent = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.SDL_TextInputEvent = type { i32, i32, i32, [32 x i8] }
%struct.SDL_MouseWheelEvent = type { i32, i32, i32, i32, i32, i32, i32, float, float, i32, i32 }

@_ZL3sdl = external hidden global %struct.nk_sdl, align 8

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @nk_input_motion(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @nk_input_key(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @nk_input_button(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z19nk_sdl_handle_eventP9SDL_Event(ptr noundef %0) #5 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [4 x i8], align 1
  %16 = alloca %struct.nk_vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store ptr getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 3), ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.nk_context, ptr %17, i32 0, i32 0
  %19 = getelementptr inbounds %struct.nk_input, ptr %18, i32 0, i32 1
  %20 = getelementptr inbounds %struct.nk_mouse, ptr %19, i32 0, i32 5
  %21 = load i8, ptr %20, align 4, !tbaa !9
  %22 = icmp ne i8 %21, 0
  br i1 %22, label %23, label %29

23:                                               ; preds = %1
  %24 = call i32 @SDL_SetRelativeMouseMode(i32 noundef 1)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.nk_context, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %struct.nk_input, ptr %26, i32 0, i32 1
  %28 = getelementptr inbounds %struct.nk_mouse, ptr %27, i32 0, i32 5
  store i8 0, ptr %28, align 4, !tbaa !9
  br label %60

29:                                               ; preds = %1
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.nk_context, ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds %struct.nk_input, ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds %struct.nk_mouse, ptr %32, i32 0, i32 7
  %34 = load i8, ptr %33, align 2, !tbaa !63
  %35 = icmp ne i8 %34, 0
  br i1 %35, label %36, label %59

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.nk_context, ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds %struct.nk_input, ptr %38, i32 0, i32 1
  %40 = getelementptr inbounds %struct.nk_mouse, ptr %39, i32 0, i32 2
  %41 = getelementptr inbounds %struct.nk_vec2, ptr %40, i32 0, i32 0
  %42 = load float, ptr %41, align 4, !tbaa !64
  %43 = fptosi float %42 to i32
  store i32 %43, ptr %5, align 4, !tbaa !65
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.nk_context, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %struct.nk_input, ptr %45, i32 0, i32 1
  %47 = getelementptr inbounds %struct.nk_mouse, ptr %46, i32 0, i32 2
  %48 = getelementptr inbounds %struct.nk_vec2, ptr %47, i32 0, i32 1
  %49 = load float, ptr %48, align 4, !tbaa !66
  %50 = fptosi float %49 to i32
  store i32 %50, ptr %6, align 4, !tbaa !65
  %51 = call i32 @SDL_SetRelativeMouseMode(i32 noundef 0)
  %52 = load ptr, ptr @_ZL3sdl, align 8, !tbaa !67
  %53 = load i32, ptr %5, align 4, !tbaa !65
  %54 = load i32, ptr %6, align 4, !tbaa !65
  call void @SDL_WarpMouseInWindow(ptr noundef %52, i32 noundef %53, i32 noundef %54)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.nk_context, ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %struct.nk_input, ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds %struct.nk_mouse, ptr %57, i32 0, i32 7
  store i8 0, ptr %58, align 2, !tbaa !63
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %59

59:                                               ; preds = %36, %29
  br label %60

60:                                               ; preds = %59, %23
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = load i32, ptr %61, align 8, !tbaa !72
  switch i32 %62, label %322 [
    i32 769, label %63
    i32 768, label %63
    i32 1026, label %219
    i32 1025, label %219
    i32 1024, label %261
    i32 771, label %303
    i32 1027, label %310
  ]

63:                                               ; preds = %60, %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = load i32, ptr %64, align 8, !tbaa !72
  %66 = icmp eq i32 %65, 768
  %67 = zext i1 %66 to i32
  store i32 %67, ptr %7, align 4, !tbaa !65
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %68 = call ptr @SDL_GetKeyboardState(ptr noundef null)
  store ptr %68, ptr %8, align 8, !tbaa !5
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.SDL_KeyboardEvent, ptr %69, i32 0, i32 7
  %71 = getelementptr inbounds %struct.SDL_Keysym, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !72
  switch i32 %72, label %218 [
    i32 1073742053, label %73
    i32 1073742049, label %73
    i32 127, label %76
    i32 13, label %79
    i32 9, label %82
    i32 8, label %85
    i32 1073741898, label %88
    i32 1073741901, label %93
    i32 1073741902, label %98
    i32 1073741899, label %101
    i32 122, label %104
    i32 114, label %116
    i32 99, label %128
    i32 118, label %140
    i32 120, label %152
    i32 98, label %164
    i32 101, label %176
    i32 1073741906, label %188
    i32 1073741905, label %191
    i32 1073741904, label %194
    i32 1073741903, label %206
  ]

73:                                               ; preds = %63, %63
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %74, i32 noundef 1, i32 noundef %75)
  br label %218

76:                                               ; preds = %63
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %77, i32 noundef 3, i32 noundef %78)
  br label %218

79:                                               ; preds = %63
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %80, i32 noundef 4, i32 noundef %81)
  br label %218

82:                                               ; preds = %63
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %83, i32 noundef 5, i32 noundef %84)
  br label %218

85:                                               ; preds = %63
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %86, i32 noundef 6, i32 noundef %87)
  br label %218

88:                                               ; preds = %63
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %89, i32 noundef 19, i32 noundef %90)
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %91, i32 noundef 26, i32 noundef %92)
  br label %218

93:                                               ; preds = %63
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %94, i32 noundef 20, i32 noundef %95)
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %96, i32 noundef 27, i32 noundef %97)
  br label %218

98:                                               ; preds = %63
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %99, i32 noundef 28, i32 noundef %100)
  br label %218

101:                                              ; preds = %63
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %102, i32 noundef 29, i32 noundef %103)
  br label %218

104:                                              ; preds = %63
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load i32, ptr %7, align 4, !tbaa !65
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %113

108:                                              ; preds = %104
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 224
  %111 = load i8, ptr %110, align 1, !tbaa !72
  %112 = icmp ne i8 %111, 0
  br label %113

113:                                              ; preds = %108, %104
  %114 = phi i1 [ false, %104 ], [ %112, %108 ]
  %115 = zext i1 %114 to i32
  call void @nk_input_key(ptr noundef %105, i32 noundef 21, i32 noundef %115)
  br label %218

116:                                              ; preds = %63
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load i32, ptr %7, align 4, !tbaa !65
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %125

120:                                              ; preds = %116
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i64 224
  %123 = load i8, ptr %122, align 1, !tbaa !72
  %124 = icmp ne i8 %123, 0
  br label %125

125:                                              ; preds = %120, %116
  %126 = phi i1 [ false, %116 ], [ %124, %120 ]
  %127 = zext i1 %126 to i32
  call void @nk_input_key(ptr noundef %117, i32 noundef 22, i32 noundef %127)
  br label %218

128:                                              ; preds = %63
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = load i32, ptr %7, align 4, !tbaa !65
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %137

132:                                              ; preds = %128
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 224
  %135 = load i8, ptr %134, align 1, !tbaa !72
  %136 = icmp ne i8 %135, 0
  br label %137

137:                                              ; preds = %132, %128
  %138 = phi i1 [ false, %128 ], [ %136, %132 ]
  %139 = zext i1 %138 to i32
  call void @nk_input_key(ptr noundef %129, i32 noundef 7, i32 noundef %139)
  br label %218

140:                                              ; preds = %63
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = load i32, ptr %7, align 4, !tbaa !65
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %149

144:                                              ; preds = %140
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 224
  %147 = load i8, ptr %146, align 1, !tbaa !72
  %148 = icmp ne i8 %147, 0
  br label %149

149:                                              ; preds = %144, %140
  %150 = phi i1 [ false, %140 ], [ %148, %144 ]
  %151 = zext i1 %150 to i32
  call void @nk_input_key(ptr noundef %141, i32 noundef 9, i32 noundef %151)
  br label %218

152:                                              ; preds = %63
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = load i32, ptr %7, align 4, !tbaa !65
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %161

156:                                              ; preds = %152
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds i8, ptr %157, i64 224
  %159 = load i8, ptr %158, align 1, !tbaa !72
  %160 = icmp ne i8 %159, 0
  br label %161

161:                                              ; preds = %156, %152
  %162 = phi i1 [ false, %152 ], [ %160, %156 ]
  %163 = zext i1 %162 to i32
  call void @nk_input_key(ptr noundef %153, i32 noundef 8, i32 noundef %163)
  br label %218

164:                                              ; preds = %63
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = load i32, ptr %7, align 4, !tbaa !65
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %173

168:                                              ; preds = %164
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 224
  %171 = load i8, ptr %170, align 1, !tbaa !72
  %172 = icmp ne i8 %171, 0
  br label %173

173:                                              ; preds = %168, %164
  %174 = phi i1 [ false, %164 ], [ %172, %168 ]
  %175 = zext i1 %174 to i32
  call void @nk_input_key(ptr noundef %165, i32 noundef 17, i32 noundef %175)
  br label %218

176:                                              ; preds = %63
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = load i32, ptr %7, align 4, !tbaa !65
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %185

180:                                              ; preds = %176
  %181 = load ptr, ptr %8, align 8, !tbaa !5
  %182 = getelementptr inbounds i8, ptr %181, i64 224
  %183 = load i8, ptr %182, align 1, !tbaa !72
  %184 = icmp ne i8 %183, 0
  br label %185

185:                                              ; preds = %180, %176
  %186 = phi i1 [ false, %176 ], [ %184, %180 ]
  %187 = zext i1 %186 to i32
  call void @nk_input_key(ptr noundef %177, i32 noundef 18, i32 noundef %187)
  br label %218

188:                                              ; preds = %63
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %189, i32 noundef 10, i32 noundef %190)
  br label %218

191:                                              ; preds = %63
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %192, i32 noundef 11, i32 noundef %193)
  br label %218

194:                                              ; preds = %63
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %195, i64 224
  %197 = load i8, ptr %196, align 1, !tbaa !72
  %198 = icmp ne i8 %197, 0
  br i1 %198, label %199, label %202

199:                                              ; preds = %194
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %200, i32 noundef 24, i32 noundef %201)
  br label %205

202:                                              ; preds = %194
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %203, i32 noundef 12, i32 noundef %204)
  br label %205

205:                                              ; preds = %202, %199
  br label %218

206:                                              ; preds = %63
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = getelementptr inbounds i8, ptr %207, i64 224
  %209 = load i8, ptr %208, align 1, !tbaa !72
  %210 = icmp ne i8 %209, 0
  br i1 %210, label %211, label %214

211:                                              ; preds = %206
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %212, i32 noundef 25, i32 noundef %213)
  br label %217

214:                                              ; preds = %206
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = load i32, ptr %7, align 4, !tbaa !65
  call void @nk_input_key(ptr noundef %215, i32 noundef 13, i32 noundef %216)
  br label %217

217:                                              ; preds = %214, %211
  br label %218

218:                                              ; preds = %217, %205, %191, %188, %185, %173, %161, %149, %137, %125, %113, %101, %98, %93, %88, %85, %82, %79, %76, %73, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %323

219:                                              ; preds = %60, %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = load i32, ptr %220, align 8, !tbaa !72
  %222 = icmp eq i32 %221, 1025
  %223 = zext i1 %222 to i32
  store i32 %223, ptr %10, align 4, !tbaa !65
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.SDL_MouseButtonEvent, ptr %224, i32 0, i32 8
  %226 = load i32, ptr %225, align 4, !tbaa !72
  store i32 %226, ptr %11, align 4, !tbaa !65
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.SDL_MouseButtonEvent, ptr %227, i32 0, i32 9
  %229 = load i32, ptr %228, align 8, !tbaa !72
  store i32 %229, ptr %12, align 4, !tbaa !65
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.SDL_MouseButtonEvent, ptr %230, i32 0, i32 4
  %232 = load i8, ptr %231, align 8, !tbaa !72
  %233 = zext i8 %232 to i32
  switch i32 %233, label %260 [
    i32 1, label %234
    i32 2, label %250
    i32 3, label %255
  ]

234:                                              ; preds = %219
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.SDL_MouseButtonEvent, ptr %235, i32 0, i32 6
  %237 = load i8, ptr %236, align 2, !tbaa !72
  %238 = zext i8 %237 to i32
  %239 = icmp sgt i32 %238, 1
  br i1 %239, label %240, label %245

240:                                              ; preds = %234
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = load i32, ptr %11, align 4, !tbaa !65
  %243 = load i32, ptr %12, align 4, !tbaa !65
  %244 = load i32, ptr %10, align 4, !tbaa !65
  call void @nk_input_button(ptr noundef %241, i32 noundef 3, i32 noundef %242, i32 noundef %243, i32 noundef %244)
  br label %245

245:                                              ; preds = %240, %234
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = load i32, ptr %11, align 4, !tbaa !65
  %248 = load i32, ptr %12, align 4, !tbaa !65
  %249 = load i32, ptr %10, align 4, !tbaa !65
  call void @nk_input_button(ptr noundef %246, i32 noundef 0, i32 noundef %247, i32 noundef %248, i32 noundef %249)
  br label %260

250:                                              ; preds = %219
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = load i32, ptr %11, align 4, !tbaa !65
  %253 = load i32, ptr %12, align 4, !tbaa !65
  %254 = load i32, ptr %10, align 4, !tbaa !65
  call void @nk_input_button(ptr noundef %251, i32 noundef 1, i32 noundef %252, i32 noundef %253, i32 noundef %254)
  br label %260

255:                                              ; preds = %219
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = load i32, ptr %11, align 4, !tbaa !65
  %258 = load i32, ptr %12, align 4, !tbaa !65
  %259 = load i32, ptr %10, align 4, !tbaa !65
  call void @nk_input_button(ptr noundef %256, i32 noundef 2, i32 noundef %257, i32 noundef %258, i32 noundef %259)
  br label %260

260:                                              ; preds = %255, %250, %245, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %323

261:                                              ; preds = %60
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.nk_context, ptr %262, i32 0, i32 0
  %264 = getelementptr inbounds %struct.nk_input, ptr %263, i32 0, i32 1
  %265 = getelementptr inbounds %struct.nk_mouse, ptr %264, i32 0, i32 6
  %266 = load i8, ptr %265, align 1, !tbaa !73
  %267 = icmp ne i8 %266, 0
  br i1 %267, label %268, label %294

268:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.nk_context, ptr %269, i32 0, i32 0
  %271 = getelementptr inbounds %struct.nk_input, ptr %270, i32 0, i32 1
  %272 = getelementptr inbounds %struct.nk_mouse, ptr %271, i32 0, i32 2
  %273 = getelementptr inbounds %struct.nk_vec2, ptr %272, i32 0, i32 0
  %274 = load float, ptr %273, align 4, !tbaa !64
  %275 = fptosi float %274 to i32
  store i32 %275, ptr %13, align 4, !tbaa !65
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.nk_context, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds %struct.nk_input, ptr %277, i32 0, i32 1
  %279 = getelementptr inbounds %struct.nk_mouse, ptr %278, i32 0, i32 2
  %280 = getelementptr inbounds %struct.nk_vec2, ptr %279, i32 0, i32 1
  %281 = load float, ptr %280, align 4, !tbaa !66
  %282 = fptosi float %281 to i32
  store i32 %282, ptr %14, align 4, !tbaa !65
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = load i32, ptr %13, align 4, !tbaa !65
  %285 = load ptr, ptr %3, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.SDL_MouseMotionEvent, ptr %285, i32 0, i32 7
  %287 = load i32, ptr %286, align 4, !tbaa !72
  %288 = add nsw i32 %284, %287
  %289 = load i32, ptr %14, align 4, !tbaa !65
  %290 = load ptr, ptr %3, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.SDL_MouseMotionEvent, ptr %290, i32 0, i32 8
  %292 = load i32, ptr %291, align 8, !tbaa !72
  %293 = add nsw i32 %289, %292
  call void @nk_input_motion(ptr noundef %283, i32 noundef %288, i32 noundef %293)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %302

294:                                              ; preds = %261
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = load ptr, ptr %3, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.SDL_MouseMotionEvent, ptr %296, i32 0, i32 5
  %298 = load i32, ptr %297, align 4, !tbaa !72
  %299 = load ptr, ptr %3, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.SDL_MouseMotionEvent, ptr %299, i32 0, i32 6
  %301 = load i32, ptr %300, align 8, !tbaa !72
  call void @nk_input_motion(ptr noundef %295, i32 noundef %298, i32 noundef %301)
  br label %302

302:                                              ; preds = %294, %268
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %323

303:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %304 = getelementptr inbounds [4 x i8], ptr %15, i64 0, i64 0
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.SDL_TextInputEvent, ptr %305, i32 0, i32 3
  %307 = getelementptr inbounds [32 x i8], ptr %306, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %304, ptr align 4 %307, i64 4, i1 false)
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = getelementptr inbounds [4 x i8], ptr %15, i64 0, i64 0
  call void @nk_input_glyph(ptr noundef %308, ptr noundef %309)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %323

310:                                              ; preds = %60
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = load ptr, ptr %3, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.SDL_MouseWheelEvent, ptr %312, i32 0, i32 4
  %314 = load i32, ptr %313, align 8, !tbaa !72
  %315 = sitofp i32 %314 to float
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.SDL_MouseWheelEvent, ptr %316, i32 0, i32 5
  %318 = load i32, ptr %317, align 4, !tbaa !72
  %319 = sitofp i32 %318 to float
  %320 = call <2 x float> @nk_vec2(float noundef %315, float noundef %319)
  store <2 x float> %320, ptr %16, align 4
  %321 = load <2 x float>, ptr %16, align 4
  call void @nk_input_scroll(ptr noundef %311, <2 x float> %321)
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %323

322:                                              ; preds = %60
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %323

323:                                              ; preds = %322, %310, %303, %302, %260, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  %324 = load i32, ptr %2, align 4
  ret i32 %324
}

declare i32 @SDL_SetRelativeMouseMode(i32 noundef) #6

declare void @SDL_WarpMouseInWindow(ptr noundef, i32 noundef, i32 noundef) #6

declare ptr @SDL_GetKeyboardState(ptr noundef) #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !7, i64 356}
!10 = !{!"_ZTS10nk_context", !11, i64 0, !17, i64 360, !37, i64 9000, !42, i64 9120, !13, i64 9144, !43, i64 9148, !44, i64 9152, !16, i64 12024, !52, i64 12032, !57, i64 12272, !61, i64 17656, !13, i64 17720, !13, i64 17724, !62, i64 17728, !6, i64 17800, !6, i64 17808, !6, i64 17816, !6, i64 17824, !6, i64 17832, !13, i64 17840, !13, i64 17844}
!11 = !{!"_ZTS8nk_input", !12, i64 0, !14, i64 260}
!12 = !{!"_ZTS11nk_keyboard", !7, i64 0, !7, i64 240, !13, i64 256}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS8nk_mouse", !7, i64 0, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !7, i64 96, !7, i64 97, !7, i64 98}
!15 = !{!"_ZTS7nk_vec2", !16, i64 0, !16, i64 4}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTS8nk_style", !6, i64 0, !7, i64 8, !6, i64 64, !6, i64 72, !13, i64 80, !18, i64 84, !20, i64 96, !20, i64 296, !20, i64 496, !23, i64 696, !23, i64 976, !24, i64 1256, !25, i64 1584, !27, i64 2320, !28, i64 2624, !29, i64 4128, !31, i64 5048, !30, i64 5120, !30, i64 5832, !32, i64 6544, !33, i64 7432, !34, i64 7832}
!18 = !{!"_ZTS13nk_style_text", !19, i64 0, !15, i64 4}
!19 = !{!"_ZTS8nk_color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!20 = !{!"_ZTS15nk_style_button", !21, i64 0, !21, i64 40, !21, i64 80, !19, i64 120, !19, i64 124, !19, i64 128, !19, i64 132, !19, i64 136, !13, i64 140, !16, i64 144, !16, i64 148, !15, i64 152, !15, i64 160, !15, i64 168, !7, i64 176, !6, i64 184, !6, i64 192}
!21 = !{!"_ZTS13nk_style_item", !22, i64 0, !7, i64 8}
!22 = !{!"_ZTS18nk_style_item_type", !7, i64 0}
!23 = !{!"_ZTS15nk_style_toggle", !21, i64 0, !21, i64 40, !21, i64 80, !19, i64 120, !21, i64 128, !21, i64 168, !19, i64 208, !19, i64 212, !19, i64 216, !19, i64 220, !13, i64 224, !15, i64 228, !15, i64 236, !16, i64 244, !16, i64 248, !7, i64 256, !6, i64 264, !6, i64 272}
!24 = !{!"_ZTS19nk_style_selectable", !21, i64 0, !21, i64 40, !21, i64 80, !21, i64 120, !21, i64 160, !21, i64 200, !19, i64 240, !19, i64 244, !19, i64 248, !19, i64 252, !19, i64 256, !19, i64 260, !19, i64 264, !13, i64 268, !16, i64 272, !15, i64 276, !15, i64 284, !15, i64 292, !7, i64 304, !6, i64 312, !6, i64 320}
!25 = !{!"_ZTS15nk_style_slider", !21, i64 0, !21, i64 40, !21, i64 80, !19, i64 120, !19, i64 124, !19, i64 128, !19, i64 132, !19, i64 136, !21, i64 144, !21, i64 184, !21, i64 224, !16, i64 264, !16, i64 268, !16, i64 272, !15, i64 276, !15, i64 284, !15, i64 292, !13, i64 300, !20, i64 304, !20, i64 504, !26, i64 704, !26, i64 708, !7, i64 712, !6, i64 720, !6, i64 728}
!26 = !{!"_ZTS14nk_symbol_type", !7, i64 0}
!27 = !{!"_ZTS17nk_style_progress", !21, i64 0, !21, i64 40, !21, i64 80, !19, i64 120, !21, i64 128, !21, i64 168, !21, i64 208, !19, i64 248, !16, i64 252, !16, i64 256, !16, i64 260, !16, i64 264, !15, i64 268, !7, i64 280, !6, i64 288, !6, i64 296}
!28 = !{!"_ZTS17nk_style_property", !21, i64 0, !21, i64 40, !21, i64 80, !19, i64 120, !19, i64 124, !19, i64 128, !19, i64 132, !26, i64 136, !26, i64 140, !16, i64 144, !16, i64 148, !15, i64 152, !29, i64 160, !20, i64 1080, !20, i64 1280, !7, i64 1480, !6, i64 1488, !6, i64 1496}
!29 = !{!"_ZTS13nk_style_edit", !21, i64 0, !21, i64 40, !21, i64 80, !19, i64 120, !30, i64 128, !19, i64 840, !19, i64 844, !19, i64 848, !19, i64 852, !19, i64 856, !19, i64 860, !19, i64 864, !19, i64 868, !19, i64 872, !19, i64 876, !19, i64 880, !16, i64 884, !16, i64 888, !16, i64 892, !15, i64 896, !15, i64 904, !16, i64 912}
!30 = !{!"_ZTS18nk_style_scrollbar", !21, i64 0, !21, i64 40, !21, i64 80, !19, i64 120, !21, i64 128, !21, i64 168, !21, i64 208, !19, i64 248, !16, i64 252, !16, i64 256, !16, i64 260, !16, i64 264, !15, i64 268, !13, i64 276, !20, i64 280, !20, i64 480, !26, i64 680, !26, i64 684, !7, i64 688, !6, i64 696, !6, i64 704}
!31 = !{!"_ZTS14nk_style_chart", !21, i64 0, !19, i64 40, !19, i64 44, !19, i64 48, !16, i64 52, !16, i64 56, !15, i64 60}
!32 = !{!"_ZTS12nk_style_tab", !21, i64 0, !19, i64 40, !19, i64 44, !20, i64 48, !20, i64 248, !20, i64 448, !20, i64 648, !26, i64 848, !26, i64 852, !16, i64 856, !16, i64 860, !16, i64 864, !15, i64 868, !15, i64 876}
!33 = !{!"_ZTS14nk_style_combo", !21, i64 0, !21, i64 40, !21, i64 80, !19, i64 120, !19, i64 124, !19, i64 128, !19, i64 132, !19, i64 136, !19, i64 140, !19, i64 144, !20, i64 152, !26, i64 352, !26, i64 356, !26, i64 360, !16, i64 364, !16, i64 368, !15, i64 372, !15, i64 380, !15, i64 388}
!34 = !{!"_ZTS15nk_style_window", !35, i64 0, !21, i64 576, !19, i64 616, !19, i64 620, !19, i64 624, !19, i64 628, !19, i64 632, !19, i64 636, !19, i64 640, !19, i64 644, !21, i64 648, !16, i64 688, !16, i64 692, !16, i64 696, !16, i64 700, !16, i64 704, !16, i64 708, !16, i64 712, !16, i64 716, !16, i64 720, !15, i64 724, !15, i64 732, !15, i64 740, !15, i64 748, !15, i64 756, !15, i64 764, !15, i64 772, !15, i64 780, !15, i64 788, !15, i64 796}
!35 = !{!"_ZTS22nk_style_window_header", !21, i64 0, !21, i64 40, !21, i64 80, !20, i64 120, !20, i64 320, !26, i64 520, !26, i64 524, !26, i64 528, !19, i64 532, !19, i64 536, !19, i64 540, !36, i64 544, !15, i64 548, !15, i64 556, !15, i64 564}
!36 = !{!"_ZTS21nk_style_header_align", !7, i64 0}
!37 = !{!"_ZTS9nk_buffer", !7, i64 0, !38, i64 32, !39, i64 56, !40, i64 64, !16, i64 80, !41, i64 88, !41, i64 96, !41, i64 104, !41, i64 112}
!38 = !{!"_ZTS12nk_allocator", !7, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTS18nk_allocation_type", !7, i64 0}
!40 = !{!"_ZTS9nk_memory", !6, i64 0, !41, i64 8}
!41 = !{!"long", !7, i64 0}
!42 = !{!"_ZTS12nk_clipboard", !7, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTS18nk_button_behavior", !7, i64 0}
!44 = !{!"_ZTS23nk_configuration_stacks", !45, i64 0, !46, i64 776, !47, i64 1296, !48, i64 1560, !49, i64 2080, !50, i64 2600, !51, i64 2736}
!45 = !{!"_ZTS26nk_config_stack_style_item", !13, i64 0, !7, i64 8}
!46 = !{!"_ZTS21nk_config_stack_float", !13, i64 0, !7, i64 8}
!47 = !{!"_ZTS20nk_config_stack_vec2", !13, i64 0, !7, i64 8}
!48 = !{!"_ZTS21nk_config_stack_flags", !13, i64 0, !7, i64 8}
!49 = !{!"_ZTS21nk_config_stack_color", !13, i64 0, !7, i64 8}
!50 = !{!"_ZTS25nk_config_stack_user_font", !13, i64 0, !7, i64 8}
!51 = !{!"_ZTS31nk_config_stack_button_behavior", !13, i64 0, !7, i64 8}
!52 = !{!"_ZTS12nk_draw_list", !53, i64 0, !7, i64 16, !54, i64 112, !6, i64 176, !6, i64 184, !6, i64 192, !13, i64 200, !13, i64 204, !13, i64 208, !41, i64 216, !13, i64 224, !13, i64 228, !55, i64 232, !55, i64 236}
!53 = !{!"_ZTS7nk_rect", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!54 = !{!"_ZTS17nk_convert_config", !16, i64 0, !55, i64 4, !55, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !56, i64 24, !6, i64 40, !41, i64 48, !41, i64 56}
!55 = !{!"_ZTS16nk_anti_aliasing", !7, i64 0}
!56 = !{!"_ZTS20nk_draw_null_texture", !7, i64 0, !15, i64 8}
!57 = !{!"_ZTS12nk_text_edit", !42, i64 0, !58, i64 24, !6, i64 152, !15, i64 160, !13, i64 168, !13, i64 172, !13, i64 176, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !7, i64 184, !7, i64 185, !7, i64 186, !16, i64 188, !59, i64 192}
!58 = !{!"_ZTS6nk_str", !37, i64 0, !13, i64 120}
!59 = !{!"_ZTS18nk_text_undo_state", !7, i64 0, !7, i64 1188, !60, i64 5184, !60, i64 5186, !60, i64 5188, !60, i64 5190}
!60 = !{!"short", !7, i64 0}
!61 = !{!"_ZTS17nk_command_buffer", !6, i64 0, !53, i64 8, !13, i64 24, !7, i64 32, !41, i64 40, !41, i64 48, !41, i64 56}
!62 = !{!"_ZTS7nk_pool", !38, i64 0, !39, i64 24, !13, i64 28, !6, i64 32, !6, i64 40, !13, i64 48, !41, i64 56, !41, i64 64}
!63 = !{!10, !7, i64 358}
!64 = !{!10, !16, i64 332}
!65 = !{!13, !13, i64 0}
!66 = !{!10, !16, i64 336}
!67 = !{!68, !6, i64 0}
!68 = !{!"_ZTS6nk_sdl", !6, i64 0, !6, i64 8, !69, i64 16, !10, i64 160, !70, i64 18008}
!69 = !{!"_ZTS13nk_sdl_device", !37, i64 0, !56, i64 120, !6, i64 136}
!70 = !{!"_ZTS13nk_font_atlas", !6, i64 0, !13, i64 8, !13, i64 12, !38, i64 16, !38, i64 40, !71, i64 64, !7, i64 72, !13, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !13, i64 392}
!71 = !{!"_ZTS8nk_recti", !60, i64 0, !60, i64 2, !60, i64 4, !60, i64 6}
!72 = !{!7, !7, i64 0}
!73 = !{!10, !7, i64 357}


; 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_sdl = type { ptr, ptr, %struct.nk_sdl_device, %struct.nk_context, %struct.nk_font_atlas }
%struct.nk_sdl_device = type { %struct.nk_buffer, %struct.nk_draw_null_texture, ptr }
%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 }
%union.nk_handle = type { ptr }
%struct.nk_memory = type { ptr, i64 }
%struct.nk_draw_null_texture = type { %union.nk_handle, %struct.nk_vec2 }
%struct.nk_vec2 = type { float, float }
%struct.nk_context = type { %struct.nk_input, %struct.nk_style, %struct.nk_buffer, %struct.nk_clipboard, i32, i32, %struct.nk_configuration_stacks, float, %struct.nk_draw_list, %struct.nk_text_edit, %struct.nk_command_buffer, i32, i32, %struct.nk_pool, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.nk_input = type { %struct.nk_keyboard, %struct.nk_mouse }
%struct.nk_keyboard = type { [30 x %struct.nk_key], [16 x i8], i32 }
%struct.nk_key = type { i32, i32 }
%struct.nk_mouse = type { [4 x %struct.nk_mouse_button], %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i8, i8, i8 }
%struct.nk_mouse_button = type { i32, i32, %struct.nk_vec2 }
%struct.nk_style = type { ptr, [7 x ptr], ptr, ptr, i32, %struct.nk_style_text, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_toggle, %struct.nk_style_toggle, %struct.nk_style_selectable, %struct.nk_style_slider, %struct.nk_style_progress, %struct.nk_style_property, %struct.nk_style_edit, %struct.nk_style_chart, %struct.nk_style_scrollbar, %struct.nk_style_scrollbar, %struct.nk_style_tab, %struct.nk_style_combo, %struct.nk_style_window }
%struct.nk_style_text = type { %struct.nk_color, %struct.nk_vec2 }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_nine_slice }
%struct.nk_nine_slice = type { %struct.nk_image, i16, i16, i16, i16 }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%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_clipboard = type { %union.nk_handle, ptr, ptr }
%struct.nk_configuration_stacks = type { %struct.nk_config_stack_style_item, %struct.nk_config_stack_float, %struct.nk_config_stack_vec2, %struct.nk_config_stack_flags, %struct.nk_config_stack_color, %struct.nk_config_stack_user_font, %struct.nk_config_stack_button_behavior }
%struct.nk_config_stack_style_item = type { i32, [16 x %struct.nk_config_stack_style_item_element] }
%struct.nk_config_stack_style_item_element = type { ptr, %struct.nk_style_item }
%struct.nk_config_stack_float = type { i32, [32 x %struct.nk_config_stack_float_element] }
%struct.nk_config_stack_float_element = type { ptr, float }
%struct.nk_config_stack_vec2 = type { i32, [16 x %struct.nk_config_stack_vec2_element] }
%struct.nk_config_stack_vec2_element = type { ptr, %struct.nk_vec2 }
%struct.nk_config_stack_flags = type { i32, [32 x %struct.nk_config_stack_flags_element] }
%struct.nk_config_stack_flags_element = type { ptr, i32 }
%struct.nk_config_stack_color = type { i32, [32 x %struct.nk_config_stack_color_element] }
%struct.nk_config_stack_color_element = type { ptr, %struct.nk_color }
%struct.nk_config_stack_user_font = type { i32, [8 x %struct.nk_config_stack_user_font_element] }
%struct.nk_config_stack_user_font_element = type { ptr, ptr }
%struct.nk_config_stack_button_behavior = type { i32, [8 x %struct.nk_config_stack_button_behavior_element] }
%struct.nk_config_stack_button_behavior_element = type { ptr, i32 }
%struct.nk_draw_list = type { %struct.nk_rect, [12 x %struct.nk_vec2], %struct.nk_convert_config, ptr, ptr, ptr, i32, i32, i32, i64, i32, i32, i32, i32 }
%struct.nk_rect = type { float, float, float, float }
%struct.nk_convert_config = type { float, i32, i32, i32, i32, i32, %struct.nk_draw_null_texture, ptr, i64, i64 }
%struct.nk_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_font_atlas = type { ptr, i32, i32, %struct.nk_allocator, %struct.nk_allocator, %struct.nk_recti, [7 x %struct.nk_cursor], i32, ptr, ptr, ptr, ptr, i32 }
%struct.nk_recti = type { i16, i16, i16, i16 }
%struct.nk_cursor = type { %struct.nk_image, %struct.nk_vec2, %struct.nk_vec2 }

@_ZL3sdl = external hidden global %struct.nk_sdl, align 8

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z19nk_sdl_handle_eventP9SDL_Event(ptr nocapture noundef readonly %0) local_unnamed_addr #4 {
  %2 = alloca [4 x i8], align 4
  %3 = load i8, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 516), align 4, !tbaa !5
  %.not = icmp eq i8 %3, 0
  br i1 %.not, label %6, label %4

4:                                                ; preds = %1
  %5 = tail call i32 @SDL_SetRelativeMouseMode(i32 noundef 1)
  store i8 0, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 516), align 4, !tbaa !5
  br label %15

6:                                                ; preds = %1
  %7 = load i8, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 518), align 2, !tbaa !62
  %.not105 = icmp eq i8 %7, 0
  br i1 %.not105, label %15, label %8

8:                                                ; preds = %6
  %9 = load float, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 492), align 4, !tbaa !63
  %10 = fptosi float %9 to i32
  %11 = load float, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 496), align 8, !tbaa !64
  %12 = fptosi float %11 to i32
  %13 = tail call i32 @SDL_SetRelativeMouseMode(i32 noundef 0)
  %14 = load ptr, ptr @_ZL3sdl, align 8, !tbaa !65
  tail call void @SDL_WarpMouseInWindow(ptr noundef %14, i32 noundef %10, i32 noundef %12)
  store i8 0, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 518), align 2, !tbaa !62
  br label %15

15:                                               ; preds = %6, %8, %4
  %16 = load i32, ptr %0, align 8, !tbaa !70
  switch i32 %16, label %146 [
    i32 769, label %17
    i32 768, label %17
    i32 1026, label %100
    i32 1025, label %100
    i32 1024, label %117
    i32 771, label %135
    i32 1027, label %138
  ]

17:                                               ; preds = %15, %15
  %18 = icmp eq i32 %16, 768
  %19 = zext i1 %18 to i32
  %20 = tail call ptr @SDL_GetKeyboardState(ptr noundef null)
  %21 = getelementptr inbounds i8, ptr %0, i64 20
  %22 = load i32, ptr %21, align 4, !tbaa !70
  switch i32 %22, label %146 [
    i32 1073742053, label %23
    i32 1073742049, label %23
    i32 127, label %24
    i32 13, label %25
    i32 9, label %26
    i32 8, label %27
    i32 1073741898, label %28
    i32 1073741901, label %29
    i32 1073741902, label %30
    i32 1073741899, label %31
    i32 122, label %32
    i32 114, label %40
    i32 99, label %48
    i32 118, label %56
    i32 120, label %64
    i32 98, label %72
    i32 101, label %80
    i32 1073741906, label %88
    i32 1073741905, label %89
    i32 1073741904, label %90
    i32 1073741903, label %95
  ]

23:                                               ; preds = %17, %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 1, i32 noundef %19)
  br label %146

24:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 3, i32 noundef %19)
  br label %146

25:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 4, i32 noundef %19)
  br label %146

26:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 5, i32 noundef %19)
  br label %146

27:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 6, i32 noundef %19)
  br label %146

28:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 19, i32 noundef %19)
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 26, i32 noundef %19)
  br label %146

29:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 20, i32 noundef %19)
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 27, i32 noundef %19)
  br label %146

30:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 28, i32 noundef %19)
  br label %146

31:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 29, i32 noundef %19)
  br label %146

32:                                               ; preds = %17
  br i1 %18, label %33, label %38

33:                                               ; preds = %32
  %34 = getelementptr inbounds i8, ptr %20, i64 224
  %35 = load i8, ptr %34, align 1, !tbaa !70
  %36 = icmp ne i8 %35, 0
  %37 = zext i1 %36 to i32
  br label %38

38:                                               ; preds = %33, %32
  %39 = phi i32 [ 0, %32 ], [ %37, %33 ]
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 21, i32 noundef %39)
  br label %146

40:                                               ; preds = %17
  br i1 %18, label %41, label %46

41:                                               ; preds = %40
  %42 = getelementptr inbounds i8, ptr %20, i64 224
  %43 = load i8, ptr %42, align 1, !tbaa !70
  %44 = icmp ne i8 %43, 0
  %45 = zext i1 %44 to i32
  br label %46

46:                                               ; preds = %41, %40
  %47 = phi i32 [ 0, %40 ], [ %45, %41 ]
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 22, i32 noundef %47)
  br label %146

48:                                               ; preds = %17
  br i1 %18, label %49, label %54

49:                                               ; preds = %48
  %50 = getelementptr inbounds i8, ptr %20, i64 224
  %51 = load i8, ptr %50, align 1, !tbaa !70
  %52 = icmp ne i8 %51, 0
  %53 = zext i1 %52 to i32
  br label %54

54:                                               ; preds = %49, %48
  %55 = phi i32 [ 0, %48 ], [ %53, %49 ]
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 7, i32 noundef %55)
  br label %146

56:                                               ; preds = %17
  br i1 %18, label %57, label %62

57:                                               ; preds = %56
  %58 = getelementptr inbounds i8, ptr %20, i64 224
  %59 = load i8, ptr %58, align 1, !tbaa !70
  %60 = icmp ne i8 %59, 0
  %61 = zext i1 %60 to i32
  br label %62

62:                                               ; preds = %57, %56
  %63 = phi i32 [ 0, %56 ], [ %61, %57 ]
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 9, i32 noundef %63)
  br label %146

64:                                               ; preds = %17
  br i1 %18, label %65, label %70

65:                                               ; preds = %64
  %66 = getelementptr inbounds i8, ptr %20, i64 224
  %67 = load i8, ptr %66, align 1, !tbaa !70
  %68 = icmp ne i8 %67, 0
  %69 = zext i1 %68 to i32
  br label %70

70:                                               ; preds = %65, %64
  %71 = phi i32 [ 0, %64 ], [ %69, %65 ]
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 8, i32 noundef %71)
  br label %146

72:                                               ; preds = %17
  br i1 %18, label %73, label %78

73:                                               ; preds = %72
  %74 = getelementptr inbounds i8, ptr %20, i64 224
  %75 = load i8, ptr %74, align 1, !tbaa !70
  %76 = icmp ne i8 %75, 0
  %77 = zext i1 %76 to i32
  br label %78

78:                                               ; preds = %73, %72
  %79 = phi i32 [ 0, %72 ], [ %77, %73 ]
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 17, i32 noundef %79)
  br label %146

80:                                               ; preds = %17
  br i1 %18, label %81, label %86

81:                                               ; preds = %80
  %82 = getelementptr inbounds i8, ptr %20, i64 224
  %83 = load i8, ptr %82, align 1, !tbaa !70
  %84 = icmp ne i8 %83, 0
  %85 = zext i1 %84 to i32
  br label %86

86:                                               ; preds = %81, %80
  %87 = phi i32 [ 0, %80 ], [ %85, %81 ]
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 18, i32 noundef %87)
  br label %146

88:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 10, i32 noundef %19)
  br label %146

89:                                               ; preds = %17
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 11, i32 noundef %19)
  br label %146

90:                                               ; preds = %17
  %91 = getelementptr inbounds i8, ptr %20, i64 224
  %92 = load i8, ptr %91, align 1, !tbaa !70
  %.not108 = icmp eq i8 %92, 0
  br i1 %.not108, label %94, label %93

93:                                               ; preds = %90
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 24, i32 noundef %19)
  br label %146

94:                                               ; preds = %90
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 12, i32 noundef %19)
  br label %146

95:                                               ; preds = %17
  %96 = getelementptr inbounds i8, ptr %20, i64 224
  %97 = load i8, ptr %96, align 1, !tbaa !70
  %.not107 = icmp eq i8 %97, 0
  br i1 %.not107, label %99, label %98

98:                                               ; preds = %95
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 25, i32 noundef %19)
  br label %146

99:                                               ; preds = %95
  tail call void @nk_input_key(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 13, i32 noundef %19)
  br label %146

100:                                              ; preds = %15, %15
  %101 = icmp eq i32 %16, 1025
  %102 = zext i1 %101 to i32
  %103 = getelementptr inbounds i8, ptr %0, i64 20
  %104 = load i32, ptr %103, align 4, !tbaa !70
  %105 = getelementptr inbounds i8, ptr %0, i64 24
  %106 = load i32, ptr %105, align 8, !tbaa !70
  %107 = getelementptr inbounds i8, ptr %0, i64 16
  %108 = load i8, ptr %107, align 8, !tbaa !70
  switch i8 %108, label %146 [
    i8 1, label %109
    i8 2, label %115
    i8 3, label %116
  ]

109:                                              ; preds = %100
  %110 = getelementptr inbounds i8, ptr %0, i64 18
  %111 = load i8, ptr %110, align 2, !tbaa !70
  %112 = icmp ugt i8 %111, 1
  br i1 %112, label %113, label %114

113:                                              ; preds = %109
  tail call void @nk_input_button(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 3, i32 noundef %104, i32 noundef %106, i32 noundef %102)
  br label %114

114:                                              ; preds = %113, %109
  tail call void @nk_input_button(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 0, i32 noundef %104, i32 noundef %106, i32 noundef %102)
  br label %146

115:                                              ; preds = %100
  tail call void @nk_input_button(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 1, i32 noundef %104, i32 noundef %106, i32 noundef %102)
  br label %146

116:                                              ; preds = %100
  tail call void @nk_input_button(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef 2, i32 noundef %104, i32 noundef %106, i32 noundef %102)
  br label %146

117:                                              ; preds = %15
  %118 = load i8, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 517), align 1, !tbaa !71
  %.not106 = icmp eq i8 %118, 0
  br i1 %.not106, label %130, label %119

119:                                              ; preds = %117
  %120 = load float, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 492), align 4, !tbaa !63
  %121 = fptosi float %120 to i32
  %122 = load float, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 496), align 8, !tbaa !64
  %123 = fptosi float %122 to i32
  %124 = getelementptr inbounds i8, ptr %0, i64 28
  %125 = load i32, ptr %124, align 4, !tbaa !70
  %126 = add nsw i32 %125, %121
  %127 = getelementptr inbounds i8, ptr %0, i64 32
  %128 = load i32, ptr %127, align 8, !tbaa !70
  %129 = add nsw i32 %128, %123
  tail call void @nk_input_motion(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef %126, i32 noundef %129)
  br label %146

130:                                              ; preds = %117
  %131 = getelementptr inbounds i8, ptr %0, i64 20
  %132 = load i32, ptr %131, align 4, !tbaa !70
  %133 = getelementptr inbounds i8, ptr %0, i64 24
  %134 = load i32, ptr %133, align 8, !tbaa !70
  tail call void @nk_input_motion(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), i32 noundef %132, i32 noundef %134)
  br label %146

135:                                              ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %136 = getelementptr inbounds i8, ptr %0, i64 12
  %137 = load i32, ptr %136, align 4
  store i32 %137, ptr %2, align 4
  call void @nk_input_glyph(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), ptr noundef nonnull %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  br label %146

138:                                              ; preds = %15
  %139 = getelementptr inbounds i8, ptr %0, i64 16
  %140 = load i32, ptr %139, align 8, !tbaa !70
  %141 = sitofp i32 %140 to float
  %142 = getelementptr inbounds i8, ptr %0, i64 20
  %143 = load i32, ptr %142, align 4, !tbaa !70
  %144 = sitofp i32 %143 to float
  %145 = tail call <2 x float> @nk_vec2(float noundef %141, float noundef %144)
  tail call void @nk_input_scroll(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), <2 x float> %145)
  br label %146

146:                                              ; preds = %15, %119, %130, %100, %114, %115, %116, %17, %23, %24, %25, %26, %27, %28, %29, %30, %31, %38, %46, %54, %62, %70, %78, %86, %88, %89, %94, %93, %99, %98, %138, %135
  %.0 = phi i32 [ 1, %138 ], [ 1, %135 ], [ 1, %98 ], [ 1, %99 ], [ 1, %93 ], [ 1, %94 ], [ 1, %89 ], [ 1, %88 ], [ 1, %86 ], [ 1, %78 ], [ 1, %70 ], [ 1, %62 ], [ 1, %54 ], [ 1, %46 ], [ 1, %38 ], [ 1, %31 ], [ 1, %30 ], [ 1, %29 ], [ 1, %28 ], [ 1, %27 ], [ 1, %26 ], [ 1, %25 ], [ 1, %24 ], [ 1, %23 ], [ 1, %17 ], [ 1, %116 ], [ 1, %115 ], [ 1, %114 ], [ 1, %100 ], [ 1, %130 ], [ 1, %119 ], [ 0, %15 ]
  ret i32 %.0
}

declare i32 @SDL_SetRelativeMouseMode(i32 noundef) local_unnamed_addr #5

declare void @SDL_WarpMouseInWindow(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare ptr @SDL_GetKeyboardState(ptr noundef) local_unnamed_addr #5

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

!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, !9, i64 356}
!6 = !{!"_ZTS10nk_context", !7, i64 0, !15, i64 360, !36, i64 9000, !41, i64 9120, !11, i64 9144, !42, i64 9148, !43, i64 9152, !14, i64 12024, !51, i64 12032, !56, i64 12272, !60, i64 17656, !11, i64 17720, !11, i64 17724, !61, i64 17728, !16, i64 17800, !16, i64 17808, !16, i64 17816, !16, i64 17824, !16, i64 17832, !11, i64 17840, !11, i64 17844}
!7 = !{!"_ZTS8nk_input", !8, i64 0, !12, i64 260}
!8 = !{!"_ZTS11nk_keyboard", !9, i64 0, !9, i64 240, !11, i64 256}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS8nk_mouse", !9, i64 0, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !9, i64 96, !9, i64 97, !9, i64 98}
!13 = !{!"_ZTS7nk_vec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !9, i64 0}
!15 = !{!"_ZTS8nk_style", !16, i64 0, !9, i64 8, !16, i64 64, !16, i64 72, !11, i64 80, !17, i64 84, !19, i64 96, !19, i64 296, !19, i64 496, !22, i64 696, !22, i64 976, !23, i64 1256, !24, i64 1584, !26, i64 2320, !27, i64 2624, !28, i64 4128, !30, i64 5048, !29, i64 5120, !29, i64 5832, !31, i64 6544, !32, i64 7432, !33, i64 7832}
!16 = !{!"any pointer", !9, i64 0}
!17 = !{!"_ZTS13nk_style_text", !18, i64 0, !13, i64 4}
!18 = !{!"_ZTS8nk_color", !9, i64 0, !9, i64 1, !9, i64 2, !9, i64 3}
!19 = !{!"_ZTS15nk_style_button", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !11, i64 140, !14, i64 144, !14, i64 148, !13, i64 152, !13, i64 160, !13, i64 168, !9, i64 176, !16, i64 184, !16, i64 192}
!20 = !{!"_ZTS13nk_style_item", !21, i64 0, !9, i64 8}
!21 = !{!"_ZTS18nk_style_item_type", !9, i64 0}
!22 = !{!"_ZTS15nk_style_toggle", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !20, i64 128, !20, i64 168, !18, i64 208, !18, i64 212, !18, i64 216, !18, i64 220, !11, i64 224, !13, i64 228, !13, i64 236, !14, i64 244, !14, i64 248, !9, i64 256, !16, i64 264, !16, i64 272}
!23 = !{!"_ZTS19nk_style_selectable", !20, i64 0, !20, i64 40, !20, i64 80, !20, i64 120, !20, i64 160, !20, i64 200, !18, i64 240, !18, i64 244, !18, i64 248, !18, i64 252, !18, i64 256, !18, i64 260, !18, i64 264, !11, i64 268, !14, i64 272, !13, i64 276, !13, i64 284, !13, i64 292, !9, i64 304, !16, i64 312, !16, i64 320}
!24 = !{!"_ZTS15nk_style_slider", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !20, i64 144, !20, i64 184, !20, i64 224, !14, i64 264, !14, i64 268, !14, i64 272, !13, i64 276, !13, i64 284, !13, i64 292, !11, i64 300, !19, i64 304, !19, i64 504, !25, i64 704, !25, i64 708, !9, i64 712, !16, i64 720, !16, i64 728}
!25 = !{!"_ZTS14nk_symbol_type", !9, i64 0}
!26 = !{!"_ZTS17nk_style_progress", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !20, i64 128, !20, i64 168, !20, i64 208, !18, i64 248, !14, i64 252, !14, i64 256, !14, i64 260, !14, i64 264, !13, i64 268, !9, i64 280, !16, i64 288, !16, i64 296}
!27 = !{!"_ZTS17nk_style_property", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !25, i64 136, !25, i64 140, !14, i64 144, !14, i64 148, !13, i64 152, !28, i64 160, !19, i64 1080, !19, i64 1280, !9, i64 1480, !16, i64 1488, !16, i64 1496}
!28 = !{!"_ZTS13nk_style_edit", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !29, i64 128, !18, i64 840, !18, i64 844, !18, i64 848, !18, i64 852, !18, i64 856, !18, i64 860, !18, i64 864, !18, i64 868, !18, i64 872, !18, i64 876, !18, i64 880, !14, i64 884, !14, i64 888, !14, i64 892, !13, i64 896, !13, i64 904, !14, i64 912}
!29 = !{!"_ZTS18nk_style_scrollbar", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !20, i64 128, !20, i64 168, !20, i64 208, !18, i64 248, !14, i64 252, !14, i64 256, !14, i64 260, !14, i64 264, !13, i64 268, !11, i64 276, !19, i64 280, !19, i64 480, !25, i64 680, !25, i64 684, !9, i64 688, !16, i64 696, !16, i64 704}
!30 = !{!"_ZTS14nk_style_chart", !20, i64 0, !18, i64 40, !18, i64 44, !18, i64 48, !14, i64 52, !14, i64 56, !13, i64 60}
!31 = !{!"_ZTS12nk_style_tab", !20, i64 0, !18, i64 40, !18, i64 44, !19, i64 48, !19, i64 248, !19, i64 448, !19, i64 648, !25, i64 848, !25, i64 852, !14, i64 856, !14, i64 860, !14, i64 864, !13, i64 868, !13, i64 876}
!32 = !{!"_ZTS14nk_style_combo", !20, i64 0, !20, i64 40, !20, i64 80, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !18, i64 144, !19, i64 152, !25, i64 352, !25, i64 356, !25, i64 360, !14, i64 364, !14, i64 368, !13, i64 372, !13, i64 380, !13, i64 388}
!33 = !{!"_ZTS15nk_style_window", !34, i64 0, !20, i64 576, !18, i64 616, !18, i64 620, !18, i64 624, !18, i64 628, !18, i64 632, !18, i64 636, !18, i64 640, !18, i64 644, !20, i64 648, !14, i64 688, !14, i64 692, !14, i64 696, !14, i64 700, !14, i64 704, !14, i64 708, !14, i64 712, !14, i64 716, !14, i64 720, !13, i64 724, !13, i64 732, !13, i64 740, !13, i64 748, !13, i64 756, !13, i64 764, !13, i64 772, !13, i64 780, !13, i64 788, !13, i64 796}
!34 = !{!"_ZTS22nk_style_window_header", !20, i64 0, !20, i64 40, !20, i64 80, !19, i64 120, !19, i64 320, !25, i64 520, !25, i64 524, !25, i64 528, !18, i64 532, !18, i64 536, !18, i64 540, !35, i64 544, !13, i64 548, !13, i64 556, !13, i64 564}
!35 = !{!"_ZTS21nk_style_header_align", !9, i64 0}
!36 = !{!"_ZTS9nk_buffer", !9, i64 0, !37, i64 32, !38, i64 56, !39, i64 64, !14, i64 80, !40, i64 88, !40, i64 96, !40, i64 104, !40, i64 112}
!37 = !{!"_ZTS12nk_allocator", !9, i64 0, !16, i64 8, !16, i64 16}
!38 = !{!"_ZTS18nk_allocation_type", !9, i64 0}
!39 = !{!"_ZTS9nk_memory", !16, i64 0, !40, i64 8}
!40 = !{!"long", !9, i64 0}
!41 = !{!"_ZTS12nk_clipboard", !9, i64 0, !16, i64 8, !16, i64 16}
!42 = !{!"_ZTS18nk_button_behavior", !9, i64 0}
!43 = !{!"_ZTS23nk_configuration_stacks", !44, i64 0, !45, i64 776, !46, i64 1296, !47, i64 1560, !48, i64 2080, !49, i64 2600, !50, i64 2736}
!44 = !{!"_ZTS26nk_config_stack_style_item", !11, i64 0, !9, i64 8}
!45 = !{!"_ZTS21nk_config_stack_float", !11, i64 0, !9, i64 8}
!46 = !{!"_ZTS20nk_config_stack_vec2", !11, i64 0, !9, i64 8}
!47 = !{!"_ZTS21nk_config_stack_flags", !11, i64 0, !9, i64 8}
!48 = !{!"_ZTS21nk_config_stack_color", !11, i64 0, !9, i64 8}
!49 = !{!"_ZTS25nk_config_stack_user_font", !11, i64 0, !9, i64 8}
!50 = !{!"_ZTS31nk_config_stack_button_behavior", !11, i64 0, !9, i64 8}
!51 = !{!"_ZTS12nk_draw_list", !52, i64 0, !9, i64 16, !53, i64 112, !16, i64 176, !16, i64 184, !16, i64 192, !11, i64 200, !11, i64 204, !11, i64 208, !40, i64 216, !11, i64 224, !11, i64 228, !54, i64 232, !54, i64 236}
!52 = !{!"_ZTS7nk_rect", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!53 = !{!"_ZTS17nk_convert_config", !14, i64 0, !54, i64 4, !54, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !55, i64 24, !16, i64 40, !40, i64 48, !40, i64 56}
!54 = !{!"_ZTS16nk_anti_aliasing", !9, i64 0}
!55 = !{!"_ZTS20nk_draw_null_texture", !9, i64 0, !13, i64 8}
!56 = !{!"_ZTS12nk_text_edit", !41, i64 0, !57, i64 24, !16, i64 152, !13, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !9, i64 180, !9, i64 181, !9, i64 182, !9, i64 183, !9, i64 184, !9, i64 185, !9, i64 186, !14, i64 188, !58, i64 192}
!57 = !{!"_ZTS6nk_str", !36, i64 0, !11, i64 120}
!58 = !{!"_ZTS18nk_text_undo_state", !9, i64 0, !9, i64 1188, !59, i64 5184, !59, i64 5186, !59, i64 5188, !59, i64 5190}
!59 = !{!"short", !9, i64 0}
!60 = !{!"_ZTS17nk_command_buffer", !16, i64 0, !52, i64 8, !11, i64 24, !9, i64 32, !40, i64 40, !40, i64 48, !40, i64 56}
!61 = !{!"_ZTS7nk_pool", !37, i64 0, !38, i64 24, !11, i64 28, !16, i64 32, !16, i64 40, !11, i64 48, !40, i64 56, !40, i64 64}
!62 = !{!6, !9, i64 358}
!63 = !{!6, !14, i64 332}
!64 = !{!6, !14, i64 336}
!65 = !{!66, !16, i64 0}
!66 = !{!"_ZTS6nk_sdl", !16, i64 0, !16, i64 8, !67, i64 16, !6, i64 160, !68, i64 18008}
!67 = !{!"_ZTS13nk_sdl_device", !36, i64 0, !55, i64 120, !16, i64 136}
!68 = !{!"_ZTS13nk_font_atlas", !16, i64 0, !11, i64 8, !11, i64 12, !37, i64 16, !37, i64 40, !69, i64 64, !9, i64 72, !11, i64 352, !16, i64 360, !16, i64 368, !16, i64 376, !16, i64 384, !11, i64 392}
!69 = !{!"_ZTS8nk_recti", !59, i64 0, !59, i64 2, !59, i64 4, !59, i64 6}
!70 = !{!9, !9, i64 0}
!71 = !{!6, !9, i64 357}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass