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

; 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.nk_draw_vertex_layout_element = type { i32, i32, i64 }
%struct.SDL_Rect = type { i32, i32, i32, i32 }
%struct.nk_draw_command = type { i32, %struct.nk_rect, %union.nk_handle }

@_ZL3sdl = external hidden global %struct.nk_sdl, align 8
@_ZZ13nk_sdl_render16nk_anti_aliasingE13vertex_layout = external hidden constant [4 x %struct.nk_draw_vertex_layout_element], align 16

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @nk_buffer_memory_const(ptr noundef) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL9nk_memsetPvim(ptr noundef, i32 noundef, i64 noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13nk_sdl_render16nk_anti_aliasing(i32 noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %struct.SDL_Rect, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.nk_buffer, align 8
  %13 = alloca %struct.nk_buffer, align 8
  %14 = alloca %struct.nk_convert_config, align 8
  %15 = alloca %struct.SDL_Rect, align 4
  %16 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 2), ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 20, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 8, ptr %8, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 16, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 120, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #6
  call void @_ZL9nk_memsetPvim(ptr noundef %14, i32 noundef 0, i64 noundef 64)
  %17 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 7
  store ptr @_ZZ13nk_sdl_render16nk_anti_aliasingE13vertex_layout, ptr %17, align 8, !tbaa !15
  %18 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 8
  store i64 20, ptr %18, align 8, !tbaa !20
  %19 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 9
  store i64 4, ptr %19, align 8, !tbaa !21
  %20 = load ptr, ptr %3, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.nk_sdl_device, ptr %20, i32 0, i32 1
  %22 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !22
  %23 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 3
  store i32 22, ptr %23, align 4, !tbaa !25
  %24 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 5
  store i32 22, ptr %24, align 4, !tbaa !26
  %25 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 4
  store i32 22, ptr %25, align 8, !tbaa !27
  %26 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 0
  store float 1.000000e+00, ptr %26, align 8, !tbaa !28
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 2
  store i32 %27, ptr %28, align 8, !tbaa !29
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = getelementptr inbounds %struct.nk_convert_config, ptr %14, i32 0, i32 1
  store i32 %29, ptr %30, align 4, !tbaa !30
  call void @nk_buffer_init_default(ptr noundef %12)
  call void @nk_buffer_init_default(ptr noundef %13)
  %31 = load ptr, ptr %3, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.nk_sdl_device, ptr %31, i32 0, i32 0
  %33 = call i32 @nk_convert(ptr noundef getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 3), ptr noundef %32, ptr noundef %12, ptr noundef %13, ptr noundef %14)
  %34 = call ptr @nk_buffer_memory_const(ptr noundef %13)
  store ptr %34, ptr %11, align 8, !tbaa !9
  %35 = load ptr, ptr getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 1), align 8, !tbaa !31
  %36 = call i32 @SDL_RenderIsClipEnabled(ptr noundef %35)
  store i32 %36, ptr %5, align 4, !tbaa !82
  %37 = load ptr, ptr getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 1), align 8, !tbaa !31
  call void @SDL_RenderGetClipRect(ptr noundef %37, ptr noundef %4)
  %38 = load ptr, ptr %3, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.nk_sdl_device, ptr %38, i32 0, i32 0
  %40 = call ptr @nk__draw_begin(ptr noundef getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 3), ptr noundef %39)
  store ptr %40, ptr %10, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %111, %1
  %42 = load ptr, ptr %10, align 8, !tbaa !9
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %116

44:                                               ; preds = %41
  %45 = load ptr, ptr %10, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.nk_draw_command, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !84
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  br label %111

50:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %51 = load ptr, ptr %10, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.nk_draw_command, ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds %struct.nk_rect, ptr %52, i32 0, i32 0
  %54 = load float, ptr %53, align 4, !tbaa !86
  %55 = fptosi float %54 to i32
  %56 = getelementptr inbounds %struct.SDL_Rect, ptr %15, i32 0, i32 0
  store i32 %55, ptr %56, align 4, !tbaa !87
  %57 = load ptr, ptr %10, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.nk_draw_command, ptr %57, i32 0, i32 1
  %59 = getelementptr inbounds %struct.nk_rect, ptr %58, i32 0, i32 1
  %60 = load float, ptr %59, align 4, !tbaa !89
  %61 = fptosi float %60 to i32
  %62 = getelementptr inbounds %struct.SDL_Rect, ptr %15, i32 0, i32 1
  store i32 %61, ptr %62, align 4, !tbaa !90
  %63 = load ptr, ptr %10, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.nk_draw_command, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds %struct.nk_rect, ptr %64, i32 0, i32 2
  %66 = load float, ptr %65, align 4, !tbaa !91
  %67 = fptosi float %66 to i32
  %68 = getelementptr inbounds %struct.SDL_Rect, ptr %15, i32 0, i32 2
  store i32 %67, ptr %68, align 4, !tbaa !92
  %69 = load ptr, ptr %10, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.nk_draw_command, ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds %struct.nk_rect, ptr %70, i32 0, i32 3
  %72 = load float, ptr %71, align 4, !tbaa !93
  %73 = fptosi float %72 to i32
  %74 = getelementptr inbounds %struct.SDL_Rect, ptr %15, i32 0, i32 3
  store i32 %73, ptr %74, align 4, !tbaa !94
  %75 = load ptr, ptr getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 1), align 8, !tbaa !31
  %76 = call i32 @SDL_RenderSetClipRect(ptr noundef %75, ptr noundef %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %77 = call ptr @nk_buffer_memory_const(ptr noundef %12)
  store ptr %77, ptr %16, align 8, !tbaa !9
  %78 = load ptr, ptr getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 1), align 8, !tbaa !31
  %79 = load ptr, ptr %10, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.nk_draw_command, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !23
  %82 = load ptr, ptr %16, align 8, !tbaa !9
  %83 = load i64, ptr %7, align 8, !tbaa !13
  %84 = getelementptr inbounds i8, ptr %82, i64 %83
  %85 = load i32, ptr %6, align 4, !tbaa !11
  %86 = load ptr, ptr %16, align 8, !tbaa !9
  %87 = load i64, ptr %9, align 8, !tbaa !13
  %88 = getelementptr inbounds i8, ptr %86, i64 %87
  %89 = load i32, ptr %6, align 4, !tbaa !11
  %90 = load ptr, ptr %16, align 8, !tbaa !9
  %91 = load i64, ptr %8, align 8, !tbaa !13
  %92 = getelementptr inbounds i8, ptr %90, i64 %91
  %93 = load i32, ptr %6, align 4, !tbaa !11
  %94 = getelementptr inbounds %struct.nk_buffer, ptr %12, i32 0, i32 6
  %95 = load i64, ptr %94, align 8, !tbaa !95
  %96 = load i32, ptr %6, align 4, !tbaa !11
  %97 = sext i32 %96 to i64
  %98 = udiv i64 %95, %97
  %99 = trunc i64 %98 to i32
  %100 = load ptr, ptr %11, align 8, !tbaa !9
  %101 = load ptr, ptr %10, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.nk_draw_command, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !84
  %104 = call i32 @SDL_RenderGeometryRaw(ptr noundef %78, ptr noundef %81, ptr noundef %84, i32 noundef %85, ptr noundef %88, i32 noundef %89, ptr noundef %92, i32 noundef %93, i32 noundef %99, ptr noundef %100, i32 noundef %103, i32 noundef 2)
  %105 = load ptr, ptr %10, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.nk_draw_command, ptr %105, i32 0, i32 0
  %107 = load i32, ptr %106, align 8, !tbaa !84
  %108 = load ptr, ptr %11, align 8, !tbaa !9
  %109 = zext i32 %107 to i64
  %110 = getelementptr inbounds i16, ptr %108, i64 %109
  store ptr %110, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %111

111:                                              ; preds = %50, %49
  %112 = load ptr, ptr %10, align 8, !tbaa !9
  %113 = load ptr, ptr %3, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct.nk_sdl_device, ptr %113, i32 0, i32 0
  %115 = call ptr @nk__draw_next(ptr noundef %112, ptr noundef %114, ptr noundef getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 3))
  store ptr %115, ptr %10, align 8, !tbaa !9
  br label %41, !llvm.loop !96

116:                                              ; preds = %41
  %117 = load ptr, ptr getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 1), align 8, !tbaa !31
  %118 = call i32 @SDL_RenderSetClipRect(ptr noundef %117, ptr noundef %4)
  %119 = load i32, ptr %5, align 4, !tbaa !82
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %124, label %121

121:                                              ; preds = %116
  %122 = load ptr, ptr getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 1), align 8, !tbaa !31
  %123 = call i32 @SDL_RenderSetClipRect(ptr noundef %122, ptr noundef null)
  br label %124

124:                                              ; preds = %121, %116
  call void @nk_clear(ptr noundef getelementptr inbounds (%struct.nk_sdl, ptr @_ZL3sdl, i32 0, i32 3))
  %125 = load ptr, ptr %3, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.nk_sdl_device, ptr %125, i32 0, i32 0
  call void @nk_buffer_clear(ptr noundef %126)
  call void @nk_buffer_free(ptr noundef %12)
  call void @nk_buffer_free(ptr noundef %13)
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

declare i32 @SDL_RenderIsClipEnabled(ptr noundef) #5

declare void @SDL_RenderGetClipRect(ptr noundef, ptr noundef) #5

declare i32 @SDL_RenderSetClipRect(ptr noundef, ptr noundef) #5

declare i32 @SDL_RenderGeometryRaw(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #5

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


; 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 }
%struct.nk_draw_vertex_layout_element = type { i32, i32, i64 }
%struct.SDL_Rect = type { i32, i32, i32, i32 }

@_ZL3sdl = external hidden global %struct.nk_sdl, align 8
@_ZZ13nk_sdl_render16nk_anti_aliasingE13vertex_layout = external hidden constant [4 x %struct.nk_draw_vertex_layout_element], align 16

; Function Attrs: mustprogress 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 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 uwtable
declare dso_local void @nk_buffer_init_default(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @nk_buffer_memory_const(ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL9nk_memsetPvim(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13nk_sdl_render16nk_anti_aliasing(i32 noundef %0) local_unnamed_addr #2 {
  %2 = alloca %struct.SDL_Rect, align 4
  %3 = alloca %struct.nk_buffer, align 8
  %4 = alloca %struct.nk_buffer, align 8
  %5 = alloca %struct.nk_convert_config, align 8
  %6 = alloca %struct.SDL_Rect, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @_ZL9nk_memsetPvim(ptr noundef nonnull %5, i32 noundef 0, i64 noundef 64)
  %7 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr @_ZZ13nk_sdl_render16nk_anti_aliasingE13vertex_layout, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %5, i64 48
  store i64 20, ptr %8, align 8, !tbaa !16
  %9 = getelementptr inbounds i8, ptr %5, i64 56
  store i64 4, ptr %9, align 8, !tbaa !17
  %10 = getelementptr inbounds i8, ptr %5, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @_ZL3sdl, i64 136), i64 16, i1 false), !tbaa.struct !18
  %11 = getelementptr inbounds i8, ptr %5, i64 12
  store i32 22, ptr %11, align 4, !tbaa !21
  %12 = getelementptr inbounds i8, ptr %5, i64 20
  store i32 22, ptr %12, align 4, !tbaa !22
  %13 = getelementptr inbounds i8, ptr %5, i64 16
  store i32 22, ptr %13, align 8, !tbaa !23
  store float 1.000000e+00, ptr %5, align 8, !tbaa !24
  %14 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %0, ptr %14, align 8, !tbaa !25
  %15 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 %0, ptr %15, align 4, !tbaa !26
  call void @nk_buffer_init_default(ptr noundef nonnull %3)
  call void @nk_buffer_init_default(ptr noundef nonnull %4)
  %16 = call i32 @nk_convert(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 16), ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %17 = call ptr @nk_buffer_memory_const(ptr noundef nonnull %4)
  %18 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 8), align 8, !tbaa !27
  %19 = call i32 @SDL_RenderIsClipEnabled(ptr noundef %18)
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 8), align 8, !tbaa !27
  call void @SDL_RenderGetClipRect(ptr noundef %20, ptr noundef nonnull %2)
  %21 = call ptr @nk__draw_begin(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160), ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 16))
  %.not32 = icmp eq ptr %21, null
  br i1 %.not32, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %22 = getelementptr inbounds i8, ptr %3, i64 96
  br label %23

23:                                               ; preds = %.lr.ph, %45
  %.034 = phi ptr [ %21, %.lr.ph ], [ %46, %45 ]
  %.02933 = phi ptr [ %17, %.lr.ph ], [ %.1, %45 ]
  %24 = load i32, ptr %.034, align 8, !tbaa !78
  %.not31 = icmp eq i32 %24, 0
  br i1 %.not31, label %45, label %25

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %26 = getelementptr inbounds i8, ptr %.034, i64 4
  %27 = load <4 x float>, ptr %26, align 4, !tbaa !20
  %28 = fptosi <4 x float> %27 to <4 x i32>
  store <4 x i32> %28, ptr %6, align 16, !tbaa !80
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 8), align 8, !tbaa !27
  %30 = call i32 @SDL_RenderSetClipRect(ptr noundef %29, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  %31 = call ptr @nk_buffer_memory_const(ptr noundef nonnull %3)
  %32 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 8), align 8, !tbaa !27
  %33 = getelementptr inbounds i8, ptr %.034, i64 24
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = getelementptr inbounds i8, ptr %31, i64 16
  %36 = getelementptr inbounds i8, ptr %31, i64 8
  %37 = load i64, ptr %22, align 8, !tbaa !81
  %38 = udiv i64 %37, 20
  %39 = trunc i64 %38 to i32
  %40 = load i32, ptr %.034, align 8, !tbaa !78
  %41 = call i32 @SDL_RenderGeometryRaw(ptr noundef %32, ptr noundef %34, ptr noundef %31, i32 noundef 20, ptr noundef nonnull %35, i32 noundef 20, ptr noundef nonnull %36, i32 noundef 20, i32 noundef %39, ptr noundef %.02933, i32 noundef %40, i32 noundef 2)
  %42 = load i32, ptr %.034, align 8, !tbaa !78
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds i16, ptr %.02933, i64 %43
  br label %45

45:                                               ; preds = %23, %25
  %.1 = phi ptr [ %44, %25 ], [ %.02933, %23 ]
  %46 = call ptr @nk__draw_next(ptr noundef nonnull %.034, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 16), ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160))
  %.not = icmp eq ptr %46, null
  br i1 %.not, label %._crit_edge, label %23, !llvm.loop !82

._crit_edge:                                      ; preds = %45, %1
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 8), align 8, !tbaa !27
  %48 = call i32 @SDL_RenderSetClipRect(ptr noundef %47, ptr noundef nonnull %2)
  %.not30 = icmp eq i32 %19, 0
  br i1 %.not30, label %49, label %52

49:                                               ; preds = %._crit_edge
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZL3sdl, i64 8), align 8, !tbaa !27
  %51 = call i32 @SDL_RenderSetClipRect(ptr noundef %50, ptr noundef null)
  br label %52

52:                                               ; preds = %49, %._crit_edge
  call void @nk_clear(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 160))
  call void @nk_buffer_clear(ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZL3sdl, i64 16))
  call void @nk_buffer_free(ptr noundef nonnull %3)
  call void @nk_buffer_free(ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  ret void
}

declare i32 @SDL_RenderIsClipEnabled(ptr noundef) local_unnamed_addr #5

declare void @SDL_RenderGetClipRect(ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @SDL_RenderSetClipRect(ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @SDL_RenderGeometryRaw(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass