; 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_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_vec2 = type { float, float }
%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_rect = type { float, float, float, float }
%struct.nk_convert_config = type { float, i32, i32, i32, i32, i32, %struct.nk_draw_null_texture, ptr, i64, i64 }
%struct.nk_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 }

@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@__PRETTY_FUNCTION__.nk_init_custom = external hidden unnamed_addr constant [113 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [5 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: mustprogress uwtable
declare hidden void @_ZL8nk_setupP10nk_contextPK12nk_user_font(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local i32 @nk_init_custom(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %11 = load ptr, ptr %7, align 8, !tbaa !5
  %12 = icmp ne ptr %11, null
  br i1 %12, label %13, label %14

13:                                               ; preds = %4
  br label %16

14:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str.1, i32 noundef 18921, ptr noundef @__PRETTY_FUNCTION__.nk_init_custom) #4
  unreachable

15:                                               ; No predecessors!
  br label %16

16:                                               ; preds = %15, %13
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %16
  br label %22

20:                                               ; preds = %16
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.1, i32 noundef 18922, ptr noundef @__PRETTY_FUNCTION__.nk_init_custom) #4
  unreachable

21:                                               ; No predecessors!
  br label %22

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

25:                                               ; preds = %22
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %29, label %28

28:                                               ; preds = %25, %22
  store i32 0, ptr %5, align 4
  br label %59

29:                                               ; preds = %25
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL8nk_setupP10nk_contextPK12nk_user_font(ptr noundef %30, ptr noundef %31)
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.nk_context, ptr %33, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %32, i64 120, i1 false), !tbaa.struct !9
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.nk_buffer, ptr %35, i32 0, i32 2
  %37 = load i32, ptr %36, align 8, !tbaa !17
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %50

39:                                               ; preds = %29
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.nk_context, ptr %40, i32 0, i32 13
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.nk_buffer, ptr %42, i32 0, i32 3
  %44 = getelementptr inbounds %struct.nk_memory, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.nk_buffer, ptr %46, i32 0, i32 3
  %48 = getelementptr inbounds %struct.nk_memory, ptr %47, i32 0, i32 1
  %49 = load i64, ptr %48, align 8, !tbaa !22
  call void @_ZL18nk_pool_init_fixedP7nk_poolPvm(ptr noundef %41, ptr noundef %45, i64 noundef %49)
  br label %56

50:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.nk_buffer, ptr %51, i32 0, i32 1
  store ptr %52, ptr %10, align 8, !tbaa !5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.nk_context, ptr %53, i32 0, i32 13
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZL12nk_pool_initP7nk_poolP12nk_allocatorj(ptr noundef %54, ptr noundef %55, i32 noundef 16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %56

56:                                               ; preds = %50, %39
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.nk_context, ptr %57, i32 0, i32 12
  store i32 1, ptr %58, align 4, !tbaa !23
  store i32 1, ptr %5, align 4
  br label %59

59:                                               ; preds = %56, %28
  %60 = load i32, ptr %5, align 4
  ret i32 %60
}

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

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

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


; 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.28 = external hidden unnamed_addr constant [5 x i8], align 1
@__PRETTY_FUNCTION__.nk_init_custom = external hidden unnamed_addr constant [113 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL8nk_setupP10nk_contextPK12nk_user_font(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @nk_init_custom(ptr noundef %0, ptr noundef readonly %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.1, i32 noundef 18921, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_init_custom) #3
  unreachable

6:                                                ; preds = %4
  %.not19 = icmp eq ptr %2, null
  br i1 %.not19, label %7, label %8

7:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.1, i32 noundef 18922, ptr noundef nonnull @__PRETTY_FUNCTION__.nk_init_custom) #3
  unreachable

8:                                                ; preds = %6
  tail call void @_ZL8nk_setupP10nk_contextPK12nk_user_font(ptr noundef %0, ptr noundef %3)
  %9 = getelementptr inbounds i8, ptr %0, i64 9000
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %9, ptr noundef nonnull align 8 dereferenceable(120) %1, i64 120, i1 false), !tbaa.struct !5
  %10 = getelementptr inbounds i8, ptr %2, i64 56
  %11 = load i32, ptr %10, align 8, !tbaa !17
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %19

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %0, i64 17728
  %15 = getelementptr inbounds i8, ptr %2, i64 64
  %16 = load ptr, ptr %15, align 8, !tbaa !21
  %17 = getelementptr inbounds i8, ptr %2, i64 72
  %18 = load i64, ptr %17, align 8, !tbaa !22
  tail call void @_ZL18nk_pool_init_fixedP7nk_poolPvm(ptr noundef nonnull %14, ptr noundef %16, i64 noundef %18)
  br label %22

19:                                               ; preds = %8
  %20 = getelementptr inbounds i8, ptr %2, i64 32
  %21 = getelementptr inbounds i8, ptr %0, i64 17728
  tail call void @_ZL12nk_pool_initP7nk_poolP12nk_allocatorj(ptr noundef nonnull %21, ptr noundef nonnull %20, i32 noundef 16)
  br label %22

22:                                               ; preds = %19, %13
  %23 = getelementptr inbounds i8, ptr %0, i64 17724
  store i32 1, ptr %23, align 4, !tbaa !23
  ret i32 1
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18nk_pool_init_fixedP7nk_poolPvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL12nk_pool_initP7nk_poolP12nk_allocatorj(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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


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