; LLVM IR from hadryansalles/Luz :: deps/imgui (imgui_impl_vulkan)

; 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.ImNewWrapper = type { i8 }
%struct.ImGui_ImplVulkan_InitInfo = type { ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, i8, i32, ptr, ptr, i64 }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, i8, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, %struct.ImVec2, [666 x i32], [666 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i32, i32, i8, i8, i8, i8, i32, [666 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector.1 }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVec2 = type { float, float }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImGui_ImplVulkan_Data = type { %struct.ImGui_ImplVulkan_InitInfo, ptr, i64, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImGui_ImplVulkan_WindowRenderBuffers }
%struct.ImGui_ImplVulkan_WindowRenderBuffers = type { i32, i32, ptr }
%struct.ImGuiViewport = type <{ i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, [4 x i8] }>

@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@_ZL17g_FunctionsLoaded = external hidden global i8, align 1
@.str.4 = external hidden unnamed_addr constant [133 x i8], align 1
@__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T = external hidden unnamed_addr constant [70 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZL43ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR = external hidden global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZL41ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR = external hidden global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [23 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) #2

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

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

declare noundef nonnull align 8 dereferenceable(14616) ptr @_ZN5ImGui5GetIOEv() #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv() #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T(ptr noundef %0, ptr noundef %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.ImNewWrapper, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.ImNewWrapper, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load i8, ptr @_ZL17g_FunctionsLoaded, align 1, !tbaa !9, !range !11, !noundef !12
  %13 = trunc i8 %12 to i1
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  br label %15

15:                                               ; preds = %14, %2
  %16 = phi i1 [ false, %2 ], [ true, %14 ]
  br i1 %16, label %17, label %18

17:                                               ; preds = %15
  br label %20

18:                                               ; preds = %15
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 1107, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %21, i32 0, i32 11
  %23 = load i8, ptr %22, align 8, !tbaa !13, !range !11, !noundef !12
  %24 = trunc i8 %23 to i1
  br i1 %24, label %25, label %46

25:                                               ; preds = %20
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  %29 = call ptr @vkGetInstanceProcAddr(ptr noundef %28, ptr noundef @.str.5)
  store ptr %29, ptr @_ZL43ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  %33 = call ptr @vkGetInstanceProcAddr(ptr noundef %32, ptr noundef @.str.6)
  store ptr %33, ptr @_ZL41ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR, align 8, !tbaa !5
  %34 = load ptr, ptr @_ZL43ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %25
  br label %39

37:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 1116, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

38:                                               ; No predecessors!
  br label %39

39:                                               ; preds = %38, %36
  %40 = load ptr, ptr @_ZL41ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  br label %45

43:                                               ; preds = %39
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 1117, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44, %42
  br label %46

46:                                               ; preds = %45, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %47 = call noundef nonnull align 8 dereferenceable(14616) ptr @_ZN5ImGui5GetIOEv()
  store ptr %47, ptr %5, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ImGuiIO, ptr %48, i32 0, i32 43
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %46
  br label %53

53:                                               ; preds = %52, %46
  %54 = phi i1 [ false, %46 ], [ true, %52 ]
  br i1 %54, label %55, label %56

55:                                               ; preds = %53
  br label %58

56:                                               ; preds = %53
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 1124, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

57:                                               ; No predecessors!
  br label %58

58:                                               ; preds = %57, %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %59 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 248)
  %60 = call noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef 248, ptr noundef %59)
  invoke void @_ZN21ImGui_ImplVulkan_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(248) %60)
          to label %61 unwind label %81

61:                                               ; preds = %58
  store ptr %60, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImGuiIO, ptr %63, i32 0, i32 43
  store ptr %62, ptr %64, align 8, !tbaa !20
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImGuiIO, ptr %65, i32 0, i32 41
  store ptr @.str.11, ptr %66, align 8, !tbaa !27
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImGuiIO, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !28
  %70 = or i32 %69, 8
  store i32 %70, ptr %68, align 4, !tbaa !28
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ImGuiIO, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !28
  %74 = or i32 %73, 4096
  store i32 %74, ptr %72, align 4, !tbaa !28
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !19
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %80

79:                                               ; preds = %61
  br label %86

80:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 1133, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

81:                                               ; preds = %58
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %8, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %9, align 4
  call void @_ZdlPv12ImNewWrapperS_(ptr noundef %60, ptr noundef %59) #8
  br label %181

85:                                               ; No predecessors!
  br label %86

86:                                               ; preds = %85, %79
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !29
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %92

91:                                               ; preds = %86
  br label %94

92:                                               ; preds = %86
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 1134, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

93:                                               ; No predecessors!
  br label %94

94:                                               ; preds = %93, %91
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !30
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %100

99:                                               ; preds = %94
  br label %102

100:                                              ; preds = %94
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 1135, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

101:                                              ; No predecessors!
  br label %102

102:                                              ; preds = %101, %99
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !31
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %108

107:                                              ; preds = %102
  br label %110

108:                                              ; preds = %102
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 1136, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

109:                                              ; No predecessors!
  br label %110

110:                                              ; preds = %109, %107
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %111, i32 0, i32 6
  %113 = load ptr, ptr %112, align 8, !tbaa !32
  %114 = icmp ne ptr %113, null
  br i1 %114, label %115, label %116

115:                                              ; preds = %110
  br label %118

116:                                              ; preds = %110
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 1137, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

117:                                              ; No predecessors!
  br label %118

118:                                              ; preds = %117, %115
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %119, i32 0, i32 8
  %121 = load i32, ptr %120, align 4, !tbaa !33
  %122 = icmp uge i32 %121, 2
  br i1 %122, label %123, label %124

123:                                              ; preds = %118
  br label %126

124:                                              ; preds = %118
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 1138, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

125:                                              ; No predecessors!
  br label %126

126:                                              ; preds = %125, %123
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %127, i32 0, i32 9
  %129 = load i32, ptr %128, align 8, !tbaa !34
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %130, i32 0, i32 8
  %132 = load i32, ptr %131, align 4, !tbaa !33
  %133 = icmp uge i32 %129, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %126
  br label %137

135:                                              ; preds = %126
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.1, i32 noundef 1139, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

136:                                              ; No predecessors!
  br label %137

137:                                              ; preds = %136, %134
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %138, i32 0, i32 11
  %140 = load i8, ptr %139, align 8, !tbaa !13, !range !11, !noundef !12
  %141 = trunc i8 %140 to i1
  %142 = zext i1 %141 to i32
  %143 = icmp eq i32 %142, 0
  br i1 %143, label %144, label %151

144:                                              ; preds = %137
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %148

147:                                              ; preds = %144
  br label %150

148:                                              ; preds = %144
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.1, i32 noundef 1141, ptr noundef @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #7
  unreachable

149:                                              ; No predecessors!
  br label %150

150:                                              ; preds = %149, %147
  br label %151

151:                                              ; preds = %150, %137
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %153, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %154, ptr align 8 %152, i64 104, i1 false), !tbaa.struct !35
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %156, i32 0, i32 1
  store ptr %155, ptr %157, align 8, !tbaa !40
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %158, i32 0, i32 7
  %160 = load i32, ptr %159, align 8, !tbaa !43
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %161, i32 0, i32 7
  store i32 %160, ptr %162, align 8, !tbaa !44
  %163 = call noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv()
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %164 = call noundef ptr @_ZN5ImGui15GetMainViewportEv()
  store ptr %164, ptr %10, align 8, !tbaa !5
  %165 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 136)
  %166 = call noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef 136, ptr noundef %165)
  invoke void @_ZN29ImGui_ImplVulkan_ViewportDataC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %166)
          to label %167 unwind label %176

167:                                              ; preds = %151
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ImGuiViewport, ptr %168, i32 0, i32 9
  store ptr %166, ptr %169, align 8, !tbaa !45
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.ImGuiIO, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 8, !tbaa !47
  %173 = and i32 %172, 1024
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %180

175:                                              ; preds = %167
  call void @_ZL38ImGui_ImplVulkan_InitPlatformInterfacev()
  br label %180

176:                                              ; preds = %151
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %8, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %9, align 4
  call void @_ZdlPv12ImNewWrapperS_(ptr noundef %166, ptr noundef %165) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %181

180:                                              ; preds = %175, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret i1 true

181:                                              ; preds = %176, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %182

182:                                              ; preds = %181
  %183 = load ptr, ptr %8, align 8
  %184 = load i32, ptr %9, align 4
  %185 = insertvalue { ptr, i32 } poison, ptr %183, 0
  %186 = insertvalue { ptr, i32 } %185, i32 %184, 1
  resume { ptr, i32 } %186
}

declare ptr @vkGetInstanceProcAddr(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN21ImGui_ImplVulkan_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #6 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZdlPv12ImNewWrapperS_(ptr noundef, ptr noundef) #5

declare noundef ptr @_ZN5ImGui15GetMainViewportEv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN29ImGui_ImplVulkan_ViewportDataC2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL38ImGui_ImplVulkan_InitPlatformInterfacev() #4

attributes #0 = { nocallback nofree nosync 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 = { "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: readwrite) }
attributes #4 = { 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 #5 = { inlinehint 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 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 #7 = { noreturn nounwind }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !10, i64 72}
!14 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !15, i64 56, !15, i64 60, !15, i64 64, !16, i64 68, !10, i64 72, !17, i64 76, !6, i64 80, !6, i64 88, !18, i64 96}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!17 = !{!"_ZTS8VkFormat", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!14, !6, i64 0}
!20 = !{!21, !6, i64 152}
!21 = !{!"_ZTS7ImGuiIO", !15, i64 0, !15, i64 4, !22, i64 8, !23, i64 16, !23, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !23, i64 56, !10, i64 60, !6, i64 64, !22, i64 72, !10, i64 80, !10, i64 81, !10, i64 82, !10, i64 83, !10, i64 84, !10, i64 85, !10, i64 86, !10, i64 87, !10, i64 88, !10, i64 89, !10, i64 90, !10, i64 91, !10, i64 92, !10, i64 93, !10, i64 94, !10, i64 95, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !23, i64 116, !10, i64 120, !10, i64 121, !10, i64 122, !10, i64 123, !10, i64 124, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !24, i64 200, !10, i64 202, !10, i64 203, !10, i64 204, !10, i64 205, !10, i64 206, !10, i64 207, !10, i64 208, !23, i64 212, !15, i64 216, !15, i64 220, !15, i64 224, !15, i64 228, !22, i64 232, !7, i64 240, !7, i64 2904, !7, i64 3572, !6, i64 3640, !22, i64 3648, !7, i64 3656, !23, i64 3664, !23, i64 3668, !25, i64 3672, !15, i64 3676, !10, i64 3680, !10, i64 3681, !10, i64 3682, !10, i64 3683, !15, i64 3684, !7, i64 3688, !10, i64 14344, !22, i64 14348, !7, i64 14356, !7, i64 14400, !7, i64 14440, !7, i64 14445, !7, i64 14450, !7, i64 14460, !7, i64 14470, !7, i64 14475, !7, i64 14480, !10, i64 14485, !7, i64 14488, !7, i64 14508, !7, i64 14528, !7, i64 14568, !23, i64 14588, !10, i64 14592, !10, i64 14593, !7, i64 14594, !10, i64 14595, !24, i64 14596, !26, i64 14600}
!22 = !{!"_ZTS6ImVec2", !23, i64 0, !23, i64 4}
!23 = !{!"float", !7, i64 0}
!24 = !{!"short", !7, i64 0}
!25 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!26 = !{!"_ZTS8ImVectorItE", !15, i64 0, !15, i64 4, !6, i64 8}
!27 = !{!21, !6, i64 136}
!28 = !{!21, !15, i64 4}
!29 = !{!14, !6, i64 8}
!30 = !{!14, !6, i64 16}
!31 = !{!14, !6, i64 32}
!32 = !{!14, !6, i64 48}
!33 = !{!14, !15, i64 60}
!34 = !{!14, !15, i64 64}
!35 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 4, !36, i64 32, i64 8, !5, i64 40, i64 8, !5, i64 48, i64 8, !5, i64 56, i64 4, !36, i64 60, i64 4, !36, i64 64, i64 4, !36, i64 68, i64 4, !37, i64 72, i64 1, !9, i64 76, i64 4, !38, i64 80, i64 8, !5, i64 88, i64 8, !5, i64 96, i64 8, !39}
!36 = !{!15, !15, i64 0}
!37 = !{!16, !16, i64 0}
!38 = !{!17, !17, i64 0}
!39 = !{!18, !18, i64 0}
!40 = !{!41, !6, i64 104}
!41 = !{!"_ZTS21ImGui_ImplVulkan_Data", !14, i64 0, !6, i64 104, !18, i64 112, !15, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !15, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !42, i64 232}
!42 = !{!"_ZTS36ImGui_ImplVulkan_WindowRenderBuffers", !15, i64 0, !15, i64 4, !6, i64 8}
!43 = !{!14, !15, i64 56}
!44 = !{!41, !15, i64 152}
!45 = !{!46, !6, i64 56}
!46 = !{!"_ZTS13ImGuiViewport", !15, i64 0, !15, i64 4, !22, i64 8, !22, i64 16, !22, i64 24, !22, i64 32, !23, i64 40, !15, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 89, !10, i64 90, !10, i64 91}
!47 = !{!21, !15, 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 [84 x i8], align 1
@_ZL17g_FunctionsLoaded = external hidden local_unnamed_addr global i8, align 1
@.str.4 = external hidden unnamed_addr constant [133 x i8], align 1
@__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T = external hidden unnamed_addr constant [70 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZL43ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR = external hidden local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZL41ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR = external hidden local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [23 x i8], align 1

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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) local_unnamed_addr #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) #2

declare noundef nonnull align 8 dereferenceable(14616) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = load i8, ptr @_ZL17g_FunctionsLoaded, align 1, !tbaa !5, !range !9, !noundef !10
  %4 = trunc nuw i8 %3 to i1
  br i1 %4, label %6, label %5

5:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 1107, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  %8 = load i8, ptr %7, align 8, !tbaa !11, !range !9, !noundef !10
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %19

10:                                               ; preds = %6
  %11 = load ptr, ptr %0, align 8, !tbaa !18
  %12 = tail call ptr @vkGetInstanceProcAddr(ptr noundef %11, ptr noundef nonnull @.str.5)
  store ptr %12, ptr @_ZL43ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR, align 8, !tbaa !19
  %13 = load ptr, ptr %0, align 8, !tbaa !18
  %14 = tail call ptr @vkGetInstanceProcAddr(ptr noundef %13, ptr noundef nonnull @.str.6)
  store ptr %14, ptr @_ZL41ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR, align 8, !tbaa !19
  %15 = load ptr, ptr @_ZL43ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR, align 8, !tbaa !19
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %16, label %17

16:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 1116, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

17:                                               ; preds = %10
  %.not30 = icmp eq ptr %14, null
  br i1 %.not30, label %18, label %19

18:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 1117, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

19:                                               ; preds = %17, %6
  %20 = tail call noundef nonnull align 8 dereferenceable(14616) ptr @_ZN5ImGui5GetIOEv()
  %21 = getelementptr inbounds i8, ptr %20, i64 152
  %22 = load ptr, ptr %21, align 8, !tbaa !20
  %23 = icmp eq ptr %22, null
  br i1 %23, label %25, label %24

24:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 1124, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

25:                                               ; preds = %19
  %26 = tail call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 248)
  %27 = tail call noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef 248, ptr noundef %26)
  tail call void @_ZN21ImGui_ImplVulkan_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(248) %27)
  store ptr %27, ptr %21, align 8, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %20, i64 136
  store ptr @.str.11, ptr %28, align 8, !tbaa !27
  %29 = getelementptr inbounds i8, ptr %20, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !28
  %31 = or i32 %30, 4104
  store i32 %31, ptr %29, align 4, !tbaa !28
  %32 = load ptr, ptr %0, align 8, !tbaa !18
  %.not31 = icmp eq ptr %32, null
  br i1 %.not31, label %33, label %34

33:                                               ; preds = %25
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 1133, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

34:                                               ; preds = %25
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !29
  %.not32 = icmp eq ptr %36, null
  br i1 %.not32, label %37, label %38

37:                                               ; preds = %34
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 1134, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %0, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !30
  %.not33 = icmp eq ptr %40, null
  br i1 %.not33, label %41, label %42

41:                                               ; preds = %38
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 1135, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

42:                                               ; preds = %38
  %43 = getelementptr inbounds i8, ptr %0, i64 32
  %44 = load ptr, ptr %43, align 8, !tbaa !31
  %.not34 = icmp eq ptr %44, null
  br i1 %.not34, label %45, label %46

45:                                               ; preds = %42
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 1136, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

46:                                               ; preds = %42
  %47 = getelementptr inbounds i8, ptr %0, i64 48
  %48 = load ptr, ptr %47, align 8, !tbaa !32
  %.not35 = icmp eq ptr %48, null
  br i1 %.not35, label %49, label %50

49:                                               ; preds = %46
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 1137, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

50:                                               ; preds = %46
  %51 = getelementptr inbounds i8, ptr %0, i64 60
  %52 = load i32, ptr %51, align 4, !tbaa !33
  %53 = icmp ugt i32 %52, 1
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i32 noundef 1138, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

55:                                               ; preds = %50
  %56 = getelementptr inbounds i8, ptr %0, i64 64
  %57 = load i32, ptr %56, align 8, !tbaa !34
  %.not36 = icmp ult i32 %57, %52
  br i1 %.not36, label %58, label %59

58:                                               ; preds = %55
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.1, i32 noundef 1139, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

59:                                               ; preds = %55
  %60 = load i8, ptr %7, align 8, !tbaa !11, !range !9, !noundef !10
  %61 = trunc nuw i8 %60 to i1
  %62 = icmp ne ptr %1, null
  %or.cond = or i1 %62, %61
  br i1 %or.cond, label %64, label %63

63:                                               ; preds = %59
  tail call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.1, i32 noundef 1141, ptr noundef nonnull @__PRETTY_FUNCTION__._Z21ImGui_ImplVulkan_InitP25ImGui_ImplVulkan_InitInfoP14VkRenderPass_T) #6
  unreachable

64:                                               ; preds = %59
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %27, ptr noundef nonnull align 8 dereferenceable(104) %0, i64 104, i1 false), !tbaa.struct !35
  %65 = getelementptr inbounds i8, ptr %27, i64 104
  store ptr %1, ptr %65, align 8, !tbaa !40
  %66 = getelementptr inbounds i8, ptr %0, i64 56
  %67 = load i32, ptr %66, align 8, !tbaa !43
  %68 = getelementptr inbounds i8, ptr %27, i64 152
  store i32 %67, ptr %68, align 8, !tbaa !44
  %69 = tail call noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv()
  %70 = tail call noundef ptr @_ZN5ImGui15GetMainViewportEv()
  %71 = tail call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 136)
  %72 = tail call noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef 136, ptr noundef %71)
  invoke void @_ZN29ImGui_ImplVulkan_ViewportDataC2Ev(ptr noundef nonnull align 8 dereferenceable(136) %72)
          to label %73 unwind label %78

73:                                               ; preds = %64
  %74 = getelementptr inbounds i8, ptr %70, i64 56
  store ptr %72, ptr %74, align 8, !tbaa !45
  %75 = load i32, ptr %20, align 8, !tbaa !47
  %76 = and i32 %75, 1024
  %.not37 = icmp eq i32 %76, 0
  br i1 %.not37, label %80, label %77

77:                                               ; preds = %73
  tail call void @_ZL38ImGui_ImplVulkan_InitPlatformInterfacev()
  br label %80

78:                                               ; preds = %64
  %79 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPv12ImNewWrapperS_(ptr noundef %72, ptr noundef %71) #7
  resume { ptr, i32 } %79

80:                                               ; preds = %77, %73
  ret i1 true
}

declare ptr @vkGetInstanceProcAddr(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN21ImGui_ImplVulkan_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZdlPv12ImNewWrapperS_(ptr noundef, ptr noundef) local_unnamed_addr #4

declare noundef ptr @_ZN5ImGui15GetMainViewportEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN29ImGui_ImplVulkan_ViewportDataC2Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL38ImGui_ImplVulkan_InitPlatformInterfacev() local_unnamed_addr #3

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 = { "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #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 = { noreturn nounwind }
attributes #7 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !6, i64 72}
!12 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !13, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !14, i64 56, !14, i64 60, !14, i64 64, !15, i64 68, !6, i64 72, !16, i64 76, !13, i64 80, !13, i64 88, !17, i64 96}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!16 = !{!"_ZTS8VkFormat", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!12, !13, i64 0}
!19 = !{!13, !13, i64 0}
!20 = !{!21, !13, i64 152}
!21 = !{!"_ZTS7ImGuiIO", !14, i64 0, !14, i64 4, !22, i64 8, !23, i64 16, !23, i64 20, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !23, i64 56, !6, i64 60, !13, i64 64, !22, i64 72, !6, i64 80, !6, i64 81, !6, i64 82, !6, i64 83, !6, i64 84, !6, i64 85, !6, i64 86, !6, i64 87, !6, i64 88, !6, i64 89, !6, i64 90, !6, i64 91, !6, i64 92, !6, i64 93, !6, i64 94, !6, i64 95, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !23, i64 116, !6, i64 120, !6, i64 121, !6, i64 122, !6, i64 123, !6, i64 124, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !24, i64 200, !6, i64 202, !6, i64 203, !6, i64 204, !6, i64 205, !6, i64 206, !6, i64 207, !6, i64 208, !23, i64 212, !14, i64 216, !14, i64 220, !14, i64 224, !14, i64 228, !22, i64 232, !7, i64 240, !7, i64 2904, !7, i64 3572, !13, i64 3640, !22, i64 3648, !7, i64 3656, !23, i64 3664, !23, i64 3668, !25, i64 3672, !14, i64 3676, !6, i64 3680, !6, i64 3681, !6, i64 3682, !6, i64 3683, !14, i64 3684, !7, i64 3688, !6, i64 14344, !22, i64 14348, !7, i64 14356, !7, i64 14400, !7, i64 14440, !7, i64 14445, !7, i64 14450, !7, i64 14460, !7, i64 14470, !7, i64 14475, !7, i64 14480, !6, i64 14485, !7, i64 14488, !7, i64 14508, !7, i64 14528, !7, i64 14568, !23, i64 14588, !6, i64 14592, !6, i64 14593, !7, i64 14594, !6, i64 14595, !24, i64 14596, !26, i64 14600}
!22 = !{!"_ZTS6ImVec2", !23, i64 0, !23, i64 4}
!23 = !{!"float", !7, i64 0}
!24 = !{!"short", !7, i64 0}
!25 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!26 = !{!"_ZTS8ImVectorItE", !14, i64 0, !14, i64 4, !13, i64 8}
!27 = !{!21, !13, i64 136}
!28 = !{!21, !14, i64 4}
!29 = !{!12, !13, i64 8}
!30 = !{!12, !13, i64 16}
!31 = !{!12, !13, i64 32}
!32 = !{!12, !13, i64 48}
!33 = !{!12, !14, i64 60}
!34 = !{!12, !14, i64 64}
!35 = !{i64 0, i64 8, !19, i64 8, i64 8, !19, i64 16, i64 8, !19, i64 24, i64 4, !36, i64 32, i64 8, !19, i64 40, i64 8, !19, i64 48, i64 8, !19, i64 56, i64 4, !36, i64 60, i64 4, !36, i64 64, i64 4, !36, i64 68, i64 4, !37, i64 72, i64 1, !5, i64 76, i64 4, !38, i64 80, i64 8, !19, i64 88, i64 8, !19, i64 96, i64 8, !39}
!36 = !{!14, !14, i64 0}
!37 = !{!15, !15, i64 0}
!38 = !{!16, !16, i64 0}
!39 = !{!17, !17, i64 0}
!40 = !{!41, !13, i64 104}
!41 = !{!"_ZTS21ImGui_ImplVulkan_Data", !12, i64 0, !13, i64 104, !17, i64 112, !14, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !14, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !42, i64 232}
!42 = !{!"_ZTS36ImGui_ImplVulkan_WindowRenderBuffers", !14, i64 0, !14, i64 4, !13, i64 8}
!43 = !{!12, !14, i64 56}
!44 = !{!41, !14, i64 152}
!45 = !{!46, !13, i64 56}
!46 = !{!"_ZTS13ImGuiViewport", !14, i64 0, !14, i64 4, !22, i64 8, !22, i64 16, !22, i64 24, !22, i64 32, !23, i64 40, !14, i64 44, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !6, i64 88, !6, i64 89, !6, i64 90, !6, i64 91}
!47 = !{!21, !14, i64 0}


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