; LLVM IR from khushmmehta/Scorch-V :: src/vendor/imgui/backends/imgui_impl_vulkan.ll (Z35ImGui_ImplVulkan_CreateFontsTexturev)

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

; 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_CreateFontsTexturev() #1 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.VkCommandPoolCreateInfo, align 8
  %6 = alloca %struct.VkCommandBufferAllocateInfo, align 8
  %7 = alloca %struct.VkCommandBufferBeginInfo, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca %struct.VkImageCreateInfo, align 8
  %13 = alloca %struct.VkMemoryRequirements, align 8
  %14 = alloca %struct.VkMemoryAllocateInfo, align 8
  %15 = alloca %struct.VkImageViewCreateInfo, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.VkBufferCreateInfo, align 8
  %19 = alloca %struct.VkMemoryRequirements, align 8
  %20 = alloca %struct.VkMemoryAllocateInfo, align 8
  %21 = alloca ptr, align 8
  %22 = alloca [1 x %struct.VkMappedMemoryRange], align 16
  %23 = alloca [1 x %struct.VkImageMemoryBarrier], align 16
  %24 = alloca %struct.VkBufferImageCopy, align 8
  %25 = alloca [1 x %struct.VkImageMemoryBarrier], align 16
  %26 = alloca %struct.VkSubmitInfo, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  %27 = call noundef nonnull align 8 dereferenceable(14624) ptr @_ZN5ImGui5GetIOEv()
  store ptr %27, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %28 = call noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav()
  store ptr %28, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %29, i32 0, i32 0
  store ptr %30, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %31, i32 0, i32 13
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = icmp ne ptr %33, null
  br i1 %34, label %50, label %35

35:                                               ; preds = %0
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %36, i32 0, i32 12
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = icmp ne ptr %38, null
  br i1 %39, label %50, label %40

40:                                               ; preds = %35
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %41, i32 0, i32 11
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  %44 = icmp ne ptr %43, null
  br i1 %44, label %50, label %45

45:                                               ; preds = %40
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %46, i32 0, i32 14
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %55

50:                                               ; preds = %45, %40, %35, %0
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = call i32 @vkQueueWaitIdle(ptr noundef %53)
  call void @_Z36ImGui_ImplVulkan_DestroyFontsTexturev()
  br label %55

55:                                               ; preds = %50, %45
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %56, i32 0, i32 15
  %58 = load ptr, ptr %57, align 8, !tbaa !22
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %73

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 24, i1 false)
  %61 = getelementptr inbounds %struct.VkCommandPoolCreateInfo, ptr %5, i32 0, i32 0
  store i32 39, ptr %61, align 8, !tbaa !23
  %62 = getelementptr inbounds %struct.VkCommandPoolCreateInfo, ptr %5, i32 0, i32 2
  store i32 2, ptr %62, align 8, !tbaa !26
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %63, i32 0, i32 3
  %65 = load i32, ptr %64, align 8, !tbaa !27
  %66 = getelementptr inbounds %struct.VkCommandPoolCreateInfo, ptr %5, i32 0, i32 3
  store i32 %65, ptr %66, align 4, !tbaa !28
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !29
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %70, i32 0, i32 15
  %72 = call i32 @vkCreateCommandPool(ptr noundef %69, ptr noundef %5, ptr noundef null, ptr noundef %71)
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  br label %73

73:                                               ; preds = %60, %55
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %74, i32 0, i32 16
  %76 = load ptr, ptr %75, align 8, !tbaa !30
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %92

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 32, i1 false)
  %79 = getelementptr inbounds %struct.VkCommandBufferAllocateInfo, ptr %6, i32 0, i32 0
  store i32 40, ptr %79, align 8, !tbaa !31
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %80, i32 0, i32 15
  %82 = load ptr, ptr %81, align 8, !tbaa !22
  %83 = getelementptr inbounds %struct.VkCommandBufferAllocateInfo, ptr %6, i32 0, i32 2
  store ptr %82, ptr %83, align 8, !tbaa !34
  %84 = getelementptr inbounds %struct.VkCommandBufferAllocateInfo, ptr %6, i32 0, i32 4
  store i32 1, ptr %84, align 4, !tbaa !35
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !29
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %88, i32 0, i32 16
  %90 = call i32 @vkAllocateCommandBuffers(ptr noundef %87, ptr noundef %6, ptr noundef %89)
  store i32 %90, ptr %4, align 4, !tbaa !36
  %91 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %91)
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  br label %92

92:                                               ; preds = %78, %73
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %93, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !29
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %96, i32 0, i32 15
  %98 = load ptr, ptr %97, align 8, !tbaa !22
  %99 = call i32 @vkResetCommandPool(ptr noundef %95, ptr noundef %98, i32 noundef 0)
  store i32 %99, ptr %4, align 4, !tbaa !36
  %100 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %100)
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #6
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 32, i1 false)
  %101 = getelementptr inbounds %struct.VkCommandBufferBeginInfo, ptr %7, i32 0, i32 0
  store i32 42, ptr %101, align 8, !tbaa !38
  %102 = getelementptr inbounds %struct.VkCommandBufferBeginInfo, ptr %7, i32 0, i32 2
  %103 = load i32, ptr %102, align 8, !tbaa !40
  %104 = or i32 %103, 1
  store i32 %104, ptr %102, align 8, !tbaa !40
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %105, i32 0, i32 16
  %107 = load ptr, ptr %106, align 8, !tbaa !30
  %108 = call i32 @vkBeginCommandBuffer(ptr noundef %107, ptr noundef %7)
  store i32 %108, ptr %4, align 4, !tbaa !36
  %109 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %109)
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %110 = load ptr, ptr %1, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.ImGuiIO, ptr %110, i32 0, i32 8
  %112 = load ptr, ptr %111, align 8, !tbaa !41
  call void @_ZN11ImFontAtlas18GetTexDataAsRGBA32EPPhPiS2_S2_(ptr noundef nonnull align 8 dereferenceable(1180) %112, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %113 = load i32, ptr %9, align 4, !tbaa !48
  %114 = load i32, ptr %10, align 4, !tbaa !48
  %115 = mul nsw i32 %113, %114
  %116 = mul nsw i32 %115, 4
  %117 = sext i32 %116 to i64
  %118 = mul i64 %117, 1
  store i64 %118, ptr %11, align 8, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 88, ptr %12) #6
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 88, i1 false)
  %119 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 0
  store i32 14, ptr %119, align 8, !tbaa !50
  %120 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 3
  store i32 1, ptr %120, align 4, !tbaa !57
  %121 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 4
  store i32 37, ptr %121, align 8, !tbaa !58
  %122 = load i32, ptr %9, align 4, !tbaa !48
  %123 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 5
  %124 = getelementptr inbounds %struct.VkExtent3D, ptr %123, i32 0, i32 0
  store i32 %122, ptr %124, align 4, !tbaa !59
  %125 = load i32, ptr %10, align 4, !tbaa !48
  %126 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 5
  %127 = getelementptr inbounds %struct.VkExtent3D, ptr %126, i32 0, i32 1
  store i32 %125, ptr %127, align 4, !tbaa !60
  %128 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 5
  %129 = getelementptr inbounds %struct.VkExtent3D, ptr %128, i32 0, i32 2
  store i32 1, ptr %129, align 4, !tbaa !61
  %130 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 6
  store i32 1, ptr %130, align 8, !tbaa !62
  %131 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 7
  store i32 1, ptr %131, align 4, !tbaa !63
  %132 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 8
  store i32 1, ptr %132, align 8, !tbaa !64
  %133 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 9
  store i32 0, ptr %133, align 4, !tbaa !65
  %134 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 10
  store i32 6, ptr %134, align 8, !tbaa !66
  %135 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 11
  store i32 0, ptr %135, align 4, !tbaa !67
  %136 = getelementptr inbounds %struct.VkImageCreateInfo, ptr %12, i32 0, i32 14
  store i32 0, ptr %136, align 8, !tbaa !68
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %137, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !29
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %140, i32 0, i32 13
  %142 = load ptr, ptr %141, align 8, !tbaa !69
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %143, i32 0, i32 12
  %145 = call i32 @vkCreateImage(ptr noundef %139, ptr noundef %12, ptr noundef %142, ptr noundef %144)
  store i32 %145, ptr %4, align 4, !tbaa !36
  %146 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %146)
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %147, i32 0, i32 2
  %149 = load ptr, ptr %148, align 8, !tbaa !29
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %150, i32 0, i32 12
  %152 = load ptr, ptr %151, align 8, !tbaa !18
  call void @vkGetImageMemoryRequirements(ptr noundef %149, ptr noundef %152, ptr noundef %13)
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 32, i1 false)
  %153 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %14, i32 0, i32 0
  store i32 5, ptr %153, align 8, !tbaa !70
  %154 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %13, i32 0, i32 0
  %155 = load i64, ptr %154, align 8, !tbaa !72
  %156 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %14, i32 0, i32 2
  store i64 %155, ptr %156, align 8, !tbaa !74
  %157 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %13, i32 0, i32 2
  %158 = load i32, ptr %157, align 8, !tbaa !75
  %159 = call noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef 1, i32 noundef %158)
  %160 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %14, i32 0, i32 3
  store i32 %159, ptr %160, align 8, !tbaa !76
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %161, i32 0, i32 2
  %163 = load ptr, ptr %162, align 8, !tbaa !29
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %164, i32 0, i32 13
  %166 = load ptr, ptr %165, align 8, !tbaa !69
  %167 = load ptr, ptr %2, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %167, i32 0, i32 11
  %169 = call i32 @vkAllocateMemory(ptr noundef %163, ptr noundef %14, ptr noundef %166, ptr noundef %168)
  store i32 %169, ptr %4, align 4, !tbaa !36
  %170 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %170)
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %171, i32 0, i32 2
  %173 = load ptr, ptr %172, align 8, !tbaa !29
  %174 = load ptr, ptr %2, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %174, i32 0, i32 12
  %176 = load ptr, ptr %175, align 8, !tbaa !18
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %177, i32 0, i32 11
  %179 = load ptr, ptr %178, align 8, !tbaa !19
  %180 = call i32 @vkBindImageMemory(ptr noundef %173, ptr noundef %176, ptr noundef %179, i64 noundef 0)
  store i32 %180, ptr %4, align 4, !tbaa !36
  %181 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %181)
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #6
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 80, i1 false)
  %182 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %15, i32 0, i32 0
  store i32 15, ptr %182, align 8, !tbaa !77
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %183, i32 0, i32 12
  %185 = load ptr, ptr %184, align 8, !tbaa !18
  %186 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %15, i32 0, i32 3
  store ptr %185, ptr %186, align 8, !tbaa !83
  %187 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %15, i32 0, i32 4
  store i32 1, ptr %187, align 8, !tbaa !84
  %188 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %15, i32 0, i32 5
  store i32 37, ptr %188, align 4, !tbaa !85
  %189 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %15, i32 0, i32 7
  %190 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %189, i32 0, i32 0
  store i32 1, ptr %190, align 8, !tbaa !86
  %191 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %15, i32 0, i32 7
  %192 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %191, i32 0, i32 2
  store i32 1, ptr %192, align 8, !tbaa !87
  %193 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %15, i32 0, i32 7
  %194 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %193, i32 0, i32 4
  store i32 1, ptr %194, align 8, !tbaa !88
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %195, i32 0, i32 2
  %197 = load ptr, ptr %196, align 8, !tbaa !29
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %198, i32 0, i32 13
  %200 = load ptr, ptr %199, align 8, !tbaa !69
  %201 = load ptr, ptr %2, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %201, i32 0, i32 13
  %203 = call i32 @vkCreateImageView(ptr noundef %197, ptr noundef %15, ptr noundef %200, ptr noundef %202)
  store i32 %203, ptr %4, align 4, !tbaa !36
  %204 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %204)
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #6
  %205 = load ptr, ptr %2, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %205, i32 0, i32 10
  %207 = load ptr, ptr %206, align 8, !tbaa !89
  %208 = load ptr, ptr %2, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %208, i32 0, i32 13
  %210 = load ptr, ptr %209, align 8, !tbaa !9
  %211 = call noundef ptr @_Z27ImGui_ImplVulkan_AddTextureP11VkSampler_TP13VkImageView_T13VkImageLayout(ptr noundef %207, ptr noundef %210, i32 noundef 5)
  %212 = load ptr, ptr %2, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %212, i32 0, i32 14
  store ptr %211, ptr %213, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 56, ptr %18) #6
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 56, i1 false)
  %214 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %18, i32 0, i32 0
  store i32 12, ptr %214, align 8, !tbaa !90
  %215 = load i64, ptr %11, align 8, !tbaa !49
  %216 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %18, i32 0, i32 3
  store i64 %215, ptr %216, align 8, !tbaa !92
  %217 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %18, i32 0, i32 4
  store i32 1, ptr %217, align 8, !tbaa !93
  %218 = getelementptr inbounds %struct.VkBufferCreateInfo, ptr %18, i32 0, i32 5
  store i32 0, ptr %218, align 4, !tbaa !94
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %219, i32 0, i32 2
  %221 = load ptr, ptr %220, align 8, !tbaa !29
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %222, i32 0, i32 13
  %224 = load ptr, ptr %223, align 8, !tbaa !69
  %225 = call i32 @vkCreateBuffer(ptr noundef %221, ptr noundef %18, ptr noundef %224, ptr noundef %17)
  store i32 %225, ptr %4, align 4, !tbaa !36
  %226 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %226)
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %227, i32 0, i32 2
  %229 = load ptr, ptr %228, align 8, !tbaa !29
  %230 = load ptr, ptr %17, align 8, !tbaa !5
  call void @vkGetBufferMemoryRequirements(ptr noundef %229, ptr noundef %230, ptr noundef %19)
  %231 = load ptr, ptr %2, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %231, i32 0, i32 2
  %233 = load i64, ptr %232, align 8, !tbaa !95
  %234 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %19, i32 0, i32 1
  %235 = load i64, ptr %234, align 8, !tbaa !96
  %236 = icmp ugt i64 %233, %235
  br i1 %236, label %237, label %241

237:                                              ; preds = %92
  %238 = load ptr, ptr %2, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %238, i32 0, i32 2
  %240 = load i64, ptr %239, align 8, !tbaa !95
  br label %244

241:                                              ; preds = %92
  %242 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %19, i32 0, i32 1
  %243 = load i64, ptr %242, align 8, !tbaa !96
  br label %244

244:                                              ; preds = %241, %237
  %245 = phi i64 [ %240, %237 ], [ %243, %241 ]
  %246 = load ptr, ptr %2, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %246, i32 0, i32 2
  store i64 %245, ptr %247, align 8, !tbaa !95
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 32, i1 false)
  %248 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %20, i32 0, i32 0
  store i32 5, ptr %248, align 8, !tbaa !70
  %249 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %19, i32 0, i32 0
  %250 = load i64, ptr %249, align 8, !tbaa !72
  %251 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %20, i32 0, i32 2
  store i64 %250, ptr %251, align 8, !tbaa !74
  %252 = getelementptr inbounds %struct.VkMemoryRequirements, ptr %19, i32 0, i32 2
  %253 = load i32, ptr %252, align 8, !tbaa !75
  %254 = call noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef 2, i32 noundef %253)
  %255 = getelementptr inbounds %struct.VkMemoryAllocateInfo, ptr %20, i32 0, i32 3
  store i32 %254, ptr %255, align 8, !tbaa !76
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %256, i32 0, i32 2
  %258 = load ptr, ptr %257, align 8, !tbaa !29
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %259, i32 0, i32 13
  %261 = load ptr, ptr %260, align 8, !tbaa !69
  %262 = call i32 @vkAllocateMemory(ptr noundef %258, ptr noundef %20, ptr noundef %261, ptr noundef %16)
  store i32 %262, ptr %4, align 4, !tbaa !36
  %263 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %263)
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %264, i32 0, i32 2
  %266 = load ptr, ptr %265, align 8, !tbaa !29
  %267 = load ptr, ptr %17, align 8, !tbaa !5
  %268 = load ptr, ptr %16, align 8, !tbaa !5
  %269 = call i32 @vkBindBufferMemory(ptr noundef %266, ptr noundef %267, ptr noundef %268, i64 noundef 0)
  store i32 %269, ptr %4, align 4, !tbaa !36
  %270 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %270)
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store ptr null, ptr %21, align 8, !tbaa !5
  %271 = load ptr, ptr %3, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %271, i32 0, i32 2
  %273 = load ptr, ptr %272, align 8, !tbaa !29
  %274 = load ptr, ptr %16, align 8, !tbaa !5
  %275 = load i64, ptr %11, align 8, !tbaa !49
  %276 = call i32 @vkMapMemory(ptr noundef %273, ptr noundef %274, i64 noundef 0, i64 noundef %275, i32 noundef 0, ptr noundef %21)
  store i32 %276, ptr %4, align 4, !tbaa !36
  %277 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %277)
  %278 = load ptr, ptr %21, align 8, !tbaa !5
  %279 = load ptr, ptr %8, align 8, !tbaa !5
  %280 = load i64, ptr %11, align 8, !tbaa !49
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %278, ptr align 1 %279, i64 %280, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #6
  call void @llvm.memset.p0.i64(ptr align 16 %22, i8 0, i64 40, i1 false)
  %281 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %282 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %281, i32 0, i32 0
  store i32 6, ptr %282, align 16, !tbaa !97
  %283 = load ptr, ptr %16, align 8, !tbaa !5
  %284 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %285 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %284, i32 0, i32 2
  store ptr %283, ptr %285, align 16, !tbaa !99
  %286 = load i64, ptr %11, align 8, !tbaa !49
  %287 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %288 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %287, i32 0, i32 4
  store i64 %286, ptr %288, align 16, !tbaa !100
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %289, i32 0, i32 2
  %291 = load ptr, ptr %290, align 8, !tbaa !29
  %292 = getelementptr inbounds [1 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %293 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %291, i32 noundef 1, ptr noundef %292)
  store i32 %293, ptr %4, align 4, !tbaa !36
  %294 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %294)
  %295 = load ptr, ptr %3, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %295, i32 0, i32 2
  %297 = load ptr, ptr %296, align 8, !tbaa !29
  %298 = load ptr, ptr %16, align 8, !tbaa !5
  call void @vkUnmapMemory(ptr noundef %297, ptr noundef %298)
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr %23) #6
  call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 72, i1 false)
  %299 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %300 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %299, i32 0, i32 0
  store i32 45, ptr %300, align 16, !tbaa !101
  %301 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %302 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %301, i32 0, i32 3
  store i32 4096, ptr %302, align 4, !tbaa !103
  %303 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %304 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %303, i32 0, i32 4
  store i32 0, ptr %304, align 8, !tbaa !104
  %305 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %306 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %305, i32 0, i32 5
  store i32 7, ptr %306, align 4, !tbaa !105
  %307 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %308 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %307, i32 0, i32 6
  store i32 -1, ptr %308, align 16, !tbaa !106
  %309 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %310 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %309, i32 0, i32 7
  store i32 -1, ptr %310, align 4, !tbaa !107
  %311 = load ptr, ptr %2, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %311, i32 0, i32 12
  %313 = load ptr, ptr %312, align 8, !tbaa !18
  %314 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %315 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %314, i32 0, i32 8
  store ptr %313, ptr %315, align 8, !tbaa !108
  %316 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %317 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %316, i32 0, i32 9
  %318 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %317, i32 0, i32 0
  store i32 1, ptr %318, align 16, !tbaa !109
  %319 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %320 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %319, i32 0, i32 9
  %321 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %320, i32 0, i32 2
  store i32 1, ptr %321, align 8, !tbaa !110
  %322 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  %323 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %322, i32 0, i32 9
  %324 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %323, i32 0, i32 4
  store i32 1, ptr %324, align 16, !tbaa !111
  %325 = load ptr, ptr %2, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %325, i32 0, i32 16
  %327 = load ptr, ptr %326, align 8, !tbaa !30
  %328 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %23, i64 0, i64 0
  call void @vkCmdPipelineBarrier(ptr noundef %327, 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 %328)
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #6
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 56, i1 false)
  %329 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %24, i32 0, i32 3
  %330 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %329, i32 0, i32 0
  store i32 1, ptr %330, align 8, !tbaa !112
  %331 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %24, i32 0, i32 3
  %332 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %331, i32 0, i32 3
  store i32 1, ptr %332, align 4, !tbaa !116
  %333 = load i32, ptr %9, align 4, !tbaa !48
  %334 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %24, i32 0, i32 5
  %335 = getelementptr inbounds %struct.VkExtent3D, ptr %334, i32 0, i32 0
  store i32 %333, ptr %335, align 4, !tbaa !117
  %336 = load i32, ptr %10, align 4, !tbaa !48
  %337 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %24, i32 0, i32 5
  %338 = getelementptr inbounds %struct.VkExtent3D, ptr %337, i32 0, i32 1
  store i32 %336, ptr %338, align 4, !tbaa !118
  %339 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %24, i32 0, i32 5
  %340 = getelementptr inbounds %struct.VkExtent3D, ptr %339, i32 0, i32 2
  store i32 1, ptr %340, align 4, !tbaa !119
  %341 = load ptr, ptr %2, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %341, i32 0, i32 16
  %343 = load ptr, ptr %342, align 8, !tbaa !30
  %344 = load ptr, ptr %17, align 8, !tbaa !5
  %345 = load ptr, ptr %2, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %345, i32 0, i32 12
  %347 = load ptr, ptr %346, align 8, !tbaa !18
  call void @vkCmdCopyBufferToImage(ptr noundef %343, ptr noundef %344, ptr noundef %347, i32 noundef 7, i32 noundef 1, ptr noundef %24)
  call void @llvm.lifetime.start.p0(i64 72, ptr %25) #6
  call void @llvm.memset.p0.i64(ptr align 16 %25, i8 0, i64 72, i1 false)
  %348 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %349 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %348, i32 0, i32 0
  store i32 45, ptr %349, align 16, !tbaa !101
  %350 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %351 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %350, i32 0, i32 2
  store i32 4096, ptr %351, align 16, !tbaa !120
  %352 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %353 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %352, i32 0, i32 3
  store i32 32, ptr %353, align 4, !tbaa !103
  %354 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %355 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %354, i32 0, i32 4
  store i32 7, ptr %355, align 8, !tbaa !104
  %356 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %357 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %356, i32 0, i32 5
  store i32 5, ptr %357, align 4, !tbaa !105
  %358 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %359 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %358, i32 0, i32 6
  store i32 -1, ptr %359, align 16, !tbaa !106
  %360 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %361 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %360, i32 0, i32 7
  store i32 -1, ptr %361, align 4, !tbaa !107
  %362 = load ptr, ptr %2, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %362, i32 0, i32 12
  %364 = load ptr, ptr %363, align 8, !tbaa !18
  %365 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %366 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %365, i32 0, i32 8
  store ptr %364, ptr %366, align 8, !tbaa !108
  %367 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %368 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %367, i32 0, i32 9
  %369 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %368, i32 0, i32 0
  store i32 1, ptr %369, align 16, !tbaa !109
  %370 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %371 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %370, i32 0, i32 9
  %372 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %371, i32 0, i32 2
  store i32 1, ptr %372, align 8, !tbaa !110
  %373 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  %374 = getelementptr inbounds %struct.VkImageMemoryBarrier, ptr %373, i32 0, i32 9
  %375 = getelementptr inbounds %struct.VkImageSubresourceRange, ptr %374, i32 0, i32 4
  store i32 1, ptr %375, align 16, !tbaa !111
  %376 = load ptr, ptr %2, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %376, i32 0, i32 16
  %378 = load ptr, ptr %377, align 8, !tbaa !30
  %379 = getelementptr inbounds [1 x %struct.VkImageMemoryBarrier], ptr %25, i64 0, i64 0
  call void @vkCmdPipelineBarrier(ptr noundef %378, 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 %379)
  call void @llvm.lifetime.end.p0(i64 72, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #6
  %380 = load ptr, ptr %1, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.ImGuiIO, ptr %380, i32 0, i32 8
  %382 = load ptr, ptr %381, align 8, !tbaa !41
  %383 = load ptr, ptr %2, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %383, i32 0, i32 14
  %385 = load ptr, ptr %384, align 8, !tbaa !20
  call void @_ZN11ImFontAtlas8SetTexIDEPv(ptr noundef nonnull align 8 dereferenceable(1180) %382, ptr noundef %385)
  call void @llvm.lifetime.start.p0(i64 72, ptr %26) #6
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 72, i1 false)
  %386 = getelementptr inbounds %struct.VkSubmitInfo, ptr %26, i32 0, i32 0
  store i32 4, ptr %386, align 8, !tbaa !121
  %387 = getelementptr inbounds %struct.VkSubmitInfo, ptr %26, i32 0, i32 5
  store i32 1, ptr %387, align 8, !tbaa !123
  %388 = load ptr, ptr %2, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %388, i32 0, i32 16
  %390 = getelementptr inbounds %struct.VkSubmitInfo, ptr %26, i32 0, i32 6
  store ptr %389, ptr %390, align 8, !tbaa !124
  %391 = load ptr, ptr %2, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %391, i32 0, i32 16
  %393 = load ptr, ptr %392, align 8, !tbaa !30
  %394 = call i32 @vkEndCommandBuffer(ptr noundef %393)
  store i32 %394, ptr %4, align 4, !tbaa !36
  %395 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %395)
  %396 = load ptr, ptr %3, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %396, i32 0, i32 4
  %398 = load ptr, ptr %397, align 8, !tbaa !21
  %399 = call i32 @vkQueueSubmit(ptr noundef %398, i32 noundef 1, ptr noundef %26, ptr noundef null)
  store i32 %399, ptr %4, align 4, !tbaa !36
  %400 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %400)
  %401 = load ptr, ptr %3, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %401, i32 0, i32 2
  %403 = load ptr, ptr %402, align 8, !tbaa !29
  %404 = call i32 @vkDeviceWaitIdle(ptr noundef %403)
  store i32 %404, ptr %4, align 4, !tbaa !36
  %405 = load i32, ptr %4, align 4, !tbaa !36
  call void @_ZL15check_vk_result8VkResult(i32 noundef %405)
  %406 = load ptr, ptr %3, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %406, i32 0, i32 2
  %408 = load ptr, ptr %407, align 8, !tbaa !29
  %409 = load ptr, ptr %17, align 8, !tbaa !5
  %410 = load ptr, ptr %3, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %410, i32 0, i32 13
  %412 = load ptr, ptr %411, align 8, !tbaa !69
  call void @vkDestroyBuffer(ptr noundef %408, ptr noundef %409, ptr noundef %412)
  %413 = load ptr, ptr %3, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %413, i32 0, i32 2
  %415 = load ptr, ptr %414, align 8, !tbaa !29
  %416 = load ptr, ptr %16, align 8, !tbaa !5
  %417 = load ptr, ptr %3, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %417, i32 0, i32 13
  %419 = load ptr, ptr %418, align 8, !tbaa !69
  call void @vkFreeMemory(ptr noundef %415, ptr noundef %416, ptr noundef %419)
  call void @llvm.lifetime.end.p0(i64 72, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret i1 true
}

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

declare i32 @vkQueueWaitIdle(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z36ImGui_ImplVulkan_DestroyFontsTexturev() #1

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

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

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

declare i32 @vkBeginCommandBuffer(ptr noundef, ptr noundef) #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

declare i32 @vkEndCommandBuffer(ptr noundef) #3

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

declare i32 @vkDeviceWaitIdle(ptr noundef) #3

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

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

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 192}
!10 = !{!"_ZTS21ImGui_ImplVulkan_Data", !11, i64 0, !6, i64 96, !16, i64 104, !12, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !12, 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, !6, i64 216, !17, i64 224}
!11 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !13, i64 68, !14, i64 72, !15, i64 76, !6, i64 80, !6, i64 88}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS8VkFormat", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTS37ImGui_ImplVulkanH_WindowRenderBuffers", !12, i64 0, !12, i64 4, !6, i64 8}
!18 = !{!10, !6, i64 184}
!19 = !{!10, !6, i64 176}
!20 = !{!10, !6, i64 200}
!21 = !{!11, !6, i64 32}
!22 = !{!10, !6, i64 208}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTS23VkCommandPoolCreateInfo", !25, i64 0, !6, i64 8, !12, i64 16, !12, i64 20}
!25 = !{!"_ZTS15VkStructureType", !7, i64 0}
!26 = !{!24, !12, i64 16}
!27 = !{!11, !12, i64 24}
!28 = !{!24, !12, i64 20}
!29 = !{!11, !6, i64 16}
!30 = !{!10, !6, i64 216}
!31 = !{!32, !25, i64 0}
!32 = !{!"_ZTS27VkCommandBufferAllocateInfo", !25, i64 0, !6, i64 8, !6, i64 16, !33, i64 24, !12, i64 28}
!33 = !{!"_ZTS20VkCommandBufferLevel", !7, i64 0}
!34 = !{!32, !6, i64 16}
!35 = !{!32, !12, i64 28}
!36 = !{!37, !37, i64 0}
!37 = !{!"_ZTS8VkResult", !7, i64 0}
!38 = !{!39, !25, i64 0}
!39 = !{!"_ZTS24VkCommandBufferBeginInfo", !25, i64 0, !6, i64 8, !12, i64 16, !6, i64 24}
!40 = !{!39, !12, i64 16}
!41 = !{!42, !6, i64 48}
!42 = !{!"_ZTS7ImGuiIO", !12, i64 0, !12, i64 4, !43, i64 8, !44, i64 16, !44, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !44, i64 56, !14, i64 60, !6, i64 64, !43, i64 72, !14, i64 80, !14, i64 81, !14, i64 82, !14, i64 83, !14, i64 84, !14, i64 85, !14, i64 86, !14, i64 87, !14, i64 88, !14, i64 89, !14, i64 90, !14, i64 91, !14, i64 92, !14, i64 93, !14, i64 94, !14, i64 95, !44, i64 96, !44, i64 100, !44, i64 104, !44, i64 108, !44, i64 112, !44, i64 116, !14, i64 120, !14, i64 121, !14, i64 122, !14, i64 123, !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, !45, i64 200, !14, i64 202, !14, i64 203, !14, i64 204, !14, i64 205, !14, i64 206, !14, i64 207, !14, i64 208, !44, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !43, i64 232, !7, i64 240, !7, i64 2904, !7, i64 3572, !6, i64 3640, !6, i64 3648, !43, i64 3656, !7, i64 3664, !44, i64 3672, !44, i64 3676, !46, i64 3680, !12, i64 3684, !14, i64 3688, !14, i64 3689, !14, i64 3690, !14, i64 3691, !12, i64 3692, !7, i64 3696, !14, i64 14352, !43, i64 14356, !7, i64 14364, !7, i64 14408, !7, i64 14448, !7, i64 14453, !7, i64 14458, !7, i64 14468, !7, i64 14478, !7, i64 14483, !7, i64 14488, !14, i64 14493, !7, i64 14496, !7, i64 14516, !7, i64 14536, !7, i64 14576, !44, i64 14596, !14, i64 14600, !14, i64 14601, !7, i64 14602, !14, i64 14603, !45, i64 14604, !47, i64 14608}
!43 = !{!"_ZTS6ImVec2", !44, i64 0, !44, i64 4}
!44 = !{!"float", !7, i64 0}
!45 = !{!"short", !7, i64 0}
!46 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!47 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!48 = !{!12, !12, i64 0}
!49 = !{!16, !16, i64 0}
!50 = !{!51, !25, i64 0}
!51 = !{!"_ZTS17VkImageCreateInfo", !25, i64 0, !6, i64 8, !12, i64 16, !52, i64 20, !15, i64 24, !53, i64 28, !12, i64 40, !12, i64 44, !13, i64 48, !54, i64 52, !12, i64 56, !55, i64 60, !12, i64 64, !6, i64 72, !56, i64 80}
!52 = !{!"_ZTS11VkImageType", !7, i64 0}
!53 = !{!"_ZTS10VkExtent3D", !12, i64 0, !12, i64 4, !12, i64 8}
!54 = !{!"_ZTS13VkImageTiling", !7, i64 0}
!55 = !{!"_ZTS13VkSharingMode", !7, i64 0}
!56 = !{!"_ZTS13VkImageLayout", !7, i64 0}
!57 = !{!51, !52, i64 20}
!58 = !{!51, !15, i64 24}
!59 = !{!51, !12, i64 28}
!60 = !{!51, !12, i64 32}
!61 = !{!51, !12, i64 36}
!62 = !{!51, !12, i64 40}
!63 = !{!51, !12, i64 44}
!64 = !{!51, !13, i64 48}
!65 = !{!51, !54, i64 52}
!66 = !{!51, !12, i64 56}
!67 = !{!51, !55, i64 60}
!68 = !{!51, !56, i64 80}
!69 = !{!11, !6, i64 80}
!70 = !{!71, !25, i64 0}
!71 = !{!"_ZTS20VkMemoryAllocateInfo", !25, i64 0, !6, i64 8, !16, i64 16, !12, i64 24}
!72 = !{!73, !16, i64 0}
!73 = !{!"_ZTS20VkMemoryRequirements", !16, i64 0, !16, i64 8, !12, i64 16}
!74 = !{!71, !16, i64 16}
!75 = !{!73, !12, i64 16}
!76 = !{!71, !12, i64 24}
!77 = !{!78, !25, i64 0}
!78 = !{!"_ZTS21VkImageViewCreateInfo", !25, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !79, i64 32, !15, i64 36, !80, i64 40, !82, i64 56}
!79 = !{!"_ZTS15VkImageViewType", !7, i64 0}
!80 = !{!"_ZTS18VkComponentMapping", !81, i64 0, !81, i64 4, !81, i64 8, !81, i64 12}
!81 = !{!"_ZTS18VkComponentSwizzle", !7, i64 0}
!82 = !{!"_ZTS23VkImageSubresourceRange", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!83 = !{!78, !6, i64 24}
!84 = !{!78, !79, i64 32}
!85 = !{!78, !15, i64 36}
!86 = !{!78, !12, i64 56}
!87 = !{!78, !12, i64 64}
!88 = !{!78, !12, i64 72}
!89 = !{!10, !6, i64 168}
!90 = !{!91, !25, i64 0}
!91 = !{!"_ZTS18VkBufferCreateInfo", !25, i64 0, !6, i64 8, !12, i64 16, !16, i64 24, !12, i64 32, !55, i64 36, !12, i64 40, !6, i64 48}
!92 = !{!91, !16, i64 24}
!93 = !{!91, !12, i64 32}
!94 = !{!91, !55, i64 36}
!95 = !{!10, !16, i64 104}
!96 = !{!73, !16, i64 8}
!97 = !{!98, !25, i64 0}
!98 = !{!"_ZTS19VkMappedMemoryRange", !25, i64 0, !6, i64 8, !6, i64 16, !16, i64 24, !16, i64 32}
!99 = !{!98, !6, i64 16}
!100 = !{!98, !16, i64 32}
!101 = !{!102, !25, i64 0}
!102 = !{!"_ZTS20VkImageMemoryBarrier", !25, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !56, i64 24, !56, i64 28, !12, i64 32, !12, i64 36, !6, i64 40, !82, i64 48}
!103 = !{!102, !12, i64 20}
!104 = !{!102, !56, i64 24}
!105 = !{!102, !56, i64 28}
!106 = !{!102, !12, i64 32}
!107 = !{!102, !12, i64 36}
!108 = !{!102, !6, i64 40}
!109 = !{!102, !12, i64 48}
!110 = !{!102, !12, i64 56}
!111 = !{!102, !12, i64 64}
!112 = !{!113, !12, i64 16}
!113 = !{!"_ZTS17VkBufferImageCopy", !16, i64 0, !12, i64 8, !12, i64 12, !114, i64 16, !115, i64 32, !53, i64 44}
!114 = !{!"_ZTS24VkImageSubresourceLayers", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!115 = !{!"_ZTS10VkOffset3D", !12, i64 0, !12, i64 4, !12, i64 8}
!116 = !{!113, !12, i64 28}
!117 = !{!113, !12, i64 44}
!118 = !{!113, !12, i64 48}
!119 = !{!113, !12, i64 52}
!120 = !{!102, !12, i64 16}
!121 = !{!122, !25, i64 0}
!122 = !{!"_ZTS12VkSubmitInfo", !25, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !6, i64 48, !12, i64 56, !6, i64 64}
!123 = !{!122, !12, i64 40}
!124 = !{!122, !6, i64 48}


; 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.VkCommandPoolCreateInfo = type { i32, ptr, i32, i32 }
%struct.VkCommandBufferAllocateInfo = type { i32, ptr, ptr, i32, i32 }
%struct.VkCommandBufferBeginInfo = type { i32, ptr, i32, 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.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.VkSubmitInfo = type { i32, ptr, i32, ptr, ptr, i32, ptr, i32, ptr }

; 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_CreateFontsTexturev() local_unnamed_addr #1 {
  %1 = alloca %struct.VkCommandPoolCreateInfo, align 8
  %2 = alloca %struct.VkCommandBufferAllocateInfo, align 8
  %3 = alloca %struct.VkCommandBufferBeginInfo, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.VkImageCreateInfo, align 8
  %8 = alloca %struct.VkMemoryRequirements, align 8
  %9 = alloca %struct.VkMemoryAllocateInfo, align 8
  %10 = alloca %struct.VkImageViewCreateInfo, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.VkBufferCreateInfo, align 8
  %14 = alloca %struct.VkMemoryRequirements, align 8
  %15 = alloca %struct.VkMemoryAllocateInfo, align 8
  %16 = alloca ptr, align 8
  %17 = alloca [1 x %struct.VkMappedMemoryRange], align 16
  %18 = alloca [1 x %struct.VkImageMemoryBarrier], align 16
  %19 = alloca %struct.VkBufferImageCopy, align 8
  %20 = alloca [1 x %struct.VkImageMemoryBarrier], align 16
  %21 = alloca %struct.VkSubmitInfo, align 8
  %22 = tail call noundef nonnull align 8 dereferenceable(14624) ptr @_ZN5ImGui5GetIOEv()
  %23 = tail call noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav()
  %24 = getelementptr inbounds i8, ptr %23, i64 192
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %.not = icmp eq ptr %25, null
  br i1 %.not, label %26, label %35

26:                                               ; preds = %0
  %27 = getelementptr inbounds i8, ptr %23, i64 184
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  %.not83 = icmp eq ptr %28, null
  br i1 %.not83, label %29, label %35

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %23, i64 176
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %.not84 = icmp eq ptr %31, null
  br i1 %.not84, label %32, label %35

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %23, i64 200
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %.not85 = icmp eq ptr %34, null
  br i1 %.not85, label %39, label %35

35:                                               ; preds = %32, %29, %26, %0
  %36 = getelementptr inbounds i8, ptr %23, i64 32
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %38 = tail call i32 @vkQueueWaitIdle(ptr noundef %37)
  tail call void @_Z36ImGui_ImplVulkan_DestroyFontsTexturev()
  br label %39

39:                                               ; preds = %35, %32
  %40 = getelementptr inbounds i8, ptr %23, i64 208
  %41 = load ptr, ptr %40, align 8, !tbaa !21
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %51

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %1, i8 0, i64 16, i1 false)
  store i32 39, ptr %1, align 8, !tbaa !22
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 2, ptr %44, align 8, !tbaa !25
  %45 = getelementptr inbounds i8, ptr %23, i64 24
  %46 = load i32, ptr %45, align 8, !tbaa !26
  %47 = getelementptr inbounds i8, ptr %1, i64 20
  store i32 %46, ptr %47, align 4, !tbaa !27
  %48 = getelementptr inbounds i8, ptr %23, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !28
  %50 = call i32 @vkCreateCommandPool(ptr noundef %49, ptr noundef nonnull %1, ptr noundef null, ptr noundef nonnull %40)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  %.pre86.pre = load ptr, ptr %40, align 8, !tbaa !21
  br label %51

51:                                               ; preds = %43, %39
  %.pre86 = phi ptr [ %.pre86.pre, %43 ], [ %41, %39 ]
  %52 = getelementptr inbounds i8, ptr %23, i64 216
  %53 = load ptr, ptr %52, align 8, !tbaa !29
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %61

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 0, i64 32, i1 false)
  store i32 40, ptr %2, align 8, !tbaa !30
  %56 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr %.pre86, ptr %56, align 8, !tbaa !33
  %57 = getelementptr inbounds i8, ptr %2, i64 28
  store i32 1, ptr %57, align 4, !tbaa !34
  %58 = getelementptr inbounds i8, ptr %23, i64 16
  %59 = load ptr, ptr %58, align 8, !tbaa !28
  %60 = call i32 @vkAllocateCommandBuffers(ptr noundef %59, ptr noundef nonnull %2, ptr noundef nonnull %52)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %60)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #7
  %.pre = load ptr, ptr %40, align 8, !tbaa !21
  br label %61

61:                                               ; preds = %55, %51
  %62 = phi ptr [ %.pre, %55 ], [ %.pre86, %51 ]
  %63 = getelementptr inbounds i8, ptr %23, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !28
  %65 = call i32 @vkResetCommandPool(ptr noundef %64, ptr noundef %62, i32 noundef 0)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %65)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %3, i8 0, i64 32, i1 false)
  store i32 42, ptr %3, align 8, !tbaa !35
  %66 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 1, ptr %66, align 8, !tbaa !37
  %67 = load ptr, ptr %52, align 8, !tbaa !29
  %68 = call i32 @vkBeginCommandBuffer(ptr noundef %67, ptr noundef nonnull %3)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %68)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %69 = getelementptr inbounds i8, ptr %22, i64 48
  %70 = load ptr, ptr %69, align 8, !tbaa !38
  call void @_ZN11ImFontAtlas18GetTexDataAsRGBA32EPPhPiS2_S2_(ptr noundef nonnull align 8 dereferenceable(1180) %70, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef null)
  %71 = load i32, ptr %5, align 4, !tbaa !45
  %72 = load i32, ptr %6, align 4, !tbaa !45
  %73 = shl i32 %71, 2
  %74 = mul i32 %73, %72
  %75 = sext i32 %74 to i64
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %7) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %7, i8 0, i64 88, i1 false)
  store i32 14, ptr %7, align 8, !tbaa !46
  %76 = getelementptr inbounds i8, ptr %7, i64 20
  store i32 1, ptr %76, align 4, !tbaa !53
  %77 = getelementptr inbounds i8, ptr %7, i64 24
  store i32 37, ptr %77, align 8, !tbaa !54
  %78 = getelementptr inbounds i8, ptr %7, i64 28
  store i32 %71, ptr %78, align 4, !tbaa !55
  %79 = getelementptr inbounds i8, ptr %7, i64 32
  store i32 %72, ptr %79, align 8, !tbaa !56
  %80 = getelementptr inbounds i8, ptr %7, i64 36
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %80, align 4, !tbaa !57
  %81 = getelementptr inbounds i8, ptr %7, i64 56
  store i32 6, ptr %81, align 8, !tbaa !58
  %82 = getelementptr inbounds i8, ptr %7, i64 80
  store i32 0, ptr %82, align 8, !tbaa !59
  %83 = load ptr, ptr %63, align 8, !tbaa !28
  %84 = getelementptr inbounds i8, ptr %23, i64 80
  %85 = load ptr, ptr %84, align 8, !tbaa !60
  %86 = getelementptr inbounds i8, ptr %23, i64 184
  %87 = call i32 @vkCreateImage(ptr noundef %83, ptr noundef nonnull %7, ptr noundef %85, ptr noundef nonnull %86)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %87)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  %88 = load ptr, ptr %63, align 8, !tbaa !28
  %89 = load ptr, ptr %86, align 8, !tbaa !17
  call void @vkGetImageMemoryRequirements(ptr noundef %88, ptr noundef %89, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %9, i8 0, i64 32, i1 false)
  store i32 5, ptr %9, align 8, !tbaa !61
  %90 = load i64, ptr %8, align 8, !tbaa !63
  %91 = getelementptr inbounds i8, ptr %9, i64 16
  store i64 %90, ptr %91, align 8, !tbaa !65
  %92 = getelementptr inbounds i8, ptr %8, i64 16
  %93 = load i32, ptr %92, align 8, !tbaa !66
  %94 = call noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef 1, i32 noundef %93)
  %95 = getelementptr inbounds i8, ptr %9, i64 24
  store i32 %94, ptr %95, align 8, !tbaa !67
  %96 = load ptr, ptr %63, align 8, !tbaa !28
  %97 = load ptr, ptr %84, align 8, !tbaa !60
  %98 = getelementptr inbounds i8, ptr %23, i64 176
  %99 = call i32 @vkAllocateMemory(ptr noundef %96, ptr noundef nonnull %9, ptr noundef %97, ptr noundef nonnull %98)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %99)
  %100 = load ptr, ptr %63, align 8, !tbaa !28
  %101 = load ptr, ptr %86, align 8, !tbaa !17
  %102 = load ptr, ptr %98, align 8, !tbaa !18
  %103 = call i32 @vkBindImageMemory(ptr noundef %100, ptr noundef %101, ptr noundef %102, i64 noundef 0)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %103)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  store i32 15, ptr %10, align 8, !tbaa !68
  %104 = load ptr, ptr %86, align 8, !tbaa !17
  %105 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %104, ptr %105, align 8, !tbaa !74
  %106 = getelementptr inbounds i8, ptr %10, i64 32
  store i32 1, ptr %106, align 8, !tbaa !75
  %107 = getelementptr inbounds i8, ptr %10, i64 36
  store i32 37, ptr %107, align 4, !tbaa !76
  %108 = getelementptr inbounds i8, ptr %10, i64 56
  store i32 1, ptr %108, align 8, !tbaa !77
  %109 = getelementptr inbounds i8, ptr %10, i64 64
  store i32 1, ptr %109, align 8, !tbaa !78
  %110 = getelementptr inbounds i8, ptr %10, i64 72
  store i32 1, ptr %110, align 8, !tbaa !79
  %111 = load ptr, ptr %63, align 8, !tbaa !28
  %112 = load ptr, ptr %84, align 8, !tbaa !60
  %113 = call i32 @vkCreateImageView(ptr noundef %111, ptr noundef nonnull %10, ptr noundef %112, ptr noundef nonnull %24)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %113)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #7
  %114 = getelementptr inbounds i8, ptr %23, i64 168
  %115 = load ptr, ptr %114, align 8, !tbaa !80
  %116 = load ptr, ptr %24, align 8, !tbaa !5
  %117 = call noundef ptr @_Z27ImGui_ImplVulkan_AddTextureP11VkSampler_TP13VkImageView_T13VkImageLayout(ptr noundef %115, ptr noundef %116, i32 noundef 5)
  %118 = getelementptr inbounds i8, ptr %23, i64 200
  store ptr %117, ptr %118, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %13) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %13, i8 0, i64 56, i1 false)
  store i32 12, ptr %13, align 8, !tbaa !81
  %119 = getelementptr inbounds i8, ptr %13, i64 24
  store i64 %75, ptr %119, align 8, !tbaa !83
  %120 = getelementptr inbounds i8, ptr %13, i64 32
  store i32 1, ptr %120, align 8, !tbaa !84
  %121 = load ptr, ptr %63, align 8, !tbaa !28
  %122 = load ptr, ptr %84, align 8, !tbaa !60
  %123 = call i32 @vkCreateBuffer(ptr noundef %121, ptr noundef nonnull %13, ptr noundef %122, ptr noundef nonnull %12)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %123)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  %124 = load ptr, ptr %63, align 8, !tbaa !28
  %125 = load ptr, ptr %12, align 8, !tbaa !85
  call void @vkGetBufferMemoryRequirements(ptr noundef %124, ptr noundef %125, ptr noundef nonnull %14)
  %126 = getelementptr inbounds i8, ptr %23, i64 104
  %127 = load i64, ptr %126, align 8, !tbaa !86
  %128 = getelementptr inbounds i8, ptr %14, i64 8
  %129 = load i64, ptr %128, align 8, !tbaa !87
  %. = call i64 @llvm.umax.i64(i64 %127, i64 %129)
  store i64 %., ptr %126, align 8, !tbaa !86
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %15, i8 0, i64 32, i1 false)
  store i32 5, ptr %15, align 8, !tbaa !61
  %130 = load i64, ptr %14, align 8, !tbaa !63
  %131 = getelementptr inbounds i8, ptr %15, i64 16
  store i64 %130, ptr %131, align 8, !tbaa !65
  %132 = getelementptr inbounds i8, ptr %14, i64 16
  %133 = load i32, ptr %132, align 8, !tbaa !66
  %134 = call noundef i32 @_ZL27ImGui_ImplVulkan_MemoryTypejj(i32 noundef 2, i32 noundef %133)
  %135 = getelementptr inbounds i8, ptr %15, i64 24
  store i32 %134, ptr %135, align 8, !tbaa !67
  %136 = load ptr, ptr %63, align 8, !tbaa !28
  %137 = load ptr, ptr %84, align 8, !tbaa !60
  %138 = call i32 @vkAllocateMemory(ptr noundef %136, ptr noundef nonnull %15, ptr noundef %137, ptr noundef nonnull %11)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %138)
  %139 = load ptr, ptr %63, align 8, !tbaa !28
  %140 = load ptr, ptr %12, align 8, !tbaa !85
  %141 = load ptr, ptr %11, align 8, !tbaa !85
  %142 = call i32 @vkBindBufferMemory(ptr noundef %139, ptr noundef %140, ptr noundef %141, i64 noundef 0)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %142)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  store ptr null, ptr %16, align 8, !tbaa !85
  %143 = load ptr, ptr %63, align 8, !tbaa !28
  %144 = load ptr, ptr %11, align 8, !tbaa !85
  %145 = call i32 @vkMapMemory(ptr noundef %143, ptr noundef %144, i64 noundef 0, i64 noundef %75, i32 noundef 0, ptr noundef nonnull %16)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %145)
  %146 = load ptr, ptr %16, align 8, !tbaa !85
  %147 = load ptr, ptr %4, align 8, !tbaa !85
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %146, ptr align 1 %147, i64 %75, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %17) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %17, i8 0, i64 32, i1 false)
  store i32 6, ptr %17, align 16, !tbaa !88
  %148 = load ptr, ptr %11, align 8, !tbaa !85
  %149 = getelementptr inbounds i8, ptr %17, i64 16
  store ptr %148, ptr %149, align 16, !tbaa !90
  %150 = getelementptr inbounds i8, ptr %17, i64 32
  store i64 %75, ptr %150, align 16, !tbaa !91
  %151 = load ptr, ptr %63, align 8, !tbaa !28
  %152 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %151, i32 noundef 1, ptr noundef nonnull %17)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %152)
  %153 = load ptr, ptr %63, align 8, !tbaa !28
  %154 = load ptr, ptr %11, align 8, !tbaa !85
  call void @vkUnmapMemory(ptr noundef %153, ptr noundef %154)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %18) #7
  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 !92
  %155 = getelementptr inbounds i8, ptr %18, i64 20
  store i32 4096, ptr %155, align 4, !tbaa !94
  %156 = getelementptr inbounds i8, ptr %18, i64 28
  store i32 7, ptr %156, align 4, !tbaa !95
  %157 = getelementptr inbounds i8, ptr %18, i64 32
  store i32 -1, ptr %157, align 16, !tbaa !96
  %158 = getelementptr inbounds i8, ptr %18, i64 36
  store i32 -1, ptr %158, align 4, !tbaa !97
  %159 = load ptr, ptr %86, align 8, !tbaa !17
  %160 = getelementptr inbounds i8, ptr %18, i64 40
  store ptr %159, ptr %160, align 8, !tbaa !98
  %161 = getelementptr inbounds i8, ptr %18, i64 48
  store i32 1, ptr %161, align 16, !tbaa !99
  %162 = getelementptr inbounds i8, ptr %18, i64 56
  store i32 1, ptr %162, align 8, !tbaa !100
  %163 = getelementptr inbounds i8, ptr %18, i64 64
  store i32 1, ptr %163, align 16, !tbaa !101
  %164 = load ptr, ptr %52, align 8, !tbaa !29
  call void @vkCmdPipelineBarrier(ptr noundef %164, 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 %18)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %19) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %19, i8 0, i64 48, i1 false)
  %165 = getelementptr inbounds i8, ptr %19, i64 16
  store i32 1, ptr %165, align 8, !tbaa !102
  %166 = getelementptr inbounds i8, ptr %19, i64 28
  store i32 1, ptr %166, align 4, !tbaa !106
  %167 = load i32, ptr %5, align 4, !tbaa !45
  %168 = getelementptr inbounds i8, ptr %19, i64 44
  store i32 %167, ptr %168, align 4, !tbaa !107
  %169 = load i32, ptr %6, align 4, !tbaa !45
  %170 = getelementptr inbounds i8, ptr %19, i64 48
  store i32 %169, ptr %170, align 8, !tbaa !108
  %171 = getelementptr inbounds i8, ptr %19, i64 52
  store i32 1, ptr %171, align 4, !tbaa !109
  %172 = load ptr, ptr %52, align 8, !tbaa !29
  %173 = load ptr, ptr %12, align 8, !tbaa !85
  %174 = load ptr, ptr %86, align 8, !tbaa !17
  call void @vkCmdCopyBufferToImage(ptr noundef %172, ptr noundef %173, ptr noundef %174, i32 noundef 7, i32 noundef 1, ptr noundef nonnull %19)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %20) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(72) %20, i8 0, i64 72, i1 false)
  store i32 45, ptr %20, align 16, !tbaa !92
  %175 = getelementptr inbounds i8, ptr %20, i64 16
  store <4 x i32> <i32 4096, i32 32, i32 7, i32 5>, ptr %175, align 16, !tbaa !57
  %176 = getelementptr inbounds i8, ptr %20, i64 32
  store i32 -1, ptr %176, align 16, !tbaa !96
  %177 = getelementptr inbounds i8, ptr %20, i64 36
  store i32 -1, ptr %177, align 4, !tbaa !97
  %178 = load ptr, ptr %86, align 8, !tbaa !17
  %179 = getelementptr inbounds i8, ptr %20, i64 40
  store ptr %178, ptr %179, align 8, !tbaa !98
  %180 = getelementptr inbounds i8, ptr %20, i64 48
  store i32 1, ptr %180, align 16, !tbaa !99
  %181 = getelementptr inbounds i8, ptr %20, i64 56
  store i32 1, ptr %181, align 8, !tbaa !100
  %182 = getelementptr inbounds i8, ptr %20, i64 64
  store i32 1, ptr %182, align 16, !tbaa !101
  %183 = load ptr, ptr %52, align 8, !tbaa !29
  call void @vkCmdPipelineBarrier(ptr noundef %183, 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 %20)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %18) #7
  %184 = load ptr, ptr %69, align 8, !tbaa !38
  %185 = load ptr, ptr %118, align 8, !tbaa !19
  call void @_ZN11ImFontAtlas8SetTexIDEPv(ptr noundef nonnull align 8 dereferenceable(1180) %184, ptr noundef %185)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %21) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %21, i8 0, i64 72, i1 false)
  store i32 4, ptr %21, align 8, !tbaa !110
  %186 = getelementptr inbounds i8, ptr %21, i64 40
  store i32 1, ptr %186, align 8, !tbaa !112
  %187 = getelementptr inbounds i8, ptr %21, i64 48
  store ptr %52, ptr %187, align 8, !tbaa !113
  %188 = load ptr, ptr %52, align 8, !tbaa !29
  %189 = call i32 @vkEndCommandBuffer(ptr noundef %188)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %189)
  %190 = getelementptr inbounds i8, ptr %23, i64 32
  %191 = load ptr, ptr %190, align 8, !tbaa !20
  %192 = call i32 @vkQueueSubmit(ptr noundef %191, i32 noundef 1, ptr noundef nonnull %21, ptr noundef null)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %192)
  %193 = load ptr, ptr %63, align 8, !tbaa !28
  %194 = call i32 @vkDeviceWaitIdle(ptr noundef %193)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %194)
  %195 = load ptr, ptr %63, align 8, !tbaa !28
  %196 = load ptr, ptr %12, align 8, !tbaa !85
  %197 = load ptr, ptr %84, align 8, !tbaa !60
  call void @vkDestroyBuffer(ptr noundef %195, ptr noundef %196, ptr noundef %197)
  %198 = load ptr, ptr %63, align 8, !tbaa !28
  %199 = load ptr, ptr %11, align 8, !tbaa !85
  %200 = load ptr, ptr %84, align 8, !tbaa !60
  call void @vkFreeMemory(ptr noundef %198, ptr noundef %199, ptr noundef %200)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  ret i1 true
}

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

declare i32 @vkQueueWaitIdle(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z36ImGui_ImplVulkan_DestroyFontsTexturev() local_unnamed_addr #1

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

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

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

declare i32 @vkBeginCommandBuffer(ptr noundef, ptr noundef) 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

declare i32 @vkEndCommandBuffer(ptr noundef) local_unnamed_addr #3

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

declare i32 @vkDeviceWaitIdle(ptr noundef) local_unnamed_addr #3

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

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

; 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, !8, i64 192}
!6 = !{!"_ZTS21ImGui_ImplVulkan_Data", !7, i64 0, !8, i64 96, !15, i64 104, !11, i64 112, !8, i64 120, !8, i64 128, !8, i64 136, !11, i64 144, !8, i64 152, !8, i64 160, !8, i64 168, !8, i64 176, !8, i64 184, !8, i64 192, !8, i64 200, !8, i64 208, !8, i64 216, !16, i64 224}
!7 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !8, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !12, i64 68, !13, i64 72, !14, i64 76, !8, i64 80, !8, i64 88}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS21VkSampleCountFlagBits", !9, i64 0}
!13 = !{!"bool", !9, i64 0}
!14 = !{!"_ZTS8VkFormat", !9, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!"_ZTS37ImGui_ImplVulkanH_WindowRenderBuffers", !11, i64 0, !11, i64 4, !8, i64 8}
!17 = !{!6, !8, i64 184}
!18 = !{!6, !8, i64 176}
!19 = !{!6, !8, i64 200}
!20 = !{!7, !8, i64 32}
!21 = !{!6, !8, i64 208}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTS23VkCommandPoolCreateInfo", !24, i64 0, !8, i64 8, !11, i64 16, !11, i64 20}
!24 = !{!"_ZTS15VkStructureType", !9, i64 0}
!25 = !{!23, !11, i64 16}
!26 = !{!7, !11, i64 24}
!27 = !{!23, !11, i64 20}
!28 = !{!7, !8, i64 16}
!29 = !{!6, !8, i64 216}
!30 = !{!31, !24, i64 0}
!31 = !{!"_ZTS27VkCommandBufferAllocateInfo", !24, i64 0, !8, i64 8, !8, i64 16, !32, i64 24, !11, i64 28}
!32 = !{!"_ZTS20VkCommandBufferLevel", !9, i64 0}
!33 = !{!31, !8, i64 16}
!34 = !{!31, !11, i64 28}
!35 = !{!36, !24, i64 0}
!36 = !{!"_ZTS24VkCommandBufferBeginInfo", !24, i64 0, !8, i64 8, !11, i64 16, !8, i64 24}
!37 = !{!36, !11, i64 16}
!38 = !{!39, !8, i64 48}
!39 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !40, i64 8, !41, i64 16, !41, i64 20, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !41, i64 56, !13, i64 60, !8, i64 64, !40, i64 72, !13, i64 80, !13, i64 81, !13, i64 82, !13, i64 83, !13, i64 84, !13, i64 85, !13, i64 86, !13, i64 87, !13, i64 88, !13, i64 89, !13, i64 90, !13, i64 91, !13, i64 92, !13, i64 93, !13, i64 94, !13, i64 95, !41, i64 96, !41, i64 100, !41, i64 104, !41, i64 108, !41, i64 112, !41, i64 116, !13, i64 120, !13, i64 121, !13, i64 122, !13, i64 123, !8, i64 128, !8, i64 136, !8, i64 144, !8, i64 152, !8, i64 160, !8, i64 168, !8, i64 176, !8, i64 184, !8, i64 192, !42, i64 200, !13, i64 202, !13, i64 203, !13, i64 204, !13, i64 205, !13, i64 206, !13, i64 207, !13, i64 208, !41, i64 212, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !40, i64 232, !9, i64 240, !9, i64 2904, !9, i64 3572, !8, i64 3640, !8, i64 3648, !40, i64 3656, !9, i64 3664, !41, i64 3672, !41, i64 3676, !43, i64 3680, !11, i64 3684, !13, i64 3688, !13, i64 3689, !13, i64 3690, !13, i64 3691, !11, i64 3692, !9, i64 3696, !13, i64 14352, !40, i64 14356, !9, i64 14364, !9, i64 14408, !9, i64 14448, !9, i64 14453, !9, i64 14458, !9, i64 14468, !9, i64 14478, !9, i64 14483, !9, i64 14488, !13, i64 14493, !9, i64 14496, !9, i64 14516, !9, i64 14536, !9, i64 14576, !41, i64 14596, !13, i64 14600, !13, i64 14601, !9, i64 14602, !13, i64 14603, !42, i64 14604, !44, i64 14608}
!40 = !{!"_ZTS6ImVec2", !41, i64 0, !41, i64 4}
!41 = !{!"float", !9, i64 0}
!42 = !{!"short", !9, i64 0}
!43 = !{!"_ZTS16ImGuiMouseSource", !9, i64 0}
!44 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !8, i64 8}
!45 = !{!11, !11, i64 0}
!46 = !{!47, !24, i64 0}
!47 = !{!"_ZTS17VkImageCreateInfo", !24, i64 0, !8, i64 8, !11, i64 16, !48, i64 20, !14, i64 24, !49, i64 28, !11, i64 40, !11, i64 44, !12, i64 48, !50, i64 52, !11, i64 56, !51, i64 60, !11, i64 64, !8, i64 72, !52, i64 80}
!48 = !{!"_ZTS11VkImageType", !9, i64 0}
!49 = !{!"_ZTS10VkExtent3D", !11, i64 0, !11, i64 4, !11, i64 8}
!50 = !{!"_ZTS13VkImageTiling", !9, i64 0}
!51 = !{!"_ZTS13VkSharingMode", !9, i64 0}
!52 = !{!"_ZTS13VkImageLayout", !9, i64 0}
!53 = !{!47, !48, i64 20}
!54 = !{!47, !14, i64 24}
!55 = !{!47, !11, i64 28}
!56 = !{!47, !11, i64 32}
!57 = !{!9, !9, i64 0}
!58 = !{!47, !11, i64 56}
!59 = !{!47, !52, i64 80}
!60 = !{!7, !8, i64 80}
!61 = !{!62, !24, i64 0}
!62 = !{!"_ZTS20VkMemoryAllocateInfo", !24, i64 0, !8, i64 8, !15, i64 16, !11, i64 24}
!63 = !{!64, !15, i64 0}
!64 = !{!"_ZTS20VkMemoryRequirements", !15, i64 0, !15, i64 8, !11, i64 16}
!65 = !{!62, !15, i64 16}
!66 = !{!64, !11, i64 16}
!67 = !{!62, !11, i64 24}
!68 = !{!69, !24, i64 0}
!69 = !{!"_ZTS21VkImageViewCreateInfo", !24, i64 0, !8, i64 8, !11, i64 16, !8, i64 24, !70, i64 32, !14, i64 36, !71, i64 40, !73, i64 56}
!70 = !{!"_ZTS15VkImageViewType", !9, i64 0}
!71 = !{!"_ZTS18VkComponentMapping", !72, i64 0, !72, i64 4, !72, i64 8, !72, i64 12}
!72 = !{!"_ZTS18VkComponentSwizzle", !9, i64 0}
!73 = !{!"_ZTS23VkImageSubresourceRange", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!74 = !{!69, !8, i64 24}
!75 = !{!69, !70, i64 32}
!76 = !{!69, !14, i64 36}
!77 = !{!69, !11, i64 56}
!78 = !{!69, !11, i64 64}
!79 = !{!69, !11, i64 72}
!80 = !{!6, !8, i64 168}
!81 = !{!82, !24, i64 0}
!82 = !{!"_ZTS18VkBufferCreateInfo", !24, i64 0, !8, i64 8, !11, i64 16, !15, i64 24, !11, i64 32, !51, i64 36, !11, i64 40, !8, i64 48}
!83 = !{!82, !15, i64 24}
!84 = !{!82, !11, i64 32}
!85 = !{!8, !8, i64 0}
!86 = !{!6, !15, i64 104}
!87 = !{!64, !15, i64 8}
!88 = !{!89, !24, i64 0}
!89 = !{!"_ZTS19VkMappedMemoryRange", !24, i64 0, !8, i64 8, !8, i64 16, !15, i64 24, !15, i64 32}
!90 = !{!89, !8, i64 16}
!91 = !{!89, !15, i64 32}
!92 = !{!93, !24, i64 0}
!93 = !{!"_ZTS20VkImageMemoryBarrier", !24, i64 0, !8, i64 8, !11, i64 16, !11, i64 20, !52, i64 24, !52, i64 28, !11, i64 32, !11, i64 36, !8, i64 40, !73, i64 48}
!94 = !{!93, !11, i64 20}
!95 = !{!93, !52, i64 28}
!96 = !{!93, !11, i64 32}
!97 = !{!93, !11, i64 36}
!98 = !{!93, !8, i64 40}
!99 = !{!93, !11, i64 48}
!100 = !{!93, !11, i64 56}
!101 = !{!93, !11, i64 64}
!102 = !{!103, !11, i64 16}
!103 = !{!"_ZTS17VkBufferImageCopy", !15, i64 0, !11, i64 8, !11, i64 12, !104, i64 16, !105, i64 32, !49, i64 44}
!104 = !{!"_ZTS24VkImageSubresourceLayers", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!105 = !{!"_ZTS10VkOffset3D", !11, i64 0, !11, i64 4, !11, i64 8}
!106 = !{!103, !11, i64 28}
!107 = !{!103, !11, i64 44}
!108 = !{!103, !11, i64 48}
!109 = !{!103, !11, i64 52}
!110 = !{!111, !24, i64 0}
!111 = !{!"_ZTS12VkSubmitInfo", !24, i64 0, !8, i64 8, !11, i64 16, !8, i64 24, !8, i64 32, !11, i64 40, !8, i64 48, !11, i64 56, !8, i64 64}
!112 = !{!111, !11, i64 40}
!113 = !{!111, !8, i64 48}


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