; 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_rect = type { float, float, float, float }
%struct.nk_vec2 = type { float, float }
%struct.nk_context = type { %struct.nk_input, %struct.nk_style, %struct.nk_buffer, %struct.nk_clipboard, i32, i32, %struct.nk_configuration_stacks, float, %struct.nk_draw_list, %struct.nk_text_edit, %struct.nk_command_buffer, i32, i32, %struct.nk_pool, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.nk_input = type { %struct.nk_keyboard, %struct.nk_mouse }
%struct.nk_keyboard = type { [30 x %struct.nk_key], [16 x i8], i32 }
%struct.nk_key = type { i32, i32 }
%struct.nk_mouse = type { [4 x %struct.nk_mouse_button], %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i8, i8, i8 }
%struct.nk_mouse_button = type { i32, i32, %struct.nk_vec2 }
%struct.nk_style = type { ptr, [7 x ptr], ptr, ptr, i32, %struct.nk_style_text, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_toggle, %struct.nk_style_toggle, %struct.nk_style_selectable, %struct.nk_style_slider, %struct.nk_style_progress, %struct.nk_style_property, %struct.nk_style_edit, %struct.nk_style_chart, %struct.nk_style_scrollbar, %struct.nk_style_scrollbar, %struct.nk_style_tab, %struct.nk_style_combo, %struct.nk_style_window }
%struct.nk_style_text = type { %struct.nk_color, %struct.nk_vec2 }
%struct.nk_color = type { i8, i8, i8, i8 }
%struct.nk_style_button = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_item = type { i32, %union.nk_style_item_data }
%union.nk_style_item_data = type { %struct.nk_image }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%union.nk_handle = type { ptr }
%struct.nk_style_toggle = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, float, float, %union.nk_handle, ptr, ptr }
%struct.nk_style_selectable = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_slider = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_progress = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, %union.nk_handle, ptr, ptr }
%struct.nk_style_property = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, i32, float, float, %struct.nk_vec2, %struct.nk_style_edit, %struct.nk_style_button, %struct.nk_style_button, %union.nk_handle, ptr, ptr }
%struct.nk_style_edit = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_scrollbar, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, float, %struct.nk_vec2, %struct.nk_vec2, float }
%struct.nk_style_chart = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, float, float, %struct.nk_vec2 }
%struct.nk_style_scrollbar = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, float, float, float, float, %struct.nk_vec2, i32, %struct.nk_style_button, %struct.nk_style_button, i32, i32, %union.nk_handle, ptr, ptr }
%struct.nk_style_tab = type { %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, %struct.nk_style_button, i32, i32, float, float, float, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_combo = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_button, i32, i32, i32, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window = type { %struct.nk_style_window_header, %struct.nk_style_item, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_color, %struct.nk_style_item, float, float, float, float, float, float, float, float, float, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_style_window_header = type { %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_item, %struct.nk_style_button, %struct.nk_style_button, i32, i32, i32, %struct.nk_color, %struct.nk_color, %struct.nk_color, i32, %struct.nk_vec2, %struct.nk_vec2, %struct.nk_vec2 }
%struct.nk_buffer = type { [2 x %struct.nk_buffer_marker], %struct.nk_allocator, i32, %struct.nk_memory, float, i64, i64, i64, i64 }
%struct.nk_buffer_marker = type { i32, i64 }
%struct.nk_allocator = type { %union.nk_handle, ptr, ptr }
%struct.nk_memory = type { ptr, i64 }
%struct.nk_clipboard = type { %union.nk_handle, ptr, ptr }
%struct.nk_configuration_stacks = type { %struct.nk_config_stack_style_item, %struct.nk_config_stack_float, %struct.nk_config_stack_vec2, %struct.nk_config_stack_flags, %struct.nk_config_stack_color, %struct.nk_config_stack_user_font, %struct.nk_config_stack_button_behavior }
%struct.nk_config_stack_style_item = type { i32, [16 x %struct.nk_config_stack_style_item_element] }
%struct.nk_config_stack_style_item_element = type { ptr, %struct.nk_style_item }
%struct.nk_config_stack_float = type { i32, [32 x %struct.nk_config_stack_float_element] }
%struct.nk_config_stack_float_element = type { ptr, float }
%struct.nk_config_stack_vec2 = type { i32, [16 x %struct.nk_config_stack_vec2_element] }
%struct.nk_config_stack_vec2_element = type { ptr, %struct.nk_vec2 }
%struct.nk_config_stack_flags = type { i32, [32 x %struct.nk_config_stack_flags_element] }
%struct.nk_config_stack_flags_element = type { ptr, i32 }
%struct.nk_config_stack_color = type { i32, [32 x %struct.nk_config_stack_color_element] }
%struct.nk_config_stack_color_element = type { ptr, %struct.nk_color }
%struct.nk_config_stack_user_font = type { i32, [8 x %struct.nk_config_stack_user_font_element] }
%struct.nk_config_stack_user_font_element = type { ptr, ptr }
%struct.nk_config_stack_button_behavior = type { i32, [8 x %struct.nk_config_stack_button_behavior_element] }
%struct.nk_config_stack_button_behavior_element = type { ptr, i32 }
%struct.nk_draw_list = type { %struct.nk_rect, [12 x %struct.nk_vec2], %struct.nk_convert_config, ptr, ptr, ptr, i32, i32, i32, i64, i32, i32, i32, i32 }
%struct.nk_convert_config = type { float, i32, i32, i32, i32, i32, %struct.nk_draw_null_texture, ptr, i64, i64 }
%struct.nk_draw_null_texture = type { %union.nk_handle, %struct.nk_vec2 }
%struct.nk_text_edit = type { %struct.nk_clipboard, %struct.nk_str, ptr, %struct.nk_vec2, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, float, %struct.nk_text_undo_state }
%struct.nk_str = type { %struct.nk_buffer, i32 }
%struct.nk_text_undo_state = type { [99 x %struct.nk_text_undo_record], [999 x i32], i16, i16, i16, i16 }
%struct.nk_text_undo_record = type { i32, i16, i16, i16 }
%struct.nk_command_buffer = type { ptr, %struct.nk_rect, i32, %union.nk_handle, i64, i64, i64 }
%struct.nk_pool = type { %struct.nk_allocator, i32, i32, ptr, ptr, i32, i64, i64 }
%struct.nk_window = type { i32, i32, [64 x i8], i32, %struct.nk_rect, %struct.nk_scroll, %struct.nk_command_buffer, ptr, float, %struct.nk_property_state, %struct.nk_popup_state, %struct.nk_edit_state, i32, ptr, i32, ptr, ptr, ptr }
%struct.nk_scroll = type { i32, i32 }
%struct.nk_property_state = type { i32, i32, [64 x i8], i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.nk_popup_state = type { ptr, i32, %struct.nk_popup_buffer, i32, i32, i32, i32, i32, i32, %struct.nk_rect }
%struct.nk_popup_buffer = type { i64, i64, i64, i64, i32 }
%struct.nk_edit_state = type { i32, i32, i32, i32, i32, i32, i32, i32, %struct.nk_scroll, i8, i8 }
%struct.nk_panel = type { i32, i32, %struct.nk_rect, ptr, ptr, float, float, float, float, float, float, i32, %struct.nk_rect, %struct.nk_menu_state, %struct.nk_row_layout, %struct.nk_chart, ptr, ptr }
%struct.nk_menu_state = type { float, float, float, float, %struct.nk_scroll }
%struct.nk_row_layout = type { i32, i32, float, float, i32, ptr, float, float, float, float, %struct.nk_rect, i32, [16 x float] }
%struct.nk_chart = type { i32, float, float, float, float, [4 x %struct.nk_chart_slot] }
%struct.nk_chart_slot = type { i32, %struct.nk_color, %struct.nk_color, float, float, float, i32, %struct.nk_vec2, i32 }

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.nk_contextual_end = external hidden unnamed_addr constant [44 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @nk_contextual_end(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.nk_rect, align 4
  %7 = alloca %struct.nk_vec2, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %13

12:                                               ; preds = %1
  br label %14

13:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.2, i32 noundef 17245, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_end) #7
  unreachable

14:                                               ; preds = %12
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.nk_context, ptr %15, i32 0, i32 17
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %14
  br label %21

20:                                               ; preds = %14
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str.2, i32 noundef 17246, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_end) #7
  unreachable

21:                                               ; preds = %19
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %29

24:                                               ; preds = %21
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.nk_context, ptr %25, i32 0, i32 17
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = icmp ne ptr %27, null
  br i1 %28, label %30, label %29

29:                                               ; preds = %24, %21
  store i32 1, ptr %5, align 4
  br label %146

30:                                               ; preds = %24
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.nk_context, ptr %31, i32 0, i32 17
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  store ptr %33, ptr %3, align 8, !tbaa !5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.nk_window, ptr %34, i32 0, i32 7
  %36 = load ptr, ptr %35, align 8, !tbaa !57
  store ptr %36, ptr %4, align 8, !tbaa !5
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.nk_window, ptr %37, i32 0, i32 17
  %39 = load ptr, ptr %38, align 8, !tbaa !64
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %30
  br label %43

42:                                               ; preds = %30
  call void @__assert_fail(ptr noundef @.str.87, ptr noundef @.str.2, i32 noundef 17251, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_end) #7
  unreachable

43:                                               ; preds = %41
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.nk_panel, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !65
  %47 = and i32 %46, 244
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %43
  br label %51

50:                                               ; preds = %43
  call void @__assert_fail(ptr noundef @.str.89, ptr noundef @.str.2, i32 noundef 17252, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_end) #7
  unreachable

51:                                               ; preds = %49
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.nk_panel, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 4, !tbaa !70
  %55 = and i32 %54, 2048
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %135

57:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @llvm.memset.p0.i64(ptr align 4 %6, i8 0, i64 16, i1 false)
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.nk_panel, ptr %58, i32 0, i32 6
  %60 = load float, ptr %59, align 4, !tbaa !71
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.nk_panel, ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds %struct.nk_rect, ptr %62, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !72
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.nk_panel, ptr %65, i32 0, i32 2
  %67 = getelementptr inbounds %struct.nk_rect, ptr %66, i32 0, i32 3
  %68 = load float, ptr %67, align 4, !tbaa !73
  %69 = fadd float %64, %68
  %70 = fcmp olt float %60, %69
  br i1 %70, label %71, label %113

71:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.nk_context, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.nk_panel, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !65
  %77 = call <2 x float> @nk_panel_get_padding(ptr noundef %73, i32 noundef %76)
  store <2 x float> %77, ptr %7, align 4
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.nk_panel, ptr %78, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 8 %79, i64 16, i1 false), !tbaa.struct !74
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.nk_panel, ptr %80, i32 0, i32 6
  %82 = load float, ptr %81, align 4, !tbaa !71
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.nk_panel, ptr %83, i32 0, i32 8
  %85 = load float, ptr %84, align 4, !tbaa !76
  %86 = fadd float %82, %85
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.nk_panel, ptr %87, i32 0, i32 10
  %89 = load float, ptr %88, align 4, !tbaa !77
  %90 = fadd float %86, %89
  %91 = getelementptr inbounds %struct.nk_vec2, ptr %7, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !78
  %93 = fadd float %90, %92
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.nk_panel, ptr %94, i32 0, i32 14
  %96 = getelementptr inbounds %struct.nk_row_layout, ptr %95, i32 0, i32 2
  %97 = load float, ptr %96, align 8, !tbaa !79
  %98 = fadd float %93, %97
  %99 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 1
  store float %98, ptr %99, align 4, !tbaa !80
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.nk_panel, ptr %100, i32 0, i32 2
  %102 = getelementptr inbounds %struct.nk_rect, ptr %101, i32 0, i32 1
  %103 = load float, ptr %102, align 4, !tbaa !72
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.nk_panel, ptr %104, i32 0, i32 2
  %106 = getelementptr inbounds %struct.nk_rect, ptr %105, i32 0, i32 3
  %107 = load float, ptr %106, align 4, !tbaa !73
  %108 = fadd float %103, %107
  %109 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 1
  %110 = load float, ptr %109, align 4, !tbaa !80
  %111 = fsub float %108, %110
  %112 = getelementptr inbounds %struct.nk_rect, ptr %6, i32 0, i32 3
  store float %111, ptr %112, align 4, !tbaa !81
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %113

113:                                              ; preds = %71, %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.nk_context, ptr %114, i32 0, i32 0
  %116 = call i32 @nk_input_is_mouse_pressed(ptr noundef %115, i32 noundef 0)
  store i32 %116, ptr %8, align 4, !tbaa !82
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.nk_context, ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %120 = load <2 x float>, ptr %119, align 4
  %121 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %122 = load <2 x float>, ptr %121, align 4
  %123 = call i32 @nk_input_is_mouse_hovering_rect(ptr noundef %118, <2 x float> %120, <2 x float> %122)
  store i32 %123, ptr %9, align 4, !tbaa !82
  %124 = load i32, ptr %8, align 4, !tbaa !82
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %134

126:                                              ; preds = %113
  %127 = load i32, ptr %9, align 4, !tbaa !82
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %134

129:                                              ; preds = %126
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.nk_window, ptr %130, i32 0, i32 3
  %132 = load i32, ptr %131, align 8, !tbaa !83
  %133 = or i32 %132, 8192
  store i32 %133, ptr %131, align 8, !tbaa !83
  br label %134

134:                                              ; preds = %129, %126, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %135

135:                                              ; preds = %134, %51
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.nk_window, ptr %136, i32 0, i32 3
  %138 = load i32, ptr %137, align 8, !tbaa !83
  %139 = and i32 %138, 8192
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %144

141:                                              ; preds = %135
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.nk_window, ptr %142, i32 0, i32 0
  store i32 0, ptr %143, align 8, !tbaa !84
  br label %144

144:                                              ; preds = %141, %135
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  call void @nk_popup_end(ptr noundef %145)
  store i32 1, ptr %5, align 4
  br label %146

146:                                              ; preds = %144, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

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

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

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

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


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

@.str.2 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.nk_contextual_end = external hidden unnamed_addr constant [44 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @nk_contextual_end(ptr noundef %0) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %3

2:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.2, i32 noundef 17245, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_end) #3
  unreachable

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 16600
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not32 = icmp eq ptr %5, null
  br i1 %.not32, label %6, label %7

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.2, i32 noundef 17246, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_end) #3
  unreachable

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %5, i64 168
  %9 = load ptr, ptr %8, align 8, !tbaa !56
  %10 = getelementptr inbounds i8, ptr %5, i64 464
  %11 = load ptr, ptr %10, align 8, !tbaa !63
  %.not33 = icmp eq ptr %11, null
  br i1 %.not33, label %12, label %13

12:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.87, ptr noundef nonnull @.str.2, i32 noundef 17251, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_end) #3
  unreachable

13:                                               ; preds = %7
  %14 = load i32, ptr %9, align 8, !tbaa !64
  %15 = and i32 %14, 244
  %.not34 = icmp eq i32 %15, 0
  br i1 %.not34, label %16, label %17

16:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.89, ptr noundef nonnull @.str.2, i32 noundef 17252, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_end) #3
  unreachable

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %9, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !69
  %20 = and i32 %19, 2048
  %.not35 = icmp eq i32 %20, 0
  br i1 %.not35, label %57, label %21

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %9, i64 44
  %23 = load float, ptr %22, align 4, !tbaa !70
  %24 = getelementptr inbounds i8, ptr %9, i64 12
  %25 = load float, ptr %24, align 4, !tbaa !71
  %26 = getelementptr inbounds i8, ptr %9, i64 20
  %27 = load float, ptr %26, align 4, !tbaa !72
  %28 = fadd float %25, %27
  %29 = fcmp olt float %23, %28
  br i1 %29, label %30, label %48

30:                                               ; preds = %21
  %31 = getelementptr inbounds i8, ptr %9, i64 8
  %32 = getelementptr inbounds i8, ptr %0, i64 360
  %33 = tail call <2 x float> @nk_panel_get_padding(ptr noundef nonnull %32, i32 noundef %14)
  %.sroa.03.0.copyload = load <2 x float>, ptr %31, align 8
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 16
  %.sroa.7.0.copyload = load <2 x float>, ptr %.sroa.7.0..sroa_idx, align 8
  %34 = load float, ptr %22, align 4, !tbaa !70
  %35 = getelementptr inbounds i8, ptr %9, i64 52
  %36 = load float, ptr %35, align 4, !tbaa !73
  %37 = fadd float %34, %36
  %38 = getelementptr inbounds i8, ptr %9, i64 60
  %39 = load float, ptr %38, align 4, !tbaa !74
  %40 = fadd float %37, %39
  %.sroa.0.4.vec.extract = extractelement <2 x float> %33, i64 1
  %41 = fadd float %.sroa.0.4.vec.extract, %40
  %42 = getelementptr inbounds i8, ptr %9, i64 120
  %43 = load float, ptr %42, align 8, !tbaa !75
  %44 = fadd float %43, %41
  %.sroa.03.4.vec.insert = insertelement <2 x float> %.sroa.03.0.copyload, float %44, i64 1
  %45 = fadd <2 x float> %.sroa.03.0.copyload, %.sroa.7.0.copyload
  %46 = extractelement <2 x float> %45, i64 1
  %47 = fsub float %46, %44
  %.sroa.7.12.vec.insert = insertelement <2 x float> %.sroa.7.0.copyload, float %47, i64 1
  br label %48

48:                                               ; preds = %30, %21
  %.sroa.03.0 = phi <2 x float> [ %.sroa.03.4.vec.insert, %30 ], [ zeroinitializer, %21 ]
  %.sroa.7.0 = phi <2 x float> [ %.sroa.7.12.vec.insert, %30 ], [ zeroinitializer, %21 ]
  %49 = tail call i32 @nk_input_is_mouse_pressed(ptr noundef nonnull %0, i32 noundef 0)
  %50 = tail call i32 @nk_input_is_mouse_hovering_rect(ptr noundef nonnull %0, <2 x float> %.sroa.03.0, <2 x float> %.sroa.7.0)
  %51 = icmp ne i32 %49, 0
  %52 = icmp ne i32 %50, 0
  %or.cond = select i1 %51, i1 %52, i1 false
  br i1 %or.cond, label %53, label %57

53:                                               ; preds = %48
  %54 = getelementptr inbounds i8, ptr %5, i64 72
  %55 = load i32, ptr %54, align 8, !tbaa !76
  %56 = or i32 %55, 8192
  store i32 %56, ptr %54, align 8, !tbaa !76
  br label %57

57:                                               ; preds = %48, %53, %17
  %58 = getelementptr inbounds i8, ptr %5, i64 72
  %59 = load i32, ptr %58, align 8, !tbaa !76
  %60 = and i32 %59, 8192
  %.not36 = icmp eq i32 %60, 0
  br i1 %.not36, label %62, label %61

61:                                               ; preds = %57
  store i32 0, ptr %5, align 8, !tbaa !77
  br label %62

62:                                               ; preds = %61, %57
  tail call void @nk_popup_end(ptr noundef nonnull %0)
  ret void
}

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

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass