; LLVM IR from hbatagelo/abcg :: abcg/external/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.VkImageCreateInfo = type { i32, ptr, i32, i32, i32, %struct.VkExtent3D, i32, i32, i32, i32, i32, i32, i32, ptr, i32 }
%struct.VkExtent3D = type { i32, i32, i32 }
%struct.VkMemoryRequirements = type { i64, i64, i32 }
%struct.VkMemoryAllocateInfo = type { i32, ptr, i64, i32 }
%struct.VkImageViewCreateInfo = type { i32, ptr, i32, ptr, i32, i32, %struct.VkComponentMapping, %struct.VkImageSubresourceRange }
%struct.VkComponentMapping = type { i32, i32, i32, i32 }
%struct.VkImageSubresourceRange = type { i32, i32, i32, i32, i32 }
%struct.VkBufferCreateInfo = type { i32, ptr, i32, i64, i32, i32, i32, ptr }
%struct.VkMappedMemoryRange = type { i32, ptr, ptr, i64, i64 }
%struct.VkImageMemoryBarrier = type { i32, ptr, i32, i32, i32, i32, i32, i32, ptr, %struct.VkImageSubresourceRange }
%struct.VkBufferImageCopy = type { i64, i32, i32, %struct.VkImageSubresourceLayers, %struct.VkOffset3D, %struct.VkExtent3D }
%struct.VkImageSubresourceLayers = type { i32, i32, i32, i32 }
%struct.VkOffset3D = type { i32, i32, i32 }
%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_ImplVulkanH_WindowRenderBuffers }
%struct.ImGui_ImplVulkan_InitInfo = type { ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr }
%struct.ImGui_ImplVulkanH_WindowRenderBuffers = type { i32, i32, ptr }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, float, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i32, [652 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], [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector.0 }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVec2 = type { float, float }
%struct.ImVector.0 = type { i32, i32, ptr }

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav() #1

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

declare i32 @vkMapMemory(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL15check_vk_result8VkResult(i32 noundef) #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) #4

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

declare i32 @vkFlushMappedMemoryRanges(ptr noundef, i32 noundef, ptr noundef) #3

declare void @vkUnmapMemory(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z35ImGui_ImplVulkan_CreateFontsTextureP17VkCommandBuffer_T(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.VkImageCreateInfo, align 8
  %12 = alloca %struct.VkMemoryRequirements, align 8
  %13 = alloca %struct.VkMemoryAllocateInfo, align 8
  %14 = alloca %struct.VkImageViewCreateInfo, align 8
  %15 = alloca %struct.VkBufferCreateInfo, align 8
  %16 = alloca %struct.VkMemoryRequirements, align 8
  %17 = alloca %struct.VkMemoryAllocateInfo, align 8
  %18 = alloca ptr, align 8
  %19 = alloca [1 x %struct.VkMappedMemoryRange], align 16
  %20 = alloca [1 x %struct.VkImageMemoryBarrier], align 16
  %21 = alloca %struct.VkBufferImageCopy, align 8
  %22 = alloca [1 x %struct.VkImageMemoryBarrier], align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %23 = call noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv()
  store ptr %23, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %24 = call noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav()
  store ptr %24, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %25, i32 0, i32 0
  store ptr %26, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ImGuiIO, ptr %27, i32 0, i32 15
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  call void @_ZN11ImFontAtlas18GetTexDataAsRGBA32EPPhPiS2_S2_(ptr noundef nonnull align 8 dereferenceable(1180) %29, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %30 = load i32, ptr %7, align 4, !tbaa !17
  %31 = load i32, ptr %8, align 4, !tbaa !17
  %32 = mul nsw i32 %30, %31
  %33 = mul nsw i32 %32, 4
  %34 = sext i32 %33 to i64
  %35 = mul i64 %34, 1
  store i64 %35, ptr %9, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 88, i1 false)
  %36 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 0
  store i32 14, ptr %36, align 8, !tbaa !20
  %37 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 3
  store i32 1, ptr %37, align 4, !tbaa !30
  %38 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 4
  store i32 37, ptr %38, align 8, !tbaa !31
  %39 = load i32, ptr %7, align 4, !tbaa !17
  %40 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 5
  %41 = getelementptr inbounds %struct.VkExtent3D, ptr %40, i32 0, i32 0
  store i32 %39, ptr %41, align 4, !tbaa !32
  %42 = load i32, ptr %8, align 4, !tbaa !17
  %43 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 5
  %44 = getelementptr inbounds %struct.VkExtent3D, ptr %43, i32 0, i32 1
  store i32 %42, ptr %44, align 4, !tbaa !33
  %45 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 5
  %46 = getelementptr inbounds %struct.VkExtent3D, ptr %45, i32 0, i32 2
  store i32 1, ptr %46, align 4, !tbaa !34
  %47 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 6
  store i32 1, ptr %47, align 8, !tbaa !35
  %48 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 7
  store i32 1, ptr %48, align 4, !tbaa !36
  %49 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 8
  store i32 1, ptr %49, align 8, !tbaa !37
  %50 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 9
  store i32 0, ptr %50, align 4, !tbaa !38
  %51 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 10
  store i32 6, ptr %51, align 8, !tbaa !39
  %52 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 11
  store i32 0, ptr %52, align 4, !tbaa !40
  %53 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %11, i32 0, i32 14
  store i32 0, ptr %53, align 8, !tbaa !41
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !42
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %57, i32 0, i32 11
  %59 = load ptr, ptr %58, align 8, !tbaa !44
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %60, i32 0, i32 12
  %62 = call i32 @vkCreateImage(ptr noundef %56, ptr noundef %11, ptr noundef %59, ptr noundef %61)
  store i32 %62, ptr %10, align 4, !tbaa !45
  %63 = load i32, ptr %10, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %63)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !42
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %67, i32 0, i32 12
  %69 = load ptr, ptr %68, align 8, !tbaa !47
  call void @vkGetImageMemoryRequirements(ptr noundef %66, ptr noundef %69, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 32, i1 false)
  %70 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %13, i32 0, i32 0
  store i32 5, ptr %70, align 8, !tbaa !50
  %71 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %12, i32 0, i32 0
  %72 = load i64, ptr %71, align 8, !tbaa !52
  %73 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %13, i32 0, i32 2
  store i64 %72, ptr %73, align 8, !tbaa !54
  %74 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %12, i32 0, i32 2
  %75 = load i32, ptr %74, align 8, !tbaa !55
  %76 = call noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef 1, i32 noundef %75)
  %77 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %13, i32 0, i32 3
  store i32 %76, ptr %77, align 8, !tbaa !56
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %78, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !42
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %81, i32 0, i32 11
  %83 = load ptr, ptr %82, align 8, !tbaa !44
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %84, i32 0, i32 11
  %86 = call i32 @vkAllocateMemory(ptr noundef %80, ptr noundef %13, ptr noundef %83, ptr noundef %85)
  store i32 %86, ptr %10, align 4, !tbaa !45
  %87 = load i32, ptr %10, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %87)
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !42
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %91, i32 0, i32 12
  %93 = load ptr, ptr %92, align 8, !tbaa !47
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %94, i32 0, i32 11
  %96 = load ptr, ptr %95, align 8, !tbaa !57
  %97 = call i32 @vkBindImageMemory(ptr noundef %90, ptr noundef %93, ptr noundef %96, i64 noundef 0)
  store i32 %97, ptr %10, align 4, !tbaa !45
  %98 = load i32, ptr %10, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %98)
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #6
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 80, i1 false)
  %99 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %14, i32 0, i32 0
  store i32 15, ptr %99, align 8, !tbaa !58
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %100, i32 0, i32 12
  %102 = load ptr, ptr %101, align 8, !tbaa !47
  %103 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %14, i32 0, i32 3
  store ptr %102, ptr %103, align 8, !tbaa !64
  %104 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %14, i32 0, i32 4
  store i32 1, ptr %104, align 8, !tbaa !65
  %105 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %14, i32 0, i32 5
  store i32 37, ptr %105, align 4, !tbaa !66
  %106 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %14, i32 0, i32 7
  %107 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %106, i32 0, i32 0
  store i32 1, ptr %107, align 8, !tbaa !67
  %108 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %14, i32 0, i32 7
  %109 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %108, i32 0, i32 2
  store i32 1, ptr %109, align 8, !tbaa !68
  %110 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %14, i32 0, i32 7
  %111 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %110, i32 0, i32 4
  store i32 1, ptr %111, align 8, !tbaa !69
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %112, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !42
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %115, i32 0, i32 11
  %117 = load ptr, ptr %116, align 8, !tbaa !44
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %118, i32 0, i32 13
  %120 = call i32 @vkCreateImageView(ptr noundef %114, ptr noundef %14, ptr noundef %117, ptr noundef %119)
  store i32 %120, ptr %10, align 4, !tbaa !45
  %121 = load i32, ptr %10, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %121)
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #6
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %122, i32 0, i32 10
  %124 = load ptr, ptr %123, align 8, !tbaa !70
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %125, i32 0, i32 13
  %127 = load ptr, ptr %126, align 8, !tbaa !71
  %128 = call noundef ptr @_Z27ImGui_ImplVulkan_AddTextureP11VkSampler_TP13VkImageView_T13VkImageLayout(ptr noundef %124, ptr noundef %127, i32 noundef 5)
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %129, i32 0, i32 14
  store ptr %128, ptr %130, align 8, !tbaa !72
  call void @llvm.lifetime.start.p0(i64 56, ptr %15) #6
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 56, i1 false)
  %131 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %15, i32 0, i32 0
  store i32 12, ptr %131, align 8, !tbaa !73
  %132 = load i64, ptr %9, align 8, !tbaa !18
  %133 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %15, i32 0, i32 3
  store i64 %132, ptr %133, align 8, !tbaa !75
  %134 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %15, i32 0, i32 4
  store i32 1, ptr %134, align 8, !tbaa !76
  %135 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %15, i32 0, i32 5
  store i32 0, ptr %135, align 4, !tbaa !77
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %136, i32 0, i32 2
  %138 = load ptr, ptr %137, align 8, !tbaa !42
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %139, i32 0, i32 11
  %141 = load ptr, ptr %140, align 8, !tbaa !44
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %142, i32 0, i32 16
  %144 = call i32 @vkCreateBuffer(ptr noundef %138, ptr noundef %15, ptr noundef %141, ptr noundef %143)
  store i32 %144, ptr %10, align 4, !tbaa !45
  %145 = load i32, ptr %10, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %145)
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %146, i32 0, i32 2
  %148 = load ptr, ptr %147, align 8, !tbaa !42
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %149, i32 0, i32 16
  %151 = load ptr, ptr %150, align 8, !tbaa !78
  call void @vkGetBufferMemoryRequirements(ptr noundef %148, ptr noundef %151, ptr noundef %16)
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %152, i32 0, i32 2
  %154 = load i64, ptr %153, align 8, !tbaa !79
  %155 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 1
  %156 = load i64, ptr %155, align 8, !tbaa !80
  %157 = icmp ugt i64 %154, %156
  br i1 %157, label %158, label %162

158:                                              ; preds = %1
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %159, i32 0, i32 2
  %161 = load i64, ptr %160, align 8, !tbaa !79
  br label %165

162:                                              ; preds = %1
  %163 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 1
  %164 = load i64, ptr %163, align 8, !tbaa !80
  br label %165

165:                                              ; preds = %162, %158
  %166 = phi i64 [ %161, %158 ], [ %164, %162 ]
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %167, i32 0, i32 2
  store i64 %166, ptr %168, align 8, !tbaa !79
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #6
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 32, i1 false)
  %169 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %17, i32 0, i32 0
  store i32 5, ptr %169, align 8, !tbaa !50
  %170 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 0
  %171 = load i64, ptr %170, align 8, !tbaa !52
  %172 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %17, i32 0, i32 2
  store i64 %171, ptr %172, align 8, !tbaa !54
  %173 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %16, i32 0, i32 2
  %174 = load i32, ptr %173, align 8, !tbaa !55
  %175 = call noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef 2, i32 noundef %174)
  %176 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %17, i32 0, i32 3
  store i32 %175, ptr %176, align 8, !tbaa !56
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %177, i32 0, i32 2
  %179 = load ptr, ptr %178, align 8, !tbaa !42
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %180, i32 0, i32 11
  %182 = load ptr, ptr %181, align 8, !tbaa !44
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %183, i32 0, i32 15
  %185 = call i32 @vkAllocateMemory(ptr noundef %179, ptr noundef %17, ptr noundef %182, ptr noundef %184)
  store i32 %185, ptr %10, align 4, !tbaa !45
  %186 = load i32, ptr %10, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %186)
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %187, i32 0, i32 2
  %189 = load ptr, ptr %188, align 8, !tbaa !42
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %190, i32 0, i32 16
  %192 = load ptr, ptr %191, align 8, !tbaa !78
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %193, i32 0, i32 15
  %195 = load ptr, ptr %194, align 8, !tbaa !81
  %196 = call i32 @vkBindBufferMemory(ptr noundef %189, ptr noundef %192, ptr noundef %195, i64 noundef 0)
  store i32 %196, ptr %10, align 4, !tbaa !45
  %197 = load i32, ptr %10, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %197)
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr null, ptr %18, align 8, !tbaa !5
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %198, i32 0, i32 2
  %200 = load ptr, ptr %199, align 8, !tbaa !42
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %201, i32 0, i32 15
  %203 = load ptr, ptr %202, align 8, !tbaa !81
  %204 = load i64, ptr %9, align 8, !tbaa !18
  %205 = call i32 @vkMapMemory(ptr noundef %200, ptr noundef %203, i64 noundef 0, i64 noundef %204, i32 noundef 0, ptr noundef %18)
  store i32 %205, ptr %10, align 4, !tbaa !45
  %206 = load i32, ptr %10, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %206)
  %207 = load ptr, ptr %18, align 8, !tbaa !5
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = load i64, ptr %9, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %207, ptr align 1 %208, i64 %209, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #6
  call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 40, i1 false)
  %210 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %19, i64 0, i64 0
  %211 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %210, i32 0, i32 0
  store i32 6, ptr %211, align 16, !tbaa !82
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %212, i32 0, i32 15
  %214 = load ptr, ptr %213, align 8, !tbaa !81
  %215 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %19, i64 0, i64 0
  %216 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %215, i32 0, i32 2
  store ptr %214, ptr %216, align 16, !tbaa !84
  %217 = load i64, ptr %9, align 8, !tbaa !18
  %218 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %19, i64 0, i64 0
  %219 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %218, i32 0, i32 4
  store i64 %217, ptr %219, align 16, !tbaa !85
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %220, i32 0, i32 2
  %222 = load ptr, ptr %221, align 8, !tbaa !42
  %223 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %19, i64 0, i64 0
  %224 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %222, i32 noundef 1, ptr noundef %223)
  store i32 %224, ptr %10, align 4, !tbaa !45
  %225 = load i32, ptr %10, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %225)
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %226, i32 0, i32 2
  %228 = load ptr, ptr %227, align 8, !tbaa !42
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %229, i32 0, i32 15
  %231 = load ptr, ptr %230, align 8, !tbaa !81
  call void @vkUnmapMemory(ptr noundef %228, ptr noundef %231)
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr %20) #6
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 72, i1 false)
  %232 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %233 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %232, i32 0, i32 0
  store i32 45, ptr %233, align 16, !tbaa !86
  %234 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %235 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %234, i32 0, i32 3
  store i32 4096, ptr %235, align 4, !tbaa !88
  %236 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %237 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %236, i32 0, i32 4
  store i32 0, ptr %237, align 8, !tbaa !89
  %238 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %239 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %238, i32 0, i32 5
  store i32 7, ptr %239, align 4, !tbaa !90
  %240 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %241 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %240, i32 0, i32 6
  store i32 -1, ptr %241, align 16, !tbaa !91
  %242 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %243 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %242, i32 0, i32 7
  store i32 -1, ptr %243, align 4, !tbaa !92
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %244, i32 0, i32 12
  %246 = load ptr, ptr %245, align 8, !tbaa !47
  %247 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %248 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %247, i32 0, i32 8
  store ptr %246, ptr %248, align 8, !tbaa !93
  %249 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %250 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %249, i32 0, i32 9
  %251 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %250, i32 0, i32 0
  store i32 1, ptr %251, align 16, !tbaa !94
  %252 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %253 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %252, i32 0, i32 9
  %254 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %253, i32 0, i32 2
  store i32 1, ptr %254, align 8, !tbaa !95
  %255 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  %256 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %255, i32 0, i32 9
  %257 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %256, i32 0, i32 4
  store i32 1, ptr %257, align 16, !tbaa !96
  %258 = load ptr, ptr %2, align 8, !tbaa !5
  %259 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %20, i64 0, i64 0
  call void @vkCmdPipelineBarrier(ptr noundef %258, i32 noundef 16384, i32 noundef 4096, i32 noundef 0, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 1, ptr noundef %259)
  call void @llvm.lifetime.start.p0(i64 56, ptr %21) #6
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 56, i1 false)
  %260 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %21, i32 0, i32 3
  %261 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %260, i32 0, i32 0
  store i32 1, ptr %261, align 8, !tbaa !97
  %262 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %21, i32 0, i32 3
  %263 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %262, i32 0, i32 3
  store i32 1, ptr %263, align 4, !tbaa !101
  %264 = load i32, ptr %7, align 4, !tbaa !17
  %265 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %21, i32 0, i32 5
  %266 = getelementptr inbounds %struct.VkExtent3D, ptr %265, i32 0, i32 0
  store i32 %264, ptr %266, align 4, !tbaa !102
  %267 = load i32, ptr %8, align 4, !tbaa !17
  %268 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %21, i32 0, i32 5
  %269 = getelementptr inbounds %struct.VkExtent3D, ptr %268, i32 0, i32 1
  store i32 %267, ptr %269, align 4, !tbaa !103
  %270 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %21, i32 0, i32 5
  %271 = getelementptr inbounds %struct.VkExtent3D, ptr %270, i32 0, i32 2
  store i32 1, ptr %271, align 4, !tbaa !104
  %272 = load ptr, ptr %2, align 8, !tbaa !5
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %273, i32 0, i32 16
  %275 = load ptr, ptr %274, align 8, !tbaa !78
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %276, i32 0, i32 12
  %278 = load ptr, ptr %277, align 8, !tbaa !47
  call void @vkCmdCopyBufferToImage(ptr noundef %272, ptr noundef %275, ptr noundef %278, i32 noundef 7, i32 noundef 1, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 72, ptr %22) #6
  call void @llvm.memset.p0.i64(ptr align 16 %22, i8 0, i64 72, i1 false)
  %279 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %280 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %279, i32 0, i32 0
  store i32 45, ptr %280, align 16, !tbaa !86
  %281 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %282 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %281, i32 0, i32 2
  store i32 4096, ptr %282, align 16, !tbaa !105
  %283 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %284 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %283, i32 0, i32 3
  store i32 32, ptr %284, align 4, !tbaa !88
  %285 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %286 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %285, i32 0, i32 4
  store i32 7, ptr %286, align 8, !tbaa !89
  %287 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %288 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %287, i32 0, i32 5
  store i32 5, ptr %288, align 4, !tbaa !90
  %289 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %290 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %289, i32 0, i32 6
  store i32 -1, ptr %290, align 16, !tbaa !91
  %291 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %292 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %291, i32 0, i32 7
  store i32 -1, ptr %292, align 4, !tbaa !92
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %293, i32 0, i32 12
  %295 = load ptr, ptr %294, align 8, !tbaa !47
  %296 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %297 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %296, i32 0, i32 8
  store ptr %295, ptr %297, align 8, !tbaa !93
  %298 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %299 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %298, i32 0, i32 9
  %300 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %299, i32 0, i32 0
  store i32 1, ptr %300, align 16, !tbaa !94
  %301 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %302 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %301, i32 0, i32 9
  %303 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %302, i32 0, i32 2
  store i32 1, ptr %303, align 8, !tbaa !95
  %304 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  %305 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %304, i32 0, i32 9
  %306 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %305, i32 0, i32 4
  store i32 1, ptr %306, align 16, !tbaa !96
  %307 = load ptr, ptr %2, align 8, !tbaa !5
  %308 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %22, i64 0, i64 0
  call void @vkCmdPipelineBarrier(ptr noundef %307, i32 noundef 4096, i32 noundef 128, i32 noundef 0, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 1, ptr noundef %308)
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %20) #6
  %309 = load ptr, ptr %3, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.ImGuiIO, ptr %309, i32 0, i32 15
  %311 = load ptr, ptr %310, align 8, !tbaa !9
  %312 = load ptr, ptr %4, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %312, i32 0, i32 14
  %314 = load ptr, ptr %313, align 8, !tbaa !72
  call void @_ZN11ImFontAtlas8SetTexIDEPv(ptr noundef nonnull align 8 dereferenceable(1180) %311, ptr noundef %314)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret i1 true
}

declare noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv() #3

declare void @_ZN11ImFontAtlas18GetTexDataAsRGBA32EPPhPiS2_S2_(ptr noundef nonnull align 8 dereferenceable(1180), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @vkCreateImage(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @vkGetImageMemoryRequirements(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef, i32 noundef) #1

declare i32 @vkAllocateMemory(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @vkBindImageMemory(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @vkCreateImageView(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z27ImGui_ImplVulkan_AddTextureP11VkSampler_TP13VkImageView_T13VkImageLayout(ptr noundef, ptr noundef, i32 noundef) #1

declare i32 @vkCreateBuffer(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @vkGetBufferMemoryRequirements(ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @vkBindBufferMemory(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

declare void @vkCmdPipelineBarrier(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare void @vkCmdCopyBufferToImage(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ImFontAtlas8SetTexIDEPv(ptr noundef nonnull align 8 dereferenceable(1180), ptr noundef) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 80}
!10 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !14, i64 92, !6, i64 96, !12, i64 104, !14, i64 112, !14, i64 113, !14, i64 114, !14, i64 115, !14, i64 116, !14, i64 117, !14, i64 118, !14, i64 119, !13, i64 120, !14, i64 124, !14, i64 125, !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, !6, i64 200, !14, i64 208, !14, i64 209, !14, i64 210, !14, i64 211, !14, i64 212, !14, i64 213, !14, i64 214, !13, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !12, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !6, i64 3576, !12, i64 3584, !7, i64 3592, !13, i64 3600, !13, i64 3604, !14, i64 3608, !14, i64 3609, !14, i64 3610, !14, i64 3611, !11, i64 3612, !7, i64 3616, !14, i64 14048, !12, i64 14052, !7, i64 14060, !7, i64 14104, !7, i64 14144, !7, i64 14149, !7, i64 14154, !7, i64 14164, !7, i64 14174, !7, i64 14179, !7, i64 14184, !7, i64 14192, !7, i64 14212, !7, i64 14232, !13, i64 14252, !14, i64 14256, !14, i64 14257, !7, i64 14258, !14, i64 14259, !15, i64 14260, !16, i64 14264}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!21, !22, i64 0}
!21 = !{!"_ZTS17VkImageCreateInfo", !22, i64 0, !6, i64 8, !11, i64 16, !23, i64 20, !24, i64 24, !25, i64 28, !11, i64 40, !11, i64 44, !26, i64 48, !27, i64 52, !11, i64 56, !28, i64 60, !11, i64 64, !6, i64 72, !29, i64 80}
!22 = !{!"_ZTS15VkStructureType", !7, i64 0}
!23 = !{!"_ZTS11VkImageType", !7, i64 0}
!24 = !{!"_ZTS8VkFormat", !7, i64 0}
!25 = !{!"_ZTS10VkExtent3D", !11, i64 0, !11, i64 4, !11, i64 8}
!26 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!27 = !{!"_ZTS13VkImageTiling", !7, i64 0}
!28 = !{!"_ZTS13VkSharingMode", !7, i64 0}
!29 = !{!"_ZTS13VkImageLayout", !7, i64 0}
!30 = !{!21, !23, i64 20}
!31 = !{!21, !24, i64 24}
!32 = !{!21, !11, i64 28}
!33 = !{!21, !11, i64 32}
!34 = !{!21, !11, i64 36}
!35 = !{!21, !11, i64 40}
!36 = !{!21, !11, i64 44}
!37 = !{!21, !26, i64 48}
!38 = !{!21, !27, i64 52}
!39 = !{!21, !11, i64 56}
!40 = !{!21, !28, i64 60}
!41 = !{!21, !29, i64 80}
!42 = !{!43, !6, i64 16}
!43 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !26, i64 68, !6, i64 72, !6, i64 80}
!44 = !{!43, !6, i64 72}
!45 = !{!46, !46, i64 0}
!46 = !{!"_ZTS8VkResult", !7, i64 0}
!47 = !{!48, !6, i64 176}
!48 = !{!"_ZTS21ImGui_ImplVulkan_Data", !43, i64 0, !6, i64 88, !19, i64 96, !11, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !11, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !49, i64 216}
!49 = !{!"_ZTS37ImGui_ImplVulkanH_WindowRenderBuffers", !11, i64 0, !11, i64 4, !6, i64 8}
!50 = !{!51, !22, i64 0}
!51 = !{!"_ZTS20VkMemoryAllocateInfo", !22, i64 0, !6, i64 8, !19, i64 16, !11, i64 24}
!52 = !{!53, !19, i64 0}
!53 = !{!"_ZTS20VkMemoryRequirements", !19, i64 0, !19, i64 8, !11, i64 16}
!54 = !{!51, !19, i64 16}
!55 = !{!53, !11, i64 16}
!56 = !{!51, !11, i64 24}
!57 = !{!48, !6, i64 168}
!58 = !{!59, !22, i64 0}
!59 = !{!"_ZTS21VkImageViewCreateInfo", !22, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !60, i64 32, !24, i64 36, !61, i64 40, !63, i64 56}
!60 = !{!"_ZTS15VkImageViewType", !7, i64 0}
!61 = !{!"_ZTS18VkComponentMapping", !62, i64 0, !62, i64 4, !62, i64 8, !62, i64 12}
!62 = !{!"_ZTS18VkComponentSwizzle", !7, i64 0}
!63 = !{!"_ZTS23VkImageSubresourceRange", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!64 = !{!59, !6, i64 24}
!65 = !{!59, !60, i64 32}
!66 = !{!59, !24, i64 36}
!67 = !{!59, !11, i64 56}
!68 = !{!59, !11, i64 64}
!69 = !{!59, !11, i64 72}
!70 = !{!48, !6, i64 160}
!71 = !{!48, !6, i64 184}
!72 = !{!48, !6, i64 192}
!73 = !{!74, !22, i64 0}
!74 = !{!"_ZTS18VkBufferCreateInfo", !22, i64 0, !6, i64 8, !11, i64 16, !19, i64 24, !11, i64 32, !28, i64 36, !11, i64 40, !6, i64 48}
!75 = !{!74, !19, i64 24}
!76 = !{!74, !11, i64 32}
!77 = !{!74, !28, i64 36}
!78 = !{!48, !6, i64 208}
!79 = !{!48, !19, i64 96}
!80 = !{!53, !19, i64 8}
!81 = !{!48, !6, i64 200}
!82 = !{!83, !22, i64 0}
!83 = !{!"_ZTS19VkMappedMemoryRange", !22, i64 0, !6, i64 8, !6, i64 16, !19, i64 24, !19, i64 32}
!84 = !{!83, !6, i64 16}
!85 = !{!83, !19, i64 32}
!86 = !{!87, !22, i64 0}
!87 = !{!"_ZTS20VkImageMemoryBarrier", !22, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !29, i64 24, !29, i64 28, !11, i64 32, !11, i64 36, !6, i64 40, !63, i64 48}
!88 = !{!87, !11, i64 20}
!89 = !{!87, !29, i64 24}
!90 = !{!87, !29, i64 28}
!91 = !{!87, !11, i64 32}
!92 = !{!87, !11, i64 36}
!93 = !{!87, !6, i64 40}
!94 = !{!87, !11, i64 48}
!95 = !{!87, !11, i64 56}
!96 = !{!87, !11, i64 64}
!97 = !{!98, !11, i64 16}
!98 = !{!"_ZTS17VkBufferImageCopy", !19, i64 0, !11, i64 8, !11, i64 12, !99, i64 16, !100, i64 32, !25, i64 44}
!99 = !{!"_ZTS24VkImageSubresourceLayers", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!100 = !{!"_ZTS10VkOffset3D", !11, i64 0, !11, i64 4, !11, i64 8}
!101 = !{!98, !11, i64 28}
!102 = !{!98, !11, i64 44}
!103 = !{!98, !11, i64 48}
!104 = !{!98, !11, i64 52}
!105 = !{!87, !11, i64 16}


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

%struct.VkImageCreateInfo = type { i32, ptr, i32, i32, i32, %struct.VkExtent3D, i32, i32, i32, i32, i32, i32, i32, ptr, i32 }
%struct.VkExtent3D = type { i32, i32, i32 }
%struct.VkMemoryRequirements = type { i64, i64, i32 }
%struct.VkMemoryAllocateInfo = type { i32, ptr, i64, i32 }
%struct.VkImageViewCreateInfo = type { i32, ptr, i32, ptr, i32, i32, %struct.VkComponentMapping, %struct.VkImageSubresourceRange }
%struct.VkComponentMapping = type { i32, i32, i32, i32 }
%struct.VkImageSubresourceRange = type { i32, i32, i32, i32, i32 }
%struct.VkBufferCreateInfo = type { i32, ptr, i32, i64, i32, i32, i32, ptr }
%struct.VkMappedMemoryRange = type { i32, ptr, ptr, i64, i64 }
%struct.VkImageMemoryBarrier = type { i32, ptr, i32, i32, i32, i32, i32, i32, ptr, %struct.VkImageSubresourceRange }
%struct.VkBufferImageCopy = type { i64, i32, i32, %struct.VkImageSubresourceLayers, %struct.VkOffset3D, %struct.VkExtent3D }
%struct.VkImageSubresourceLayers = type { i32, i32, i32, i32 }
%struct.VkOffset3D = type { i32, i32, i32 }

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav() local_unnamed_addr #1

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

declare i32 @vkMapMemory(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL15check_vk_result8VkResult(i32 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) #4

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

declare i32 @vkFlushMappedMemoryRanges(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @vkUnmapMemory(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z35ImGui_ImplVulkan_CreateFontsTextureP17VkCommandBuffer_T(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.VkImageCreateInfo, align 8
  %6 = alloca %struct.VkMemoryRequirements, align 8
  %7 = alloca %struct.VkMemoryAllocateInfo, align 8
  %8 = alloca %struct.VkImageViewCreateInfo, align 8
  %9 = alloca %struct.VkBufferCreateInfo, align 8
  %10 = alloca %struct.VkMemoryRequirements, align 8
  %11 = alloca %struct.VkMemoryAllocateInfo, align 8
  %12 = alloca ptr, align 8
  %13 = alloca [1 x %struct.VkMappedMemoryRange], align 16
  %14 = alloca [1 x %struct.VkImageMemoryBarrier], align 16
  %15 = alloca %struct.VkBufferImageCopy, align 8
  %16 = alloca [1 x %struct.VkImageMemoryBarrier], align 16
  %17 = tail call noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv()
  %18 = tail call noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %19 = getelementptr inbounds i8, ptr %17, i64 80
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN11ImFontAtlas18GetTexDataAsRGBA32EPPhPiS2_S2_(ptr noundef nonnull align 8 dereferenceable(1180) %20, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef null)
  %21 = load i32, ptr %3, align 4, !tbaa !16
  %22 = load i32, ptr %4, align 4, !tbaa !16
  %23 = shl i32 %21, 2
  %24 = mul i32 %23, %22
  %25 = sext i32 %24 to i64
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %5, i8 0, i64 88, i1 false)
  store i32 14, ptr %5, align 8, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %5, i64 20
  store i32 1, ptr %26, align 4, !tbaa !27
  %27 = getelementptr inbounds i8, ptr %5, i64 24
  store i32 37, ptr %27, align 8, !tbaa !28
  %28 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 %21, ptr %28, align 4, !tbaa !29
  %29 = getelementptr inbounds i8, ptr %5, i64 32
  store i32 %22, ptr %29, align 8, !tbaa !30
  %30 = getelementptr inbounds i8, ptr %5, i64 36
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %30, align 4, !tbaa !31
  %31 = getelementptr inbounds i8, ptr %5, i64 56
  store i32 6, ptr %31, align 8, !tbaa !32
  %32 = getelementptr inbounds i8, ptr %5, i64 80
  store i32 0, ptr %32, align 8, !tbaa !33
  %33 = getelementptr inbounds i8, ptr %18, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !34
  %35 = getelementptr inbounds i8, ptr %18, i64 72
  %36 = load ptr, ptr %35, align 8, !tbaa !36
  %37 = getelementptr inbounds i8, ptr %18, i64 176
  %38 = call i32 @vkCreateImage(ptr noundef %34, ptr noundef nonnull %5, ptr noundef %36, ptr noundef nonnull %37)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %38)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  %39 = load ptr, ptr %33, align 8, !tbaa !34
  %40 = load ptr, ptr %37, align 8, !tbaa !37
  call void @vkGetImageMemoryRequirements(ptr noundef %39, ptr noundef %40, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %7, i8 0, i64 32, i1 false)
  store i32 5, ptr %7, align 8, !tbaa !41
  %41 = load i64, ptr %6, align 8, !tbaa !43
  %42 = getelementptr inbounds i8, ptr %7, i64 16
  store i64 %41, ptr %42, align 8, !tbaa !45
  %43 = getelementptr inbounds i8, ptr %6, i64 16
  %44 = load i32, ptr %43, align 8, !tbaa !46
  %45 = call noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef 1, i32 noundef %44)
  %46 = getelementptr inbounds i8, ptr %7, i64 24
  store i32 %45, ptr %46, align 8, !tbaa !47
  %47 = load ptr, ptr %33, align 8, !tbaa !34
  %48 = load ptr, ptr %35, align 8, !tbaa !36
  %49 = getelementptr inbounds i8, ptr %18, i64 168
  %50 = call i32 @vkAllocateMemory(ptr noundef %47, ptr noundef nonnull %7, ptr noundef %48, ptr noundef nonnull %49)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %50)
  %51 = load ptr, ptr %33, align 8, !tbaa !34
  %52 = load ptr, ptr %37, align 8, !tbaa !37
  %53 = load ptr, ptr %49, align 8, !tbaa !48
  %54 = call i32 @vkBindImageMemory(ptr noundef %51, ptr noundef %52, ptr noundef %53, i64 noundef 0)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %54)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  store i32 15, ptr %8, align 8, !tbaa !49
  %55 = load ptr, ptr %37, align 8, !tbaa !37
  %56 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %55, ptr %56, align 8, !tbaa !55
  %57 = getelementptr inbounds i8, ptr %8, i64 32
  store i32 1, ptr %57, align 8, !tbaa !56
  %58 = getelementptr inbounds i8, ptr %8, i64 36
  store i32 37, ptr %58, align 4, !tbaa !57
  %59 = getelementptr inbounds i8, ptr %8, i64 56
  store i32 1, ptr %59, align 8, !tbaa !58
  %60 = getelementptr inbounds i8, ptr %8, i64 64
  store i32 1, ptr %60, align 8, !tbaa !59
  %61 = getelementptr inbounds i8, ptr %8, i64 72
  store i32 1, ptr %61, align 8, !tbaa !60
  %62 = load ptr, ptr %33, align 8, !tbaa !34
  %63 = load ptr, ptr %35, align 8, !tbaa !36
  %64 = getelementptr inbounds i8, ptr %18, i64 184
  %65 = call i32 @vkCreateImageView(ptr noundef %62, ptr noundef nonnull %8, ptr noundef %63, ptr noundef nonnull %64)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %65)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #7
  %66 = getelementptr inbounds i8, ptr %18, i64 160
  %67 = load ptr, ptr %66, align 8, !tbaa !61
  %68 = load ptr, ptr %64, align 8, !tbaa !62
  %69 = call noundef ptr @_Z27ImGui_ImplVulkan_AddTextureP11VkSampler_TP13VkImageView_T13VkImageLayout(ptr noundef %67, ptr noundef %68, i32 noundef 5)
  %70 = getelementptr inbounds i8, ptr %18, i64 192
  store ptr %69, ptr %70, align 8, !tbaa !63
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %9, i8 0, i64 56, i1 false)
  store i32 12, ptr %9, align 8, !tbaa !64
  %71 = getelementptr inbounds i8, ptr %9, i64 24
  store i64 %25, ptr %71, align 8, !tbaa !66
  %72 = getelementptr inbounds i8, ptr %9, i64 32
  store i32 1, ptr %72, align 8, !tbaa !67
  %73 = load ptr, ptr %33, align 8, !tbaa !34
  %74 = load ptr, ptr %35, align 8, !tbaa !36
  %75 = getelementptr inbounds i8, ptr %18, i64 208
  %76 = call i32 @vkCreateBuffer(ptr noundef %73, ptr noundef nonnull %9, ptr noundef %74, ptr noundef nonnull %75)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %76)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  %77 = load ptr, ptr %33, align 8, !tbaa !34
  %78 = load ptr, ptr %75, align 8, !tbaa !68
  call void @vkGetBufferMemoryRequirements(ptr noundef %77, ptr noundef %78, ptr noundef nonnull %10)
  %79 = getelementptr inbounds i8, ptr %18, i64 96
  %80 = load i64, ptr %79, align 8, !tbaa !69
  %81 = getelementptr inbounds i8, ptr %10, i64 8
  %82 = load i64, ptr %81, align 8, !tbaa !70
  %. = call i64 @llvm.umax.i64(i64 %80, i64 %82)
  store i64 %., ptr %79, align 8, !tbaa !69
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %11, i8 0, i64 32, i1 false)
  store i32 5, ptr %11, align 8, !tbaa !41
  %83 = load i64, ptr %10, align 8, !tbaa !43
  %84 = getelementptr inbounds i8, ptr %11, i64 16
  store i64 %83, ptr %84, align 8, !tbaa !45
  %85 = getelementptr inbounds i8, ptr %10, i64 16
  %86 = load i32, ptr %85, align 8, !tbaa !46
  %87 = call noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef 2, i32 noundef %86)
  %88 = getelementptr inbounds i8, ptr %11, i64 24
  store i32 %87, ptr %88, align 8, !tbaa !47
  %89 = load ptr, ptr %33, align 8, !tbaa !34
  %90 = load ptr, ptr %35, align 8, !tbaa !36
  %91 = getelementptr inbounds i8, ptr %18, i64 200
  %92 = call i32 @vkAllocateMemory(ptr noundef %89, ptr noundef nonnull %11, ptr noundef %90, ptr noundef nonnull %91)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %92)
  %93 = load ptr, ptr %33, align 8, !tbaa !34
  %94 = load ptr, ptr %75, align 8, !tbaa !68
  %95 = load ptr, ptr %91, align 8, !tbaa !71
  %96 = call i32 @vkBindBufferMemory(ptr noundef %93, ptr noundef %94, ptr noundef %95, i64 noundef 0)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %96)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  store ptr null, ptr %12, align 8, !tbaa !72
  %97 = load ptr, ptr %33, align 8, !tbaa !34
  %98 = load ptr, ptr %91, align 8, !tbaa !71
  %99 = call i32 @vkMapMemory(ptr noundef %97, ptr noundef %98, i64 noundef 0, i64 noundef %25, i32 noundef 0, ptr noundef nonnull %12)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %99)
  %100 = load ptr, ptr %12, align 8, !tbaa !72
  %101 = load ptr, ptr %2, align 8, !tbaa !72
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %100, ptr align 1 %101, i64 %25, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %13, i8 0, i64 32, i1 false)
  store i32 6, ptr %13, align 16, !tbaa !73
  %102 = load ptr, ptr %91, align 8, !tbaa !71
  %103 = getelementptr inbounds i8, ptr %13, i64 16
  store ptr %102, ptr %103, align 16, !tbaa !75
  %104 = getelementptr inbounds i8, ptr %13, i64 32
  store i64 %25, ptr %104, align 16, !tbaa !76
  %105 = load ptr, ptr %33, align 8, !tbaa !34
  %106 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %105, i32 noundef 1, ptr noundef nonnull %13)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %106)
  %107 = load ptr, ptr %33, align 8, !tbaa !34
  %108 = load ptr, ptr %91, align 8, !tbaa !71
  call void @vkUnmapMemory(ptr noundef %107, ptr noundef %108)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %14) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(72) %14, i8 0, i64 72, i1 false)
  store i32 45, ptr %14, align 16, !tbaa !77
  %109 = getelementptr inbounds i8, ptr %14, i64 20
  store i32 4096, ptr %109, align 4, !tbaa !79
  %110 = getelementptr inbounds i8, ptr %14, i64 28
  store i32 7, ptr %110, align 4, !tbaa !80
  %111 = getelementptr inbounds i8, ptr %14, i64 32
  store i32 -1, ptr %111, align 16, !tbaa !81
  %112 = getelementptr inbounds i8, ptr %14, i64 36
  store i32 -1, ptr %112, align 4, !tbaa !82
  %113 = load ptr, ptr %37, align 8, !tbaa !37
  %114 = getelementptr inbounds i8, ptr %14, i64 40
  store ptr %113, ptr %114, align 8, !tbaa !83
  %115 = getelementptr inbounds i8, ptr %14, i64 48
  store i32 1, ptr %115, align 16, !tbaa !84
  %116 = getelementptr inbounds i8, ptr %14, i64 56
  store i32 1, ptr %116, align 8, !tbaa !85
  %117 = getelementptr inbounds i8, ptr %14, i64 64
  store i32 1, ptr %117, align 16, !tbaa !86
  call void @vkCmdPipelineBarrier(ptr noundef %0, i32 noundef 16384, i32 noundef 4096, i32 noundef 0, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 1, ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %15) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %15, i8 0, i64 48, i1 false)
  %118 = getelementptr inbounds i8, ptr %15, i64 16
  store i32 1, ptr %118, align 8, !tbaa !87
  %119 = getelementptr inbounds i8, ptr %15, i64 28
  store i32 1, ptr %119, align 4, !tbaa !91
  %120 = load i32, ptr %3, align 4, !tbaa !16
  %121 = getelementptr inbounds i8, ptr %15, i64 44
  store i32 %120, ptr %121, align 4, !tbaa !92
  %122 = load i32, ptr %4, align 4, !tbaa !16
  %123 = getelementptr inbounds i8, ptr %15, i64 48
  store i32 %122, ptr %123, align 8, !tbaa !93
  %124 = getelementptr inbounds i8, ptr %15, i64 52
  store i32 1, ptr %124, align 4, !tbaa !94
  %125 = load ptr, ptr %75, align 8, !tbaa !68
  %126 = load ptr, ptr %37, align 8, !tbaa !37
  call void @vkCmdCopyBufferToImage(ptr noundef %0, ptr noundef %125, ptr noundef %126, i32 noundef 7, i32 noundef 1, ptr noundef nonnull %15)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %16) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(72) %16, i8 0, i64 72, i1 false)
  store i32 45, ptr %16, align 16, !tbaa !77
  %127 = getelementptr inbounds i8, ptr %16, i64 16
  store <4 x i32> <i32 4096, i32 32, i32 7, i32 5>, ptr %127, align 16, !tbaa !31
  %128 = getelementptr inbounds i8, ptr %16, i64 32
  store i32 -1, ptr %128, align 16, !tbaa !81
  %129 = getelementptr inbounds i8, ptr %16, i64 36
  store i32 -1, ptr %129, align 4, !tbaa !82
  %130 = load ptr, ptr %37, align 8, !tbaa !37
  %131 = getelementptr inbounds i8, ptr %16, i64 40
  store ptr %130, ptr %131, align 8, !tbaa !83
  %132 = getelementptr inbounds i8, ptr %16, i64 48
  store i32 1, ptr %132, align 16, !tbaa !84
  %133 = getelementptr inbounds i8, ptr %16, i64 56
  store i32 1, ptr %133, align 8, !tbaa !85
  %134 = getelementptr inbounds i8, ptr %16, i64 64
  store i32 1, ptr %134, align 16, !tbaa !86
  call void @vkCmdPipelineBarrier(ptr noundef %0, i32 noundef 4096, i32 noundef 128, i32 noundef 0, i32 noundef 0, ptr noundef null, i32 noundef 0, ptr noundef null, i32 noundef 1, ptr noundef nonnull %16)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %14) #7
  %135 = load ptr, ptr %19, align 8, !tbaa !5
  %136 = load ptr, ptr %70, align 8, !tbaa !63
  call void @_ZN11ImFontAtlas8SetTexIDEPv(ptr noundef nonnull align 8 dereferenceable(1180) %135, ptr noundef %136)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret i1 true
}

declare noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #3

declare void @_ZN11ImFontAtlas18GetTexDataAsRGBA32EPPhPiS2_S2_(ptr noundef nonnull align 8 dereferenceable(1180), ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @vkCreateImage(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @vkGetImageMemoryRequirements(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @vkAllocateMemory(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @vkBindImageMemory(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @vkCreateImageView(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z27ImGui_ImplVulkan_AddTextureP11VkSampler_TP13VkImageView_T13VkImageLayout(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @vkCreateBuffer(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @vkGetBufferMemoryRequirements(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @vkBindBufferMemory(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @vkCmdPipelineBarrier(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @vkCmdCopyBufferToImage(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ImFontAtlas8SetTexIDEPv(ptr noundef nonnull align 8 dereferenceable(1180), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !12, i64 80}
!6 = !{!"_ZTS7ImGuiIO", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16, !11, i64 20, !12, i64 24, !12, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !12, i64 72, !12, i64 80, !11, i64 88, !13, i64 92, !12, i64 96, !10, i64 104, !13, i64 112, !13, i64 113, !13, i64 114, !13, i64 115, !13, i64 116, !13, i64 117, !13, i64 118, !13, i64 119, !11, i64 120, !13, i64 124, !13, i64 125, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !13, i64 208, !13, i64 209, !13, i64 210, !13, i64 211, !13, i64 212, !13, i64 213, !13, i64 214, !11, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !10, i64 240, !8, i64 248, !8, i64 2856, !8, i64 3508, !12, i64 3576, !10, i64 3584, !8, i64 3592, !11, i64 3600, !11, i64 3604, !13, i64 3608, !13, i64 3609, !13, i64 3610, !13, i64 3611, !7, i64 3612, !8, i64 3616, !13, i64 14048, !10, i64 14052, !8, i64 14060, !8, i64 14104, !8, i64 14144, !8, i64 14149, !8, i64 14154, !8, i64 14164, !8, i64 14174, !8, i64 14179, !8, i64 14184, !8, i64 14192, !8, i64 14212, !8, i64 14232, !11, i64 14252, !13, i64 14256, !13, i64 14257, !8, i64 14258, !13, i64 14259, !14, i64 14260, !15, i64 14264}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!"_ZTS8ImVectorItE", !7, i64 0, !7, i64 4, !12, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTS17VkImageCreateInfo", !19, i64 0, !12, i64 8, !7, i64 16, !20, i64 20, !21, i64 24, !22, i64 28, !7, i64 40, !7, i64 44, !23, i64 48, !24, i64 52, !7, i64 56, !25, i64 60, !7, i64 64, !12, i64 72, !26, i64 80}
!19 = !{!"_ZTS15VkStructureType", !8, i64 0}
!20 = !{!"_ZTS11VkImageType", !8, i64 0}
!21 = !{!"_ZTS8VkFormat", !8, i64 0}
!22 = !{!"_ZTS10VkExtent3D", !7, i64 0, !7, i64 4, !7, i64 8}
!23 = !{!"_ZTS21VkSampleCountFlagBits", !8, i64 0}
!24 = !{!"_ZTS13VkImageTiling", !8, i64 0}
!25 = !{!"_ZTS13VkSharingMode", !8, i64 0}
!26 = !{!"_ZTS13VkImageLayout", !8, i64 0}
!27 = !{!18, !20, i64 20}
!28 = !{!18, !21, i64 24}
!29 = !{!18, !7, i64 28}
!30 = !{!18, !7, i64 32}
!31 = !{!8, !8, i64 0}
!32 = !{!18, !7, i64 56}
!33 = !{!18, !26, i64 80}
!34 = !{!35, !12, i64 16}
!35 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !7, i64 56, !7, i64 60, !7, i64 64, !23, i64 68, !12, i64 72, !12, i64 80}
!36 = !{!35, !12, i64 72}
!37 = !{!38, !12, i64 176}
!38 = !{!"_ZTS21ImGui_ImplVulkan_Data", !35, i64 0, !12, i64 88, !39, i64 96, !7, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !7, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !40, i64 216}
!39 = !{!"long", !8, i64 0}
!40 = !{!"_ZTS37ImGui_ImplVulkanH_WindowRenderBuffers", !7, i64 0, !7, i64 4, !12, i64 8}
!41 = !{!42, !19, i64 0}
!42 = !{!"_ZTS20VkMemoryAllocateInfo", !19, i64 0, !12, i64 8, !39, i64 16, !7, i64 24}
!43 = !{!44, !39, i64 0}
!44 = !{!"_ZTS20VkMemoryRequirements", !39, i64 0, !39, i64 8, !7, i64 16}
!45 = !{!42, !39, i64 16}
!46 = !{!44, !7, i64 16}
!47 = !{!42, !7, i64 24}
!48 = !{!38, !12, i64 168}
!49 = !{!50, !19, i64 0}
!50 = !{!"_ZTS21VkImageViewCreateInfo", !19, i64 0, !12, i64 8, !7, i64 16, !12, i64 24, !51, i64 32, !21, i64 36, !52, i64 40, !54, i64 56}
!51 = !{!"_ZTS15VkImageViewType", !8, i64 0}
!52 = !{!"_ZTS18VkComponentMapping", !53, i64 0, !53, i64 4, !53, i64 8, !53, i64 12}
!53 = !{!"_ZTS18VkComponentSwizzle", !8, i64 0}
!54 = !{!"_ZTS23VkImageSubresourceRange", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!55 = !{!50, !12, i64 24}
!56 = !{!50, !51, i64 32}
!57 = !{!50, !21, i64 36}
!58 = !{!50, !7, i64 56}
!59 = !{!50, !7, i64 64}
!60 = !{!50, !7, i64 72}
!61 = !{!38, !12, i64 160}
!62 = !{!38, !12, i64 184}
!63 = !{!38, !12, i64 192}
!64 = !{!65, !19, i64 0}
!65 = !{!"_ZTS18VkBufferCreateInfo", !19, i64 0, !12, i64 8, !7, i64 16, !39, i64 24, !7, i64 32, !25, i64 36, !7, i64 40, !12, i64 48}
!66 = !{!65, !39, i64 24}
!67 = !{!65, !7, i64 32}
!68 = !{!38, !12, i64 208}
!69 = !{!38, !39, i64 96}
!70 = !{!44, !39, i64 8}
!71 = !{!38, !12, i64 200}
!72 = !{!12, !12, i64 0}
!73 = !{!74, !19, i64 0}
!74 = !{!"_ZTS19VkMappedMemoryRange", !19, i64 0, !12, i64 8, !12, i64 16, !39, i64 24, !39, i64 32}
!75 = !{!74, !12, i64 16}
!76 = !{!74, !39, i64 32}
!77 = !{!78, !19, i64 0}
!78 = !{!"_ZTS20VkImageMemoryBarrier", !19, i64 0, !12, i64 8, !7, i64 16, !7, i64 20, !26, i64 24, !26, i64 28, !7, i64 32, !7, i64 36, !12, i64 40, !54, i64 48}
!79 = !{!78, !7, i64 20}
!80 = !{!78, !26, i64 28}
!81 = !{!78, !7, i64 32}
!82 = !{!78, !7, i64 36}
!83 = !{!78, !12, i64 40}
!84 = !{!78, !7, i64 48}
!85 = !{!78, !7, i64 56}
!86 = !{!78, !7, i64 64}
!87 = !{!88, !7, i64 16}
!88 = !{!"_ZTS17VkBufferImageCopy", !39, i64 0, !7, i64 8, !7, i64 12, !89, i64 16, !90, i64 32, !22, i64 44}
!89 = !{!"_ZTS24VkImageSubresourceLayers", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!90 = !{!"_ZTS10VkOffset3D", !7, i64 0, !7, i64 4, !7, i64 8}
!91 = !{!88, !7, i64 28}
!92 = !{!88, !7, i64 44}
!93 = !{!88, !7, i64 48}
!94 = !{!88, !7, i64 52}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass