; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/backends (imgui_impl_vulkan)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.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, %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 [103 x i8], align 1
@.str.18 = 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.19 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [21 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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #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) #1

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

declare i32 @vkDeviceWaitIdle(ptr noundef) #1

; 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 11
  %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 13
  %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 14
  %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 13
  %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 14
  %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 13
  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 14
  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 11
  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 11
  %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 11
  %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.18, ptr noundef @.str.1, i32 noundef 1147, 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 11
  %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.19, ptr noundef @.str.1, i32 noundef 1148, 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 11
  %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 13
  %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.20, ptr noundef @.str.1, i32 noundef 1152, 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 11
  %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 13
  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 11
  %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 14
  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 13
  %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 11
  %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 14
  %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 11
  %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 11
  %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 13
  %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
  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)
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %314, i32 0, i32 4
  %316 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %315, i32 0, i32 0
  %317 = load i32, ptr %316, align 8, !tbaa !38
  %318 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 1
  store i32 %317, ptr %318, align 4, !tbaa !62
  %319 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 2
  store i32 1, ptr %319, align 4, !tbaa !68
  %320 = load ptr, ptr %10, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %320, i32 0, i32 8
  %322 = load i8, ptr %321, align 8, !tbaa !69, !range !70, !noundef !71
  %323 = trunc i8 %322 to i1
  %324 = zext i1 %323 to i64
  %325 = select i1 %323, i32 1, i32 2
  %326 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 3
  store i32 %325, ptr %326, align 4, !tbaa !72
  %327 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 4
  store i32 0, ptr %327, align 4, !tbaa !73
  %328 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 5
  store i32 2, ptr %328, align 4, !tbaa !74
  %329 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 6
  store i32 1, ptr %329, align 4, !tbaa !75
  %330 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 7
  store i32 0, ptr %330, align 4, !tbaa !76
  %331 = getelementptr inbounds %struct.VkAttachmentDescription, ptr %22, i32 0, i32 8
  store i32 1000001002, ptr %331, align 4, !tbaa !77
  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)
  %332 = getelementptr inbounds %struct.VkAttachmentReference, ptr %23, i32 0, i32 0
  store i32 0, ptr %332, align 4, !tbaa !78
  %333 = getelementptr inbounds %struct.VkAttachmentReference, ptr %23, i32 0, i32 1
  store i32 2, ptr %333, align 4, !tbaa !80
  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)
  %334 = getelementptr inbounds %struct.VkSubpassDescription, ptr %24, i32 0, i32 1
  store i32 0, ptr %334, align 4, !tbaa !81
  %335 = getelementptr inbounds %struct.VkSubpassDescription, ptr %24, i32 0, i32 4
  store i32 1, ptr %335, align 8, !tbaa !84
  %336 = getelementptr inbounds %struct.VkSubpassDescription, ptr %24, i32 0, i32 5
  store ptr %23, ptr %336, align 8, !tbaa !85
  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)
  %337 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 0
  store i32 -1, ptr %337, align 4, !tbaa !86
  %338 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 1
  store i32 0, ptr %338, align 4, !tbaa !88
  %339 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 2
  store i32 1024, ptr %339, align 4, !tbaa !89
  %340 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 3
  store i32 1024, ptr %340, align 4, !tbaa !90
  %341 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 4
  store i32 0, ptr %341, align 4, !tbaa !91
  %342 = getelementptr inbounds %struct.VkSubpassDependency, ptr %25, i32 0, i32 5
  store i32 256, ptr %342, align 4, !tbaa !92
  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)
  %343 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 0
  store i32 38, ptr %343, align 8, !tbaa !93
  %344 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 3
  store i32 1, ptr %344, align 4, !tbaa !95
  %345 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 4
  store ptr %22, ptr %345, align 8, !tbaa !96
  %346 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 5
  store i32 1, ptr %346, align 8, !tbaa !97
  %347 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 6
  store ptr %24, ptr %347, align 8, !tbaa !98
  %348 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 7
  store i32 1, ptr %348, align 8, !tbaa !99
  %349 = getelementptr inbounds %struct.VkRenderPassCreateInfo, ptr %26, i32 0, i32 8
  store ptr %25, ptr %349, align 8, !tbaa !100
  %350 = load ptr, ptr %9, align 8, !tbaa !5
  %351 = load ptr, ptr %11, align 8, !tbaa !5
  %352 = load ptr, ptr %10, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %352, i32 0, i32 6
  %354 = call i32 @vkCreateRenderPass(ptr noundef %350, ptr noundef %26, ptr noundef %351, ptr noundef %353)
  store i32 %354, ptr %15, align 4, !tbaa !18
  %355 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %355)
  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
  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)
  %356 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 0
  store i32 15, ptr %356, align 8, !tbaa !101
  %357 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 4
  store i32 1, ptr %357, align 8, !tbaa !107
  %358 = load ptr, ptr %10, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %358, i32 0, i32 4
  %360 = getelementptr inbounds %struct.VkSurfaceFormatKHR, ptr %359, i32 0, i32 0
  %361 = load i32, ptr %360, align 8, !tbaa !38
  %362 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 5
  store i32 %361, ptr %362, align 4, !tbaa !108
  %363 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %364 = getelementptr inbounds %struct.VkComponentMapping, ptr %363, i32 0, i32 0
  store i32 3, ptr %364, align 8, !tbaa !109
  %365 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %366 = getelementptr inbounds %struct.VkComponentMapping, ptr %365, i32 0, i32 1
  store i32 4, ptr %366, align 4, !tbaa !110
  %367 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %368 = getelementptr inbounds %struct.VkComponentMapping, ptr %367, i32 0, i32 2
  store i32 5, ptr %368, align 8, !tbaa !111
  %369 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 6
  %370 = getelementptr inbounds %struct.VkComponentMapping, ptr %369, i32 0, i32 3
  store i32 6, ptr %370, align 4, !tbaa !112
  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)
  %371 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %371, ptr align 4 %28, i64 20, i1 false), !tbaa.struct !113
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %372

372:                                              ; preds = %396, %313
  %373 = load i32, ptr %29, align 4, !tbaa !9
  %374 = load ptr, ptr %10, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %374, i32 0, i32 11
  %376 = load i32, ptr %375, align 8, !tbaa !20
  %377 = icmp ult i32 %373, %376
  br i1 %377, label %379, label %378

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

379:                                              ; preds = %372
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %380 = load ptr, ptr %10, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %380, i32 0, i32 13
  %382 = load ptr, ptr %381, align 8, !tbaa !21
  %383 = load i32, ptr %29, align 4, !tbaa !9
  %384 = zext i32 %383 to i64
  %385 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %382, i64 %384
  store ptr %385, ptr %30, align 8, !tbaa !5
  %386 = load ptr, ptr %30, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %386, i32 0, i32 3
  %388 = load ptr, ptr %387, align 8, !tbaa !59
  %389 = getelementptr inbounds %struct.VkImageViewCreateInfo, ptr %27, i32 0, i32 3
  store ptr %388, ptr %389, align 8, !tbaa !114
  %390 = load ptr, ptr %9, align 8, !tbaa !5
  %391 = load ptr, ptr %11, align 8, !tbaa !5
  %392 = load ptr, ptr %30, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %392, i32 0, i32 4
  %394 = call i32 @vkCreateImageView(ptr noundef %390, ptr noundef %27, ptr noundef %391, ptr noundef %393)
  store i32 %394, ptr %15, align 4, !tbaa !18
  %395 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %395)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %396

396:                                              ; preds = %379
  %397 = load i32, ptr %29, align 4, !tbaa !9
  %398 = add i32 %397, 1
  store i32 %398, ptr %29, align 4, !tbaa !9
  br label %372, !llvm.loop !115

399:                                              ; preds = %378
  call void @llvm.lifetime.end.p0(i64 20, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #7
  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)
  %400 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 0
  store i32 37, ptr %400, align 8, !tbaa !116
  %401 = load ptr, ptr %10, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %401, i32 0, i32 6
  %403 = load ptr, ptr %402, align 8, !tbaa !25
  %404 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 3
  store ptr %403, ptr %404, align 8, !tbaa !118
  %405 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 4
  store i32 1, ptr %405, align 8, !tbaa !119
  %406 = getelementptr inbounds [1 x ptr], ptr %31, i64 0, i64 0
  %407 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 5
  store ptr %406, ptr %407, align 8, !tbaa !120
  %408 = load ptr, ptr %10, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %408, i32 0, i32 0
  %410 = load i32, ptr %409, align 8, !tbaa !54
  %411 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 6
  store i32 %410, ptr %411, align 8, !tbaa !121
  %412 = load ptr, ptr %10, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %412, i32 0, i32 1
  %414 = load i32, ptr %413, align 4, !tbaa !56
  %415 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 7
  store i32 %414, ptr %415, align 4, !tbaa !122
  %416 = getelementptr inbounds %struct.VkFramebufferCreateInfo, ptr %32, i32 0, i32 8
  store i32 1, ptr %416, align 8, !tbaa !123
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %417

417:                                              ; preds = %441, %399
  %418 = load i32, ptr %33, align 4, !tbaa !9
  %419 = load ptr, ptr %10, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %419, i32 0, i32 11
  %421 = load i32, ptr %420, align 8, !tbaa !20
  %422 = icmp ult i32 %418, %421
  br i1 %422, label %424, label %423

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

424:                                              ; preds = %417
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %425 = load ptr, ptr %10, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Window, ptr %425, i32 0, i32 13
  %427 = load ptr, ptr %426, align 8, !tbaa !21
  %428 = load i32, ptr %33, align 4, !tbaa !9
  %429 = zext i32 %428 to i64
  %430 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %427, i64 %429
  store ptr %430, ptr %34, align 8, !tbaa !5
  %431 = load ptr, ptr %34, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %431, i32 0, i32 4
  %433 = load ptr, ptr %432, align 8, !tbaa !124
  %434 = getelementptr inbounds [1 x ptr], ptr %31, i64 0, i64 0
  store ptr %433, ptr %434, align 8, !tbaa !5
  %435 = load ptr, ptr %9, align 8, !tbaa !5
  %436 = load ptr, ptr %11, align 8, !tbaa !5
  %437 = load ptr, ptr %34, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %437, i32 0, i32 5
  %439 = call i32 @vkCreateFramebuffer(ptr noundef %435, ptr noundef %32, ptr noundef %436, ptr noundef %438)
  store i32 %439, ptr %15, align 4, !tbaa !18
  %440 = load i32, ptr %15, align 4, !tbaa !18
  call void @_ZL15check_vk_result8VkResult(i32 noundef %440)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %441

441:                                              ; preds = %424
  %442 = load i32, ptr %33, align 4, !tbaa !9
  %443 = add i32 %442, 1
  store i32 %443, ptr %33, align 4, !tbaa !9
  br label %417, !llvm.loop !125

444:                                              ; preds = %423
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  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) #1

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #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, !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 = !{!63, !14, i64 4}
!63 = !{!"_ZTS23VkAttachmentDescription", !10, i64 0, !14, i64 4, !64, i64 8, !65, i64 12, !66, i64 16, !65, i64 20, !66, i64 24, !67, i64 28, !67, i64 32}
!64 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!65 = !{!"_ZTS18VkAttachmentLoadOp", !7, i64 0}
!66 = !{!"_ZTS19VkAttachmentStoreOp", !7, i64 0}
!67 = !{!"_ZTS13VkImageLayout", !7, i64 0}
!68 = !{!63, !64, i64 8}
!69 = !{!12, !17, i64 56}
!70 = !{i8 0, i8 2}
!71 = !{}
!72 = !{!63, !65, i64 12}
!73 = !{!63, !66, i64 16}
!74 = !{!63, !65, i64 20}
!75 = !{!63, !66, i64 24}
!76 = !{!63, !67, i64 28}
!77 = !{!63, !67, i64 32}
!78 = !{!79, !10, i64 0}
!79 = !{!"_ZTS21VkAttachmentReference", !10, i64 0, !67, i64 4}
!80 = !{!79, !67, i64 4}
!81 = !{!82, !83, i64 4}
!82 = !{!"_ZTS20VkSubpassDescription", !10, i64 0, !83, 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}
!83 = !{!"_ZTS19VkPipelineBindPoint", !7, i64 0}
!84 = !{!82, !10, i64 24}
!85 = !{!82, !6, i64 32}
!86 = !{!87, !10, i64 0}
!87 = !{!"_ZTS19VkSubpassDependency", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!88 = !{!87, !10, i64 4}
!89 = !{!87, !10, i64 8}
!90 = !{!87, !10, i64 12}
!91 = !{!87, !10, i64 16}
!92 = !{!87, !10, i64 20}
!93 = !{!94, !30, i64 0}
!94 = !{!"_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}
!95 = !{!94, !10, i64 20}
!96 = !{!94, !6, i64 24}
!97 = !{!94, !10, i64 32}
!98 = !{!94, !6, i64 40}
!99 = !{!94, !10, i64 48}
!100 = !{!94, !6, i64 56}
!101 = !{!102, !30, i64 0}
!102 = !{!"_ZTS21VkImageViewCreateInfo", !30, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !103, i64 32, !14, i64 36, !104, i64 40, !106, i64 56}
!103 = !{!"_ZTS15VkImageViewType", !7, i64 0}
!104 = !{!"_ZTS18VkComponentMapping", !105, i64 0, !105, i64 4, !105, i64 8, !105, i64 12}
!105 = !{!"_ZTS18VkComponentSwizzle", !7, i64 0}
!106 = !{!"_ZTS23VkImageSubresourceRange", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!107 = !{!102, !103, i64 32}
!108 = !{!102, !14, i64 36}
!109 = !{!102, !105, i64 40}
!110 = !{!102, !105, i64 44}
!111 = !{!102, !105, i64 48}
!112 = !{!102, !105, i64 52}
!113 = !{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}
!114 = !{!102, !6, i64 24}
!115 = distinct !{!115, !24}
!116 = !{!117, !30, i64 0}
!117 = !{!"_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}
!118 = !{!117, !6, i64 24}
!119 = !{!117, !10, i64 32}
!120 = !{!117, !6, i64 40}
!121 = !{!117, !10, i64 48}
!122 = !{!117, !10, i64 52}
!123 = !{!117, !10, i64 56}
!124 = !{!60, !6, i64 32}
!125 = distinct !{!125, !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 [103 x i8], align 1
@.str.18 = 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.19 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [21 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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 #1

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

declare i32 @vkDeviceWaitIdle(ptr noundef) local_unnamed_addr #1

; 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
  %.not138 = icmp eq i32 %23, 0
  br i1 %.not138, 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
  %.not121 = icmp eq ptr %43, null
  br i1 %.not121, 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
  %.not122 = icmp ne i32 %73, 0
  %74 = icmp ugt i32 %.0, %73
  %or.cond = and i1 %.not122, %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
  %.sink154 = select i1 %78, i32 %4, i32 %77
  %.sink152 = select i1 %78, i32 %5, i32 %80
  store i32 %.sink154, ptr %2, align 8
  %81 = getelementptr inbounds i8, ptr %8, i64 44
  store i32 %.sink154, ptr %81, align 4
  %82 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 %.sink152, ptr %82, align 4
  %83 = getelementptr inbounds i8, ptr %8, i64 48
  store i32 %.sink152, 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
  %.not123 = icmp ult i32 %87, %.0
  br i1 %.not123, label %88, label %89

88:                                               ; preds = %75
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.1, i32 noundef 1147, 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.19, ptr noundef nonnull @.str.1, i32 noundef 1148, 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.20, ptr noundef nonnull @.str.1, i32 noundef 1152, 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
  %.not139 = icmp eq i32 %115, 0
  br i1 %.not139, label %._crit_edge129, label %.lr.ph128

.lr.ph128:                                        ; 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_edge129.loopexit.unr-lcssa, label %.lr.ph128.new

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

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

.epil.preheader:                                  ; preds = %._crit_edge129.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv143.epil = phi i64 [ %indvars.iv.next144.epil, %.epil.preheader ], [ %indvars.iv143.unr, %._crit_edge129.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge129.loopexit.unr-lcssa ]
  %118 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv143.epil
  %119 = load ptr, ptr %118, align 8, !tbaa !46
  %120 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv143.epil, i32 3
  store ptr %119, ptr %120, align 8, !tbaa !47
  %indvars.iv.next144.epil = add nuw nsw i64 %indvars.iv143.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_edge129, label %.epil.preheader, !llvm.loop !49

._crit_edge129:                                   ; preds = %._crit_edge129.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
  %.not124 = icmp eq ptr %20, null
  br i1 %.not124, label %135, label %134

121:                                              ; preds = %121, %.lr.ph128.new
  %indvars.iv143 = phi i64 [ 0, %.lr.ph128.new ], [ %indvars.iv.next144.3, %121 ]
  %niter = phi i64 [ 0, %.lr.ph128.new ], [ %niter.next.3, %121 ]
  %122 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv143
  %123 = load ptr, ptr %122, align 16, !tbaa !46
  %124 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv143, i32 3
  store ptr %123, ptr %124, align 8, !tbaa !47
  %indvars.iv.next144 = or disjoint i64 %indvars.iv143, 1
  %125 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv.next144
  %126 = load ptr, ptr %125, align 8, !tbaa !46
  %127 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv.next144, i32 3
  store ptr %126, ptr %127, align 8, !tbaa !47
  %indvars.iv.next144.1 = or disjoint i64 %indvars.iv143, 2
  %128 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv.next144.1
  %129 = load ptr, ptr %128, align 16, !tbaa !46
  %130 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv.next144.1, i32 3
  store ptr %129, ptr %130, align 8, !tbaa !47
  %indvars.iv.next144.2 = or disjoint i64 %indvars.iv143, 3
  %131 = getelementptr inbounds [16 x ptr], ptr %10, i64 0, i64 %indvars.iv.next144.2
  %132 = load ptr, ptr %131, align 8, !tbaa !46
  %133 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %116, i64 %indvars.iv.next144.2, i32 3
  store ptr %132, ptr %133, align 8, !tbaa !47
  %indvars.iv.next144.3 = add nuw nsw i64 %indvars.iv143, 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_edge129.loopexit.unr-lcssa, label %121, !llvm.loop !51

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

135:                                              ; preds = %134, %._crit_edge129
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %11) #7
  store i32 0, ptr %11, align 4
  %136 = load i32, ptr %56, align 8, !tbaa !52
  %137 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 %136, ptr %137, align 4, !tbaa !53
  %138 = getelementptr inbounds i8, ptr %11, i64 8
  store i32 1, ptr %138, align 4, !tbaa !59
  %139 = getelementptr inbounds i8, ptr %2, i64 56
  %140 = load i8, ptr %139, align 8, !tbaa !60, !range !61, !noundef !62
  %141 = trunc nuw i8 %140 to i1
  %142 = select i1 %141, i32 1, i32 2
  %143 = getelementptr inbounds i8, ptr %11, i64 12
  store i32 %142, ptr %143, align 4, !tbaa !63
  %144 = getelementptr inbounds i8, ptr %11, i64 16
  store <4 x i32> <i32 0, i32 2, i32 1, i32 0>, ptr %144, align 4, !tbaa !34
  %145 = getelementptr inbounds i8, ptr %11, i64 32
  store i32 1000001002, ptr %145, align 4, !tbaa !64
  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
  %146 = 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 %146, align 8, !tbaa !65
  %147 = getelementptr inbounds i8, ptr %13, i64 32
  store ptr %12, ptr %147, align 8, !tbaa !68
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %14) #7
  %148 = getelementptr inbounds i8, ptr %14, i64 24
  store i32 0, ptr %148, align 8
  store <4 x i32> <i32 -1, i32 0, i32 1024, i32 1024>, ptr %14, align 16, !tbaa !69
  %149 = getelementptr inbounds i8, ptr %14, i64 16
  store i32 0, ptr %149, align 16, !tbaa !70
  %150 = getelementptr inbounds i8, ptr %14, i64 20
  store i32 256, ptr %150, align 4, !tbaa !72
  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 !73
  %151 = getelementptr inbounds i8, ptr %15, i64 20
  store i32 1, ptr %151, align 4, !tbaa !75
  %152 = getelementptr inbounds i8, ptr %15, i64 24
  store ptr %11, ptr %152, align 8, !tbaa !76
  %153 = getelementptr inbounds i8, ptr %15, i64 32
  store i32 1, ptr %153, align 8, !tbaa !77
  %154 = getelementptr inbounds i8, ptr %15, i64 40
  store ptr %13, ptr %154, align 8, !tbaa !78
  %155 = getelementptr inbounds i8, ptr %15, i64 48
  store i32 1, ptr %155, align 8, !tbaa !79
  %156 = getelementptr inbounds i8, ptr %15, i64 56
  store ptr %14, ptr %156, align 8, !tbaa !80
  %157 = call i32 @vkCreateRenderPass(ptr noundef %1, ptr noundef nonnull %15, ptr noundef %3, ptr noundef nonnull %30)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %157)
  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
  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 !81
  %158 = getelementptr inbounds i8, ptr %16, i64 32
  store i32 1, ptr %158, align 8, !tbaa !87
  %159 = load i32, ptr %56, align 8, !tbaa !52
  %160 = getelementptr inbounds i8, ptr %16, i64 36
  store i32 %159, ptr %160, align 4, !tbaa !88
  %161 = getelementptr inbounds i8, ptr %16, i64 40
  store <4 x i32> <i32 3, i32 4, i32 5, i32 6>, ptr %161, align 8, !tbaa !89
  %162 = getelementptr inbounds i8, ptr %16, i64 56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %162, ptr noundef nonnull align 4 dereferenceable(20) @__const._Z39ImGui_ImplVulkanH_CreateWindowSwapChainP18VkPhysicalDevice_TP10VkDevice_TP24ImGui_ImplVulkanH_WindowPK21VkAllocationCallbacksiij.image_range, i64 20, i1 false), !tbaa.struct !90
  %163 = load i32, ptr %22, align 8, !tbaa !16
  %.not140 = icmp eq i32 %163, 0
  br i1 %.not140, label %._crit_edge133, label %.lr.ph132

.lr.ph132:                                        ; preds = %135
  %164 = getelementptr inbounds i8, ptr %16, i64 24
  br label %173

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

._crit_edge133:                                   ; preds = %._crit_edge133.loopexit, %135
  %.not141 = phi i1 [ %165, %._crit_edge133.loopexit ], [ true, %135 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %16) #7
  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 !91
  %166 = load ptr, ptr %30, align 8, !tbaa !19
  %167 = getelementptr inbounds i8, ptr %18, i64 24
  store ptr %166, ptr %167, align 8, !tbaa !93
  %168 = getelementptr inbounds i8, ptr %18, i64 32
  store i32 1, ptr %168, align 8, !tbaa !94
  %169 = getelementptr inbounds i8, ptr %18, i64 40
  store ptr %17, ptr %169, align 8, !tbaa !95
  %170 = getelementptr inbounds i8, ptr %18, i64 48
  %171 = load <2 x i32>, ptr %2, align 8, !tbaa !69
  store <2 x i32> %171, ptr %170, align 8, !tbaa !69
  %172 = getelementptr inbounds i8, ptr %18, i64 56
  store i32 1, ptr %172, align 8, !tbaa !96
  br i1 %.not141, label %._crit_edge137, label %.lr.ph136

173:                                              ; preds = %.lr.ph132, %173
  %indvars.iv146 = phi i64 [ 0, %.lr.ph132 ], [ %indvars.iv.next147, %173 ]
  %174 = load ptr, ptr %26, align 8, !tbaa !17
  %175 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %174, i64 %indvars.iv146
  %176 = getelementptr inbounds i8, ptr %175, i64 24
  %177 = load ptr, ptr %176, align 8, !tbaa !47
  store ptr %177, ptr %164, align 8, !tbaa !97
  %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.next147 = add nuw nsw i64 %indvars.iv146, 1
  %180 = load i32, ptr %22, align 8, !tbaa !16
  %181 = zext i32 %180 to i64
  %182 = icmp ult i64 %indvars.iv.next147, %181
  br i1 %182, label %173, label %._crit_edge133.loopexit, !llvm.loop !98

._crit_edge137:                                   ; preds = %.lr.ph136, %._crit_edge133
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  ret void

.lr.ph136:                                        ; preds = %._crit_edge133, %.lr.ph136
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %.lr.ph136 ], [ 0, %._crit_edge133 ]
  %183 = load ptr, ptr %26, align 8, !tbaa !17
  %184 = getelementptr inbounds %struct.ImGui_ImplVulkanH_Frame, ptr %183, i64 %indvars.iv149
  %185 = getelementptr inbounds i8, ptr %184, i64 32
  %186 = load ptr, ptr %185, align 8, !tbaa !99
  store ptr %186, ptr %17, align 8, !tbaa !46
  %187 = getelementptr inbounds i8, ptr %184, i64 40
  %188 = call i32 @vkCreateFramebuffer(ptr noundef %1, ptr noundef nonnull %18, ptr noundef %3, ptr noundef nonnull %187)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %188)
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %189 = load i32, ptr %22, align 8, !tbaa !16
  %190 = zext i32 %189 to i64
  %191 = icmp ult i64 %indvars.iv.next150, %190
  br i1 %191, label %.lr.ph136, label %._crit_edge137, !llvm.loop !100
}

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #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, !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, !12, i64 24}
!53 = !{!54, !12, i64 4}
!54 = !{!"_ZTS23VkAttachmentDescription", !7, i64 0, !12, i64 4, !55, i64 8, !56, i64 12, !57, i64 16, !56, i64 20, !57, i64 24, !58, i64 28, !58, i64 32}
!55 = !{!"_ZTS21VkSampleCountFlagBits", !8, i64 0}
!56 = !{!"_ZTS18VkAttachmentLoadOp", !8, i64 0}
!57 = !{!"_ZTS19VkAttachmentStoreOp", !8, i64 0}
!58 = !{!"_ZTS13VkImageLayout", !8, i64 0}
!59 = !{!54, !55, i64 8}
!60 = !{!6, !15, i64 56}
!61 = !{i8 0, i8 2}
!62 = !{}
!63 = !{!54, !56, i64 12}
!64 = !{!54, !58, i64 32}
!65 = !{!66, !7, i64 24}
!66 = !{!"_ZTS20VkSubpassDescription", !7, i64 0, !67, 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}
!67 = !{!"_ZTS19VkPipelineBindPoint", !8, i64 0}
!68 = !{!66, !10, i64 32}
!69 = !{!7, !7, i64 0}
!70 = !{!71, !7, i64 16}
!71 = !{!"_ZTS19VkSubpassDependency", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!72 = !{!71, !7, i64 20}
!73 = !{!74, !26, i64 0}
!74 = !{!"_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}
!75 = !{!74, !7, i64 20}
!76 = !{!74, !10, i64 24}
!77 = !{!74, !7, i64 32}
!78 = !{!74, !10, i64 40}
!79 = !{!74, !7, i64 48}
!80 = !{!74, !10, i64 56}
!81 = !{!82, !26, i64 0}
!82 = !{!"_ZTS21VkImageViewCreateInfo", !26, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !83, i64 32, !12, i64 36, !84, i64 40, !86, i64 56}
!83 = !{!"_ZTS15VkImageViewType", !8, i64 0}
!84 = !{!"_ZTS18VkComponentMapping", !85, i64 0, !85, i64 4, !85, i64 8, !85, i64 12}
!85 = !{!"_ZTS18VkComponentSwizzle", !8, i64 0}
!86 = !{!"_ZTS23VkImageSubresourceRange", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!87 = !{!82, !83, i64 32}
!88 = !{!82, !12, i64 36}
!89 = !{!85, !85, i64 0}
!90 = !{i64 0, i64 4, !69, i64 4, i64 4, !69, i64 8, i64 4, !69, i64 12, i64 4, !69, i64 16, i64 4, !69}
!91 = !{!92, !26, i64 0}
!92 = !{!"_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}
!93 = !{!92, !10, i64 24}
!94 = !{!92, !7, i64 32}
!95 = !{!92, !10, i64 40}
!96 = !{!92, !7, i64 56}
!97 = !{!82, !10, i64 24}
!98 = distinct !{!98, !21}
!99 = !{!48, !10, i64 32}
!100 = distinct !{!100, !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