; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/backends (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.ImGui_ImplVulkan_InitInfo = type { ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr }
%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.VkDescriptorImageInfo = type { ptr, ptr, i32 }
%struct.VkWriteDescriptorSet = type { i32, ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr }
%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.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [22 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [512 x i8], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, i32, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float], float, i16, %struct.ImVector.0 }
%struct.ImVec2 = type { float, float }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImFontAtlas = type { i8, i32, ptr, i32, i32, ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.8, [64 x %struct.ImVec4], i32, i32 }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }

@_ZL16g_VulkanInitInfo = external hidden global %struct.ImGui_ImplVulkan_InitInfo, align 8
@_ZL11g_FontImage = external hidden global ptr, align 8
@_ZL12g_FontMemory = external hidden global ptr, align 8
@_ZL10g_FontView = external hidden global ptr, align 8
@_ZL13g_FontSampler = external hidden global ptr, align 8
@_ZL15g_DescriptorSet = external hidden global ptr, align 8
@_ZL14g_UploadBuffer = external hidden global ptr, align 8
@_ZL23g_BufferMemoryAlignment = external hidden global i64, align 8
@_ZL20g_UploadBufferMemory = external hidden global ptr, align 8

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

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

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

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

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

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

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

151:                                              ; preds = %1
  %152 = load i64, ptr @_ZL23g_BufferMemoryAlignment, align 8, !tbaa !18
  br label %156

153:                                              ; preds = %1
  %154 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %17, i32 0, i32 1
  %155 = load i64, ptr %154, align 8, !tbaa !82
  br label %156

156:                                              ; preds = %153, %151
  %157 = phi i64 [ %152, %151 ], [ %155, %153 ]
  store i64 %157, ptr @_ZL23g_BufferMemoryAlignment, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #5
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 32, i1 false)
  %158 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %18, i32 0, i32 0
  store i32 5, ptr %158, align 8, !tbaa !47
  %159 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %17, i32 0, i32 0
  %160 = load i64, ptr %159, align 8, !tbaa !49
  %161 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %18, i32 0, i32 2
  store i64 %160, ptr %161, align 8, !tbaa !51
  %162 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %17, i32 0, i32 2
  %163 = load i32, ptr %162, align 8, !tbaa !52
  %164 = call noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef 2, i32 noundef %163)
  %165 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %18, i32 0, i32 3
  store i32 %164, ptr %165, align 8, !tbaa !53
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %166, i32 0, i32 2
  %168 = load ptr, ptr %167, align 8, !tbaa !42
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %169, i32 0, i32 11
  %171 = load ptr, ptr %170, align 8, !tbaa !44
  %172 = call i32 @vkAllocateMemory(ptr noundef %168, ptr noundef %18, ptr noundef %171, ptr noundef @_ZL20g_UploadBufferMemory)
  store i32 %172, ptr %9, align 4, !tbaa !45
  %173 = load i32, ptr %9, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %173)
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %175, align 8, !tbaa !42
  %177 = load ptr, ptr @_ZL14g_UploadBuffer, align 8, !tbaa !5
  %178 = load ptr, ptr @_ZL20g_UploadBufferMemory, align 8, !tbaa !5
  %179 = call i32 @vkBindBufferMemory(ptr noundef %176, ptr noundef %177, ptr noundef %178, i64 noundef 0)
  store i32 %179, ptr %9, align 4, !tbaa !45
  %180 = load i32, ptr %9, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %180)
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store ptr null, ptr %19, align 8, !tbaa !5
  %181 = load ptr, ptr %3, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %181, i32 0, i32 2
  %183 = load ptr, ptr %182, align 8, !tbaa !42
  %184 = load ptr, ptr @_ZL20g_UploadBufferMemory, align 8, !tbaa !5
  %185 = load i64, ptr %8, align 8, !tbaa !18
  %186 = call i32 @vkMapMemory(ptr noundef %183, ptr noundef %184, i64 noundef 0, i64 noundef %185, i32 noundef 0, ptr noundef %19)
  store i32 %186, ptr %9, align 4, !tbaa !45
  %187 = load i32, ptr %9, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %187)
  %188 = load ptr, ptr %19, align 8, !tbaa !5
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = load i64, ptr %8, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %188, ptr align 1 %189, i64 %190, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #5
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 40, i1 false)
  %191 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %20, i64 0, i64 0
  %192 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %191, i32 0, i32 0
  store i32 6, ptr %192, align 16, !tbaa !83
  %193 = load ptr, ptr @_ZL20g_UploadBufferMemory, align 8, !tbaa !5
  %194 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %20, i64 0, i64 0
  %195 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %194, i32 0, i32 2
  store ptr %193, ptr %195, align 16, !tbaa !85
  %196 = load i64, ptr %8, align 8, !tbaa !18
  %197 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %20, i64 0, i64 0
  %198 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %197, i32 0, i32 4
  store i64 %196, ptr %198, align 16, !tbaa !86
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %199, i32 0, i32 2
  %201 = load ptr, ptr %200, align 8, !tbaa !42
  %202 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %20, i64 0, i64 0
  %203 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %201, i32 noundef 1, ptr noundef %202)
  store i32 %203, ptr %9, align 4, !tbaa !45
  %204 = load i32, ptr %9, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %204)
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %205, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !42
  %208 = load ptr, ptr @_ZL20g_UploadBufferMemory, align 8, !tbaa !5
  call void @vkUnmapMemory(ptr noundef %207, ptr noundef %208)
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %21) #5
  call void @llvm.memset.p0.i64(ptr align 16 %21, i8 0, i64 72, i1 false)
  %209 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %210 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %209, i32 0, i32 0
  store i32 45, ptr %210, align 16, !tbaa !87
  %211 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %212 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %211, i32 0, i32 3
  store i32 4096, ptr %212, align 4, !tbaa !89
  %213 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %214 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %213, i32 0, i32 4
  store i32 0, ptr %214, align 8, !tbaa !90
  %215 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %216 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %215, i32 0, i32 5
  store i32 7, ptr %216, align 4, !tbaa !91
  %217 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %218 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %217, i32 0, i32 6
  store i32 -1, ptr %218, align 16, !tbaa !92
  %219 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %220 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %219, i32 0, i32 7
  store i32 -1, ptr %220, align 4, !tbaa !93
  %221 = load ptr, ptr @_ZL11g_FontImage, align 8, !tbaa !5
  %222 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %223 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %222, i32 0, i32 8
  store ptr %221, ptr %223, align 8, !tbaa !94
  %224 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %225 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %224, i32 0, i32 9
  %226 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %225, i32 0, i32 0
  store i32 1, ptr %226, align 16, !tbaa !95
  %227 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %228 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %227, i32 0, i32 9
  %229 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %228, i32 0, i32 2
  store i32 1, ptr %229, align 8, !tbaa !96
  %230 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  %231 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %230, i32 0, i32 9
  %232 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %231, i32 0, i32 4
  store i32 1, ptr %232, align 16, !tbaa !97
  %233 = load ptr, ptr %2, align 8, !tbaa !5
  %234 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %21, i64 0, i64 0
  call void @vkCmdPipelineBarrier(ptr noundef %233, 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 %234)
  call void @llvm.lifetime.start.p0(i64 56, ptr %22) #5
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 56, i1 false)
  %235 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %22, i32 0, i32 3
  %236 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %235, i32 0, i32 0
  store i32 1, ptr %236, align 8, !tbaa !98
  %237 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %22, i32 0, i32 3
  %238 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %237, i32 0, i32 3
  store i32 1, ptr %238, align 4, !tbaa !102
  %239 = load i32, ptr %6, align 4, !tbaa !17
  %240 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %22, i32 0, i32 5
  %241 = getelementptr inbounds %struct.VkExtent3D, ptr %240, i32 0, i32 0
  store i32 %239, ptr %241, align 4, !tbaa !103
  %242 = load i32, ptr %7, align 4, !tbaa !17
  %243 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %22, i32 0, i32 5
  %244 = getelementptr inbounds %struct.VkExtent3D, ptr %243, i32 0, i32 1
  store i32 %242, ptr %244, align 4, !tbaa !104
  %245 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %22, i32 0, i32 5
  %246 = getelementptr inbounds %struct.VkExtent3D, ptr %245, i32 0, i32 2
  store i32 1, ptr %246, align 4, !tbaa !105
  %247 = load ptr, ptr %2, align 8, !tbaa !5
  %248 = load ptr, ptr @_ZL14g_UploadBuffer, align 8, !tbaa !5
  %249 = load ptr, ptr @_ZL11g_FontImage, align 8, !tbaa !5
  call void @vkCmdCopyBufferToImage(ptr noundef %247, ptr noundef %248, ptr noundef %249, i32 noundef 7, i32 noundef 1, ptr noundef %22)
  call void @llvm.lifetime.start.p0(i64 72, ptr %23) #5
  call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 72, i1 false)
  %250 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %251 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %250, i32 0, i32 0
  store i32 45, ptr %251, align 16, !tbaa !87
  %252 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %253 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %252, i32 0, i32 2
  store i32 4096, ptr %253, align 16, !tbaa !106
  %254 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %255 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %254, i32 0, i32 3
  store i32 32, ptr %255, align 4, !tbaa !89
  %256 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %257 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %256, i32 0, i32 4
  store i32 7, ptr %257, align 8, !tbaa !90
  %258 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %259 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %258, i32 0, i32 5
  store i32 5, ptr %259, align 4, !tbaa !91
  %260 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %261 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %260, i32 0, i32 6
  store i32 -1, ptr %261, align 16, !tbaa !92
  %262 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %263 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %262, i32 0, i32 7
  store i32 -1, ptr %263, align 4, !tbaa !93
  %264 = load ptr, ptr @_ZL11g_FontImage, align 8, !tbaa !5
  %265 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %266 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %265, i32 0, i32 8
  store ptr %264, ptr %266, align 8, !tbaa !94
  %267 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %268 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %267, i32 0, i32 9
  %269 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %268, i32 0, i32 0
  store i32 1, ptr %269, align 16, !tbaa !95
  %270 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %271 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %270, i32 0, i32 9
  %272 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %271, i32 0, i32 2
  store i32 1, ptr %272, align 8, !tbaa !96
  %273 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %274 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %273, i32 0, i32 9
  %275 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %274, i32 0, i32 4
  store i32 1, ptr %275, align 16, !tbaa !97
  %276 = load ptr, ptr %2, align 8, !tbaa !5
  %277 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  call void @vkCmdPipelineBarrier(ptr noundef %276, 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 %277)
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %21) #5
  %278 = load ptr, ptr @_ZL11g_FontImage, align 8, !tbaa !5
  %279 = ptrtoint ptr %278 to i64
  %280 = inttoptr i64 %279 to ptr
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.ImGuiIO, ptr %281, i32 0, i32 14
  %283 = load ptr, ptr %282, align 8, !tbaa !9
  %284 = getelementptr inbounds %struct.ImFontAtlas, ptr %283, i32 0, i32 2
  store ptr %280, ptr %284, align 8, !tbaa !107
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret i1 true
}

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

declare void @_ZN11ImFontAtlas18GetTexDataAsRGBA32EPPhPiS2_S2_(ptr noundef nonnull align 8 dereferenceable(1144), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

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

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

declare void @vkUpdateDescriptorSets(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 160}
!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, !7, i64 52, !13, i64 140, !13, i64 144, !6, i64 152, !6, i64 160, !13, i64 168, !14, i64 172, !6, i64 176, !12, i64 184, !14, i64 192, !14, i64 193, !14, i64 194, !14, i64 195, !14, i64 196, !14, i64 197, !13, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !12, i64 288, !7, i64 296, !13, i64 304, !13, i64 308, !14, i64 312, !14, i64 313, !14, i64 314, !14, i64 315, !7, i64 316, !7, i64 828, !14, i64 912, !14, i64 913, !14, i64 914, !14, i64 915, !14, i64 916, !14, i64 917, !14, i64 918, !13, i64 920, !11, i64 924, !11, i64 928, !11, i64 932, !11, i64 936, !11, i64 940, !12, i64 944, !11, i64 952, !12, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5356, !13, i64 5440, !15, i64 5444, !16, i64 5448}
!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, !22, i64 0}
!48 = !{!"_ZTS20VkMemoryAllocateInfo", !22, i64 0, !6, i64 8, !19, i64 16, !11, i64 24}
!49 = !{!50, !19, i64 0}
!50 = !{!"_ZTS20VkMemoryRequirements", !19, i64 0, !19, i64 8, !11, i64 16}
!51 = !{!48, !19, i64 16}
!52 = !{!50, !11, i64 16}
!53 = !{!48, !11, i64 24}
!54 = !{!55, !22, i64 0}
!55 = !{!"_ZTS21VkImageViewCreateInfo", !22, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !56, i64 32, !24, i64 36, !57, i64 40, !59, i64 56}
!56 = !{!"_ZTS15VkImageViewType", !7, i64 0}
!57 = !{!"_ZTS18VkComponentMapping", !58, i64 0, !58, i64 4, !58, i64 8, !58, i64 12}
!58 = !{!"_ZTS18VkComponentSwizzle", !7, i64 0}
!59 = !{!"_ZTS23VkImageSubresourceRange", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!60 = !{!55, !6, i64 24}
!61 = !{!55, !56, i64 32}
!62 = !{!55, !24, i64 36}
!63 = !{!55, !11, i64 56}
!64 = !{!55, !11, i64 64}
!65 = !{!55, !11, i64 72}
!66 = !{!67, !6, i64 0}
!67 = !{!"_ZTS21VkDescriptorImageInfo", !6, i64 0, !6, i64 8, !29, i64 16}
!68 = !{!67, !6, i64 8}
!69 = !{!67, !29, i64 16}
!70 = !{!71, !22, i64 0}
!71 = !{!"_ZTS20VkWriteDescriptorSet", !22, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !72, i64 36, !6, i64 40, !6, i64 48, !6, i64 56}
!72 = !{!"_ZTS16VkDescriptorType", !7, i64 0}
!73 = !{!71, !6, i64 16}
!74 = !{!71, !11, i64 32}
!75 = !{!71, !72, i64 36}
!76 = !{!71, !6, i64 40}
!77 = !{!78, !22, i64 0}
!78 = !{!"_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}
!79 = !{!78, !19, i64 24}
!80 = !{!78, !11, i64 32}
!81 = !{!78, !28, i64 36}
!82 = !{!50, !19, i64 8}
!83 = !{!84, !22, i64 0}
!84 = !{!"_ZTS19VkMappedMemoryRange", !22, i64 0, !6, i64 8, !6, i64 16, !19, i64 24, !19, i64 32}
!85 = !{!84, !6, i64 16}
!86 = !{!84, !19, i64 32}
!87 = !{!88, !22, i64 0}
!88 = !{!"_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, !59, i64 48}
!89 = !{!88, !11, i64 20}
!90 = !{!88, !29, i64 24}
!91 = !{!88, !29, i64 28}
!92 = !{!88, !11, i64 32}
!93 = !{!88, !11, i64 36}
!94 = !{!88, !6, i64 40}
!95 = !{!88, !11, i64 48}
!96 = !{!88, !11, i64 56}
!97 = !{!88, !11, i64 64}
!98 = !{!99, !11, i64 16}
!99 = !{!"_ZTS17VkBufferImageCopy", !19, i64 0, !11, i64 8, !11, i64 12, !100, i64 16, !101, i64 32, !25, i64 44}
!100 = !{!"_ZTS24VkImageSubresourceLayers", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!101 = !{!"_ZTS10VkOffset3D", !11, i64 0, !11, i64 4, !11, i64 8}
!102 = !{!99, !11, i64 28}
!103 = !{!99, !11, i64 44}
!104 = !{!99, !11, i64 48}
!105 = !{!99, !11, i64 52}
!106 = !{!88, !11, i64 16}
!107 = !{!108, !6, i64 8}
!108 = !{!"_ZTS11ImFontAtlas", !14, i64 0, !11, i64 4, !6, i64 8, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 56, !109, i64 64, !110, i64 80, !111, i64 96, !7, i64 112, !11, i64 1136, !11, i64 1140}
!109 = !{!"_ZTS8ImVectorIP6ImFontE", !11, i64 0, !11, i64 4, !6, i64 8}
!110 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !11, i64 0, !11, i64 4, !6, i64 8}
!111 = !{!"_ZTS8ImVectorI12ImFontConfigE", !11, i64 0, !11, i64 4, !6, i64 8}


; 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.ImGui_ImplVulkan_InitInfo = type { ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr }
%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.VkDescriptorImageInfo = type { ptr, ptr, i32 }
%struct.VkWriteDescriptorSet = type { i32, ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr }
%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 }

@_ZL16g_VulkanInitInfo = external hidden local_unnamed_addr global %struct.ImGui_ImplVulkan_InitInfo, align 8
@_ZL11g_FontImage = external hidden global ptr, align 8
@_ZL12g_FontMemory = external hidden global ptr, align 8
@_ZL10g_FontView = external hidden global ptr, align 8
@_ZL13g_FontSampler = external hidden local_unnamed_addr global ptr, align 8
@_ZL15g_DescriptorSet = external hidden local_unnamed_addr global ptr, align 8
@_ZL14g_UploadBuffer = external hidden global ptr, align 8
@_ZL23g_BufferMemoryAlignment = external hidden local_unnamed_addr global i64, align 8
@_ZL20g_UploadBufferMemory = external hidden global ptr, align 8

; 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL15check_vk_result8VkResult(i32 noundef) local_unnamed_addr #3

; 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 #2

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

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

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

declare void @_ZN11ImFontAtlas18GetTexDataAsRGBA32EPPhPiS2_S2_(ptr noundef nonnull align 8 dereferenceable(1144), ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

declare void @vkUpdateDescriptorSets(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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 #2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !12, i64 160}
!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, !8, i64 52, !11, i64 140, !11, i64 144, !12, i64 152, !12, i64 160, !11, i64 168, !13, i64 172, !12, i64 176, !10, i64 184, !13, i64 192, !13, i64 193, !13, i64 194, !13, i64 195, !13, i64 196, !13, i64 197, !11, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !10, i64 288, !8, i64 296, !11, i64 304, !11, i64 308, !13, i64 312, !13, i64 313, !13, i64 314, !13, i64 315, !8, i64 316, !8, i64 828, !13, i64 912, !13, i64 913, !13, i64 914, !13, i64 915, !13, i64 916, !13, i64 917, !13, i64 918, !11, i64 920, !7, i64 924, !7, i64 928, !7, i64 932, !7, i64 936, !7, i64 940, !10, i64 944, !7, i64 952, !10, i64 956, !8, i64 964, !8, i64 1008, !8, i64 1048, !8, i64 1053, !8, i64 1058, !8, i64 1063, !8, i64 1068, !8, i64 1076, !8, i64 1096, !8, i64 1116, !8, i64 1156, !8, i64 1176, !8, i64 3224, !8, i64 5272, !8, i64 5356, !11, i64 5440, !14, i64 5444, !15, i64 5448}
!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 = !{!12, !12, i64 0}
!38 = !{!39, !19, i64 0}
!39 = !{!"_ZTS20VkMemoryAllocateInfo", !19, i64 0, !12, i64 8, !40, i64 16, !7, i64 24}
!40 = !{!"long", !8, i64 0}
!41 = !{!42, !40, i64 0}
!42 = !{!"_ZTS20VkMemoryRequirements", !40, i64 0, !40, i64 8, !7, i64 16}
!43 = !{!39, !40, i64 16}
!44 = !{!42, !7, i64 16}
!45 = !{!39, !7, i64 24}
!46 = !{!47, !19, i64 0}
!47 = !{!"_ZTS21VkImageViewCreateInfo", !19, i64 0, !12, i64 8, !7, i64 16, !12, i64 24, !48, i64 32, !21, i64 36, !49, i64 40, !51, i64 56}
!48 = !{!"_ZTS15VkImageViewType", !8, i64 0}
!49 = !{!"_ZTS18VkComponentMapping", !50, i64 0, !50, i64 4, !50, i64 8, !50, i64 12}
!50 = !{!"_ZTS18VkComponentSwizzle", !8, i64 0}
!51 = !{!"_ZTS23VkImageSubresourceRange", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!52 = !{!47, !12, i64 24}
!53 = !{!47, !48, i64 32}
!54 = !{!47, !21, i64 36}
!55 = !{!47, !7, i64 56}
!56 = !{!47, !7, i64 64}
!57 = !{!47, !7, i64 72}
!58 = !{!59, !12, i64 0}
!59 = !{!"_ZTS21VkDescriptorImageInfo", !12, i64 0, !12, i64 8, !26, i64 16}
!60 = !{!59, !12, i64 8}
!61 = !{!59, !26, i64 16}
!62 = !{!63, !19, i64 0}
!63 = !{!"_ZTS20VkWriteDescriptorSet", !19, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !64, i64 36, !12, i64 40, !12, i64 48, !12, i64 56}
!64 = !{!"_ZTS16VkDescriptorType", !8, i64 0}
!65 = !{!63, !12, i64 16}
!66 = !{!63, !7, i64 32}
!67 = !{!63, !64, i64 36}
!68 = !{!63, !12, i64 40}
!69 = !{!70, !19, i64 0}
!70 = !{!"_ZTS18VkBufferCreateInfo", !19, i64 0, !12, i64 8, !7, i64 16, !40, i64 24, !7, i64 32, !25, i64 36, !7, i64 40, !12, i64 48}
!71 = !{!70, !40, i64 24}
!72 = !{!70, !7, i64 32}
!73 = !{!40, !40, i64 0}
!74 = !{!75, !19, i64 0}
!75 = !{!"_ZTS19VkMappedMemoryRange", !19, i64 0, !12, i64 8, !12, i64 16, !40, i64 24, !40, i64 32}
!76 = !{!75, !12, i64 16}
!77 = !{!75, !40, i64 32}
!78 = !{!79, !19, i64 0}
!79 = !{!"_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, !51, i64 48}
!80 = !{!79, !7, i64 20}
!81 = !{!79, !26, i64 28}
!82 = !{!79, !7, i64 32}
!83 = !{!79, !7, i64 36}
!84 = !{!79, !12, i64 40}
!85 = !{!79, !7, i64 48}
!86 = !{!79, !7, i64 56}
!87 = !{!79, !7, i64 64}
!88 = !{!89, !7, i64 16}
!89 = !{!"_ZTS17VkBufferImageCopy", !40, i64 0, !7, i64 8, !7, i64 12, !90, i64 16, !91, i64 32, !22, i64 44}
!90 = !{!"_ZTS24VkImageSubresourceLayers", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!91 = !{!"_ZTS10VkOffset3D", !7, i64 0, !7, i64 4, !7, i64 8}
!92 = !{!89, !7, i64 28}
!93 = !{!89, !7, i64 44}
!94 = !{!89, !7, i64 48}
!95 = !{!89, !7, i64 52}
!96 = !{!97, !12, i64 8}
!97 = !{!"_ZTS11ImFontAtlas", !13, i64 0, !7, i64 4, !12, i64 8, !7, i64 16, !7, i64 20, !12, i64 24, !12, i64 32, !7, i64 40, !7, i64 44, !10, i64 48, !10, i64 56, !98, i64 64, !99, i64 80, !100, i64 96, !8, i64 112, !7, i64 1136, !7, i64 1140}
!98 = !{!"_ZTS8ImVectorIP6ImFontE", !7, i64 0, !7, i64 4, !12, i64 8}
!99 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !7, i64 0, !7, i64 4, !12, i64 8}
!100 = !{!"_ZTS8ImVectorI12ImFontConfigE", !7, i64 0, !7, i64 4, !12, i64 8}


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