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

; 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_nine_slice }
%struct.nk_nine_slice = type { %struct.nk_image, i16, i16, i16, i16 }
%struct.nk_image = type { %union.nk_handle, i16, i16, [4 x i16] }
%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.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.92 = 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.94 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

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

; 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: mustprogress nounwind uwtable
declare dso_local i32 @nk_input_is_mouse_hovering_rect(ptr noundef, <2 x float>, <2 x float>) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @nk_popup_end(ptr noundef) #6

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

13:                                               ; preds = %1
  br label %16

14:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.1, i32 noundef 21186, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_end) #8
  unreachable

15:                                               ; No predecessors!
  br label %16

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

21:                                               ; preds = %16
  br label %24

22:                                               ; preds = %16
  call void @__assert_fail(ptr noundef @.str.84, ptr noundef @.str.1, i32 noundef 21187, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_end) #8
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %32

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

32:                                               ; preds = %27, %24
  store i32 1, ptr %5, align 4
  br label %151

33:                                               ; preds = %27
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.nk_context, ptr %34, i32 0, i32 17
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  store ptr %36, ptr %3, align 8, !tbaa !5
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.nk_window, ptr %37, i32 0, i32 7
  %39 = load ptr, ptr %38, align 8, !tbaa !63
  store ptr %39, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.nk_window, ptr %40, i32 0, i32 17
  %42 = load ptr, ptr %41, align 8, !tbaa !71
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %33
  br label %47

45:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.92, ptr noundef @.str.1, i32 noundef 21192, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_end) #8
  unreachable

46:                                               ; No predecessors!
  br label %47

47:                                               ; preds = %46, %44
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.nk_panel, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !72
  %51 = and i32 %50, 244
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %47
  br label %56

54:                                               ; preds = %47
  call void @__assert_fail(ptr noundef @.str.94, ptr noundef @.str.1, i32 noundef 21193, ptr noundef @__PRETTY_FUNCTION__.nk_contextual_end) #8
  unreachable

55:                                               ; No predecessors!
  br label %56

56:                                               ; preds = %55, %53
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.nk_panel, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !78
  %60 = and i32 %59, 2048
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %140

62:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  call void @llvm.memset.p0.i64(ptr align 4 %6, i8 0, i64 16, i1 false)
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.nk_panel, ptr %63, i32 0, i32 6
  %65 = load float, ptr %64, align 4, !tbaa !79
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.nk_panel, ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %struct.nk_rect, ptr %67, i32 0, i32 1
  %69 = load float, ptr %68, align 4, !tbaa !80
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.nk_panel, ptr %70, i32 0, i32 2
  %72 = getelementptr inbounds %struct.nk_rect, ptr %71, i32 0, i32 3
  %73 = load float, ptr %72, align 4, !tbaa !81
  %74 = fadd float %69, %73
  %75 = fcmp olt float %65, %74
  br i1 %75, label %76, label %118

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

118:                                              ; preds = %76, %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %119 = load ptr, ptr %2, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.nk_context, ptr %119, i32 0, i32 0
  %121 = call i32 @nk_input_is_mouse_pressed(ptr noundef %120, i32 noundef 0)
  store i32 %121, ptr %8, align 4, !tbaa !90
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.nk_context, ptr %122, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %6, i64 16, i1 false), !tbaa.struct !82
  %124 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %10, i32 0, i32 0
  %125 = load <2 x float>, ptr %124, align 4
  %126 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %10, i32 0, i32 1
  %127 = load <2 x float>, ptr %126, align 4
  %128 = call i32 @nk_input_is_mouse_hovering_rect(ptr noundef %123, <2 x float> %125, <2 x float> %127)
  store i32 %128, ptr %9, align 4, !tbaa !90
  %129 = load i32, ptr %8, align 4, !tbaa !90
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %139

131:                                              ; preds = %118
  %132 = load i32, ptr %9, align 4, !tbaa !90
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %139

134:                                              ; preds = %131
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.nk_window, ptr %135, i32 0, i32 3
  %137 = load i32, ptr %136, align 8, !tbaa !91
  %138 = or i32 %137, 8192
  store i32 %138, ptr %136, align 8, !tbaa !91
  br label %139

139:                                              ; preds = %134, %131, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  br label %140

140:                                              ; preds = %139, %56
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.nk_window, ptr %141, i32 0, i32 3
  %143 = load i32, ptr %142, align 8, !tbaa !91
  %144 = and i32 %143, 8192
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %149

146:                                              ; preds = %140
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.nk_window, ptr %147, i32 0, i32 0
  store i32 0, ptr %148, align 8, !tbaa !92
  br label %149

149:                                              ; preds = %146, %140
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  call void @nk_popup_end(ptr noundef %150)
  store i32 1, ptr %5, align 4
  br label %151

151:                                              ; preds = %149, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @nk_contextual_end(ptr noundef %0) local_unnamed_addr #3 {
  %.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.32, ptr noundef nonnull @.str.1, i32 noundef 21186, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_end) #4
  unreachable

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

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.84, ptr noundef nonnull @.str.1, i32 noundef 21187, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_end) #4
  unreachable

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

12:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.92, ptr noundef nonnull @.str.1, i32 noundef 21192, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_end) #4
  unreachable

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

16:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.94, ptr noundef nonnull @.str.1, i32 noundef 21193, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_contextual_end) #4
  unreachable

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

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %9, i64 44
  %23 = load float, ptr %22, align 4, !tbaa !78
  %24 = getelementptr inbounds i8, ptr %9, i64 12
  %25 = load float, ptr %24, align 4, !tbaa !79
  %26 = getelementptr inbounds i8, ptr %9, i64 20
  %27 = load float, ptr %26, align 4, !tbaa !80
  %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> @_ZL20nk_panel_get_paddingPK8nk_style13nk_panel_type(ptr noundef nonnull %32, i32 noundef %14)
  %.sroa.04.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 !78
  %35 = getelementptr inbounds i8, ptr %9, i64 52
  %36 = load float, ptr %35, align 4, !tbaa !81
  %37 = fadd float %34, %36
  %38 = getelementptr inbounds i8, ptr %9, i64 60
  %39 = load float, ptr %38, align 4, !tbaa !82
  %40 = fadd float %37, %39
  %.sroa.03.4.vec.extract = extractelement <2 x float> %33, i64 1
  %41 = fadd float %.sroa.03.4.vec.extract, %40
  %42 = getelementptr inbounds i8, ptr %9, i64 120
  %43 = load float, ptr %42, align 8, !tbaa !83
  %44 = fadd float %43, %41
  %.sroa.04.4.vec.insert = insertelement <2 x float> %.sroa.04.0.copyload, float %44, i64 1
  %45 = fadd <2 x float> %.sroa.04.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.04.0 = phi <2 x float> [ %.sroa.04.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.04.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 !84
  %56 = or i32 %55, 8192
  store i32 %56, ptr %54, align 8, !tbaa !84
  br label %57

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

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

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

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


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