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

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

%struct.nk_glfw = type { ptr, i32, i32, i32, i32, %struct.nk_glfw_device, %struct.nk_context, %struct.nk_font_atlas, %struct.nk_vec2, [256 x i32], i32, %struct.nk_vec2, double, i32, %struct.nk_vec2 }
%struct.nk_glfw_device = type { %struct.nk_buffer, %struct.nk_draw_null_texture, i32 }
%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_context = type { %struct.nk_input, %struct.nk_style, %struct.nk_buffer, %struct.nk_clipboard, i32, i32, %struct.nk_configuration_stacks, float, %struct.nk_draw_list, %struct.nk_text_edit, %struct.nk_command_buffer, i32, i32, %struct.nk_pool, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.nk_input = type { %struct.nk_keyboard, %struct.nk_mouse }
%struct.nk_keyboard = type { [30 x %struct.nk_key], [16 x i8], i32 }
%struct.nk_key = type { i32, i32 }
%struct.nk_mouse = type { [4 x %struct.nk_mouse_button], %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i8, i8, i8 }
%struct.nk_mouse_button = type { i32, i32, %struct.nk_vec2 }
%struct.nk_style = type { ptr, [7 x ptr], ptr, ptr, i32, %struct.nk_style_text, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_toggle, %struct.nk_style_toggle, %struct.nk_style_selectable, %struct.nk_style_slider, %struct.nk_style_progress, %struct.nk_style_property, %struct.nk_style_edit, %struct.nk_style_chart, %struct.nk_style_scrollbar, %struct.nk_style_scrollbar, %struct.nk_style_tab, %struct.nk_style_combo, %struct.nk_style_window }
%struct.nk_style_text = type { %struct.nk_color, %struct.nk_vec2 }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_image }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%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_vec2 = type { float, float }
%struct.nk_draw_vertex_layout_element = type { i32, i32, i64 }
%struct.anon = type { i8, %struct.nk_glfw_vertex }
%struct.nk_glfw_vertex = type { [2 x float], [2 x float], [4 x i8] }
%struct.nk_draw_command = type { i32, %struct.nk_rect, %union.nk_handle }

@glad_glBindTexture = external dso_local global ptr, align 8
@glad_glBlendFunc = external dso_local global ptr, align 8
@glad_glColorPointer = external dso_local global ptr, align 8
@glad_glDisable = external dso_local global ptr, align 8
@glad_glDisableClientState = external dso_local global ptr, align 8
@glad_glDrawElements = external dso_local global ptr, align 8
@glad_glEnable = external dso_local global ptr, align 8
@glad_glEnableClientState = external dso_local global ptr, align 8
@glad_glLoadIdentity = external dso_local global ptr, align 8
@glad_glMatrixMode = external dso_local global ptr, align 8
@glad_glOrtho = external dso_local global ptr, align 8
@glad_glPopAttrib = external dso_local global ptr, align 8
@glad_glPopMatrix = external dso_local global ptr, align 8
@glad_glPushAttrib = external dso_local global ptr, align 8
@glad_glPushMatrix = external dso_local global ptr, align 8
@glad_glScissor = external dso_local global ptr, align 8
@glad_glTexCoordPointer = external dso_local global ptr, align 8
@glad_glVertexPointer = external dso_local global ptr, align 8
@glad_glViewport = external dso_local global ptr, align 8
@glfw = external hidden global %struct.nk_glfw, align 8
@nk_glfw3_render.vertex_layout = external hidden constant [4 x %struct.nk_draw_vertex_layout_element], align 16

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @nk_memset(ptr noundef, i32 noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @nk_glfw3_render(i32 noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.nk_buffer, align 8
  %11 = alloca %struct.nk_buffer, align 8
  %12 = alloca %struct.nk_convert_config, align 8
  %13 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 5), ptr %3, align 8, !tbaa !9
  %14 = load ptr, ptr @glad_glPushAttrib, align 8, !tbaa !9
  call void %14(i32 noundef 28672)
  %15 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %15(i32 noundef 2884)
  %16 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %16(i32 noundef 2929)
  %17 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %17(i32 noundef 3089)
  %18 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %18(i32 noundef 3042)
  %19 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %19(i32 noundef 3553)
  %20 = load ptr, ptr @glad_glBlendFunc, align 8, !tbaa !9
  call void %20(i32 noundef 770, i32 noundef 771)
  %21 = load ptr, ptr @glad_glViewport, align 8, !tbaa !9
  %22 = load i32, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 3), align 8, !tbaa !11
  %23 = load i32, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 4), align 4, !tbaa !63
  call void %21(i32 noundef 0, i32 noundef 0, i32 noundef %22, i32 noundef %23)
  %24 = load ptr, ptr @glad_glMatrixMode, align 8, !tbaa !9
  call void %24(i32 noundef 5889)
  %25 = load ptr, ptr @glad_glPushMatrix, align 8, !tbaa !9
  call void %25()
  %26 = load ptr, ptr @glad_glLoadIdentity, align 8, !tbaa !9
  call void %26()
  %27 = load ptr, ptr @glad_glOrtho, align 8, !tbaa !9
  %28 = load i32, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 1), align 8, !tbaa !64
  %29 = sitofp i32 %28 to double
  %30 = load i32, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 2), align 4, !tbaa !65
  %31 = sitofp i32 %30 to double
  call void %27(double noundef 0.000000e+00, double noundef %29, double noundef %31, double noundef 0.000000e+00, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %32 = load ptr, ptr @glad_glMatrixMode, align 8, !tbaa !9
  call void %32(i32 noundef 5888)
  %33 = load ptr, ptr @glad_glPushMatrix, align 8, !tbaa !9
  call void %33()
  %34 = load ptr, ptr @glad_glLoadIdentity, align 8, !tbaa !9
  call void %34()
  %35 = load ptr, ptr @glad_glEnableClientState, align 8, !tbaa !9
  call void %35(i32 noundef 32884)
  %36 = load ptr, ptr @glad_glEnableClientState, align 8, !tbaa !9
  call void %36(i32 noundef 32888)
  %37 = load ptr, ptr @glad_glEnableClientState, align 8, !tbaa !9
  call void %37(i32 noundef 32886)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 20, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !66
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 8, ptr %6, align 8, !tbaa !66
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 16, ptr %7, align 8, !tbaa !66
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store ptr null, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 120, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 120, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #4
  call void @nk_memset(ptr noundef %12, i32 noundef 0, i64 noundef 64)
  %38 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 7
  store ptr @nk_glfw3_render.vertex_layout, ptr %38, align 8, !tbaa !67
  %39 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 8
  store i64 20, ptr %39, align 8, !tbaa !68
  %40 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 9
  store i64 ptrtoint (ptr getelementptr inbounds (%struct.anon, ptr null, i32 0, i32 1) to i64), ptr %40, align 8, !tbaa !69
  %41 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 6
  %42 = load ptr, ptr %3, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.nk_glfw_device, ptr %42, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %43, i64 16, i1 false), !tbaa.struct !70
  %44 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 3
  store i32 22, ptr %44, align 4, !tbaa !73
  %45 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 5
  store i32 22, ptr %45, align 4, !tbaa !74
  %46 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 4
  store i32 22, ptr %46, align 8, !tbaa !75
  %47 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 0
  store float 1.000000e+00, ptr %47, align 8, !tbaa !76
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 2
  store i32 %48, ptr %49, align 8, !tbaa !77
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = getelementptr inbounds %struct.nk_convert_config, ptr %12, i32 0, i32 1
  store i32 %50, ptr %51, align 4, !tbaa !78
  call void @nk_buffer_init_default(ptr noundef %10)
  call void @nk_buffer_init_default(ptr noundef %11)
  %52 = load ptr, ptr %3, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.nk_glfw_device, ptr %52, i32 0, i32 0
  %54 = call i32 @nk_convert(ptr noundef getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 6), ptr noundef %53, ptr noundef %10, ptr noundef %11, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %55 = call ptr @nk_buffer_memory_const(ptr noundef %10)
  store ptr %55, ptr %13, align 8, !tbaa !9
  %56 = load ptr, ptr @glad_glVertexPointer, align 8, !tbaa !9
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = load ptr, ptr %13, align 8, !tbaa !9
  %59 = load i64, ptr %5, align 8, !tbaa !66
  %60 = getelementptr inbounds i8, ptr %58, i64 %59
  call void %56(i32 noundef 2, i32 noundef 5126, i32 noundef %57, ptr noundef %60)
  %61 = load ptr, ptr @glad_glTexCoordPointer, align 8, !tbaa !9
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = load ptr, ptr %13, align 8, !tbaa !9
  %64 = load i64, ptr %6, align 8, !tbaa !66
  %65 = getelementptr inbounds i8, ptr %63, i64 %64
  call void %61(i32 noundef 2, i32 noundef 5126, i32 noundef %62, ptr noundef %65)
  %66 = load ptr, ptr @glad_glColorPointer, align 8, !tbaa !9
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = load ptr, ptr %13, align 8, !tbaa !9
  %69 = load i64, ptr %7, align 8, !tbaa !66
  %70 = getelementptr inbounds i8, ptr %68, i64 %69
  call void %66(i32 noundef 4, i32 noundef 5121, i32 noundef %67, ptr noundef %70)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %71 = call ptr @nk_buffer_memory_const(ptr noundef %11)
  store ptr %71, ptr %9, align 8, !tbaa !9
  %72 = load ptr, ptr %3, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.nk_glfw_device, ptr %72, i32 0, i32 0
  %74 = call ptr @nk__draw_begin(ptr noundef getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 6), ptr noundef %73)
  store ptr %74, ptr %8, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %138, %1
  %76 = load ptr, ptr %8, align 8, !tbaa !9
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %143

78:                                               ; preds = %75
  %79 = load ptr, ptr %8, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.nk_draw_command, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 8, !tbaa !79
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %84, label %83

83:                                               ; preds = %78
  br label %138

84:                                               ; preds = %78
  %85 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %86 = load ptr, ptr %8, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.nk_draw_command, ptr %86, i32 0, i32 2
  %88 = load i32, ptr %87, align 8, !tbaa !71
  call void %85(i32 noundef 3553, i32 noundef %88)
  %89 = load ptr, ptr @glad_glScissor, align 8, !tbaa !9
  %90 = load ptr, ptr %8, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.nk_draw_command, ptr %90, i32 0, i32 1
  %92 = getelementptr inbounds %struct.nk_rect, ptr %91, i32 0, i32 0
  %93 = load float, ptr %92, align 4, !tbaa !81
  %94 = load float, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 8), align 8, !tbaa !82
  %95 = fmul float %93, %94
  %96 = fptosi float %95 to i32
  %97 = load i32, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 2), align 4, !tbaa !65
  %98 = load ptr, ptr %8, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.nk_draw_command, ptr %98, i32 0, i32 1
  %100 = getelementptr inbounds %struct.nk_rect, ptr %99, i32 0, i32 1
  %101 = load float, ptr %100, align 4, !tbaa !83
  %102 = load ptr, ptr %8, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.nk_draw_command, ptr %102, i32 0, i32 1
  %104 = getelementptr inbounds %struct.nk_rect, ptr %103, i32 0, i32 3
  %105 = load float, ptr %104, align 4, !tbaa !84
  %106 = fadd float %101, %105
  %107 = fptosi float %106 to i32
  %108 = sub nsw i32 %97, %107
  %109 = sitofp i32 %108 to float
  %110 = load float, ptr getelementptr inbounds (%struct.nk_vec2, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 8), i32 0, i32 1), align 4, !tbaa !85
  %111 = fmul float %109, %110
  %112 = fptosi float %111 to i32
  %113 = load ptr, ptr %8, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct.nk_draw_command, ptr %113, i32 0, i32 1
  %115 = getelementptr inbounds %struct.nk_rect, ptr %114, i32 0, i32 2
  %116 = load float, ptr %115, align 4, !tbaa !86
  %117 = load float, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 8), align 8, !tbaa !82
  %118 = fmul float %116, %117
  %119 = fptosi float %118 to i32
  %120 = load ptr, ptr %8, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.nk_draw_command, ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds %struct.nk_rect, ptr %121, i32 0, i32 3
  %123 = load float, ptr %122, align 4, !tbaa !84
  %124 = load float, ptr getelementptr inbounds (%struct.nk_vec2, ptr getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 8), i32 0, i32 1), align 4, !tbaa !85
  %125 = fmul float %123, %124
  %126 = fptosi float %125 to i32
  call void %89(i32 noundef %96, i32 noundef %112, i32 noundef %119, i32 noundef %126)
  %127 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !9
  %128 = load ptr, ptr %8, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.nk_draw_command, ptr %128, i32 0, i32 0
  %130 = load i32, ptr %129, align 8, !tbaa !79
  %131 = load ptr, ptr %9, align 8, !tbaa !9
  call void %127(i32 noundef 4, i32 noundef %130, i32 noundef 5123, ptr noundef %131)
  %132 = load ptr, ptr %8, align 8, !tbaa !9
  %133 = getelementptr inbounds %struct.nk_draw_command, ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 8, !tbaa !79
  %135 = load ptr, ptr %9, align 8, !tbaa !9
  %136 = zext i32 %134 to i64
  %137 = getelementptr inbounds i16, ptr %135, i64 %136
  store ptr %137, ptr %9, align 8, !tbaa !9
  br label %138

138:                                              ; preds = %84, %83
  %139 = load ptr, ptr %8, align 8, !tbaa !9
  %140 = load ptr, ptr %3, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.nk_glfw_device, ptr %140, i32 0, i32 0
  %142 = call ptr @nk__draw_next(ptr noundef %139, ptr noundef %141, ptr noundef getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 6))
  store ptr %142, ptr %8, align 8, !tbaa !9
  br label %75, !llvm.loop !87

143:                                              ; preds = %75
  call void @nk_clear(ptr noundef getelementptr inbounds (%struct.nk_glfw, ptr @glfw, i32 0, i32 6))
  call void @nk_buffer_free(ptr noundef %10)
  call void @nk_buffer_free(ptr noundef %11)
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 120, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 120, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %144 = load ptr, ptr @glad_glDisableClientState, align 8, !tbaa !9
  call void %144(i32 noundef 32884)
  %145 = load ptr, ptr @glad_glDisableClientState, align 8, !tbaa !9
  call void %145(i32 noundef 32888)
  %146 = load ptr, ptr @glad_glDisableClientState, align 8, !tbaa !9
  call void %146(i32 noundef 32886)
  %147 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %147(i32 noundef 2884)
  %148 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %148(i32 noundef 2929)
  %149 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %149(i32 noundef 3089)
  %150 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %150(i32 noundef 3042)
  %151 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %151(i32 noundef 3553)
  %152 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  call void %152(i32 noundef 3553, i32 noundef 0)
  %153 = load ptr, ptr @glad_glMatrixMode, align 8, !tbaa !9
  call void %153(i32 noundef 5888)
  %154 = load ptr, ptr @glad_glPopMatrix, align 8, !tbaa !9
  call void %154()
  %155 = load ptr, ptr @glad_glMatrixMode, align 8, !tbaa !9
  call void %155(i32 noundef 5889)
  %156 = load ptr, ptr @glad_glPopMatrix, align 8, !tbaa !9
  call void %156()
  %157 = load ptr, ptr @glad_glPopAttrib, align 8, !tbaa !9
  call void %157()
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"nk_glfw", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !13, i64 24, !21, i64 168, !60, i64 16792, !20, i64 17192, !7, i64 17200, !6, i64 18224, !20, i64 18228, !62, i64 18240, !6, i64 18248, !20, i64 18252}
!13 = !{!"nk_glfw_device", !14, i64 0, !19, i64 120, !6, i64 136}
!14 = !{!"nk_buffer", !7, i64 0, !15, i64 32, !6, i64 56, !16, i64 64, !18, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112}
!15 = !{!"nk_allocator", !7, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!"nk_memory", !10, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!"nk_draw_null_texture", !7, i64 0, !20, i64 8}
!20 = !{!"nk_vec2", !18, i64 0, !18, i64 4}
!21 = !{!"nk_context", !22, i64 0, !25, i64 360, !14, i64 7904, !42, i64 8024, !6, i64 8048, !6, i64 8052, !43, i64 8056, !18, i64 10800, !51, i64 10808, !54, i64 11048, !58, i64 16432, !6, i64 16496, !6, i64 16500, !59, i64 16504, !10, i64 16576, !10, i64 16584, !10, i64 16592, !10, i64 16600, !10, i64 16608, !6, i64 16616, !6, i64 16620}
!22 = !{!"nk_input", !23, i64 0, !24, i64 260}
!23 = !{!"nk_keyboard", !7, i64 0, !7, i64 240, !6, i64 256}
!24 = !{!"nk_mouse", !7, i64 0, !20, i64 64, !20, i64 72, !20, i64 80, !20, i64 88, !7, i64 96, !7, i64 97, !7, i64 98}
!25 = !{!"nk_style", !10, i64 0, !7, i64 8, !10, i64 64, !10, i64 72, !6, i64 80, !26, i64 84, !28, i64 96, !28, i64 272, !28, i64 448, !30, i64 624, !30, i64 864, !31, i64 1104, !32, i64 1384, !33, i64 2024, !34, i64 2280, !35, i64 3592, !37, i64 4392, !36, i64 4456, !36, i64 5072, !38, i64 5688, !39, i64 6472, !40, i64 6824}
!26 = !{!"nk_style_text", !27, i64 0, !20, i64 4}
!27 = !{!"nk_color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!28 = !{!"nk_style_button", !29, i64 0, !29, i64 32, !29, i64 64, !27, i64 96, !27, i64 100, !27, i64 104, !27, i64 108, !27, i64 112, !6, i64 116, !18, i64 120, !18, i64 124, !20, i64 128, !20, i64 136, !20, i64 144, !7, i64 152, !10, i64 160, !10, i64 168}
!29 = !{!"nk_style_item", !6, i64 0, !7, i64 8}
!30 = !{!"nk_style_toggle", !29, i64 0, !29, i64 32, !29, i64 64, !27, i64 96, !29, i64 104, !29, i64 136, !27, i64 168, !27, i64 172, !27, i64 176, !27, i64 180, !6, i64 184, !20, i64 188, !20, i64 196, !18, i64 204, !18, i64 208, !7, i64 216, !10, i64 224, !10, i64 232}
!31 = !{!"nk_style_selectable", !29, i64 0, !29, i64 32, !29, i64 64, !29, i64 96, !29, i64 128, !29, i64 160, !27, i64 192, !27, i64 196, !27, i64 200, !27, i64 204, !27, i64 208, !27, i64 212, !27, i64 216, !6, i64 220, !18, i64 224, !20, i64 228, !20, i64 236, !20, i64 244, !7, i64 256, !10, i64 264, !10, i64 272}
!32 = !{!"nk_style_slider", !29, i64 0, !29, i64 32, !29, i64 64, !27, i64 96, !27, i64 100, !27, i64 104, !27, i64 108, !27, i64 112, !29, i64 120, !29, i64 152, !29, i64 184, !18, i64 216, !18, i64 220, !18, i64 224, !20, i64 228, !20, i64 236, !20, i64 244, !6, i64 252, !28, i64 256, !28, i64 432, !6, i64 608, !6, i64 612, !7, i64 616, !10, i64 624, !10, i64 632}
!33 = !{!"nk_style_progress", !29, i64 0, !29, i64 32, !29, i64 64, !27, i64 96, !29, i64 104, !29, i64 136, !29, i64 168, !27, i64 200, !18, i64 204, !18, i64 208, !18, i64 212, !18, i64 216, !20, i64 220, !7, i64 232, !10, i64 240, !10, i64 248}
!34 = !{!"nk_style_property", !29, i64 0, !29, i64 32, !29, i64 64, !27, i64 96, !27, i64 100, !27, i64 104, !27, i64 108, !6, i64 112, !6, i64 116, !18, i64 120, !18, i64 124, !20, i64 128, !35, i64 136, !28, i64 936, !28, i64 1112, !7, i64 1288, !10, i64 1296, !10, i64 1304}
!35 = !{!"nk_style_edit", !29, i64 0, !29, i64 32, !29, i64 64, !27, i64 96, !36, i64 104, !27, i64 720, !27, i64 724, !27, i64 728, !27, i64 732, !27, i64 736, !27, i64 740, !27, i64 744, !27, i64 748, !27, i64 752, !27, i64 756, !27, i64 760, !18, i64 764, !18, i64 768, !18, i64 772, !20, i64 776, !20, i64 784, !18, i64 792}
!36 = !{!"nk_style_scrollbar", !29, i64 0, !29, i64 32, !29, i64 64, !27, i64 96, !29, i64 104, !29, i64 136, !29, i64 168, !27, i64 200, !18, i64 204, !18, i64 208, !18, i64 212, !18, i64 216, !20, i64 220, !6, i64 228, !28, i64 232, !28, i64 408, !6, i64 584, !6, i64 588, !7, i64 592, !10, i64 600, !10, i64 608}
!37 = !{!"nk_style_chart", !29, i64 0, !27, i64 32, !27, i64 36, !27, i64 40, !18, i64 44, !18, i64 48, !20, i64 52}
!38 = !{!"nk_style_tab", !29, i64 0, !27, i64 32, !27, i64 36, !28, i64 40, !28, i64 216, !28, i64 392, !28, i64 568, !6, i64 744, !6, i64 748, !18, i64 752, !18, i64 756, !18, i64 760, !20, i64 764, !20, i64 772}
!39 = !{!"nk_style_combo", !29, i64 0, !29, i64 32, !29, i64 64, !27, i64 96, !27, i64 100, !27, i64 104, !27, i64 108, !27, i64 112, !27, i64 116, !27, i64 120, !28, i64 128, !6, i64 304, !6, i64 308, !6, i64 312, !18, i64 316, !18, i64 320, !20, i64 324, !20, i64 332, !20, i64 340}
!40 = !{!"nk_style_window", !41, i64 0, !29, i64 504, !27, i64 536, !27, i64 540, !27, i64 544, !27, i64 548, !27, i64 552, !27, i64 556, !27, i64 560, !27, i64 564, !29, i64 568, !18, i64 600, !18, i64 604, !18, i64 608, !18, i64 612, !18, i64 616, !18, i64 620, !18, i64 624, !18, i64 628, !18, i64 632, !20, i64 636, !20, i64 644, !20, i64 652, !20, i64 660, !20, i64 668, !20, i64 676, !20, i64 684, !20, i64 692, !20, i64 700, !20, i64 708}
!41 = !{!"nk_style_window_header", !29, i64 0, !29, i64 32, !29, i64 64, !28, i64 96, !28, i64 272, !6, i64 448, !6, i64 452, !6, i64 456, !27, i64 460, !27, i64 464, !27, i64 468, !6, i64 472, !20, i64 476, !20, i64 484, !20, i64 492}
!42 = !{!"nk_clipboard", !7, i64 0, !10, i64 8, !10, i64 16}
!43 = !{!"nk_configuration_stacks", !44, i64 0, !45, i64 648, !46, i64 1168, !47, i64 1432, !48, i64 1952, !49, i64 2472, !50, i64 2608}
!44 = !{!"nk_config_stack_style_item", !6, i64 0, !7, i64 8}
!45 = !{!"nk_config_stack_float", !6, i64 0, !7, i64 8}
!46 = !{!"nk_config_stack_vec2", !6, i64 0, !7, i64 8}
!47 = !{!"nk_config_stack_flags", !6, i64 0, !7, i64 8}
!48 = !{!"nk_config_stack_color", !6, i64 0, !7, i64 8}
!49 = !{!"nk_config_stack_user_font", !6, i64 0, !7, i64 8}
!50 = !{!"nk_config_stack_button_behavior", !6, i64 0, !7, i64 8}
!51 = !{!"nk_draw_list", !52, i64 0, !7, i64 16, !53, i64 112, !10, i64 176, !10, i64 184, !10, i64 192, !6, i64 200, !6, i64 204, !6, i64 208, !17, i64 216, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236}
!52 = !{!"nk_rect", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!53 = !{!"nk_convert_config", !18, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !19, i64 24, !10, i64 40, !17, i64 48, !17, i64 56}
!54 = !{!"nk_text_edit", !42, i64 0, !55, i64 24, !10, i64 152, !20, i64 160, !6, i64 168, !6, i64 172, !6, i64 176, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !7, i64 184, !7, i64 185, !7, i64 186, !18, i64 188, !56, i64 192}
!55 = !{!"nk_str", !14, i64 0, !6, i64 120}
!56 = !{!"nk_text_undo_state", !7, i64 0, !7, i64 1188, !57, i64 5184, !57, i64 5186, !57, i64 5188, !57, i64 5190}
!57 = !{!"short", !7, i64 0}
!58 = !{!"nk_command_buffer", !10, i64 0, !52, i64 8, !6, i64 24, !7, i64 32, !17, i64 40, !17, i64 48, !17, i64 56}
!59 = !{!"nk_pool", !15, i64 0, !6, i64 24, !6, i64 28, !10, i64 32, !10, i64 40, !6, i64 48, !17, i64 56, !17, i64 64}
!60 = !{!"nk_font_atlas", !10, i64 0, !6, i64 8, !6, i64 12, !15, i64 16, !15, i64 40, !61, i64 64, !7, i64 72, !6, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !6, i64 392}
!61 = !{!"nk_recti", !57, i64 0, !57, i64 2, !57, i64 4, !57, i64 6}
!62 = !{!"double", !7, i64 0}
!63 = !{!12, !6, i64 20}
!64 = !{!12, !6, i64 8}
!65 = !{!12, !6, i64 12}
!66 = !{!17, !17, i64 0}
!67 = !{!53, !10, i64 40}
!68 = !{!53, !17, i64 48}
!69 = !{!53, !17, i64 56}
!70 = !{i64 0, i64 8, !71, i64 8, i64 4, !72, i64 12, i64 4, !72}
!71 = !{!7, !7, i64 0}
!72 = !{!18, !18, i64 0}
!73 = !{!53, !6, i64 12}
!74 = !{!53, !6, i64 20}
!75 = !{!53, !6, i64 16}
!76 = !{!53, !18, i64 0}
!77 = !{!53, !6, i64 8}
!78 = !{!53, !6, i64 4}
!79 = !{!80, !6, i64 0}
!80 = !{!"nk_draw_command", !6, i64 0, !52, i64 4, !7, i64 24}
!81 = !{!80, !18, i64 4}
!82 = !{!12, !18, i64 17192}
!83 = !{!80, !18, i64 8}
!84 = !{!80, !18, i64 16}
!85 = !{!12, !18, i64 17196}
!86 = !{!80, !18, i64 12}
!87 = distinct !{!87, !88}
!88 = !{!"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_glfw = type { ptr, i32, i32, i32, i32, %struct.nk_glfw_device, %struct.nk_context, %struct.nk_font_atlas, %struct.nk_vec2, [256 x i32], i32, %struct.nk_vec2, double, i32, %struct.nk_vec2 }
%struct.nk_glfw_device = type { %struct.nk_buffer, %struct.nk_draw_null_texture, i32 }
%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_context = type { %struct.nk_input, %struct.nk_style, %struct.nk_buffer, %struct.nk_clipboard, i32, i32, %struct.nk_configuration_stacks, float, %struct.nk_draw_list, %struct.nk_text_edit, %struct.nk_command_buffer, i32, i32, %struct.nk_pool, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.nk_input = type { %struct.nk_keyboard, %struct.nk_mouse }
%struct.nk_keyboard = type { [30 x %struct.nk_key], [16 x i8], i32 }
%struct.nk_key = type { i32, i32 }
%struct.nk_mouse = type { [4 x %struct.nk_mouse_button], %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i8, i8, i8 }
%struct.nk_mouse_button = type { i32, i32, %struct.nk_vec2 }
%struct.nk_style = type { ptr, [7 x ptr], ptr, ptr, i32, %struct.nk_style_text, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_toggle, %struct.nk_style_toggle, %struct.nk_style_selectable, %struct.nk_style_slider, %struct.nk_style_progress, %struct.nk_style_property, %struct.nk_style_edit, %struct.nk_style_chart, %struct.nk_style_scrollbar, %struct.nk_style_scrollbar, %struct.nk_style_tab, %struct.nk_style_combo, %struct.nk_style_window }
%struct.nk_style_text = type { %struct.nk_color, %struct.nk_vec2 }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_image }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%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_vec2 = type { float, float }
%struct.nk_draw_vertex_layout_element = type { i32, i32, i64 }

@glad_glBindTexture = external dso_local local_unnamed_addr global ptr, align 8
@glad_glBlendFunc = external dso_local local_unnamed_addr global ptr, align 8
@glad_glColorPointer = external dso_local local_unnamed_addr global ptr, align 8
@glad_glDisable = external dso_local local_unnamed_addr global ptr, align 8
@glad_glDisableClientState = external dso_local local_unnamed_addr global ptr, align 8
@glad_glDrawElements = external dso_local local_unnamed_addr global ptr, align 8
@glad_glEnable = external dso_local local_unnamed_addr global ptr, align 8
@glad_glEnableClientState = external dso_local local_unnamed_addr global ptr, align 8
@glad_glLoadIdentity = external dso_local local_unnamed_addr global ptr, align 8
@glad_glMatrixMode = external dso_local local_unnamed_addr global ptr, align 8
@glad_glOrtho = external dso_local local_unnamed_addr global ptr, align 8
@glad_glPopAttrib = external dso_local local_unnamed_addr global ptr, align 8
@glad_glPopMatrix = external dso_local local_unnamed_addr global ptr, align 8
@glad_glPushAttrib = external dso_local local_unnamed_addr global ptr, align 8
@glad_glPushMatrix = external dso_local local_unnamed_addr global ptr, align 8
@glad_glScissor = external dso_local local_unnamed_addr global ptr, align 8
@glad_glTexCoordPointer = external dso_local local_unnamed_addr global ptr, align 8
@glad_glVertexPointer = external dso_local local_unnamed_addr global ptr, align 8
@glad_glViewport = external dso_local local_unnamed_addr global ptr, align 8
@glfw = external hidden global %struct.nk_glfw, align 8
@nk_glfw3_render.vertex_layout = external hidden constant [4 x %struct.nk_draw_vertex_layout_element], align 16

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

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

; 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) #1

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @nk_memset(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @nk_glfw3_render(i32 noundef %0) local_unnamed_addr #2 {
  %2 = alloca %struct.nk_buffer, align 8
  %3 = alloca %struct.nk_buffer, align 8
  %4 = alloca %struct.nk_convert_config, align 8
  %5 = load ptr, ptr @glad_glPushAttrib, align 8, !tbaa !5
  tail call void %5(i32 noundef 28672) #4
  %6 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  tail call void %6(i32 noundef 2884) #4
  %7 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  tail call void %7(i32 noundef 2929) #4
  %8 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  tail call void %8(i32 noundef 3089) #4
  %9 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  tail call void %9(i32 noundef 3042) #4
  %10 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  tail call void %10(i32 noundef 3553) #4
  %11 = load ptr, ptr @glad_glBlendFunc, align 8, !tbaa !5
  tail call void %11(i32 noundef 770, i32 noundef 771) #4
  %12 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @glfw, i64 16), align 8, !tbaa !9
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @glfw, i64 20), align 4, !tbaa !62
  tail call void %12(i32 noundef 0, i32 noundef 0, i32 noundef %13, i32 noundef %14) #4
  %15 = load ptr, ptr @glad_glMatrixMode, align 8, !tbaa !5
  tail call void %15(i32 noundef 5889) #4
  %16 = load ptr, ptr @glad_glPushMatrix, align 8, !tbaa !5
  tail call void %16() #4
  %17 = load ptr, ptr @glad_glLoadIdentity, align 8, !tbaa !5
  tail call void %17() #4
  %18 = load ptr, ptr @glad_glOrtho, align 8, !tbaa !5
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @glfw, i64 8), align 8, !tbaa !63
  %20 = sitofp i32 %19 to double
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @glfw, i64 12), align 4, !tbaa !64
  %22 = sitofp i32 %21 to double
  tail call void %18(double noundef 0.000000e+00, double noundef %20, double noundef %22, double noundef 0.000000e+00, double noundef -1.000000e+00, double noundef 1.000000e+00) #4
  %23 = load ptr, ptr @glad_glMatrixMode, align 8, !tbaa !5
  tail call void %23(i32 noundef 5888) #4
  %24 = load ptr, ptr @glad_glPushMatrix, align 8, !tbaa !5
  tail call void %24() #4
  %25 = load ptr, ptr @glad_glLoadIdentity, align 8, !tbaa !5
  tail call void %25() #4
  %26 = load ptr, ptr @glad_glEnableClientState, align 8, !tbaa !5
  tail call void %26(i32 noundef 32884) #4
  %27 = load ptr, ptr @glad_glEnableClientState, align 8, !tbaa !5
  tail call void %27(i32 noundef 32888) #4
  %28 = load ptr, ptr @glad_glEnableClientState, align 8, !tbaa !5
  tail call void %28(i32 noundef 32886) #4
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #4
  call void @nk_memset(ptr noundef nonnull %4, i32 noundef 0, i64 noundef 64)
  %29 = getelementptr inbounds i8, ptr %4, i64 40
  store ptr @nk_glfw3_render.vertex_layout, ptr %29, align 8, !tbaa !65
  %30 = getelementptr inbounds i8, ptr %4, i64 48
  store i64 20, ptr %30, align 8, !tbaa !66
  %31 = getelementptr inbounds i8, ptr %4, i64 56
  store i64 4, ptr %31, align 8, !tbaa !67
  %32 = getelementptr inbounds i8, ptr %4, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @glfw, i64 144), i64 16, i1 false), !tbaa.struct !68
  %33 = getelementptr inbounds i8, ptr %4, i64 12
  store i32 22, ptr %33, align 4, !tbaa !71
  %34 = getelementptr inbounds i8, ptr %4, i64 20
  store i32 22, ptr %34, align 4, !tbaa !72
  %35 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 22, ptr %35, align 8, !tbaa !73
  store float 1.000000e+00, ptr %4, align 8, !tbaa !74
  %36 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 %0, ptr %36, align 8, !tbaa !75
  %37 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %0, ptr %37, align 4, !tbaa !76
  call void @nk_buffer_init_default(ptr noundef nonnull %2)
  call void @nk_buffer_init_default(ptr noundef nonnull %3)
  %38 = call i32 @nk_convert(ptr noundef nonnull getelementptr inbounds (i8, ptr @glfw, i64 168), ptr noundef nonnull getelementptr inbounds (i8, ptr @glfw, i64 24), ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %39 = call ptr @nk_buffer_memory_const(ptr noundef nonnull %2)
  %40 = load ptr, ptr @glad_glVertexPointer, align 8, !tbaa !5
  call void %40(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef %39) #4
  %41 = load ptr, ptr @glad_glTexCoordPointer, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %39, i64 8
  call void %41(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef nonnull %42) #4
  %43 = load ptr, ptr @glad_glColorPointer, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %39, i64 16
  call void %43(i32 noundef 4, i32 noundef 5121, i32 noundef 20, ptr noundef nonnull %44) #4
  %45 = call ptr @nk_buffer_memory_const(ptr noundef nonnull %3)
  %46 = call ptr @nk__draw_begin(ptr noundef nonnull getelementptr inbounds (i8, ptr @glfw, i64 168), ptr noundef nonnull getelementptr inbounds (i8, ptr @glfw, i64 24))
  %.not29 = icmp eq ptr %46, null
  br i1 %.not29, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1, %81
  %.031 = phi ptr [ %82, %81 ], [ %46, %1 ]
  %.02730 = phi ptr [ %.1, %81 ], [ %45, %1 ]
  %47 = load i32, ptr %.031, align 8, !tbaa !77
  %.not28 = icmp eq i32 %47, 0
  br i1 %.not28, label %81, label %48

48:                                               ; preds = %.lr.ph
  %49 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %.031, i64 24
  %51 = load i32, ptr %50, align 8, !tbaa !69
  call void %49(i32 noundef 3553, i32 noundef %51) #4
  %52 = load ptr, ptr @glad_glScissor, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %.031, i64 4
  %54 = load float, ptr %53, align 4, !tbaa !79
  %55 = load float, ptr getelementptr inbounds (i8, ptr @glfw, i64 17192), align 8, !tbaa !80
  %56 = fmul float %54, %55
  %57 = fptosi float %56 to i32
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @glfw, i64 12), align 4, !tbaa !64
  %59 = getelementptr inbounds i8, ptr %.031, i64 8
  %60 = load float, ptr %59, align 4, !tbaa !81
  %61 = getelementptr inbounds i8, ptr %.031, i64 16
  %62 = load float, ptr %61, align 4, !tbaa !82
  %63 = fadd float %60, %62
  %64 = fptosi float %63 to i32
  %65 = sub nsw i32 %58, %64
  %66 = sitofp i32 %65 to float
  %67 = load float, ptr getelementptr inbounds (i8, ptr @glfw, i64 17196), align 4, !tbaa !83
  %68 = fmul float %67, %66
  %69 = fptosi float %68 to i32
  %70 = getelementptr inbounds i8, ptr %.031, i64 12
  %71 = load float, ptr %70, align 4, !tbaa !84
  %72 = fmul float %55, %71
  %73 = fptosi float %72 to i32
  %74 = fmul float %62, %67
  %75 = fptosi float %74 to i32
  call void %52(i32 noundef %57, i32 noundef %69, i32 noundef %73, i32 noundef %75) #4
  %76 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !5
  %77 = load i32, ptr %.031, align 8, !tbaa !77
  call void %76(i32 noundef 4, i32 noundef %77, i32 noundef 5123, ptr noundef %.02730) #4
  %78 = load i32, ptr %.031, align 8, !tbaa !77
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds i16, ptr %.02730, i64 %79
  br label %81

81:                                               ; preds = %.lr.ph, %48
  %.1 = phi ptr [ %80, %48 ], [ %.02730, %.lr.ph ]
  %82 = call ptr @nk__draw_next(ptr noundef nonnull %.031, ptr noundef nonnull getelementptr inbounds (i8, ptr @glfw, i64 24), ptr noundef nonnull getelementptr inbounds (i8, ptr @glfw, i64 168))
  %.not = icmp eq ptr %82, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !85

._crit_edge:                                      ; preds = %81, %1
  call void @nk_clear(ptr noundef nonnull getelementptr inbounds (i8, ptr @glfw, i64 168))
  call void @nk_buffer_free(ptr noundef nonnull %2)
  call void @nk_buffer_free(ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #4
  %83 = load ptr, ptr @glad_glDisableClientState, align 8, !tbaa !5
  call void %83(i32 noundef 32884) #4
  %84 = load ptr, ptr @glad_glDisableClientState, align 8, !tbaa !5
  call void %84(i32 noundef 32888) #4
  %85 = load ptr, ptr @glad_glDisableClientState, align 8, !tbaa !5
  call void %85(i32 noundef 32886) #4
  %86 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %86(i32 noundef 2884) #4
  %87 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %87(i32 noundef 2929) #4
  %88 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %88(i32 noundef 3089) #4
  %89 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %89(i32 noundef 3042) #4
  %90 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %90(i32 noundef 3553) #4
  %91 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  call void %91(i32 noundef 3553, i32 noundef 0) #4
  %92 = load ptr, ptr @glad_glMatrixMode, align 8, !tbaa !5
  call void %92(i32 noundef 5888) #4
  %93 = load ptr, ptr @glad_glPopMatrix, align 8, !tbaa !5
  call void %93() #4
  %94 = load ptr, ptr @glad_glMatrixMode, align 8, !tbaa !5
  call void %94(i32 noundef 5889) #4
  %95 = load ptr, ptr @glad_glPopMatrix, align 8, !tbaa !5
  call void %95() #4
  %96 = load ptr, ptr @glad_glPopAttrib, align 8, !tbaa !5
  call void %96() #4
  ret void
}

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass