; 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.VkMappedMemoryRange = type { i32, ptr, ptr, i64, i64 }
%struct.ImVec2 = type { float, float }
%struct.VkRect2D = type { %struct.VkOffset2D, %struct.VkExtent2D }
%struct.VkOffset2D = type { i32, i32 }
%struct.VkExtent2D = type { i32, i32 }
%struct.ImDrawData = type { i8, i32, i32, i32, %struct.ImVector, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGui_ImplVulkan_Data = type { %struct.ImGui_ImplVulkan_InitInfo, ptr, i64, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImGui_ImplVulkanH_WindowRenderBuffers }
%struct.ImGui_ImplVulkan_InitInfo = type { ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, i8, i32, ptr, ptr }
%struct.ImGui_ImplVulkanH_WindowRenderBuffers = type { i32, i32, ptr }
%struct.ImGuiViewport = type <{ i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i32, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, [4 x i8] }>
%struct.ImGui_ImplVulkan_ViewportData = type { i8, %struct.ImGui_ImplVulkanH_Window, %struct.ImGui_ImplVulkanH_WindowRenderBuffers }
%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_FrameRenderBuffers = type { ptr, ptr, i64, i64, ptr, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.0, %struct.ImVector.1, %struct.ImVector.2, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.3, %struct.ImVector.4, %struct.ImVector.5, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.6 }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }
%struct.ImDrawCmd = type { %struct.ImVec4, ptr, i32, i32, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T = external hidden unnamed_addr constant [80 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca [2 x %struct.VkMappedMemoryRange], align 16
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca %struct.ImVec2, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca %struct.ImVec2, align 4
  %32 = alloca %struct.ImVec2, align 4
  %33 = alloca %struct.VkRect2D, align 4
  %34 = alloca [1 x ptr], align 8
  %35 = alloca %struct.VkRect2D, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImDrawData, ptr %36, i32 0, i32 6
  %38 = getelementptr inbounds %struct.ImVec2, ptr %37, i32 0, i32 0
  %39 = load float, ptr %38, align 8, !tbaa !9
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ImDrawData, ptr %40, i32 0, i32 7
  %42 = getelementptr inbounds %struct.ImVec2, ptr %41, i32 0, i32 0
  %43 = load float, ptr %42, align 8, !tbaa !16
  %44 = fmul float %39, %43
  %45 = fptosi float %44 to i32
  store i32 %45, ptr %7, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImDrawData, ptr %46, i32 0, i32 6
  %48 = getelementptr inbounds %struct.ImVec2, ptr %47, i32 0, i32 1
  %49 = load float, ptr %48, align 4, !tbaa !18
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImDrawData, ptr %50, i32 0, i32 7
  %52 = getelementptr inbounds %struct.ImVec2, ptr %51, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !19
  %54 = fmul float %49, %53
  %55 = fptosi float %54 to i32
  store i32 %55, ptr %8, align 4, !tbaa !17
  %56 = load i32, ptr %7, align 4, !tbaa !17
  %57 = icmp sle i32 %56, 0
  br i1 %57, label %61, label %58

58:                                               ; preds = %3
  %59 = load i32, ptr %8, align 4, !tbaa !17
  %60 = icmp sle i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %58, %3
  store i32 1, ptr %9, align 4
  br label %539

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %63 = call noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav()
  store ptr %63, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %64, i32 0, i32 0
  store ptr %65, ptr %11, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %72

68:                                               ; preds = %62
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %69, i32 0, i32 6
  %71 = load ptr, ptr %70, align 8, !tbaa !20
  store ptr %71, ptr %6, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %68, %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ImDrawData, ptr %73, i32 0, i32 8
  %75 = load ptr, ptr %74, align 8, !tbaa !27
  %76 = getelementptr inbounds %struct.ImGuiViewport, ptr %75, i32 0, i32 9
  %77 = load ptr, ptr %76, align 8, !tbaa !28
  store ptr %77, ptr %12, align 8, !tbaa !5
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %81

80:                                               ; preds = %72
  br label %83

81:                                               ; preds = %72
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 500, ptr noundef @__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T) #9
  unreachable

82:                                               ; No predecessors!
  br label %83

83:                                               ; preds = %82, %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ImGui_ImplVulkan_ViewportData, ptr %84, i32 0, i32 2
  store ptr %85, ptr %13, align 8, !tbaa !5
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !30
  %89 = icmp eq ptr %88, null
  br i1 %89, label %90, label %114

90:                                               ; preds = %83
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %91, i32 0, i32 0
  store i32 0, ptr %92, align 8, !tbaa !31
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %93, i32 0, i32 9
  %95 = load i32, ptr %94, align 8, !tbaa !32
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %96, i32 0, i32 1
  store i32 %95, ptr %97, align 4, !tbaa !33
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 4, !tbaa !33
  %101 = zext i32 %100 to i64
  %102 = mul i64 48, %101
  %103 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %102)
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %104, i32 0, i32 2
  store ptr %103, ptr %105, align 8, !tbaa !30
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !30
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %109, i32 0, i32 1
  %111 = load i32, ptr %110, align 4, !tbaa !33
  %112 = zext i32 %111 to i64
  %113 = mul i64 48, %112
  call void @llvm.memset.p0.i64(ptr align 8 %108, i8 0, i64 %113, i1 false)
  br label %114

114:                                              ; preds = %90, %83
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !33
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %118, i32 0, i32 9
  %120 = load i32, ptr %119, align 8, !tbaa !32
  %121 = icmp eq i32 %117, %120
  br i1 %121, label %122, label %123

122:                                              ; preds = %114
  br label %125

123:                                              ; preds = %114
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 509, ptr noundef @__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T) #9
  unreachable

124:                                              ; No predecessors!
  br label %125

125:                                              ; preds = %124, %122
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 8, !tbaa !31
  %129 = add i32 %128, 1
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 4, !tbaa !33
  %133 = urem i32 %129, %132
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %134, i32 0, i32 0
  store i32 %133, ptr %135, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %136, i32 0, i32 2
  %138 = load ptr, ptr %137, align 8, !tbaa !30
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ImGui_ImplVulkanH_WindowRenderBuffers, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !31
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %138, i64 %142
  store ptr %143, ptr %14, align 8, !tbaa !5
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ImDrawData, ptr %144, i32 0, i32 3
  %146 = load i32, ptr %145, align 4, !tbaa !34
  %147 = icmp sgt i32 %146, 0
  br i1 %147, label %148, label %308

148:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImDrawData, ptr %149, i32 0, i32 3
  %151 = load i32, ptr %150, align 4, !tbaa !34
  %152 = sext i32 %151 to i64
  %153 = mul i64 %152, 20
  store i64 %153, ptr %15, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ImDrawData, ptr %154, i32 0, i32 2
  %156 = load i32, ptr %155, align 8, !tbaa !36
  %157 = sext i32 %156 to i64
  %158 = mul i64 %157, 2
  store i64 %158, ptr %16, align 8, !tbaa !35
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !37
  %162 = icmp eq ptr %161, null
  br i1 %162, label %169, label %163

163:                                              ; preds = %148
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %164, i32 0, i32 2
  %166 = load i64, ptr %165, align 8, !tbaa !39
  %167 = load i64, ptr %15, align 8, !tbaa !35
  %168 = icmp ult i64 %166, %167
  br i1 %168, label %169, label %177

169:                                              ; preds = %163, %148
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %14, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %174, i32 0, i32 2
  %176 = load i64, ptr %15, align 8, !tbaa !35
  call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull align 8 dereferenceable(8) %175, i64 noundef %176, i32 noundef 128)
  br label %177

177:                                              ; preds = %169, %163
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %178, i32 0, i32 5
  %180 = load ptr, ptr %179, align 8, !tbaa !40
  %181 = icmp eq ptr %180, null
  br i1 %181, label %188, label %182

182:                                              ; preds = %177
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %183, i32 0, i32 3
  %185 = load i64, ptr %184, align 8, !tbaa !41
  %186 = load i64, ptr %16, align 8, !tbaa !35
  %187 = icmp ult i64 %185, %186
  br i1 %187, label %188, label %196

188:                                              ; preds = %182, %177
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %189, i32 0, i32 5
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %191, i32 0, i32 1
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %193, i32 0, i32 3
  %195 = load i64, ptr %16, align 8, !tbaa !35
  call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull align 8 dereferenceable(8) %194, i64 noundef %195, i32 noundef 64)
  br label %196

196:                                              ; preds = %188, %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %197, i32 0, i32 2
  %199 = load ptr, ptr %198, align 8, !tbaa !42
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %200, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !43
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %203, i32 0, i32 2
  %205 = load i64, ptr %204, align 8, !tbaa !39
  %206 = call i32 @vkMapMemory(ptr noundef %199, ptr noundef %202, i64 noundef 0, i64 noundef %205, i32 noundef 0, ptr noundef %17)
  store i32 %206, ptr %19, align 4, !tbaa !44
  %207 = load i32, ptr %19, align 4, !tbaa !44
  call void @_ZL15check_vk_result8VkResult(i32 noundef %207)
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %208, i32 0, i32 2
  %210 = load ptr, ptr %209, align 8, !tbaa !42
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %211, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !46
  %214 = load ptr, ptr %14, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %214, i32 0, i32 3
  %216 = load i64, ptr %215, align 8, !tbaa !41
  %217 = call i32 @vkMapMemory(ptr noundef %210, ptr noundef %213, i64 noundef 0, i64 noundef %216, i32 noundef 0, ptr noundef %18)
  store i32 %217, ptr %19, align 4, !tbaa !44
  %218 = load i32, ptr %19, align 4, !tbaa !44
  call void @_ZL15check_vk_result8VkResult(i32 noundef %218)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !17
  br label %219

219:                                              ; preds = %268, %196
  %220 = load i32, ptr %20, align 4, !tbaa !17
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.ImDrawData, ptr %221, i32 0, i32 1
  %223 = load i32, ptr %222, align 4, !tbaa !47
  %224 = icmp slt i32 %220, %223
  br i1 %224, label %226, label %225

225:                                              ; preds = %219
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %271

226:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.ImDrawData, ptr %227, i32 0, i32 4
  %229 = load i32, ptr %20, align 4, !tbaa !17
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %228, i32 noundef %229)
  %231 = load ptr, ptr %230, align 8, !tbaa !5
  store ptr %231, ptr %21, align 8, !tbaa !5
  %232 = load ptr, ptr %17, align 8, !tbaa !5
  %233 = load ptr, ptr %21, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.ImDrawList, ptr %233, i32 0, i32 2
  %235 = getelementptr inbounds %struct.ImVector.2, ptr %234, i32 0, i32 2
  %236 = load ptr, ptr %235, align 8, !tbaa !48
  %237 = load ptr, ptr %21, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.ImDrawList, ptr %237, i32 0, i32 2
  %239 = getelementptr inbounds %struct.ImVector.2, ptr %238, i32 0, i32 0
  %240 = load i32, ptr %239, align 8, !tbaa !60
  %241 = sext i32 %240 to i64
  %242 = mul i64 %241, 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %232, ptr align 4 %236, i64 %242, i1 false)
  %243 = load ptr, ptr %18, align 8, !tbaa !5
  %244 = load ptr, ptr %21, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.ImDrawList, ptr %244, i32 0, i32 1
  %246 = getelementptr inbounds %struct.ImVector.1, ptr %245, i32 0, i32 2
  %247 = load ptr, ptr %246, align 8, !tbaa !61
  %248 = load ptr, ptr %21, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.ImDrawList, ptr %248, i32 0, i32 1
  %250 = getelementptr inbounds %struct.ImVector.1, ptr %249, i32 0, i32 0
  %251 = load i32, ptr %250, align 8, !tbaa !62
  %252 = sext i32 %251 to i64
  %253 = mul i64 %252, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %243, ptr align 2 %247, i64 %253, i1 false)
  %254 = load ptr, ptr %21, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.ImDrawList, ptr %254, i32 0, i32 2
  %256 = getelementptr inbounds %struct.ImVector.2, ptr %255, i32 0, i32 0
  %257 = load i32, ptr %256, align 8, !tbaa !60
  %258 = load ptr, ptr %17, align 8, !tbaa !5
  %259 = sext i32 %257 to i64
  %260 = getelementptr inbounds %struct.ImDrawVert, ptr %258, i64 %259
  store ptr %260, ptr %17, align 8, !tbaa !5
  %261 = load ptr, ptr %21, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.ImDrawList, ptr %261, i32 0, i32 1
  %263 = getelementptr inbounds %struct.ImVector.1, ptr %262, i32 0, i32 0
  %264 = load i32, ptr %263, align 8, !tbaa !62
  %265 = load ptr, ptr %18, align 8, !tbaa !5
  %266 = sext i32 %264 to i64
  %267 = getelementptr inbounds i16, ptr %265, i64 %266
  store ptr %267, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %268

268:                                              ; preds = %226
  %269 = load i32, ptr %20, align 4, !tbaa !17
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %20, align 4, !tbaa !17
  br label %219, !llvm.loop !63

271:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 80, ptr %22) #8
  call void @llvm.memset.p0.i64(ptr align 16 %22, i8 0, i64 80, i1 false)
  %272 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %273 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %272, i32 0, i32 0
  store i32 6, ptr %273, align 16, !tbaa !65
  %274 = load ptr, ptr %14, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %274, i32 0, i32 0
  %276 = load ptr, ptr %275, align 8, !tbaa !43
  %277 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %278 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %277, i32 0, i32 2
  store ptr %276, ptr %278, align 16, !tbaa !68
  %279 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %280 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %279, i32 0, i32 4
  store i64 -1, ptr %280, align 16, !tbaa !69
  %281 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 1
  %282 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %281, i32 0, i32 0
  store i32 6, ptr %282, align 8, !tbaa !65
  %283 = load ptr, ptr %14, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %283, i32 0, i32 1
  %285 = load ptr, ptr %284, align 8, !tbaa !46
  %286 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 1
  %287 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %286, i32 0, i32 2
  store ptr %285, ptr %287, align 8, !tbaa !68
  %288 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 1
  %289 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %288, i32 0, i32 4
  store i64 -1, ptr %289, align 8, !tbaa !69
  %290 = load ptr, ptr %11, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %290, i32 0, i32 2
  %292 = load ptr, ptr %291, align 8, !tbaa !42
  %293 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %294 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %292, i32 noundef 2, ptr noundef %293)
  store i32 %294, ptr %19, align 4, !tbaa !44
  %295 = load i32, ptr %19, align 4, !tbaa !44
  call void @_ZL15check_vk_result8VkResult(i32 noundef %295)
  %296 = load ptr, ptr %11, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %296, i32 0, i32 2
  %298 = load ptr, ptr %297, align 8, !tbaa !42
  %299 = load ptr, ptr %14, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %299, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8, !tbaa !43
  call void @vkUnmapMemory(ptr noundef %298, ptr noundef %301)
  %302 = load ptr, ptr %11, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %302, i32 0, i32 2
  %304 = load ptr, ptr %303, align 8, !tbaa !42
  %305 = load ptr, ptr %14, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %305, i32 0, i32 1
  %307 = load ptr, ptr %306, align 8, !tbaa !46
  call void @vkUnmapMemory(ptr noundef %304, ptr noundef %307)
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %308

308:                                              ; preds = %271, %125
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = load ptr, ptr %6, align 8, !tbaa !5
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = load ptr, ptr %14, align 8, !tbaa !5
  %313 = load i32, ptr %7, align 4, !tbaa !17
  %314 = load i32, ptr %8, align 4, !tbaa !17
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP36ImGui_ImplVulkanH_FrameRenderBuffersii(ptr noundef %309, ptr noundef %310, ptr noundef %311, ptr noundef %312, i32 noundef %313, i32 noundef %314)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.ImDrawData, ptr %315, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %316, i64 8, i1 false), !tbaa.struct !70
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.ImDrawData, ptr %317, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %318, i64 8, i1 false), !tbaa.struct !70
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !17
  br label %319

319:                                              ; preds = %526, %308
  %320 = load i32, ptr %27, align 4, !tbaa !17
  %321 = load ptr, ptr %4, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.ImDrawData, ptr %321, i32 0, i32 1
  %323 = load i32, ptr %322, align 4, !tbaa !47
  %324 = icmp slt i32 %320, %323
  br i1 %324, label %326, label %325

325:                                              ; preds = %319
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %529

326:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.ImDrawData, ptr %327, i32 0, i32 4
  %329 = load i32, ptr %27, align 4, !tbaa !17
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %328, i32 noundef %329)
  %331 = load ptr, ptr %330, align 8, !tbaa !5
  store ptr %331, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !17
  br label %332

332:                                              ; preds = %510, %326
  %333 = load i32, ptr %29, align 4, !tbaa !17
  %334 = load ptr, ptr %28, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.ImDrawList, ptr %334, i32 0, i32 0
  %336 = getelementptr inbounds %struct.ImVector.0, ptr %335, i32 0, i32 0
  %337 = load i32, ptr %336, align 8, !tbaa !72
  %338 = icmp slt i32 %333, %337
  br i1 %338, label %340, label %339

339:                                              ; preds = %332
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %513

340:                                              ; preds = %332
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %341 = load ptr, ptr %28, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.ImDrawList, ptr %341, i32 0, i32 0
  %343 = load i32, ptr %29, align 4, !tbaa !17
  %344 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %342, i32 noundef %343)
  store ptr %344, ptr %30, align 8, !tbaa !5
  %345 = load ptr, ptr %30, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.ImDrawCmd, ptr %345, i32 0, i32 5
  %347 = load ptr, ptr %346, align 8, !tbaa !73
  %348 = icmp ne ptr %347, null
  br i1 %348, label %349, label %368

349:                                              ; preds = %340
  %350 = load ptr, ptr %30, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.ImDrawCmd, ptr %350, i32 0, i32 5
  %352 = load ptr, ptr %351, align 8, !tbaa !73
  %353 = icmp eq ptr %352, inttoptr (i64 -8 to ptr)
  br i1 %353, label %354, label %361

354:                                              ; preds = %349
  %355 = load ptr, ptr %4, align 8, !tbaa !5
  %356 = load ptr, ptr %6, align 8, !tbaa !5
  %357 = load ptr, ptr %5, align 8, !tbaa !5
  %358 = load ptr, ptr %14, align 8, !tbaa !5
  %359 = load i32, ptr %7, align 4, !tbaa !17
  %360 = load i32, ptr %8, align 4, !tbaa !17
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP36ImGui_ImplVulkanH_FrameRenderBuffersii(ptr noundef %355, ptr noundef %356, ptr noundef %357, ptr noundef %358, i32 noundef %359, i32 noundef %360)
  br label %367

361:                                              ; preds = %349
  %362 = load ptr, ptr %30, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.ImDrawCmd, ptr %362, i32 0, i32 5
  %364 = load ptr, ptr %363, align 8, !tbaa !73
  %365 = load ptr, ptr %28, align 8, !tbaa !5
  %366 = load ptr, ptr %30, align 8, !tbaa !5
  call void %364(ptr noundef %365, ptr noundef %366)
  br label %367

367:                                              ; preds = %361, %354
  br label %506

368:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %369 = load ptr, ptr %30, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.ImDrawCmd, ptr %369, i32 0, i32 0
  %371 = getelementptr inbounds %struct.ImVec4, ptr %370, i32 0, i32 0
  %372 = load float, ptr %371, align 8, !tbaa !75
  %373 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 0
  %374 = load float, ptr %373, align 4, !tbaa !76
  %375 = fsub float %372, %374
  %376 = getelementptr inbounds %struct.ImVec2, ptr %24, i32 0, i32 0
  %377 = load float, ptr %376, align 4, !tbaa !76
  %378 = fmul float %375, %377
  %379 = load ptr, ptr %30, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.ImDrawCmd, ptr %379, i32 0, i32 0
  %381 = getelementptr inbounds %struct.ImVec4, ptr %380, i32 0, i32 1
  %382 = load float, ptr %381, align 4, !tbaa !77
  %383 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 1
  %384 = load float, ptr %383, align 4, !tbaa !78
  %385 = fsub float %382, %384
  %386 = getelementptr inbounds %struct.ImVec2, ptr %24, i32 0, i32 1
  %387 = load float, ptr %386, align 4, !tbaa !78
  %388 = fmul float %385, %387
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %31, float noundef %378, float noundef %388)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %389 = load ptr, ptr %30, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.ImDrawCmd, ptr %389, i32 0, i32 0
  %391 = getelementptr inbounds %struct.ImVec4, ptr %390, i32 0, i32 2
  %392 = load float, ptr %391, align 8, !tbaa !79
  %393 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 0
  %394 = load float, ptr %393, align 4, !tbaa !76
  %395 = fsub float %392, %394
  %396 = getelementptr inbounds %struct.ImVec2, ptr %24, i32 0, i32 0
  %397 = load float, ptr %396, align 4, !tbaa !76
  %398 = fmul float %395, %397
  %399 = load ptr, ptr %30, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.ImDrawCmd, ptr %399, i32 0, i32 0
  %401 = getelementptr inbounds %struct.ImVec4, ptr %400, i32 0, i32 3
  %402 = load float, ptr %401, align 4, !tbaa !80
  %403 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 1
  %404 = load float, ptr %403, align 4, !tbaa !78
  %405 = fsub float %402, %404
  %406 = getelementptr inbounds %struct.ImVec2, ptr %24, i32 0, i32 1
  %407 = load float, ptr %406, align 4, !tbaa !78
  %408 = fmul float %405, %407
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %32, float noundef %398, float noundef %408)
  %409 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %410 = load float, ptr %409, align 4, !tbaa !76
  %411 = fcmp olt float %410, 0.000000e+00
  br i1 %411, label %412, label %414

412:                                              ; preds = %368
  %413 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  store float 0.000000e+00, ptr %413, align 4, !tbaa !76
  br label %414

414:                                              ; preds = %412, %368
  %415 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %416 = load float, ptr %415, align 4, !tbaa !78
  %417 = fcmp olt float %416, 0.000000e+00
  br i1 %417, label %418, label %420

418:                                              ; preds = %414
  %419 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  store float 0.000000e+00, ptr %419, align 4, !tbaa !78
  br label %420

420:                                              ; preds = %418, %414
  %421 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %422 = load float, ptr %421, align 4, !tbaa !76
  %423 = load i32, ptr %7, align 4, !tbaa !17
  %424 = sitofp i32 %423 to float
  %425 = fcmp ogt float %422, %424
  br i1 %425, label %426, label %430

426:                                              ; preds = %420
  %427 = load i32, ptr %7, align 4, !tbaa !17
  %428 = sitofp i32 %427 to float
  %429 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  store float %428, ptr %429, align 4, !tbaa !76
  br label %430

430:                                              ; preds = %426, %420
  %431 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %432 = load float, ptr %431, align 4, !tbaa !78
  %433 = load i32, ptr %8, align 4, !tbaa !17
  %434 = sitofp i32 %433 to float
  %435 = fcmp ogt float %432, %434
  br i1 %435, label %436, label %440

436:                                              ; preds = %430
  %437 = load i32, ptr %8, align 4, !tbaa !17
  %438 = sitofp i32 %437 to float
  %439 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  store float %438, ptr %439, align 4, !tbaa !78
  br label %440

440:                                              ; preds = %436, %430
  %441 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %442 = load float, ptr %441, align 4, !tbaa !76
  %443 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %444 = load float, ptr %443, align 4, !tbaa !76
  %445 = fcmp ole float %442, %444
  br i1 %445, label %452, label %446

446:                                              ; preds = %440
  %447 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %448 = load float, ptr %447, align 4, !tbaa !78
  %449 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %450 = load float, ptr %449, align 4, !tbaa !78
  %451 = fcmp ole float %448, %450
  br i1 %451, label %452, label %453

452:                                              ; preds = %446, %440
  store i32 10, ptr %9, align 4
  br label %503

453:                                              ; preds = %446
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %454 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %455 = load float, ptr %454, align 4, !tbaa !76
  %456 = fptosi float %455 to i32
  %457 = getelementptr inbounds %struct.VkRect2D, ptr %33, i32 0, i32 0
  %458 = getelementptr inbounds %struct.VkOffset2D, ptr %457, i32 0, i32 0
  store i32 %456, ptr %458, align 4, !tbaa !81
  %459 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %460 = load float, ptr %459, align 4, !tbaa !78
  %461 = fptosi float %460 to i32
  %462 = getelementptr inbounds %struct.VkRect2D, ptr %33, i32 0, i32 0
  %463 = getelementptr inbounds %struct.VkOffset2D, ptr %462, i32 0, i32 1
  store i32 %461, ptr %463, align 4, !tbaa !85
  %464 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %465 = load float, ptr %464, align 4, !tbaa !76
  %466 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %467 = load float, ptr %466, align 4, !tbaa !76
  %468 = fsub float %465, %467
  %469 = fptoui float %468 to i32
  %470 = getelementptr inbounds %struct.VkRect2D, ptr %33, i32 0, i32 1
  %471 = getelementptr inbounds %struct.VkExtent2D, ptr %470, i32 0, i32 0
  store i32 %469, ptr %471, align 4, !tbaa !86
  %472 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %473 = load float, ptr %472, align 4, !tbaa !78
  %474 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %475 = load float, ptr %474, align 4, !tbaa !78
  %476 = fsub float %473, %475
  %477 = fptoui float %476 to i32
  %478 = getelementptr inbounds %struct.VkRect2D, ptr %33, i32 0, i32 1
  %479 = getelementptr inbounds %struct.VkExtent2D, ptr %478, i32 0, i32 1
  store i32 %477, ptr %479, align 4, !tbaa !87
  %480 = load ptr, ptr %5, align 8, !tbaa !5
  call void @vkCmdSetScissor(ptr noundef %480, i32 noundef 0, i32 noundef 1, ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %481 = load ptr, ptr %30, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.ImDrawCmd, ptr %481, i32 0, i32 1
  %483 = load ptr, ptr %482, align 8, !tbaa !88
  store ptr %483, ptr %34, align 8, !tbaa !5
  %484 = load ptr, ptr %5, align 8, !tbaa !5
  %485 = load ptr, ptr %10, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %485, i32 0, i32 5
  %487 = load ptr, ptr %486, align 8, !tbaa !89
  %488 = getelementptr inbounds [1 x ptr], ptr %34, i64 0, i64 0
  call void @vkCmdBindDescriptorSets(ptr noundef %484, i32 noundef 0, ptr noundef %487, i32 noundef 0, i32 noundef 1, ptr noundef %488, i32 noundef 0, ptr noundef null)
  %489 = load ptr, ptr %5, align 8, !tbaa !5
  %490 = load ptr, ptr %30, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.ImDrawCmd, ptr %490, i32 0, i32 4
  %492 = load i32, ptr %491, align 8, !tbaa !90
  %493 = load ptr, ptr %30, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.ImDrawCmd, ptr %493, i32 0, i32 3
  %495 = load i32, ptr %494, align 4, !tbaa !91
  %496 = load i32, ptr %26, align 4, !tbaa !17
  %497 = add i32 %495, %496
  %498 = load ptr, ptr %30, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.ImDrawCmd, ptr %498, i32 0, i32 2
  %500 = load i32, ptr %499, align 8, !tbaa !92
  %501 = load i32, ptr %25, align 4, !tbaa !17
  %502 = add i32 %500, %501
  call void @vkCmdDrawIndexed(ptr noundef %489, i32 noundef %492, i32 noundef 1, i32 noundef %497, i32 noundef %502, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  store i32 0, ptr %9, align 4
  br label %503

503:                                              ; preds = %453, %452
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %504 = load i32, ptr %9, align 4
  switch i32 %504, label %507 [
    i32 0, label %505
  ]

505:                                              ; preds = %503
  br label %506

506:                                              ; preds = %505, %367
  store i32 0, ptr %9, align 4
  br label %507

507:                                              ; preds = %506, %503
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  %508 = load i32, ptr %9, align 4
  switch i32 %508, label %542 [
    i32 0, label %509
    i32 10, label %510
  ]

509:                                              ; preds = %507
  br label %510

510:                                              ; preds = %509, %507
  %511 = load i32, ptr %29, align 4, !tbaa !17
  %512 = add nsw i32 %511, 1
  store i32 %512, ptr %29, align 4, !tbaa !17
  br label %332, !llvm.loop !93

513:                                              ; preds = %339
  %514 = load ptr, ptr %28, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.ImDrawList, ptr %514, i32 0, i32 1
  %516 = getelementptr inbounds %struct.ImVector.1, ptr %515, i32 0, i32 0
  %517 = load i32, ptr %516, align 8, !tbaa !62
  %518 = load i32, ptr %26, align 4, !tbaa !17
  %519 = add nsw i32 %518, %517
  store i32 %519, ptr %26, align 4, !tbaa !17
  %520 = load ptr, ptr %28, align 8, !tbaa !5
  %521 = getelementptr inbounds %struct.ImDrawList, ptr %520, i32 0, i32 2
  %522 = getelementptr inbounds %struct.ImVector.2, ptr %521, i32 0, i32 0
  %523 = load i32, ptr %522, align 8, !tbaa !60
  %524 = load i32, ptr %25, align 4, !tbaa !17
  %525 = add nsw i32 %524, %523
  store i32 %525, ptr %25, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %526

526:                                              ; preds = %513
  %527 = load i32, ptr %27, align 4, !tbaa !17
  %528 = add nsw i32 %527, 1
  store i32 %528, ptr %27, align 4, !tbaa !17
  br label %319, !llvm.loop !94

529:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  %530 = getelementptr inbounds %struct.VkRect2D, ptr %35, i32 0, i32 0
  %531 = getelementptr inbounds %struct.VkOffset2D, ptr %530, i32 0, i32 0
  store i32 0, ptr %531, align 4, !tbaa !95
  %532 = getelementptr inbounds %struct.VkOffset2D, ptr %530, i32 0, i32 1
  store i32 0, ptr %532, align 4, !tbaa !96
  %533 = getelementptr inbounds %struct.VkRect2D, ptr %35, i32 0, i32 1
  %534 = getelementptr inbounds %struct.VkExtent2D, ptr %533, i32 0, i32 0
  %535 = load i32, ptr %7, align 4, !tbaa !17
  store i32 %535, ptr %534, align 4, !tbaa !97
  %536 = getelementptr inbounds %struct.VkExtent2D, ptr %533, i32 0, i32 1
  %537 = load i32, ptr %8, align 4, !tbaa !17
  store i32 %537, ptr %536, align 4, !tbaa !98
  %538 = load ptr, ptr %5, align 8, !tbaa !5
  call void @vkCmdSetScissor(ptr noundef %538, i32 noundef 0, i32 noundef 1, ptr noundef %35)
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  store i32 0, ptr %9, align 4
  br label %539

539:                                              ; preds = %529, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  %540 = load i32, ptr %9, align 4
  switch i32 %540, label %542 [
    i32 0, label %541
    i32 1, label %541
  ]

541:                                              ; preds = %539, %539
  ret void

542:                                              ; preds = %539, %507
  unreachable
}

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

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

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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) #3

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i32 noundef) #0

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #5 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP36ImGui_ImplVulkanH_FrameRenderBuffersii(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #7 align 2

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !15, i64 40}
!10 = !{!"_ZTS10ImDrawData", !11, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !13, i64 16, !14, i64 32, !14, i64 40, !14, i64 48, !6, i64 56}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS8ImVectorIP10ImDrawListE", !12, i64 0, !12, i64 4, !6, i64 8}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!10, !15, i64 48}
!17 = !{!12, !12, i64 0}
!18 = !{!10, !15, i64 44}
!19 = !{!10, !15, i64 52}
!20 = !{!21, !6, i64 136}
!21 = !{!"_ZTS21ImGui_ImplVulkan_Data", !22, i64 0, !6, i64 96, !25, i64 104, !12, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !12, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !26, i64 224}
!22 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !23, i64 68, !11, i64 72, !24, i64 76, !6, i64 80, !6, i64 88}
!23 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!24 = !{!"_ZTS8VkFormat", !7, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTS37ImGui_ImplVulkanH_WindowRenderBuffers", !12, i64 0, !12, i64 4, !6, i64 8}
!27 = !{!10, !6, i64 56}
!28 = !{!29, !6, i64 56}
!29 = !{!"_ZTS13ImGuiViewport", !12, i64 0, !12, i64 4, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !12, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 89, !11, i64 90, !11, i64 91}
!30 = !{!26, !6, i64 8}
!31 = !{!26, !12, i64 0}
!32 = !{!22, !12, i64 64}
!33 = !{!26, !12, i64 4}
!34 = !{!10, !12, i64 12}
!35 = !{!25, !25, i64 0}
!36 = !{!10, !12, i64 8}
!37 = !{!38, !6, i64 32}
!38 = !{!"_ZTS36ImGui_ImplVulkanH_FrameRenderBuffers", !6, i64 0, !6, i64 8, !25, i64 16, !25, i64 24, !6, i64 32, !6, i64 40}
!39 = !{!38, !25, i64 16}
!40 = !{!38, !6, i64 40}
!41 = !{!38, !25, i64 24}
!42 = !{!22, !6, i64 16}
!43 = !{!38, !6, i64 0}
!44 = !{!45, !45, i64 0}
!45 = !{!"_ZTS8VkResult", !7, i64 0}
!46 = !{!38, !6, i64 8}
!47 = !{!10, !12, i64 4}
!48 = !{!49, !6, i64 40}
!49 = !{!"_ZTS10ImDrawList", !50, i64 0, !51, i64 16, !52, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !53, i64 88, !54, i64 104, !55, i64 120, !56, i64 136, !58, i64 168, !15, i64 192}
!50 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!56 = !{!"_ZTS15ImDrawCmdHeader", !57, i64 0, !6, i64 16, !12, i64 24}
!57 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!58 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !59, i64 8}
!59 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!60 = !{!49, !12, i64 32}
!61 = !{!49, !6, i64 24}
!62 = !{!49, !12, i64 16}
!63 = distinct !{!63, !64}
!64 = !{!"llvm.loop.mustprogress"}
!65 = !{!66, !67, i64 0}
!66 = !{!"_ZTS19VkMappedMemoryRange", !67, i64 0, !6, i64 8, !6, i64 16, !25, i64 24, !25, i64 32}
!67 = !{!"_ZTS15VkStructureType", !7, i64 0}
!68 = !{!66, !6, i64 16}
!69 = !{!66, !25, i64 32}
!70 = !{i64 0, i64 4, !71, i64 4, i64 4, !71}
!71 = !{!15, !15, i64 0}
!72 = !{!49, !12, i64 0}
!73 = !{!74, !6, i64 40}
!74 = !{!"_ZTS9ImDrawCmd", !57, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48}
!75 = !{!74, !15, i64 0}
!76 = !{!14, !15, i64 0}
!77 = !{!74, !15, i64 4}
!78 = !{!14, !15, i64 4}
!79 = !{!74, !15, i64 8}
!80 = !{!74, !15, i64 12}
!81 = !{!82, !12, i64 0}
!82 = !{!"_ZTS8VkRect2D", !83, i64 0, !84, i64 8}
!83 = !{!"_ZTS10VkOffset2D", !12, i64 0, !12, i64 4}
!84 = !{!"_ZTS10VkExtent2D", !12, i64 0, !12, i64 4}
!85 = !{!82, !12, i64 4}
!86 = !{!82, !12, i64 8}
!87 = !{!82, !12, i64 12}
!88 = !{!74, !6, i64 16}
!89 = !{!21, !6, i64 128}
!90 = !{!74, !12, i64 32}
!91 = !{!74, !12, i64 28}
!92 = !{!74, !12, i64 24}
!93 = distinct !{!93, !64}
!94 = distinct !{!94, !64}
!95 = !{!83, !12, i64 0}
!96 = !{!83, !12, i64 4}
!97 = !{!84, !12, i64 0}
!98 = !{!84, !12, i64 4}


; 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.VkMappedMemoryRange = type { i32, ptr, ptr, i64, i64 }
%struct.ImVec2 = type { float, float }
%struct.VkRect2D = type { %struct.VkOffset2D, %struct.VkExtent2D }
%struct.VkOffset2D = type { i32, i32 }
%struct.VkExtent2D = type { i32, i32 }
%struct.ImGui_ImplVulkanH_FrameRenderBuffers = type { ptr, ptr, i64, i64, ptr, ptr }
%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }

@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T = external hidden unnamed_addr constant [80 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [2 x %struct.VkMappedMemoryRange], align 16
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.VkRect2D, align 8
  %10 = alloca [1 x ptr], align 8
  %11 = alloca %struct.VkRect2D, align 4
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %14 = getelementptr inbounds i8, ptr %0, i64 52
  %15 = load <2 x float>, ptr %12, align 8, !tbaa !5
  %16 = load <2 x float>, ptr %13, align 8, !tbaa !5
  %17 = fmul <2 x float> %15, %16
  %18 = fptosi <2 x float> %17 to <2 x i32>
  %19 = icmp slt <2 x i32> %18, <i32 1, i32 1>
  %20 = extractelement <2 x i1> %19, i64 0
  %21 = extractelement <2 x i1> %19, i64 1
  %or.cond = select i1 %20, i1 true, i1 %21
  br i1 %or.cond, label %247, label %22

22:                                               ; preds = %3
  %23 = tail call noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav()
  %24 = icmp eq ptr %2, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %23, i64 136
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %25, %22
  %.0 = phi ptr [ %27, %25 ], [ %2, %22 ]
  %29 = getelementptr inbounds i8, ptr %0, i64 56
  %30 = load ptr, ptr %29, align 8, !tbaa !19
  %31 = getelementptr inbounds i8, ptr %30, i64 56
  %32 = load ptr, ptr %31, align 8, !tbaa !23
  %.not = icmp eq ptr %32, null
  br i1 %.not, label %33, label %34

33:                                               ; preds = %28
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 500, ptr noundef nonnull @__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T) #8
  unreachable

34:                                               ; preds = %28
  %35 = getelementptr inbounds i8, ptr %32, i64 112
  %36 = getelementptr inbounds i8, ptr %32, i64 120
  %37 = load ptr, ptr %36, align 8, !tbaa !25
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %49

39:                                               ; preds = %34
  store i32 0, ptr %35, align 8, !tbaa !26
  %40 = getelementptr inbounds i8, ptr %23, i64 64
  %41 = load i32, ptr %40, align 8, !tbaa !27
  %42 = getelementptr inbounds i8, ptr %32, i64 116
  store i32 %41, ptr %42, align 4, !tbaa !28
  %43 = zext i32 %41 to i64
  %44 = mul nuw nsw i64 %43, 48
  %45 = tail call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %44)
  store ptr %45, ptr %36, align 8, !tbaa !25
  %46 = load i32, ptr %42, align 4, !tbaa !28
  %47 = zext i32 %46 to i64
  %48 = mul nuw nsw i64 %47, 48
  tail call void @llvm.memset.p0.i64(ptr align 8 %45, i8 0, i64 %48, i1 false)
  br label %49

49:                                               ; preds = %39, %34
  %50 = getelementptr inbounds i8, ptr %32, i64 116
  %51 = load i32, ptr %50, align 4, !tbaa !28
  %52 = getelementptr inbounds i8, ptr %23, i64 64
  %53 = load i32, ptr %52, align 8, !tbaa !27
  %54 = icmp eq i32 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %49
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 509, ptr noundef nonnull @__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T) #8
  unreachable

56:                                               ; preds = %49
  %57 = load i32, ptr %35, align 8, !tbaa !26
  %58 = add i32 %57, 1
  %59 = urem i32 %58, %51
  store i32 %59, ptr %35, align 8, !tbaa !26
  %60 = load ptr, ptr %36, align 8, !tbaa !25
  %61 = zext i32 %59 to i64
  %62 = getelementptr inbounds %struct.ImGui_ImplVulkanH_FrameRenderBuffers, ptr %60, i64 %61
  %63 = getelementptr inbounds i8, ptr %0, i64 12
  %64 = load i32, ptr %63, align 4, !tbaa !29
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %66, label %151

66:                                               ; preds = %56
  %67 = zext nneg i32 %64 to i64
  %68 = mul nuw nsw i64 %67, 20
  %69 = getelementptr inbounds i8, ptr %0, i64 8
  %70 = load i32, ptr %69, align 8, !tbaa !30
  %71 = sext i32 %70 to i64
  %72 = shl nsw i64 %71, 1
  %73 = getelementptr inbounds i8, ptr %62, i64 32
  %74 = load ptr, ptr %73, align 8, !tbaa !31
  %75 = icmp eq ptr %74, null
  br i1 %75, label %80, label %76

76:                                               ; preds = %66
  %77 = getelementptr inbounds i8, ptr %62, i64 16
  %78 = load i64, ptr %77, align 8, !tbaa !33
  %79 = icmp ult i64 %78, %68
  br i1 %79, label %80, label %82

80:                                               ; preds = %76, %66
  %81 = getelementptr inbounds i8, ptr %62, i64 16
  tail call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %81, i64 noundef %68, i32 noundef 128)
  br label %82

82:                                               ; preds = %80, %76
  %83 = getelementptr inbounds i8, ptr %62, i64 40
  %84 = load ptr, ptr %83, align 8, !tbaa !34
  %85 = icmp eq ptr %84, null
  br i1 %85, label %90, label %86

86:                                               ; preds = %82
  %87 = getelementptr inbounds i8, ptr %62, i64 24
  %88 = load i64, ptr %87, align 8, !tbaa !35
  %89 = icmp ult i64 %88, %72
  br i1 %89, label %90, label %93

90:                                               ; preds = %86, %82
  %91 = getelementptr inbounds i8, ptr %62, i64 8
  %92 = getelementptr inbounds i8, ptr %62, i64 24
  tail call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull align 8 dereferenceable(8) %92, i64 noundef %72, i32 noundef 64)
  br label %93

93:                                               ; preds = %90, %86
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store ptr null, ptr %4, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store ptr null, ptr %5, align 8, !tbaa !36
  %94 = getelementptr inbounds i8, ptr %23, i64 16
  %95 = load ptr, ptr %94, align 8, !tbaa !37
  %96 = load ptr, ptr %62, align 8, !tbaa !38
  %97 = getelementptr inbounds i8, ptr %62, i64 16
  %98 = load i64, ptr %97, align 8, !tbaa !33
  %99 = call i32 @vkMapMemory(ptr noundef %95, ptr noundef %96, i64 noundef 0, i64 noundef %98, i32 noundef 0, ptr noundef nonnull %4)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %99)
  %100 = load ptr, ptr %94, align 8, !tbaa !37
  %101 = getelementptr inbounds i8, ptr %62, i64 8
  %102 = load ptr, ptr %101, align 8, !tbaa !39
  %103 = getelementptr inbounds i8, ptr %62, i64 24
  %104 = load i64, ptr %103, align 8, !tbaa !35
  %105 = call i32 @vkMapMemory(ptr noundef %100, ptr noundef %102, i64 noundef 0, i64 noundef %104, i32 noundef 0, ptr noundef nonnull %5)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %105)
  %106 = getelementptr inbounds i8, ptr %0, i64 4
  %107 = load i32, ptr %106, align 4, !tbaa !40
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %93
  %109 = getelementptr inbounds i8, ptr %0, i64 16
  br label %123

._crit_edge:                                      ; preds = %123, %93
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  store i32 6, ptr %6, align 16, !tbaa !41
  %110 = load ptr, ptr %62, align 8, !tbaa !38
  %111 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %110, ptr %111, align 16, !tbaa !44
  %112 = getelementptr inbounds i8, ptr %6, i64 32
  store i64 -1, ptr %112, align 16, !tbaa !45
  %113 = getelementptr inbounds i8, ptr %6, i64 40
  store i32 6, ptr %113, align 8, !tbaa !41
  %114 = load ptr, ptr %101, align 8, !tbaa !39
  %115 = getelementptr inbounds i8, ptr %6, i64 56
  store ptr %114, ptr %115, align 8, !tbaa !44
  %116 = getelementptr inbounds i8, ptr %6, i64 72
  store i64 -1, ptr %116, align 8, !tbaa !45
  %117 = load ptr, ptr %94, align 8, !tbaa !37
  %118 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %117, i32 noundef 2, ptr noundef nonnull %6)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %118)
  %119 = load ptr, ptr %94, align 8, !tbaa !37
  %120 = load ptr, ptr %62, align 8, !tbaa !38
  call void @vkUnmapMemory(ptr noundef %119, ptr noundef %120)
  %121 = load ptr, ptr %94, align 8, !tbaa !37
  %122 = load ptr, ptr %101, align 8, !tbaa !39
  call void @vkUnmapMemory(ptr noundef %121, ptr noundef %122)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  br label %151

123:                                              ; preds = %.lr.ph, %123
  %.0137148 = phi i32 [ 0, %.lr.ph ], [ %148, %123 ]
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %109, i32 noundef %.0137148)
  %125 = load ptr, ptr %124, align 8, !tbaa !36
  %126 = load ptr, ptr %4, align 8, !tbaa !36
  %127 = getelementptr inbounds i8, ptr %125, i64 32
  %128 = getelementptr inbounds i8, ptr %125, i64 40
  %129 = load ptr, ptr %128, align 8, !tbaa !46
  %130 = load i32, ptr %127, align 8, !tbaa !58
  %131 = sext i32 %130 to i64
  %132 = mul nsw i64 %131, 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %126, ptr align 4 %129, i64 %132, i1 false)
  %133 = load ptr, ptr %5, align 8, !tbaa !36
  %134 = getelementptr inbounds i8, ptr %125, i64 16
  %135 = getelementptr inbounds i8, ptr %125, i64 24
  %136 = load ptr, ptr %135, align 8, !tbaa !59
  %137 = load i32, ptr %134, align 8, !tbaa !60
  %138 = sext i32 %137 to i64
  %139 = shl nsw i64 %138, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %133, ptr align 2 %136, i64 %139, i1 false)
  %140 = load i32, ptr %127, align 8, !tbaa !58
  %141 = load ptr, ptr %4, align 8, !tbaa !36
  %142 = sext i32 %140 to i64
  %143 = getelementptr inbounds %struct.ImDrawVert, ptr %141, i64 %142
  store ptr %143, ptr %4, align 8, !tbaa !36
  %144 = load i32, ptr %134, align 8, !tbaa !60
  %145 = load ptr, ptr %5, align 8, !tbaa !36
  %146 = sext i32 %144 to i64
  %147 = getelementptr inbounds i16, ptr %145, i64 %146
  store ptr %147, ptr %5, align 8, !tbaa !36
  %148 = add nuw nsw i32 %.0137148, 1
  %149 = load i32, ptr %106, align 4, !tbaa !40
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %123, label %._crit_edge, !llvm.loop !61

151:                                              ; preds = %._crit_edge, %56
  %152 = extractelement <2 x i32> %18, i64 0
  %153 = extractelement <2 x i32> %18, i64 1
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP36ImGui_ImplVulkanH_FrameRenderBuffersii(ptr noundef nonnull %0, ptr noundef %.0, ptr noundef %1, ptr noundef %62, i32 noundef %152, i32 noundef %153)
  %154 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.029.0.copyload = load float, ptr %154, align 8, !tbaa !5
  %.sroa.531.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 36
  %.sroa.531.0.copyload = load float, ptr %.sroa.531.0..sroa_idx, align 4, !tbaa !5
  %.sroa.0.0.copyload = load float, ptr %13, align 8, !tbaa !5
  %.sroa.5.0.copyload = load float, ptr %14, align 4, !tbaa !5
  %155 = getelementptr inbounds i8, ptr %0, i64 4
  %156 = load i32, ptr %155, align 4, !tbaa !40
  %157 = icmp sgt i32 %156, 0
  br i1 %157, label %.lr.ph157, label %._crit_edge158

.lr.ph157:                                        ; preds = %151
  %158 = getelementptr inbounds i8, ptr %0, i64 16
  %159 = getelementptr inbounds i8, ptr %7, i64 4
  %160 = uitofp nneg i32 %152 to float
  %161 = getelementptr inbounds i8, ptr %8, i64 4
  %162 = uitofp nneg i32 %153 to float
  %163 = getelementptr inbounds i8, ptr %9, i64 8
  %164 = getelementptr inbounds i8, ptr %23, i64 128
  br label %167

._crit_edge158:                                   ; preds = %._crit_edge152, %151
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  store i32 0, ptr %11, align 4, !tbaa !63
  %165 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 0, ptr %165, align 4, !tbaa !65
  %166 = getelementptr inbounds i8, ptr %11, i64 8
  store <2 x i32> %18, ptr %166, align 4, !tbaa !66
  call void @vkCmdSetScissor(ptr noundef %1, i32 noundef 0, i32 noundef 1, ptr noundef nonnull %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  br label %247

167:                                              ; preds = %.lr.ph157, %._crit_edge152
  %.0134155 = phi i32 [ 0, %.lr.ph157 ], [ %178, %._crit_edge152 ]
  %.0135154 = phi i32 [ 0, %.lr.ph157 ], [ %174, %._crit_edge152 ]
  %.0136153 = phi i32 [ 0, %.lr.ph157 ], [ %177, %._crit_edge152 ]
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %158, i32 noundef %.0134155)
  %169 = load ptr, ptr %168, align 8, !tbaa !36
  %170 = load i32, ptr %169, align 8, !tbaa !67
  %171 = icmp sgt i32 %170, 0
  br i1 %171, label %.lr.ph151, label %._crit_edge152

._crit_edge152:                                   ; preds = %243, %167
  %172 = getelementptr inbounds i8, ptr %169, i64 16
  %173 = load i32, ptr %172, align 8, !tbaa !60
  %174 = add nsw i32 %173, %.0135154
  %175 = getelementptr inbounds i8, ptr %169, i64 32
  %176 = load i32, ptr %175, align 8, !tbaa !58
  %177 = add nsw i32 %176, %.0136153
  %178 = add nuw nsw i32 %.0134155, 1
  %179 = load i32, ptr %155, align 4, !tbaa !40
  %180 = icmp slt i32 %178, %179
  br i1 %180, label %167, label %._crit_edge158, !llvm.loop !68

.lr.ph151:                                        ; preds = %167, %243
  %.0132149 = phi i32 [ %244, %243 ], [ 0, %167 ]
  %181 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %169, i32 noundef %.0132149)
  %182 = getelementptr inbounds i8, ptr %181, i64 40
  %183 = load ptr, ptr %182, align 8, !tbaa !69
  %magicptr = ptrtoint ptr %183 to i64
  switch i64 %magicptr, label %185 [
    i64 0, label %186
    i64 -8, label %184
  ]

184:                                              ; preds = %.lr.ph151
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP36ImGui_ImplVulkanH_FrameRenderBuffersii(ptr noundef %0, ptr noundef %.0, ptr noundef %1, ptr noundef %62, i32 noundef %152, i32 noundef %153)
  br label %243

185:                                              ; preds = %.lr.ph151
  call void %183(ptr noundef nonnull %169, ptr noundef nonnull %181)
  br label %243

186:                                              ; preds = %.lr.ph151
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %187 = load float, ptr %181, align 8, !tbaa !71
  %188 = fsub float %187, %.sroa.029.0.copyload
  %189 = fmul float %.sroa.0.0.copyload, %188
  %190 = getelementptr inbounds i8, ptr %181, i64 4
  %191 = load float, ptr %190, align 4, !tbaa !72
  %192 = fsub float %191, %.sroa.531.0.copyload
  %193 = fmul float %.sroa.5.0.copyload, %192
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %189, float noundef %193)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %194 = getelementptr inbounds i8, ptr %181, i64 8
  %195 = load float, ptr %194, align 8, !tbaa !73
  %196 = fsub float %195, %.sroa.029.0.copyload
  %197 = fmul float %.sroa.0.0.copyload, %196
  %198 = getelementptr inbounds i8, ptr %181, i64 12
  %199 = load float, ptr %198, align 4, !tbaa !74
  %200 = fsub float %199, %.sroa.531.0.copyload
  %201 = fmul float %.sroa.5.0.copyload, %200
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %197, float noundef %201)
  %202 = load float, ptr %7, align 4, !tbaa !75
  %203 = fcmp olt float %202, 0.000000e+00
  br i1 %203, label %204, label %205

204:                                              ; preds = %186
  store float 0.000000e+00, ptr %7, align 4, !tbaa !75
  br label %205

205:                                              ; preds = %204, %186
  %206 = phi float [ 0.000000e+00, %204 ], [ %202, %186 ]
  %207 = load float, ptr %159, align 4, !tbaa !76
  %208 = fcmp olt float %207, 0.000000e+00
  br i1 %208, label %209, label %210

209:                                              ; preds = %205
  store float 0.000000e+00, ptr %159, align 4, !tbaa !76
  br label %210

210:                                              ; preds = %209, %205
  %211 = phi float [ 0.000000e+00, %209 ], [ %207, %205 ]
  %212 = load float, ptr %8, align 4, !tbaa !75
  %213 = fcmp ogt float %212, %160
  br i1 %213, label %214, label %215

214:                                              ; preds = %210
  store float %160, ptr %8, align 4, !tbaa !75
  br label %215

215:                                              ; preds = %214, %210
  %216 = phi float [ %160, %214 ], [ %212, %210 ]
  %217 = load float, ptr %161, align 4, !tbaa !76
  %218 = fcmp ogt float %217, %162
  br i1 %218, label %219, label %220

219:                                              ; preds = %215
  store float %162, ptr %161, align 4, !tbaa !76
  br label %220

220:                                              ; preds = %219, %215
  %221 = phi float [ %162, %219 ], [ %217, %215 ]
  %222 = fcmp ugt float %216, %206
  %223 = fcmp ugt float %221, %211
  %or.cond159 = select i1 %222, i1 %223, i1 false
  br i1 %or.cond159, label %.critedge, label %242

.critedge:                                        ; preds = %220
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  %224 = insertelement <2 x float> poison, float %206, i64 0
  %225 = insertelement <2 x float> %224, float %211, i64 1
  %226 = fptosi <2 x float> %225 to <2 x i32>
  store <2 x i32> %226, ptr %9, align 8, !tbaa !66
  %227 = insertelement <2 x float> poison, float %216, i64 0
  %228 = insertelement <2 x float> %227, float %221, i64 1
  %229 = fsub <2 x float> %228, %225
  %230 = fptoui <2 x float> %229 to <2 x i32>
  store <2 x i32> %230, ptr %163, align 8, !tbaa !66
  call void @vkCmdSetScissor(ptr noundef %1, i32 noundef 0, i32 noundef 1, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %231 = getelementptr inbounds i8, ptr %181, i64 16
  %232 = load ptr, ptr %231, align 8, !tbaa !77
  store ptr %232, ptr %10, align 8, !tbaa !36
  %233 = load ptr, ptr %164, align 8, !tbaa !78
  call void @vkCmdBindDescriptorSets(ptr noundef %1, i32 noundef 0, ptr noundef %233, i32 noundef 0, i32 noundef 1, ptr noundef nonnull %10, i32 noundef 0, ptr noundef null)
  %234 = getelementptr inbounds i8, ptr %181, i64 32
  %235 = load i32, ptr %234, align 8, !tbaa !79
  %236 = getelementptr inbounds i8, ptr %181, i64 28
  %237 = load i32, ptr %236, align 4, !tbaa !80
  %238 = add i32 %237, %.0135154
  %239 = getelementptr inbounds i8, ptr %181, i64 24
  %240 = load i32, ptr %239, align 8, !tbaa !81
  %241 = add i32 %240, %.0136153
  call void @vkCmdDrawIndexed(ptr noundef %1, i32 noundef %235, i32 noundef 1, i32 noundef %238, i32 noundef %241, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %243

242:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %243

243:                                              ; preds = %185, %184, %.critedge, %242
  %244 = add nuw nsw i32 %.0132149, 1
  %245 = load i32, ptr %169, align 8, !tbaa !67
  %246 = icmp slt i32 %244, %245
  br i1 %246, label %.lr.ph151, label %._crit_edge152, !llvm.loop !82

247:                                              ; preds = %3, %._crit_edge158
  ret void
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP36ImGui_ImplVulkanH_FrameRenderBuffersii(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #7 align 2

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 136}
!10 = !{!"_ZTS21ImGui_ImplVulkan_Data", !11, i64 0, !12, i64 96, !17, i64 104, !13, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !13, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !18, i64 224}
!11 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !13, i64 60, !13, i64 64, !14, i64 68, !15, i64 72, !16, i64 76, !12, i64 80, !12, i64 88}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS8VkFormat", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTS37ImGui_ImplVulkanH_WindowRenderBuffers", !13, i64 0, !13, i64 4, !12, i64 8}
!19 = !{!20, !12, i64 56}
!20 = !{!"_ZTS10ImDrawData", !15, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !21, i64 16, !22, i64 32, !22, i64 40, !22, i64 48, !12, i64 56}
!21 = !{!"_ZTS8ImVectorIP10ImDrawListE", !13, i64 0, !13, i64 4, !12, i64 8}
!22 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!23 = !{!24, !12, i64 56}
!24 = !{!"_ZTS13ImGuiViewport", !13, i64 0, !13, i64 4, !22, i64 8, !22, i64 16, !22, i64 24, !22, i64 32, !6, i64 40, !13, i64 44, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !15, i64 88, !15, i64 89, !15, i64 90, !15, i64 91}
!25 = !{!18, !12, i64 8}
!26 = !{!18, !13, i64 0}
!27 = !{!11, !13, i64 64}
!28 = !{!18, !13, i64 4}
!29 = !{!20, !13, i64 12}
!30 = !{!20, !13, i64 8}
!31 = !{!32, !12, i64 32}
!32 = !{!"_ZTS36ImGui_ImplVulkanH_FrameRenderBuffers", !12, i64 0, !12, i64 8, !17, i64 16, !17, i64 24, !12, i64 32, !12, i64 40}
!33 = !{!32, !17, i64 16}
!34 = !{!32, !12, i64 40}
!35 = !{!32, !17, i64 24}
!36 = !{!12, !12, i64 0}
!37 = !{!11, !12, i64 16}
!38 = !{!32, !12, i64 0}
!39 = !{!32, !12, i64 8}
!40 = !{!20, !13, i64 4}
!41 = !{!42, !43, i64 0}
!42 = !{!"_ZTS19VkMappedMemoryRange", !43, i64 0, !12, i64 8, !12, i64 16, !17, i64 24, !17, i64 32}
!43 = !{!"_ZTS15VkStructureType", !7, i64 0}
!44 = !{!42, !12, i64 16}
!45 = !{!42, !17, i64 32}
!46 = !{!47, !12, i64 40}
!47 = !{!"_ZTS10ImDrawList", !48, i64 0, !49, i64 16, !50, i64 32, !13, i64 48, !13, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !51, i64 88, !52, i64 104, !53, i64 120, !54, i64 136, !56, i64 168, !6, i64 192}
!48 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !13, i64 0, !13, i64 4, !12, i64 8}
!49 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !12, i64 8}
!50 = !{!"_ZTS8ImVectorI10ImDrawVertE", !13, i64 0, !13, i64 4, !12, i64 8}
!51 = !{!"_ZTS8ImVectorI6ImVec4E", !13, i64 0, !13, i64 4, !12, i64 8}
!52 = !{!"_ZTS8ImVectorIPvE", !13, i64 0, !13, i64 4, !12, i64 8}
!53 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !12, i64 8}
!54 = !{!"_ZTS15ImDrawCmdHeader", !55, i64 0, !12, i64 16, !13, i64 24}
!55 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!56 = !{!"_ZTS18ImDrawListSplitter", !13, i64 0, !13, i64 4, !57, i64 8}
!57 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !12, i64 8}
!58 = !{!47, !13, i64 32}
!59 = !{!47, !12, i64 24}
!60 = !{!47, !13, i64 16}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = !{!64, !13, i64 0}
!64 = !{!"_ZTS10VkOffset2D", !13, i64 0, !13, i64 4}
!65 = !{!64, !13, i64 4}
!66 = !{!13, !13, i64 0}
!67 = !{!47, !13, i64 0}
!68 = distinct !{!68, !62}
!69 = !{!70, !12, i64 40}
!70 = !{!"_ZTS9ImDrawCmd", !55, i64 0, !12, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !12, i64 40, !12, i64 48}
!71 = !{!70, !6, i64 0}
!72 = !{!70, !6, i64 4}
!73 = !{!70, !6, i64 8}
!74 = !{!70, !6, i64 12}
!75 = !{!22, !6, i64 0}
!76 = !{!22, !6, i64 4}
!77 = !{!70, !12, i64 16}
!78 = !{!10, !12, i64 128}
!79 = !{!70, !13, i64 32}
!80 = !{!70, !13, i64 28}
!81 = !{!70, !13, i64 24}
!82 = distinct !{!82, !62}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass