; LLVM IR from khushmmehta/Scorch-V :: src/vendor/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.VkImageSubresourceRange = type { i32, i32, i32, i32, i32 }
%struct.VkSwapchainCreateInfoKHR = type { i32, ptr, i32, ptr, i32, i32, i32, %struct.VkExtent2D, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr }
%struct.VkExtent2D = type { i32, i32 }
%struct.VkSurfaceCapabilitiesKHR = type { i32, i32, %struct.VkExtent2D, %struct.VkExtent2D, %struct.VkExtent2D, i32, i32, i32, i32, i32 }
%struct.VkAttachmentDescription = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.VkAttachmentReference = type { i32, i32 }
%struct.VkSubpassDescription = type { i32, i32, i32, ptr, i32, ptr, ptr, ptr, i32, ptr }
%struct.VkSubpassDependency = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.VkRenderPassCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr, i32, ptr }
%struct.VkImageViewCreateInfo = type { i32, ptr, i32, ptr, i32, i32, %struct.VkComponentMapping, %struct.VkImageSubresourceRange }
%struct.VkComponentMapping = type { i32, i32, i32, i32 }
%struct.VkFramebufferCreateInfo = type { i32, ptr, i32, ptr, i32, ptr, i32, i32, i32 }
%struct.ImGui_ImplVulkanH_Window = type { i32, i32, ptr, ptr, %struct.VkSurfaceFormatKHR, i32, ptr, ptr, i8, i8, %union.VkClearValue, i32, i32, i32, ptr, ptr }
%struct.VkSurfaceFormatKHR = type { i32, i32 }
%union.VkClearValue = type { %union.VkClearColorValue }
%union.VkClearColorValue = type { [4 x float] }
%struct.ImGui_ImplVulkanH_Frame = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ImGui_ImplVulkanH_FrameSemaphores = type { ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij = external hidden unnamed_addr constant [152 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [22 x i8], align 1
@__const._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij.image_range = external hidden unnamed_addr constant %struct.VkImageSubresourceRange, align 4

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

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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) #2

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

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

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

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

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

declare i32 @vkDeviceWaitIdle(ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z49ImGui_ImplVulkanH_GetMinImageCountFromPresentMode16VkPresentModeKHR(i32 noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #4 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.VkSwapchainCreateInfoKHR, align 8
  %19 = alloca %struct.VkSurfaceCapabilitiesKHR, align 4
  %20 = alloca [16 x ptr], align 16
  %21 = alloca i32, align 4
  %22 = alloca %struct.VkAttachmentDescription, align 4
  %23 = alloca %struct.VkAttachmentReference, align 4
  %24 = alloca %struct.VkSubpassDescription, align 8
  %25 = alloca %struct.VkSubpassDependency, align 4
  %26 = alloca %struct.VkRenderPassCreateInfo, align 8
  %27 = alloca %struct.VkImageViewCreateInfo, align 8
  %28 = alloca %struct.VkImageSubresourceRange, align 4
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca [1 x ptr], align 8
  %32 = alloca %struct.VkFramebufferCreateInfo, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  store ptr %37, ptr %16, align 8, !tbaa !5
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %38, i32 0, i32 2
  store ptr null, ptr %39, align 8, !tbaa !11
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = call i32 @vkDeviceWaitIdle(ptr noundef %40)
  store i32 %41, ptr %15, align 4, !tbaa !18
  %42 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %42)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %67, %7
  %44 = load i32, ptr %17, align 4, !tbaa !9
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %45, i32 0, i32 12
  %47 = load i32, ptr %46, align 8, !tbaa !20
  %48 = icmp ult i32 %44, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %70

50:                                               ; preds = %43
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %52, i32 0, i32 14
  %54 = load ptr, ptr %53, align 8, !tbaa !21
  %55 = load i32, ptr %17, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %54, i64 %56
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_Z30ImGui_ImplVulkanH_DestroyFrameP10VkDevice_TP23ImGui_ImplVulkanH_FramePK21VkAllocationCallbacks(ptr noundef %51, ptr noundef %57, ptr noundef %58)
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %60, i32 0, i32 15
  %62 = load ptr, ptr %61, align 8, !tbaa !22
  %63 = load i32, ptr %17, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameSemaphores, ptr %62, i64 %64
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_Z40ImGui_ImplVulkanH_DestroyFrameSemaphoresP10VkDevice_TP33ImGui_ImplVulkanH_FrameSemaphoresPK21VkAllocationCallbacks(ptr noundef %59, ptr noundef %65, ptr noundef %66)
  br label %67

67:                                               ; preds = %50
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %17, align 4, !tbaa !9
  br label %43, !llvm.loop !23

70:                                               ; preds = %49
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %71, i32 0, i32 14
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %73)
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %74, i32 0, i32 15
  %76 = load ptr, ptr %75, align 8, !tbaa !22
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %76)
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %77, i32 0, i32 14
  store ptr null, ptr %78, align 8, !tbaa !21
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %79, i32 0, i32 15
  store ptr null, ptr %80, align 8, !tbaa !22
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %81, i32 0, i32 12
  store i32 0, ptr %82, align 8, !tbaa !20
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %83, i32 0, i32 6
  %85 = load ptr, ptr %84, align 8, !tbaa !25
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %93

87:                                               ; preds = %70
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %89, i32 0, i32 6
  %91 = load ptr, ptr %90, align 8, !tbaa !25
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  call void @vkDestroyRenderPass(ptr noundef %88, ptr noundef %91, ptr noundef %92)
  br label %93

93:                                               ; preds = %87, %70
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %94, i32 0, i32 7
  %96 = load ptr, ptr %95, align 8, !tbaa !26
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %104

98:                                               ; preds = %93
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %100, i32 0, i32 7
  %102 = load ptr, ptr %101, align 8, !tbaa !26
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  call void @vkDestroyPipeline(ptr noundef %99, ptr noundef %102, ptr noundef %103)
  br label %104

104:                                              ; preds = %98, %93
  %105 = load i32, ptr %14, align 4, !tbaa !9
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %112

107:                                              ; preds = %104
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %108, i32 0, i32 5
  %110 = load i32, ptr %109, align 8, !tbaa !27
  %111 = call noundef i32 @_Z49ImGui_ImplVulkanH_GetMinImageCountFromPresentMode16VkPresentModeKHR(i32 noundef %110)
  store i32 %111, ptr %14, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %107, %104
  call void @llvm.lifetime.start.p0(i64 104, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 104, i1 false)
  %113 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 0
  store i32 1000001000, ptr %113, align 8, !tbaa !28
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %114, i32 0, i32 3
  %116 = load ptr, ptr %115, align 8, !tbaa !35
  %117 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 3
  store ptr %116, ptr %117, align 8, !tbaa !36
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  store i32 %118, ptr %119, align 8, !tbaa !37
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %120, i32 0, i32 4
  %122 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %121, i32 0, i32 0
  %123 = load i32, ptr %122, align 8, !tbaa !38
  %124 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 5
  store i32 %123, ptr %124, align 4, !tbaa !39
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %125, i32 0, i32 4
  %127 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !40
  %129 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 6
  store i32 %128, ptr %129, align 8, !tbaa !41
  %130 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 8
  store i32 1, ptr %130, align 4, !tbaa !42
  %131 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 9
  store i32 16, ptr %131, align 8, !tbaa !43
  %132 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 10
  store i32 0, ptr %132, align 4, !tbaa !44
  %133 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 13
  store i32 1, ptr %133, align 8, !tbaa !45
  %134 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 14
  store i32 1, ptr %134, align 4, !tbaa !46
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %135, i32 0, i32 5
  %137 = load i32, ptr %136, align 8, !tbaa !27
  %138 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 15
  store i32 %137, ptr %138, align 8, !tbaa !47
  %139 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 16
  store i32 1, ptr %139, align 4, !tbaa !48
  %140 = load ptr, ptr %16, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 17
  store ptr %140, ptr %141, align 8, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 52, ptr %19) #7
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %143, i32 0, i32 3
  %145 = load ptr, ptr %144, align 8, !tbaa !35
  %146 = call i32 @vkGetPhysicalDeviceSurfaceCapabilitiesKHR(ptr noundef %142, ptr noundef %145, ptr noundef %19)
  store i32 %146, ptr %15, align 4, !tbaa !18
  %147 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %147)
  %148 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  %149 = load i32, ptr %148, align 8, !tbaa !37
  %150 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 0
  %151 = load i32, ptr %150, align 4, !tbaa !50
  %152 = icmp ult i32 %149, %151
  br i1 %152, label %153, label %157

153:                                              ; preds = %112
  %154 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 0
  %155 = load i32, ptr %154, align 4, !tbaa !50
  %156 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  store i32 %155, ptr %156, align 8, !tbaa !37
  br label %172

157:                                              ; preds = %112
  %158 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 1
  %159 = load i32, ptr %158, align 4, !tbaa !52
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %171

161:                                              ; preds = %157
  %162 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  %163 = load i32, ptr %162, align 8, !tbaa !37
  %164 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 1
  %165 = load i32, ptr %164, align 4, !tbaa !52
  %166 = icmp ugt i32 %163, %165
  br i1 %166, label %167, label %171

167:                                              ; preds = %161
  %168 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 1
  %169 = load i32, ptr %168, align 4, !tbaa !52
  %170 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 4
  store i32 %169, ptr %170, align 8, !tbaa !37
  br label %171

171:                                              ; preds = %167, %161, %157
  br label %172

172:                                              ; preds = %171, %153
  %173 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 2
  %174 = getelementptr inbounds %struct.VkExtent2D, ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 4, !tbaa !53
  %176 = icmp eq i32 %175, -1
  br i1 %176, label %177, label %188

177:                                              ; preds = %172
  %178 = load i32, ptr %12, align 4, !tbaa !9
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %179, i32 0, i32 0
  store i32 %178, ptr %180, align 8, !tbaa !54
  %181 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 7
  %182 = getelementptr inbounds %struct.VkExtent2D, ptr %181, i32 0, i32 0
  store i32 %178, ptr %182, align 4, !tbaa !55
  %183 = load i32, ptr %13, align 4, !tbaa !9
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %184, i32 0, i32 1
  store i32 %183, ptr %185, align 4, !tbaa !56
  %186 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 7
  %187 = getelementptr inbounds %struct.VkExtent2D, ptr %186, i32 0, i32 1
  store i32 %183, ptr %187, align 4, !tbaa !57
  br label %203

188:                                              ; preds = %172
  %189 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 2
  %190 = getelementptr inbounds %struct.VkExtent2D, ptr %189, i32 0, i32 0
  %191 = load i32, ptr %190, align 4, !tbaa !53
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %192, i32 0, i32 0
  store i32 %191, ptr %193, align 8, !tbaa !54
  %194 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 7
  %195 = getelementptr inbounds %struct.VkExtent2D, ptr %194, i32 0, i32 0
  store i32 %191, ptr %195, align 4, !tbaa !55
  %196 = getelementptr inbounds %struct.VkSurfaceCapabilitiesKHR, ptr %19, i32 0, i32 2
  %197 = getelementptr inbounds %struct.VkExtent2D, ptr %196, i32 0, i32 1
  %198 = load i32, ptr %197, align 4, !tbaa !58
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %199, i32 0, i32 1
  store i32 %198, ptr %200, align 4, !tbaa !56
  %201 = getelementptr inbounds %struct.VkSwapchainCreateInfoKHR, ptr %18, i32 0, i32 7
  %202 = getelementptr inbounds %struct.VkExtent2D, ptr %201, i32 0, i32 1
  store i32 %198, ptr %202, align 4, !tbaa !57
  br label %203

203:                                              ; preds = %188, %177
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %206, i32 0, i32 2
  %208 = call i32 @vkCreateSwapchainKHR(ptr noundef %204, ptr noundef %18, ptr noundef %205, ptr noundef %207)
  store i32 %208, ptr %15, align 4, !tbaa !18
  %209 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %209)
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %211, i32 0, i32 2
  %213 = load ptr, ptr %212, align 8, !tbaa !11
  %214 = load ptr, ptr %10, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %214, i32 0, i32 12
  %216 = call i32 @vkGetSwapchainImagesKHR(ptr noundef %210, ptr noundef %213, ptr noundef %215, ptr noundef null)
  store i32 %216, ptr %15, align 4, !tbaa !18
  %217 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %217)
  call void @llvm.lifetime.start.p0(i64 128, ptr %20) #7
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 128, i1 false)
  %218 = load ptr, ptr %10, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %218, i32 0, i32 12
  %220 = load i32, ptr %219, align 8, !tbaa !20
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = icmp uge i32 %220, %221
  br i1 %222, label %223, label %224

223:                                              ; preds = %203
  br label %226

224:                                              ; preds = %203
  call void @__assert_fail(ptr noundef @.str.31, ptr noundef @.str.1, i32 noundef 1446, ptr noundef @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

225:                                              ; No predecessors!
  br label %226

226:                                              ; preds = %225, %223
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %227, i32 0, i32 12
  %229 = load i32, ptr %228, align 8, !tbaa !20
  %230 = icmp ult i32 %229, 16
  br i1 %230, label %231, label %232

231:                                              ; preds = %226
  br label %234

232:                                              ; preds = %226
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.1, i32 noundef 1447, ptr noundef @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

233:                                              ; No predecessors!
  br label %234

234:                                              ; preds = %233, %231
  %235 = load ptr, ptr %9, align 8, !tbaa !5
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %236, i32 0, i32 2
  %238 = load ptr, ptr %237, align 8, !tbaa !11
  %239 = load ptr, ptr %10, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %239, i32 0, i32 12
  %241 = getelementptr inbounds [16 x ptr], ptr %20, i64 0, i64 0
  %242 = call i32 @vkGetSwapchainImagesKHR(ptr noundef %235, ptr noundef %238, ptr noundef %240, ptr noundef %241)
  store i32 %242, ptr %15, align 4, !tbaa !18
  %243 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %243)
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %244, i32 0, i32 14
  %246 = load ptr, ptr %245, align 8, !tbaa !21
  %247 = icmp eq ptr %246, null
  br i1 %247, label %248, label %249

248:                                              ; preds = %234
  br label %251

249:                                              ; preds = %234
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.1, i32 noundef 1451, ptr noundef @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

250:                                              ; No predecessors!
  br label %251

251:                                              ; preds = %250, %248
  %252 = load ptr, ptr %10, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %252, i32 0, i32 12
  %254 = load i32, ptr %253, align 8, !tbaa !20
  %255 = zext i32 %254 to i64
  %256 = mul i64 48, %255
  %257 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %256)
  %258 = load ptr, ptr %10, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %258, i32 0, i32 14
  store ptr %257, ptr %259, align 8, !tbaa !21
  %260 = load ptr, ptr %10, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %260, i32 0, i32 12
  %262 = load i32, ptr %261, align 8, !tbaa !20
  %263 = zext i32 %262 to i64
  %264 = mul i64 16, %263
  %265 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %264)
  %266 = load ptr, ptr %10, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %266, i32 0, i32 15
  store ptr %265, ptr %267, align 8, !tbaa !22
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %268, i32 0, i32 14
  %270 = load ptr, ptr %269, align 8, !tbaa !21
  %271 = load ptr, ptr %10, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %271, i32 0, i32 12
  %273 = load i32, ptr %272, align 8, !tbaa !20
  %274 = zext i32 %273 to i64
  %275 = mul i64 48, %274
  call void @llvm.memset.p0.i64(ptr align 8 %270, i8 0, i64 %275, i1 false)
  %276 = load ptr, ptr %10, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %276, i32 0, i32 15
  %278 = load ptr, ptr %277, align 8, !tbaa !22
  %279 = load ptr, ptr %10, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %279, i32 0, i32 12
  %281 = load i32, ptr %280, align 8, !tbaa !20
  %282 = zext i32 %281 to i64
  %283 = mul i64 16, %282
  call void @llvm.memset.p0.i64(ptr align 8 %278, i8 0, i64 %283, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %284

284:                                              ; preds = %303, %251
  %285 = load i32, ptr %21, align 4, !tbaa !9
  %286 = load ptr, ptr %10, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %286, i32 0, i32 12
  %288 = load i32, ptr %287, align 8, !tbaa !20
  %289 = icmp ult i32 %285, %288
  br i1 %289, label %291, label %290

290:                                              ; preds = %284
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %306

291:                                              ; preds = %284
  %292 = load i32, ptr %21, align 4, !tbaa !9
  %293 = zext i32 %292 to i64
  %294 = getelementptr inbounds [16 x ptr], ptr %20, i64 0, i64 %293
  %295 = load ptr, ptr %294, align 8, !tbaa !5
  %296 = load ptr, ptr %10, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %296, i32 0, i32 14
  %298 = load ptr, ptr %297, align 8, !tbaa !21
  %299 = load i32, ptr %21, align 4, !tbaa !9
  %300 = zext i32 %299 to i64
  %301 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %298, i64 %300
  %302 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %301, i32 0, i32 3
  store ptr %295, ptr %302, align 8, !tbaa !59
  br label %303

303:                                              ; preds = %291
  %304 = load i32, ptr %21, align 4, !tbaa !9
  %305 = add i32 %304, 1
  store i32 %305, ptr %21, align 4, !tbaa !9
  br label %284, !llvm.loop !61

306:                                              ; preds = %290
  call void @llvm.lifetime.end.p0(i64 128, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 52, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %18) #7
  %307 = load ptr, ptr %16, align 8, !tbaa !5
  %308 = icmp ne ptr %307, null
  br i1 %308, label %309, label %313

309:                                              ; preds = %306
  %310 = load ptr, ptr %9, align 8, !tbaa !5
  %311 = load ptr, ptr %16, align 8, !tbaa !5
  %312 = load ptr, ptr %11, align 8, !tbaa !5
  call void @vkDestroySwapchainKHR(ptr noundef %310, ptr noundef %311, ptr noundef %312)
  br label %313

313:                                              ; preds = %309, %306
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %314, i32 0, i32 8
  %316 = load i8, ptr %315, align 8, !tbaa !62, !range !63, !noundef !64
  %317 = trunc i8 %316 to i1
  %318 = zext i1 %317 to i32
  %319 = icmp eq i32 %318, 0
  br i1 %319, label %320, label %363

320:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 36, ptr %22) #7
  call void @llvm.memset.p0.i64(ptr align 4 %22, i8 0, i64 36, i1 false)
  %321 = load ptr, ptr %10, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %321, i32 0, i32 4
  %323 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %322, i32 0, i32 0
  %324 = load i32, ptr %323, align 8, !tbaa !38
  %325 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 1
  store i32 %324, ptr %325, align 4, !tbaa !65
  %326 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 2
  store i32 1, ptr %326, align 4, !tbaa !71
  %327 = load ptr, ptr %10, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %327, i32 0, i32 9
  %329 = load i8, ptr %328, align 1, !tbaa !72, !range !63, !noundef !64
  %330 = trunc i8 %329 to i1
  %331 = zext i1 %330 to i64
  %332 = select i1 %330, i32 1, i32 2
  %333 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 3
  store i32 %332, ptr %333, align 4, !tbaa !73
  %334 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 4
  store i32 0, ptr %334, align 4, !tbaa !74
  %335 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 5
  store i32 2, ptr %335, align 4, !tbaa !75
  %336 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 6
  store i32 1, ptr %336, align 4, !tbaa !76
  %337 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 7
  store i32 0, ptr %337, align 4, !tbaa !77
  %338 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 8
  store i32 1000001002, ptr %338, align 4, !tbaa !78
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.memset.p0.i64(ptr align 4 %23, i8 0, i64 8, i1 false)
  %339 = getelementptr inbounds %struct.VkAttachmentReference, ptr %23, i32 0, i32 0
  store i32 0, ptr %339, align 4, !tbaa !79
  %340 = getelementptr inbounds %struct.VkAttachmentReference, ptr %23, i32 0, i32 1
  store i32 2, ptr %340, align 4, !tbaa !81
  call void @llvm.lifetime.start.p0(i64 72, ptr %24) #7
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 72, i1 false)
  %341 = getelementptr inbounds %struct.VkSubpassDescription, ptr %24, i32 0, i32 1
  store i32 0, ptr %341, align 4, !tbaa !82
  %342 = getelementptr inbounds %struct.VkSubpassDescription, ptr %24, i32 0, i32 4
  store i32 1, ptr %342, align 8, !tbaa !85
  %343 = getelementptr inbounds %struct.VkSubpassDescription, ptr %24, i32 0, i32 5
  store ptr %23, ptr %343, align 8, !tbaa !86
  call void @llvm.lifetime.start.p0(i64 28, ptr %25) #7
  call void @llvm.memset.p0.i64(ptr align 4 %25, i8 0, i64 28, i1 false)
  %344 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 0
  store i32 -1, ptr %344, align 4, !tbaa !87
  %345 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 1
  store i32 0, ptr %345, align 4, !tbaa !89
  %346 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 2
  store i32 1024, ptr %346, align 4, !tbaa !90
  %347 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 3
  store i32 1024, ptr %347, align 4, !tbaa !91
  %348 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 4
  store i32 0, ptr %348, align 4, !tbaa !92
  %349 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 5
  store i32 256, ptr %349, align 4, !tbaa !93
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #7
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  %350 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 0
  store i32 38, ptr %350, align 8, !tbaa !94
  %351 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 3
  store i32 1, ptr %351, align 4, !tbaa !96
  %352 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 4
  store ptr %22, ptr %352, align 8, !tbaa !97
  %353 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 5
  store i32 1, ptr %353, align 8, !tbaa !98
  %354 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 6
  store ptr %24, ptr %354, align 8, !tbaa !99
  %355 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 7
  store i32 1, ptr %355, align 8, !tbaa !100
  %356 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 8
  store ptr %25, ptr %356, align 8, !tbaa !101
  %357 = load ptr, ptr %9, align 8, !tbaa !5
  %358 = load ptr, ptr %11, align 8, !tbaa !5
  %359 = load ptr, ptr %10, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %359, i32 0, i32 6
  %361 = call i32 @vkCreateRenderPass(ptr noundef %357, ptr noundef %26, ptr noundef %358, ptr noundef %360)
  store i32 %361, ptr %15, align 4, !tbaa !18
  %362 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %362)
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr %22) #7
  br label %363

363:                                              ; preds = %320, %313
  call void @llvm.lifetime.start.p0(i64 80, ptr %27) #7
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 80, i1 false)
  %364 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 0
  store i32 15, ptr %364, align 8, !tbaa !102
  %365 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 4
  store i32 1, ptr %365, align 8, !tbaa !108
  %366 = load ptr, ptr %10, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %366, i32 0, i32 4
  %368 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %367, i32 0, i32 0
  %369 = load i32, ptr %368, align 8, !tbaa !38
  %370 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 5
  store i32 %369, ptr %370, align 4, !tbaa !109
  %371 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %372 = getelementptr inbounds %struct.VkComponentMapping, ptr %371, i32 0, i32 0
  store i32 3, ptr %372, align 8, !tbaa !110
  %373 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %374 = getelementptr inbounds %struct.VkComponentMapping, ptr %373, i32 0, i32 1
  store i32 4, ptr %374, align 4, !tbaa !111
  %375 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %376 = getelementptr inbounds %struct.VkComponentMapping, ptr %375, i32 0, i32 2
  store i32 5, ptr %376, align 8, !tbaa !112
  %377 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %378 = getelementptr inbounds %struct.VkComponentMapping, ptr %377, i32 0, i32 3
  store i32 6, ptr %378, align 4, !tbaa !113
  call void @llvm.lifetime.start.p0(i64 20, ptr %28) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 @__const._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij.image_range, i64 20, i1 false)
  %379 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %379, ptr align 4 %28, i64 20, i1 false), !tbaa.struct !114
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %380

380:                                              ; preds = %404, %363
  %381 = load i32, ptr %29, align 4, !tbaa !9
  %382 = load ptr, ptr %10, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %382, i32 0, i32 12
  %384 = load i32, ptr %383, align 8, !tbaa !20
  %385 = icmp ult i32 %381, %384
  br i1 %385, label %387, label %386

386:                                              ; preds = %380
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %407

387:                                              ; preds = %380
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %388 = load ptr, ptr %10, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %388, i32 0, i32 14
  %390 = load ptr, ptr %389, align 8, !tbaa !21
  %391 = load i32, ptr %29, align 4, !tbaa !9
  %392 = zext i32 %391 to i64
  %393 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %390, i64 %392
  store ptr %393, ptr %30, align 8, !tbaa !5
  %394 = load ptr, ptr %30, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %394, i32 0, i32 3
  %396 = load ptr, ptr %395, align 8, !tbaa !59
  %397 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 3
  store ptr %396, ptr %397, align 8, !tbaa !115
  %398 = load ptr, ptr %9, align 8, !tbaa !5
  %399 = load ptr, ptr %11, align 8, !tbaa !5
  %400 = load ptr, ptr %30, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %400, i32 0, i32 4
  %402 = call i32 @vkCreateImageView(ptr noundef %398, ptr noundef %27, ptr noundef %399, ptr noundef %401)
  store i32 %402, ptr %15, align 4, !tbaa !18
  %403 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %403)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %404

404:                                              ; preds = %387
  %405 = load i32, ptr %29, align 4, !tbaa !9
  %406 = add i32 %405, 1
  store i32 %406, ptr %29, align 4, !tbaa !9
  br label %380, !llvm.loop !116

407:                                              ; preds = %386
  call void @llvm.lifetime.end.p0(i64 20, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #7
  %408 = load ptr, ptr %10, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %408, i32 0, i32 8
  %410 = load i8, ptr %409, align 8, !tbaa !62, !range !63, !noundef !64
  %411 = trunc i8 %410 to i1
  %412 = zext i1 %411 to i32
  %413 = icmp eq i32 %412, 0
  br i1 %413, label %414, label %460

414:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #7
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 64, i1 false)
  %415 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 0
  store i32 37, ptr %415, align 8, !tbaa !117
  %416 = load ptr, ptr %10, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %416, i32 0, i32 6
  %418 = load ptr, ptr %417, align 8, !tbaa !25
  %419 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 3
  store ptr %418, ptr %419, align 8, !tbaa !119
  %420 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 4
  store i32 1, ptr %420, align 8, !tbaa !120
  %421 = getelementptr inbounds [1 x ptr], ptr %31, i64 0, i64 0
  %422 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 5
  store ptr %421, ptr %422, align 8, !tbaa !121
  %423 = load ptr, ptr %10, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %423, i32 0, i32 0
  %425 = load i32, ptr %424, align 8, !tbaa !54
  %426 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 6
  store i32 %425, ptr %426, align 8, !tbaa !122
  %427 = load ptr, ptr %10, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %427, i32 0, i32 1
  %429 = load i32, ptr %428, align 4, !tbaa !56
  %430 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 7
  store i32 %429, ptr %430, align 4, !tbaa !123
  %431 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 8
  store i32 1, ptr %431, align 8, !tbaa !124
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %432

432:                                              ; preds = %456, %414
  %433 = load i32, ptr %33, align 4, !tbaa !9
  %434 = load ptr, ptr %10, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %434, i32 0, i32 12
  %436 = load i32, ptr %435, align 8, !tbaa !20
  %437 = icmp ult i32 %433, %436
  br i1 %437, label %439, label %438

438:                                              ; preds = %432
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %459

439:                                              ; preds = %432
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %440 = load ptr, ptr %10, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %440, i32 0, i32 14
  %442 = load ptr, ptr %441, align 8, !tbaa !21
  %443 = load i32, ptr %33, align 4, !tbaa !9
  %444 = zext i32 %443 to i64
  %445 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %442, i64 %444
  store ptr %445, ptr %34, align 8, !tbaa !5
  %446 = load ptr, ptr %34, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %446, i32 0, i32 4
  %448 = load ptr, ptr %447, align 8, !tbaa !125
  %449 = getelementptr inbounds [1 x ptr], ptr %31, i64 0, i64 0
  store ptr %448, ptr %449, align 8, !tbaa !5
  %450 = load ptr, ptr %9, align 8, !tbaa !5
  %451 = load ptr, ptr %11, align 8, !tbaa !5
  %452 = load ptr, ptr %34, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %452, i32 0, i32 5
  %454 = call i32 @vkCreateFramebuffer(ptr noundef %450, ptr noundef %32, ptr noundef %451, ptr noundef %453)
  store i32 %454, ptr %15, align 4, !tbaa !18
  %455 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %455)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %456

456:                                              ; preds = %439
  %457 = load i32, ptr %33, align 4, !tbaa !9
  %458 = add i32 %457, 1
  store i32 %458, ptr %33, align 4, !tbaa !9
  br label %432, !llvm.loop !126

459:                                              ; preds = %438
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %460

460:                                              ; preds = %459, %407
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z30ImGui_ImplVulkanH_DestroyFrameP10VkDevice_TP23ImGui_ImplVulkanH_FramePK21VkAllocationCallbacks(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z40ImGui_ImplVulkanH_DestroyFrameSemaphoresP10VkDevice_TP33ImGui_ImplVulkanH_FrameSemaphoresPK21VkAllocationCallbacks(ptr noundef, ptr noundef, ptr noundef) #4

declare void @_ZN5ImGui7MemFreeEPv(ptr noundef) #2

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS24ImGui_ImplVulkanH_Window", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !13, i64 24, !16, i64 32, !6, i64 40, !6, i64 48, !17, i64 56, !17, i64 57, !7, i64 60, !10, i64 76, !10, i64 80, !10, i64 84, !6, i64 88, !6, i64 96}
!13 = !{!"_ZTS18VkSurfaceFormatKHR", !14, i64 0, !15, i64 4}
!14 = !{!"_ZTS8VkFormat", !7, i64 0}
!15 = !{!"_ZTS15VkColorSpaceKHR", !7, i64 0}
!16 = !{!"_ZTS16VkPresentModeKHR", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS8VkResult", !7, i64 0}
!20 = !{!12, !10, i64 80}
!21 = !{!12, !6, i64 88}
!22 = !{!12, !6, i64 96}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !6, i64 40}
!26 = !{!12, !6, i64 48}
!27 = !{!12, !16, i64 32}
!28 = !{!29, !30, i64 0}
!29 = !{!"_ZTS24VkSwapchainCreateInfoKHR", !30, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !14, i64 36, !15, i64 40, !31, i64 44, !10, i64 52, !10, i64 56, !32, i64 60, !10, i64 64, !6, i64 72, !33, i64 80, !34, i64 84, !16, i64 88, !10, i64 92, !6, i64 96}
!30 = !{!"_ZTS15VkStructureType", !7, i64 0}
!31 = !{!"_ZTS10VkExtent2D", !10, i64 0, !10, i64 4}
!32 = !{!"_ZTS13VkSharingMode", !7, i64 0}
!33 = !{!"_ZTS29VkSurfaceTransformFlagBitsKHR", !7, i64 0}
!34 = !{!"_ZTS27VkCompositeAlphaFlagBitsKHR", !7, i64 0}
!35 = !{!12, !6, i64 16}
!36 = !{!29, !6, i64 24}
!37 = !{!29, !10, i64 32}
!38 = !{!12, !14, i64 24}
!39 = !{!29, !14, i64 36}
!40 = !{!12, !15, i64 28}
!41 = !{!29, !15, i64 40}
!42 = !{!29, !10, i64 52}
!43 = !{!29, !10, i64 56}
!44 = !{!29, !32, i64 60}
!45 = !{!29, !33, i64 80}
!46 = !{!29, !34, i64 84}
!47 = !{!29, !16, i64 88}
!48 = !{!29, !10, i64 92}
!49 = !{!29, !6, i64 96}
!50 = !{!51, !10, i64 0}
!51 = !{!"_ZTS24VkSurfaceCapabilitiesKHR", !10, i64 0, !10, i64 4, !31, i64 8, !31, i64 16, !31, i64 24, !10, i64 32, !10, i64 36, !33, i64 40, !10, i64 44, !10, i64 48}
!52 = !{!51, !10, i64 4}
!53 = !{!51, !10, i64 8}
!54 = !{!12, !10, i64 0}
!55 = !{!29, !10, i64 44}
!56 = !{!12, !10, i64 4}
!57 = !{!29, !10, i64 48}
!58 = !{!51, !10, i64 12}
!59 = !{!60, !6, i64 24}
!60 = !{!"_ZTS23ImGui_ImplVulkanH_Frame", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!61 = distinct !{!61, !24}
!62 = !{!12, !17, i64 56}
!63 = !{i8 0, i8 2}
!64 = !{}
!65 = !{!66, !14, i64 4}
!66 = !{!"_ZTS23VkAttachmentDescription", !10, i64 0, !14, i64 4, !67, i64 8, !68, i64 12, !69, i64 16, !68, i64 20, !69, i64 24, !70, i64 28, !70, i64 32}
!67 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!68 = !{!"_ZTS18VkAttachmentLoadOp", !7, i64 0}
!69 = !{!"_ZTS19VkAttachmentStoreOp", !7, i64 0}
!70 = !{!"_ZTS13VkImageLayout", !7, i64 0}
!71 = !{!66, !67, i64 8}
!72 = !{!12, !17, i64 57}
!73 = !{!66, !68, i64 12}
!74 = !{!66, !69, i64 16}
!75 = !{!66, !68, i64 20}
!76 = !{!66, !69, i64 24}
!77 = !{!66, !70, i64 28}
!78 = !{!66, !70, i64 32}
!79 = !{!80, !10, i64 0}
!80 = !{!"_ZTS21VkAttachmentReference", !10, i64 0, !70, i64 4}
!81 = !{!80, !70, i64 4}
!82 = !{!83, !84, i64 4}
!83 = !{!"_ZTS20VkSubpassDescription", !10, i64 0, !84, i64 4, !10, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !6, i64 64}
!84 = !{!"_ZTS19VkPipelineBindPoint", !7, i64 0}
!85 = !{!83, !10, i64 24}
!86 = !{!83, !6, i64 32}
!87 = !{!88, !10, i64 0}
!88 = !{!"_ZTS19VkSubpassDependency", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!89 = !{!88, !10, i64 4}
!90 = !{!88, !10, i64 8}
!91 = !{!88, !10, i64 12}
!92 = !{!88, !10, i64 16}
!93 = !{!88, !10, i64 20}
!94 = !{!95, !30, i64 0}
!95 = !{!"_ZTS22VkRenderPassCreateInfo", !30, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56}
!96 = !{!95, !10, i64 20}
!97 = !{!95, !6, i64 24}
!98 = !{!95, !10, i64 32}
!99 = !{!95, !6, i64 40}
!100 = !{!95, !10, i64 48}
!101 = !{!95, !6, i64 56}
!102 = !{!103, !30, i64 0}
!103 = !{!"_ZTS21VkImageViewCreateInfo", !30, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !104, i64 32, !14, i64 36, !105, i64 40, !107, i64 56}
!104 = !{!"_ZTS15VkImageViewType", !7, i64 0}
!105 = !{!"_ZTS18VkComponentMapping", !106, i64 0, !106, i64 4, !106, i64 8, !106, i64 12}
!106 = !{!"_ZTS18VkComponentSwizzle", !7, i64 0}
!107 = !{!"_ZTS23VkImageSubresourceRange", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!108 = !{!103, !104, i64 32}
!109 = !{!103, !14, i64 36}
!110 = !{!103, !106, i64 40}
!111 = !{!103, !106, i64 44}
!112 = !{!103, !106, i64 48}
!113 = !{!103, !106, i64 52}
!114 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9}
!115 = !{!103, !6, i64 24}
!116 = distinct !{!116, !24}
!117 = !{!118, !30, i64 0}
!118 = !{!"_ZTS23VkFramebufferCreateInfo", !30, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56}
!119 = !{!118, !6, i64 24}
!120 = !{!118, !10, i64 32}
!121 = !{!118, !6, i64 40}
!122 = !{!118, !10, i64 48}
!123 = !{!118, !10, i64 52}
!124 = !{!118, !10, i64 56}
!125 = !{!60, !6, i64 32}
!126 = distinct !{!126, !24}


; 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.VkImageSubresourceRange = type { i32, i32, i32, i32, i32 }
%struct.VkSwapchainCreateInfoKHR = type { i32, ptr, i32, ptr, i32, i32, i32, %struct.VkExtent2D, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr }
%struct.VkExtent2D = type { i32, i32 }
%struct.VkSurfaceCapabilitiesKHR = type { i32, i32, %struct.VkExtent2D, %struct.VkExtent2D, %struct.VkExtent2D, i32, i32, i32, i32, i32 }
%struct.VkAttachmentDescription = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.VkAttachmentReference = type { i32, i32 }
%struct.VkSubpassDescription = type { i32, i32, i32, ptr, i32, ptr, ptr, ptr, i32, ptr }
%struct.VkSubpassDependency = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.VkRenderPassCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr, i32, ptr }
%struct.VkImageViewCreateInfo = type { i32, ptr, i32, ptr, i32, i32, %struct.VkComponentMapping, %struct.VkImageSubresourceRange }
%struct.VkComponentMapping = type { i32, i32, i32, i32 }
%struct.VkFramebufferCreateInfo = type { i32, ptr, i32, ptr, i32, ptr, i32, i32, i32 }
%struct.ImGui_ImplVulkanH_Frame = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ImGui_ImplVulkanH_FrameSemaphores = type { ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij = external hidden unnamed_addr constant [152 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [22 x i8], align 1
@__const._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij.image_range = external hidden unnamed_addr constant %struct.VkImageSubresourceRange, align 4

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

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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) local_unnamed_addr #2

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

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

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

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

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

declare i32 @vkDeviceWaitIdle(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z49ImGui_ImplVulkanH_GetMinImageCountFromPresentMode16VkPresentModeKHR(i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #4 {
  %8 = alloca %struct.VkSwapchainCreateInfoKHR, align 8
  %9 = alloca %struct.VkSurfaceCapabilitiesKHR, align 4
  %10 = alloca [16 x ptr], align 16
  %11 = alloca %struct.VkAttachmentDescription, align 4
  %12 = alloca %struct.VkAttachmentReference, align 8
  %13 = alloca %struct.VkSubpassDescription, align 8
  %14 = alloca %struct.VkSubpassDependency, align 16
  %15 = alloca %struct.VkRenderPassCreateInfo, align 8
  %16 = alloca %struct.VkImageViewCreateInfo, align 8
  %17 = alloca [1 x ptr], align 8
  %18 = alloca %struct.VkFramebufferCreateInfo, align 8
  %19 = getelementptr inbounds i8, ptr %2, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr null, ptr %19, align 8, !tbaa !5
  %21 = tail call i32 @vkDeviceWaitIdle(ptr noundef %1)
  tail call void @_ZL15check_vk_result8VkResult(i32 noundef %21)
  %22 = getelementptr inbounds i8, ptr %2, i64 80
  %23 = load i32, ptr %22, align 8, !tbaa !16
  %.not140 = icmp eq i32 %23, 0
  br i1 %.not140, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %7
  %24 = getelementptr inbounds i8, ptr %2, i64 88
  %25 = getelementptr inbounds i8, ptr %2, i64 96
  br label %32

._crit_edge:                                      ; preds = %32, %7
  %26 = getelementptr inbounds i8, ptr %2, i64 88
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  tail call void @_ZN5ImGui7MemFreeEPv(ptr noundef %27)
  %28 = getelementptr inbounds i8, ptr %2, i64 96
  %29 = load ptr, ptr %28, align 8, !tbaa !18
  tail call void @_ZN5ImGui7MemFreeEPv(ptr noundef %29)
  store i32 0, ptr %22, align 8, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %2, i64 40
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %26, i8 0, i64 16, i1 false)
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %.not = icmp eq ptr %31, null
  br i1 %.not, label %41, label %40

32:                                               ; preds = %.lr.ph, %32
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %32 ]
  %33 = load ptr, ptr %24, align 8, !tbaa !17
  %34 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %33, i64 %indvars.iv
  tail call void @_Z30ImGui_ImplVulkanH_DestroyFrameP10VkDevice_TP23ImGui_ImplVulkanH_FramePK21VkAllocationCallbacks(ptr noundef %1, ptr noundef %34, ptr noundef %3)
  %35 = load ptr, ptr %25, align 8, !tbaa !18
  %36 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameSemaphores, ptr %35, i64 %indvars.iv
  tail call void @_Z40ImGui_ImplVulkanH_DestroyFrameSemaphoresP10VkDevice_TP33ImGui_ImplVulkanH_FrameSemaphoresPK21VkAllocationCallbacks(ptr noundef %1, ptr noundef %36, ptr noundef %3)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr %22, align 8, !tbaa !16
  %38 = zext i32 %37 to i64
  %39 = icmp ult i64 %indvars.iv.next, %38
  br i1 %39, label %32, label %._crit_edge, !llvm.loop !20

40:                                               ; preds = %._crit_edge
  tail call void @vkDestroyRenderPass(ptr noundef %1, ptr noundef nonnull %31, ptr noundef %3)
  br label %41

41:                                               ; preds = %40, %._crit_edge
  %42 = getelementptr inbounds i8, ptr %2, i64 48
  %43 = load ptr, ptr %42, align 8, !tbaa !22
  %.not123 = icmp eq ptr %43, null
  br i1 %.not123, label %45, label %44

44:                                               ; preds = %41
  tail call void @vkDestroyPipeline(ptr noundef %1, ptr noundef nonnull %43, ptr noundef %3)
  br label %45

45:                                               ; preds = %44, %41
  %46 = icmp eq i32 %6, 0
  br i1 %46, label %47, label %51

47:                                               ; preds = %45
  %48 = getelementptr inbounds i8, ptr %2, i64 32
  %49 = load i32, ptr %48, align 8, !tbaa !23
  %50 = tail call noundef i32 @_Z49ImGui_ImplVulkanH_GetMinImageCountFromPresentMode16VkPresentModeKHR(i32 noundef %49)
  br label %51

51:                                               ; preds = %47, %45
  %.0 = phi i32 [ %50, %47 ], [ %6, %45 ]
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %8, i8 0, i64 80, i1 false)
  store i32 1000001000, ptr %8, align 8, !tbaa !24
  %52 = getelementptr inbounds i8, ptr %2, i64 16
  %53 = load ptr, ptr %52, align 8, !tbaa !31
  %54 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %53, ptr %54, align 8, !tbaa !32
  %55 = getelementptr inbounds i8, ptr %8, i64 32
  store i32 %.0, ptr %55, align 8, !tbaa !33
  %56 = getelementptr inbounds i8, ptr %2, i64 24
  %57 = getelementptr inbounds i8, ptr %8, i64 36
  %58 = load <2 x i32>, ptr %56, align 8, !tbaa !34
  store <2 x i32> %58, ptr %57, align 4, !tbaa !34
  %59 = getelementptr inbounds i8, ptr %8, i64 52
  store i32 1, ptr %59, align 4, !tbaa !35
  %60 = getelementptr inbounds i8, ptr %8, i64 56
  store i32 16, ptr %60, align 8, !tbaa !36
  %61 = getelementptr inbounds i8, ptr %8, i64 80
  store i32 1, ptr %61, align 8, !tbaa !37
  %62 = getelementptr inbounds i8, ptr %8, i64 84
  store i32 1, ptr %62, align 4, !tbaa !38
  %63 = getelementptr inbounds i8, ptr %2, i64 32
  %64 = load i32, ptr %63, align 8, !tbaa !23
  %65 = getelementptr inbounds i8, ptr %8, i64 88
  store i32 %64, ptr %65, align 8, !tbaa !39
  %66 = getelementptr inbounds i8, ptr %8, i64 92
  store i32 1, ptr %66, align 4, !tbaa !40
  %67 = getelementptr inbounds i8, ptr %8, i64 96
  store ptr %20, ptr %67, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %9) #7
  %68 = call i32 @vkGetPhysicalDeviceSurfaceCapabilitiesKHR(ptr noundef %0, ptr noundef %53, ptr noundef nonnull %9)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %68)
  %69 = load i32, ptr %9, align 4, !tbaa !42
  %70 = icmp ult i32 %.0, %69
  br i1 %70, label %.sink.split, label %71

71:                                               ; preds = %51
  %72 = getelementptr inbounds i8, ptr %9, i64 4
  %73 = load i32, ptr %72, align 4, !tbaa !44
  %.not124 = icmp ne i32 %73, 0
  %74 = icmp ugt i32 %.0, %73
  %or.cond = and i1 %.not124, %74
  br i1 %or.cond, label %.sink.split, label %75

.sink.split:                                      ; preds = %71, %51
  %.sink = phi i32 [ %69, %51 ], [ %73, %71 ]
  store i32 %.sink, ptr %55, align 8, !tbaa !33
  br label %75

75:                                               ; preds = %.sink.split, %71
  %76 = getelementptr inbounds i8, ptr %9, i64 8
  %77 = load i32, ptr %76, align 4, !tbaa !45
  %78 = icmp eq i32 %77, -1
  %79 = getelementptr inbounds i8, ptr %9, i64 12
  %80 = load i32, ptr %79, align 4
  %.sink156 = select i1 %78, i32 %4, i32 %77
  %.sink154 = select i1 %78, i32 %5, i32 %80
  store i32 %.sink156, ptr %2, align 8
  %81 = getelementptr inbounds i8, ptr %8, i64 44
  store i32 %.sink156, ptr %81, align 4
  %82 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 %.sink154, ptr %82, align 4
  %83 = getelementptr inbounds i8, ptr %8, i64 48
  store i32 %.sink154, ptr %83, align 8
  %84 = call i32 @vkCreateSwapchainKHR(ptr noundef %1, ptr noundef nonnull %8, ptr noundef %3, ptr noundef nonnull %19)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %84)
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  %86 = call i32 @vkGetSwapchainImagesKHR(ptr noundef %1, ptr noundef %85, ptr noundef nonnull %22, ptr noundef null)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %86)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %10) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %10, i8 0, i64 128, i1 false)
  %87 = load i32, ptr %22, align 8, !tbaa !16
  %.not125 = icmp ult i32 %87, %.0
  br i1 %.not125, label %88, label %89

88:                                               ; preds = %75
  call void @__assert_fail(ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.1, i32 noundef 1446, ptr noundef nonnull @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

89:                                               ; preds = %75
  %90 = icmp ult i32 %87, 16
  br i1 %90, label %92, label %91

91:                                               ; preds = %89
  call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.1, i32 noundef 1447, ptr noundef nonnull @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

92:                                               ; preds = %89
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = call i32 @vkGetSwapchainImagesKHR(ptr noundef %1, ptr noundef %93, ptr noundef nonnull %22, ptr noundef nonnull %10)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %94)
  %95 = load ptr, ptr %26, align 8, !tbaa !17
  %96 = icmp eq ptr %95, null
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.1, i32 noundef 1451, ptr noundef nonnull @__PRETTY_FUNCTION__._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij) #8
  unreachable

98:                                               ; preds = %92
  %99 = load i32, ptr %22, align 8, !tbaa !16
  %100 = zext i32 %99 to i64
  %101 = mul nuw nsw i64 %100, 48
  %102 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %101)
  store ptr %102, ptr %26, align 8, !tbaa !17
  %103 = load i32, ptr %22, align 8, !tbaa !16
  %104 = zext i32 %103 to i64
  %105 = shl nuw nsw i64 %104, 4
  %106 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %105)
  store ptr %106, ptr %28, align 8, !tbaa !18
  %107 = load ptr, ptr %26, align 8, !tbaa !17
  %108 = load i32, ptr %22, align 8, !tbaa !16
  %109 = zext i32 %108 to i64
  %110 = mul nuw nsw i64 %109, 48
  call void @llvm.memset.p0.i64(ptr align 8 %107, i8 0, i64 %110, i1 false)
  %111 = load ptr, ptr %28, align 8, !tbaa !18
  %112 = load i32, ptr %22, align 8, !tbaa !16
  %113 = zext i32 %112 to i64
  %114 = shl nuw nsw i64 %113, 4
  call void @llvm.memset.p0.i64(ptr align 8 %111, i8 0, i64 %114, i1 false)
  %115 = load i32, ptr %22, align 8, !tbaa !16
  %.not141 = icmp eq i32 %115, 0
  br i1 %.not141, label %._crit_edge131, label %.lr.ph130

.lr.ph130:                                        ; preds = %98
  %116 = load ptr, ptr %26, align 8, !tbaa !17
  %wide.trip.count = zext i32 %115 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %117 = icmp ult i32 %115, 4
  br i1 %117, label %._crit_edge131.loopexit.unr-lcssa, label %.lr.ph130.new

.lr.ph130.new:                                    ; preds = %.lr.ph130
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %121

._crit_edge131.loopexit.unr-lcssa:                ; preds = %121, %.lr.ph130
  %indvars.iv145.unr = phi i64 [ 0, %.lr.ph130 ], [ %indvars.iv.next146.3, %121 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge131, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge131.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv145.epil = phi i64 [ %indvars.iv.next146.epil, %.epil.preheader ], [ %indvars.iv145.unr, %._crit_edge131.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge131.loopexit.unr-lcssa ]
  %118 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv145.epil
  %119 = load ptr, ptr %118, align 8, !tbaa !46
  %120 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv145.epil, i32 3
  store ptr %119, ptr %120, align 8, !tbaa !47
  %indvars.iv.next146.epil = add nuw nsw i64 %indvars.iv145.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge131, label %.epil.preheader, !llvm.loop !49

._crit_edge131:                                   ; preds = %._crit_edge131.loopexit.unr-lcssa, %.epil.preheader, %98
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %8) #7
  %.not126 = icmp eq ptr %20, null
  br i1 %.not126, label %135, label %134

121:                                              ; preds = %121, %.lr.ph130.new
  %indvars.iv145 = phi i64 [ 0, %.lr.ph130.new ], [ %indvars.iv.next146.3, %121 ]
  %niter = phi i64 [ 0, %.lr.ph130.new ], [ %niter.next.3, %121 ]
  %122 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv145
  %123 = load ptr, ptr %122, align 16, !tbaa !46
  %124 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv145, i32 3
  store ptr %123, ptr %124, align 8, !tbaa !47
  %indvars.iv.next146 = or disjoint i64 %indvars.iv145, 1
  %125 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv.next146
  %126 = load ptr, ptr %125, align 8, !tbaa !46
  %127 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv.next146, i32 3
  store ptr %126, ptr %127, align 8, !tbaa !47
  %indvars.iv.next146.1 = or disjoint i64 %indvars.iv145, 2
  %128 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv.next146.1
  %129 = load ptr, ptr %128, align 16, !tbaa !46
  %130 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv.next146.1, i32 3
  store ptr %129, ptr %130, align 8, !tbaa !47
  %indvars.iv.next146.2 = or disjoint i64 %indvars.iv145, 3
  %131 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv.next146.2
  %132 = load ptr, ptr %131, align 8, !tbaa !46
  %133 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv.next146.2, i32 3
  store ptr %132, ptr %133, align 8, !tbaa !47
  %indvars.iv.next146.3 = add nuw nsw i64 %indvars.iv145, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge131.loopexit.unr-lcssa, label %121, !llvm.loop !51

134:                                              ; preds = %._crit_edge131
  call void @vkDestroySwapchainKHR(ptr noundef %1, ptr noundef nonnull %20, ptr noundef %3)
  br label %135

135:                                              ; preds = %134, %._crit_edge131
  %136 = getelementptr inbounds i8, ptr %2, i64 56
  %137 = load i8, ptr %136, align 8, !tbaa !52, !range !53, !noundef !54
  %138 = icmp eq i8 %137, 0
  br i1 %138, label %139, label %162

139:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %11) #7
  store i32 0, ptr %11, align 4
  %140 = load i32, ptr %56, align 8, !tbaa !55
  %141 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 %140, ptr %141, align 4, !tbaa !56
  %142 = getelementptr inbounds i8, ptr %11, i64 8
  store i32 1, ptr %142, align 4, !tbaa !62
  %143 = getelementptr inbounds i8, ptr %2, i64 57
  %144 = load i8, ptr %143, align 1, !tbaa !63, !range !53, !noundef !54
  %145 = trunc nuw i8 %144 to i1
  %146 = select i1 %145, i32 1, i32 2
  %147 = getelementptr inbounds i8, ptr %11, i64 12
  store i32 %146, ptr %147, align 4, !tbaa !64
  %148 = getelementptr inbounds i8, ptr %11, i64 16
  store <4 x i32> <i32 0, i32 2, i32 1, i32 0>, ptr %148, align 4, !tbaa !34
  %149 = getelementptr inbounds i8, ptr %11, i64 32
  store i32 1000001002, ptr %149, align 4, !tbaa !65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  store i64 8589934592, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %13) #7
  %150 = getelementptr inbounds i8, ptr %13, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %13, i8 0, i64 72, i1 false)
  store i32 1, ptr %150, align 8, !tbaa !66
  %151 = getelementptr inbounds i8, ptr %13, i64 32
  store ptr %12, ptr %151, align 8, !tbaa !69
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %14) #7
  %152 = getelementptr inbounds i8, ptr %14, i64 24
  store i32 0, ptr %152, align 8
  store <4 x i32> <i32 -1, i32 0, i32 1024, i32 1024>, ptr %14, align 16, !tbaa !70
  %153 = getelementptr inbounds i8, ptr %14, i64 16
  store i32 0, ptr %153, align 16, !tbaa !71
  %154 = getelementptr inbounds i8, ptr %14, i64 20
  store i32 256, ptr %154, align 4, !tbaa !73
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 56, i1 false)
  store i32 38, ptr %15, align 8, !tbaa !74
  %155 = getelementptr inbounds i8, ptr %15, i64 20
  store i32 1, ptr %155, align 4, !tbaa !76
  %156 = getelementptr inbounds i8, ptr %15, i64 24
  store ptr %11, ptr %156, align 8, !tbaa !77
  %157 = getelementptr inbounds i8, ptr %15, i64 32
  store i32 1, ptr %157, align 8, !tbaa !78
  %158 = getelementptr inbounds i8, ptr %15, i64 40
  store ptr %13, ptr %158, align 8, !tbaa !79
  %159 = getelementptr inbounds i8, ptr %15, i64 48
  store i32 1, ptr %159, align 8, !tbaa !80
  %160 = getelementptr inbounds i8, ptr %15, i64 56
  store ptr %14, ptr %160, align 8, !tbaa !81
  %161 = call i32 @vkCreateRenderPass(ptr noundef %1, ptr noundef nonnull %15, ptr noundef %3, ptr noundef nonnull %30)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %161)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %11) #7
  br label %162

162:                                              ; preds = %139, %135
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %16) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %16, i8 0, i64 80, i1 false)
  store i32 15, ptr %16, align 8, !tbaa !82
  %163 = getelementptr inbounds i8, ptr %16, i64 32
  store i32 1, ptr %163, align 8, !tbaa !88
  %164 = load i32, ptr %56, align 8, !tbaa !55
  %165 = getelementptr inbounds i8, ptr %16, i64 36
  store i32 %164, ptr %165, align 4, !tbaa !89
  %166 = getelementptr inbounds i8, ptr %16, i64 40
  store <4 x i32> <i32 3, i32 4, i32 5, i32 6>, ptr %166, align 8, !tbaa !90
  %167 = getelementptr inbounds i8, ptr %16, i64 56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %167, ptr noundef nonnull align 4 dereferenceable(20) @__const._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij.image_range, i64 20, i1 false), !tbaa.struct !91
  %168 = load i32, ptr %22, align 8, !tbaa !16
  %.not142 = icmp eq i32 %168, 0
  br i1 %.not142, label %._crit_edge135, label %.lr.ph134

.lr.ph134:                                        ; preds = %162
  %169 = getelementptr inbounds i8, ptr %16, i64 24
  br label %173

._crit_edge135.loopexit:                          ; preds = %173
  %170 = icmp eq i32 %180, 0
  br label %._crit_edge135

._crit_edge135:                                   ; preds = %._crit_edge135.loopexit, %162
  %.not143 = phi i1 [ %170, %._crit_edge135.loopexit ], [ true, %162 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %16) #7
  %171 = load i8, ptr %136, align 8, !tbaa !52, !range !53, !noundef !54
  %172 = icmp eq i8 %171, 0
  br i1 %172, label %183, label %200

173:                                              ; preds = %.lr.ph134, %173
  %indvars.iv148 = phi i64 [ 0, %.lr.ph134 ], [ %indvars.iv.next149, %173 ]
  %174 = load ptr, ptr %26, align 8, !tbaa !17
  %175 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %174, i64 %indvars.iv148
  %176 = getelementptr inbounds i8, ptr %175, i64 24
  %177 = load ptr, ptr %176, align 8, !tbaa !47
  store ptr %177, ptr %169, align 8, !tbaa !92
  %178 = getelementptr inbounds i8, ptr %175, i64 32
  %179 = call i32 @vkCreateImageView(ptr noundef %1, ptr noundef nonnull %16, ptr noundef %3, ptr noundef nonnull %178)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %179)
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %180 = load i32, ptr %22, align 8, !tbaa !16
  %181 = zext i32 %180 to i64
  %182 = icmp ult i64 %indvars.iv.next149, %181
  br i1 %182, label %173, label %._crit_edge135.loopexit, !llvm.loop !93

183:                                              ; preds = %._crit_edge135
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  store i32 37, ptr %18, align 8, !tbaa !94
  %184 = load ptr, ptr %30, align 8, !tbaa !19
  %185 = getelementptr inbounds i8, ptr %18, i64 24
  store ptr %184, ptr %185, align 8, !tbaa !96
  %186 = getelementptr inbounds i8, ptr %18, i64 32
  store i32 1, ptr %186, align 8, !tbaa !97
  %187 = getelementptr inbounds i8, ptr %18, i64 40
  store ptr %17, ptr %187, align 8, !tbaa !98
  %188 = getelementptr inbounds i8, ptr %18, i64 48
  %189 = load <2 x i32>, ptr %2, align 8, !tbaa !70
  store <2 x i32> %189, ptr %188, align 8, !tbaa !70
  %190 = getelementptr inbounds i8, ptr %18, i64 56
  store i32 1, ptr %190, align 8, !tbaa !99
  br i1 %.not143, label %._crit_edge139, label %.lr.ph138

._crit_edge139:                                   ; preds = %.lr.ph138, %183
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %200

.lr.ph138:                                        ; preds = %183, %.lr.ph138
  %indvars.iv151 = phi i64 [ %indvars.iv.next152, %.lr.ph138 ], [ 0, %183 ]
  %191 = load ptr, ptr %26, align 8, !tbaa !17
  %192 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %191, i64 %indvars.iv151
  %193 = getelementptr inbounds i8, ptr %192, i64 32
  %194 = load ptr, ptr %193, align 8, !tbaa !100
  store ptr %194, ptr %17, align 8, !tbaa !46
  %195 = getelementptr inbounds i8, ptr %192, i64 40
  %196 = call i32 @vkCreateFramebuffer(ptr noundef %1, ptr noundef nonnull %18, ptr noundef %3, ptr noundef nonnull %195)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %196)
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %197 = load i32, ptr %22, align 8, !tbaa !16
  %198 = zext i32 %197 to i64
  %199 = icmp ult i64 %indvars.iv.next152, %198
  br i1 %199, label %.lr.ph138, label %._crit_edge139, !llvm.loop !101

200:                                              ; preds = %._crit_edge139, %._crit_edge135
  ret void
}

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

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

declare void @_ZN5ImGui7MemFreeEPv(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"_ZTS24ImGui_ImplVulkanH_Window", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !14, i64 32, !10, i64 40, !10, i64 48, !15, i64 56, !15, i64 57, !8, i64 60, !7, i64 76, !7, i64 80, !7, i64 84, !10, i64 88, !10, i64 96}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS18VkSurfaceFormatKHR", !12, i64 0, !13, i64 4}
!12 = !{!"_ZTS8VkFormat", !8, i64 0}
!13 = !{!"_ZTS15VkColorSpaceKHR", !8, i64 0}
!14 = !{!"_ZTS16VkPresentModeKHR", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!6, !7, i64 80}
!17 = !{!6, !10, i64 88}
!18 = !{!6, !10, i64 96}
!19 = !{!6, !10, i64 40}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !10, i64 48}
!23 = !{!6, !14, i64 32}
!24 = !{!25, !26, i64 0}
!25 = !{!"_ZTS24VkSwapchainCreateInfoKHR", !26, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !12, i64 36, !13, i64 40, !27, i64 44, !7, i64 52, !7, i64 56, !28, i64 60, !7, i64 64, !10, i64 72, !29, i64 80, !30, i64 84, !14, i64 88, !7, i64 92, !10, i64 96}
!26 = !{!"_ZTS15VkStructureType", !8, i64 0}
!27 = !{!"_ZTS10VkExtent2D", !7, i64 0, !7, i64 4}
!28 = !{!"_ZTS13VkSharingMode", !8, i64 0}
!29 = !{!"_ZTS29VkSurfaceTransformFlagBitsKHR", !8, i64 0}
!30 = !{!"_ZTS27VkCompositeAlphaFlagBitsKHR", !8, i64 0}
!31 = !{!6, !10, i64 16}
!32 = !{!25, !10, i64 24}
!33 = !{!25, !7, i64 32}
!34 = !{!8, !8, i64 0}
!35 = !{!25, !7, i64 52}
!36 = !{!25, !7, i64 56}
!37 = !{!25, !29, i64 80}
!38 = !{!25, !30, i64 84}
!39 = !{!25, !14, i64 88}
!40 = !{!25, !7, i64 92}
!41 = !{!25, !10, i64 96}
!42 = !{!43, !7, i64 0}
!43 = !{!"_ZTS24VkSurfaceCapabilitiesKHR", !7, i64 0, !7, i64 4, !27, i64 8, !27, i64 16, !27, i64 24, !7, i64 32, !7, i64 36, !29, i64 40, !7, i64 44, !7, i64 48}
!44 = !{!43, !7, i64 4}
!45 = !{!43, !7, i64 8}
!46 = !{!10, !10, i64 0}
!47 = !{!48, !10, i64 24}
!48 = !{!"_ZTS23ImGui_ImplVulkanH_Frame", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.unroll.disable"}
!51 = distinct !{!51, !21}
!52 = !{!6, !15, i64 56}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!6, !12, i64 24}
!56 = !{!57, !12, i64 4}
!57 = !{!"_ZTS23VkAttachmentDescription", !7, i64 0, !12, i64 4, !58, i64 8, !59, i64 12, !60, i64 16, !59, i64 20, !60, i64 24, !61, i64 28, !61, i64 32}
!58 = !{!"_ZTS21VkSampleCountFlagBits", !8, i64 0}
!59 = !{!"_ZTS18VkAttachmentLoadOp", !8, i64 0}
!60 = !{!"_ZTS19VkAttachmentStoreOp", !8, i64 0}
!61 = !{!"_ZTS13VkImageLayout", !8, i64 0}
!62 = !{!57, !58, i64 8}
!63 = !{!6, !15, i64 57}
!64 = !{!57, !59, i64 12}
!65 = !{!57, !61, i64 32}
!66 = !{!67, !7, i64 24}
!67 = !{!"_ZTS20VkSubpassDescription", !7, i64 0, !68, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !10, i64 64}
!68 = !{!"_ZTS19VkPipelineBindPoint", !8, i64 0}
!69 = !{!67, !10, i64 32}
!70 = !{!7, !7, i64 0}
!71 = !{!72, !7, i64 16}
!72 = !{!"_ZTS19VkSubpassDependency", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!73 = !{!72, !7, i64 20}
!74 = !{!75, !26, i64 0}
!75 = !{!"_ZTS22VkRenderPassCreateInfo", !26, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56}
!76 = !{!75, !7, i64 20}
!77 = !{!75, !10, i64 24}
!78 = !{!75, !7, i64 32}
!79 = !{!75, !10, i64 40}
!80 = !{!75, !7, i64 48}
!81 = !{!75, !10, i64 56}
!82 = !{!83, !26, i64 0}
!83 = !{!"_ZTS21VkImageViewCreateInfo", !26, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !84, i64 32, !12, i64 36, !85, i64 40, !87, i64 56}
!84 = !{!"_ZTS15VkImageViewType", !8, i64 0}
!85 = !{!"_ZTS18VkComponentMapping", !86, i64 0, !86, i64 4, !86, i64 8, !86, i64 12}
!86 = !{!"_ZTS18VkComponentSwizzle", !8, i64 0}
!87 = !{!"_ZTS23VkImageSubresourceRange", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!88 = !{!83, !84, i64 32}
!89 = !{!83, !12, i64 36}
!90 = !{!86, !86, i64 0}
!91 = !{i64 0, i64 4, !70, i64 4, i64 4, !70, i64 8, i64 4, !70, i64 12, i64 4, !70, i64 16, i64 4, !70}
!92 = !{!83, !10, i64 24}
!93 = distinct !{!93, !21}
!94 = !{!95, !26, i64 0}
!95 = !{!"_ZTS23VkFramebufferCreateInfo", !26, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !7, i64 52, !7, i64 56}
!96 = !{!95, !10, i64 24}
!97 = !{!95, !7, i64 32}
!98 = !{!95, !10, i64 40}
!99 = !{!95, !7, i64 56}
!100 = !{!48, !10, i64 32}
!101 = distinct !{!101, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,MergedLoadStoreMotionPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass