; LLVM IR from hasseily/SuperDuperDisplay :: 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_ImplVulkan_WindowRenderBuffers }
%struct.ImGui_ImplVulkan_InitInfo = type { ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i32, i32, i32, i8, i32, ptr, ptr, i64 }
%struct.ImGui_ImplVulkan_WindowRenderBuffers = type { i32, i32, ptr }
%struct.ImGui_ImplVulkan_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 [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T = external hidden unnamed_addr constant [80 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 i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca [2 x %struct.VkMappedMemoryRange], align 16
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca %struct.ImVec2, align 4
  %31 = alloca %struct.ImVec2, align 4
  %32 = alloca %struct.VkRect2D, align 4
  %33 = alloca [1 x ptr], align 8
  %34 = 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
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImDrawData, ptr %35, i32 0, i32 6
  %37 = getelementptr inbounds %struct.ImVec2, ptr %36, i32 0, i32 0
  %38 = load float, ptr %37, align 8, !tbaa !9
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImDrawData, ptr %39, i32 0, i32 7
  %41 = getelementptr inbounds %struct.ImVec2, ptr %40, i32 0, i32 0
  %42 = load float, ptr %41, align 8, !tbaa !16
  %43 = fmul float %38, %42
  %44 = fptosi float %43 to i32
  store i32 %44, ptr %7, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImDrawData, ptr %45, i32 0, i32 6
  %47 = getelementptr inbounds %struct.ImVec2, ptr %46, i32 0, i32 1
  %48 = load float, ptr %47, align 4, !tbaa !18
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ImDrawData, ptr %49, i32 0, i32 7
  %51 = getelementptr inbounds %struct.ImVec2, ptr %50, i32 0, i32 1
  %52 = load float, ptr %51, align 4, !tbaa !19
  %53 = fmul float %48, %52
  %54 = fptosi float %53 to i32
  store i32 %54, ptr %8, align 4, !tbaa !17
  %55 = load i32, ptr %7, align 4, !tbaa !17
  %56 = icmp sle i32 %55, 0
  br i1 %56, label %60, label %57

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

60:                                               ; preds = %57, %3
  store i32 1, ptr %9, align 4
  br label %531

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

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

71:                                               ; preds = %67, %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %72, i32 0, i32 17
  store ptr %73, ptr %12, align 8, !tbaa !5
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %74, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !27
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %102

78:                                               ; preds = %71
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %79, i32 0, i32 0
  store i32 0, ptr %80, align 8, !tbaa !28
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %81, i32 0, i32 9
  %83 = load i32, ptr %82, align 8, !tbaa !29
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %84, i32 0, i32 1
  store i32 %83, ptr %85, align 4, !tbaa !30
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !30
  %89 = zext i32 %88 to i64
  %90 = mul i64 48, %89
  %91 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %90)
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %92, i32 0, i32 2
  store ptr %91, ptr %93, align 8, !tbaa !27
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !27
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !30
  %100 = zext i32 %99 to i64
  %101 = mul i64 48, %100
  call void @llvm.memset.p0.i64(ptr align 8 %96, i8 0, i64 %101, i1 false)
  br label %102

102:                                              ; preds = %78, %71
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !30
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %106, i32 0, i32 9
  %108 = load i32, ptr %107, align 8, !tbaa !29
  %109 = icmp eq i32 %105, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %102
  br label %113

111:                                              ; preds = %102
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 497, ptr noundef @__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T) #9
  unreachable

112:                                              ; No predecessors!
  br label %113

113:                                              ; preds = %112, %110
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 8, !tbaa !28
  %117 = add i32 %116, 1
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %119, align 4, !tbaa !30
  %121 = urem i32 %117, %120
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %122, i32 0, i32 0
  store i32 %121, ptr %123, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %125, align 8, !tbaa !27
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ImGui_ImplVulkan_WindowRenderBuffers, ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 8, !tbaa !28
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %126, i64 %130
  store ptr %131, ptr %13, align 8, !tbaa !5
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImDrawData, ptr %132, i32 0, i32 3
  %134 = load i32, ptr %133, align 4, !tbaa !31
  %135 = icmp sgt i32 %134, 0
  br i1 %135, label %136, label %300

136:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ImDrawData, ptr %137, i32 0, i32 3
  %139 = load i32, ptr %138, align 4, !tbaa !31
  %140 = sext i32 %139 to i64
  %141 = mul i64 %140, 20
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %142, i32 0, i32 2
  %144 = load i64, ptr %143, align 8, !tbaa !32
  %145 = call noundef i64 @_ZL15AlignBufferSizemm(i64 noundef %141, i64 noundef %144)
  store i64 %145, ptr %14, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ImDrawData, ptr %146, i32 0, i32 2
  %148 = load i32, ptr %147, align 8, !tbaa !34
  %149 = sext i32 %148 to i64
  %150 = mul i64 %149, 2
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %151, i32 0, i32 2
  %153 = load i64, ptr %152, align 8, !tbaa !32
  %154 = call noundef i64 @_ZL15AlignBufferSizemm(i64 noundef %150, i64 noundef %153)
  store i64 %154, ptr %15, align 8, !tbaa !33
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %155, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !35
  %158 = icmp eq ptr %157, null
  br i1 %158, label %165, label %159

159:                                              ; preds = %136
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %160, i32 0, i32 2
  %162 = load i64, ptr %161, align 8, !tbaa !37
  %163 = load i64, ptr %14, align 8, !tbaa !33
  %164 = icmp ult i64 %162, %163
  br i1 %164, label %165, label %173

165:                                              ; preds = %159, %136
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %170, i32 0, i32 2
  %172 = load i64, ptr %14, align 8, !tbaa !33
  call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef nonnull align 8 dereferenceable(8) %171, i64 noundef %172, i32 noundef 128)
  br label %173

173:                                              ; preds = %165, %159
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %174, i32 0, i32 5
  %176 = load ptr, ptr %175, align 8, !tbaa !38
  %177 = icmp eq ptr %176, null
  br i1 %177, label %184, label %178

178:                                              ; preds = %173
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %179, i32 0, i32 3
  %181 = load i64, ptr %180, align 8, !tbaa !39
  %182 = load i64, ptr %15, align 8, !tbaa !33
  %183 = icmp ult i64 %181, %182
  br i1 %183, label %184, label %192

184:                                              ; preds = %178, %173
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %185, i32 0, i32 5
  %187 = load ptr, ptr %13, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %187, i32 0, i32 1
  %189 = load ptr, ptr %13, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %189, i32 0, i32 3
  %191 = load i64, ptr %15, align 8, !tbaa !33
  call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull align 8 dereferenceable(8) %190, i64 noundef %191, i32 noundef 64)
  br label %192

192:                                              ; preds = %184, %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store ptr null, ptr %16, align 8, !tbaa !5
  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 4, ptr %18) #8
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %193, i32 0, i32 2
  %195 = load ptr, ptr %194, align 8, !tbaa !40
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !41
  %199 = load i64, ptr %14, align 8, !tbaa !33
  %200 = call i32 @vkMapMemory(ptr noundef %195, ptr noundef %198, i64 noundef 0, i64 noundef %199, i32 noundef 0, ptr noundef %16)
  store i32 %200, ptr %18, align 4, !tbaa !42
  %201 = load i32, ptr %18, align 4, !tbaa !42
  call void @_ZL15check_vk_result8VkResult(i32 noundef %201)
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %202, i32 0, i32 2
  %204 = load ptr, ptr %203, align 8, !tbaa !40
  %205 = load ptr, ptr %13, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %205, i32 0, i32 1
  %207 = load ptr, ptr %206, align 8, !tbaa !44
  %208 = load i64, ptr %15, align 8, !tbaa !33
  %209 = call i32 @vkMapMemory(ptr noundef %204, ptr noundef %207, i64 noundef 0, i64 noundef %208, i32 noundef 0, ptr noundef %17)
  store i32 %209, ptr %18, align 4, !tbaa !42
  %210 = load i32, ptr %18, align 4, !tbaa !42
  call void @_ZL15check_vk_result8VkResult(i32 noundef %210)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !17
  br label %211

211:                                              ; preds = %260, %192
  %212 = load i32, ptr %19, align 4, !tbaa !17
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.ImDrawData, ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 4, !tbaa !45
  %216 = icmp slt i32 %212, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %211
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %263

218:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ImDrawData, ptr %219, i32 0, i32 4
  %221 = load i32, ptr %19, align 4, !tbaa !17
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %220, i32 noundef %221)
  %223 = load ptr, ptr %222, align 8, !tbaa !5
  store ptr %223, ptr %20, align 8, !tbaa !5
  %224 = load ptr, ptr %16, align 8, !tbaa !5
  %225 = load ptr, ptr %20, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.ImDrawList, ptr %225, i32 0, i32 2
  %227 = getelementptr inbounds %struct.ImVector.2, ptr %226, i32 0, i32 2
  %228 = load ptr, ptr %227, align 8, !tbaa !46
  %229 = load ptr, ptr %20, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.ImDrawList, ptr %229, i32 0, i32 2
  %231 = getelementptr inbounds %struct.ImVector.2, ptr %230, i32 0, i32 0
  %232 = load i32, ptr %231, align 8, !tbaa !58
  %233 = sext i32 %232 to i64
  %234 = mul i64 %233, 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %224, ptr align 4 %228, i64 %234, i1 false)
  %235 = load ptr, ptr %17, align 8, !tbaa !5
  %236 = load ptr, ptr %20, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.ImDrawList, ptr %236, i32 0, i32 1
  %238 = getelementptr inbounds %struct.ImVector.1, ptr %237, i32 0, i32 2
  %239 = load ptr, ptr %238, align 8, !tbaa !59
  %240 = load ptr, ptr %20, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.ImDrawList, ptr %240, i32 0, i32 1
  %242 = getelementptr inbounds %struct.ImVector.1, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 8, !tbaa !60
  %244 = sext i32 %243 to i64
  %245 = mul i64 %244, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %235, ptr align 2 %239, i64 %245, i1 false)
  %246 = load ptr, ptr %20, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.ImDrawList, ptr %246, i32 0, i32 2
  %248 = getelementptr inbounds %struct.ImVector.2, ptr %247, i32 0, i32 0
  %249 = load i32, ptr %248, align 8, !tbaa !58
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  %251 = sext i32 %249 to i64
  %252 = getelementptr inbounds %struct.ImDrawVert, ptr %250, i64 %251
  store ptr %252, ptr %16, align 8, !tbaa !5
  %253 = load ptr, ptr %20, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.ImDrawList, ptr %253, i32 0, i32 1
  %255 = getelementptr inbounds %struct.ImVector.1, ptr %254, i32 0, i32 0
  %256 = load i32, ptr %255, align 8, !tbaa !60
  %257 = load ptr, ptr %17, align 8, !tbaa !5
  %258 = sext i32 %256 to i64
  %259 = getelementptr inbounds i16, ptr %257, i64 %258
  store ptr %259, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %260

260:                                              ; preds = %218
  %261 = load i32, ptr %19, align 4, !tbaa !17
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %19, align 4, !tbaa !17
  br label %211, !llvm.loop !61

263:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #8
  call void @llvm.memset.p0.i64(ptr align 16 %21, i8 0, i64 80, i1 false)
  %264 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %21, i64 0, i64 0
  %265 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %264, i32 0, i32 0
  store i32 6, ptr %265, align 16, !tbaa !63
  %266 = load ptr, ptr %13, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %266, i32 0, i32 0
  %268 = load ptr, ptr %267, align 8, !tbaa !41
  %269 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %21, i64 0, i64 0
  %270 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %269, i32 0, i32 2
  store ptr %268, ptr %270, align 16, !tbaa !66
  %271 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %21, i64 0, i64 0
  %272 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %271, i32 0, i32 4
  store i64 -1, ptr %272, align 16, !tbaa !67
  %273 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %21, i64 0, i64 1
  %274 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %273, i32 0, i32 0
  store i32 6, ptr %274, align 8, !tbaa !63
  %275 = load ptr, ptr %13, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %275, i32 0, i32 1
  %277 = load ptr, ptr %276, align 8, !tbaa !44
  %278 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %21, i64 0, i64 1
  %279 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %278, i32 0, i32 2
  store ptr %277, ptr %279, align 8, !tbaa !66
  %280 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %21, i64 0, i64 1
  %281 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %280, i32 0, i32 4
  store i64 -1, ptr %281, align 8, !tbaa !67
  %282 = load ptr, ptr %11, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %282, i32 0, i32 2
  %284 = load ptr, ptr %283, align 8, !tbaa !40
  %285 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %21, i64 0, i64 0
  %286 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %284, i32 noundef 2, ptr noundef %285)
  store i32 %286, ptr %18, align 4, !tbaa !42
  %287 = load i32, ptr %18, align 4, !tbaa !42
  call void @_ZL15check_vk_result8VkResult(i32 noundef %287)
  %288 = load ptr, ptr %11, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %288, i32 0, i32 2
  %290 = load ptr, ptr %289, align 8, !tbaa !40
  %291 = load ptr, ptr %13, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %291, i32 0, i32 0
  %293 = load ptr, ptr %292, align 8, !tbaa !41
  call void @vkUnmapMemory(ptr noundef %290, ptr noundef %293)
  %294 = load ptr, ptr %11, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %294, i32 0, i32 2
  %296 = load ptr, ptr %295, align 8, !tbaa !40
  %297 = load ptr, ptr %13, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %297, i32 0, i32 1
  %299 = load ptr, ptr %298, align 8, !tbaa !44
  call void @vkUnmapMemory(ptr noundef %296, ptr noundef %299)
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %300

300:                                              ; preds = %263, %113
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = load ptr, ptr %13, align 8, !tbaa !5
  %305 = load i32, ptr %7, align 4, !tbaa !17
  %306 = load i32, ptr %8, align 4, !tbaa !17
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP35ImGui_ImplVulkan_FrameRenderBuffersii(ptr noundef %301, ptr noundef %302, ptr noundef %303, ptr noundef %304, i32 noundef %305, i32 noundef %306)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %307 = load ptr, ptr %4, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.ImDrawData, ptr %307, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %308, i64 8, i1 false), !tbaa.struct !68
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.ImDrawData, ptr %309, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %310, i64 8, i1 false), !tbaa.struct !68
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !17
  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
  br label %311

311:                                              ; preds = %518, %300
  %312 = load i32, ptr %26, align 4, !tbaa !17
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.ImDrawData, ptr %313, i32 0, i32 1
  %315 = load i32, ptr %314, align 4, !tbaa !45
  %316 = icmp slt i32 %312, %315
  br i1 %316, label %318, label %317

317:                                              ; preds = %311
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %521

318:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %319 = load ptr, ptr %4, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.ImDrawData, ptr %319, i32 0, i32 4
  %321 = load i32, ptr %26, align 4, !tbaa !17
  %322 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %320, i32 noundef %321)
  %323 = load ptr, ptr %322, align 8, !tbaa !5
  store ptr %323, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !17
  br label %324

324:                                              ; preds = %502, %318
  %325 = load i32, ptr %28, align 4, !tbaa !17
  %326 = load ptr, ptr %27, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.ImDrawList, ptr %326, i32 0, i32 0
  %328 = getelementptr inbounds %struct.ImVector.0, ptr %327, i32 0, i32 0
  %329 = load i32, ptr %328, align 8, !tbaa !70
  %330 = icmp slt i32 %325, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %324
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %505

332:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %333 = load ptr, ptr %27, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.ImDrawList, ptr %333, i32 0, i32 0
  %335 = load i32, ptr %28, align 4, !tbaa !17
  %336 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %334, i32 noundef %335)
  store ptr %336, ptr %29, align 8, !tbaa !5
  %337 = load ptr, ptr %29, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.ImDrawCmd, ptr %337, i32 0, i32 5
  %339 = load ptr, ptr %338, align 8, !tbaa !71
  %340 = icmp ne ptr %339, null
  br i1 %340, label %341, label %360

341:                                              ; preds = %332
  %342 = load ptr, ptr %29, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.ImDrawCmd, ptr %342, i32 0, i32 5
  %344 = load ptr, ptr %343, align 8, !tbaa !71
  %345 = icmp eq ptr %344, inttoptr (i64 -8 to ptr)
  br i1 %345, label %346, label %353

346:                                              ; preds = %341
  %347 = load ptr, ptr %4, align 8, !tbaa !5
  %348 = load ptr, ptr %6, align 8, !tbaa !5
  %349 = load ptr, ptr %5, align 8, !tbaa !5
  %350 = load ptr, ptr %13, align 8, !tbaa !5
  %351 = load i32, ptr %7, align 4, !tbaa !17
  %352 = load i32, ptr %8, align 4, !tbaa !17
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP35ImGui_ImplVulkan_FrameRenderBuffersii(ptr noundef %347, ptr noundef %348, ptr noundef %349, ptr noundef %350, i32 noundef %351, i32 noundef %352)
  br label %359

353:                                              ; preds = %341
  %354 = load ptr, ptr %29, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.ImDrawCmd, ptr %354, i32 0, i32 5
  %356 = load ptr, ptr %355, align 8, !tbaa !71
  %357 = load ptr, ptr %27, align 8, !tbaa !5
  %358 = load ptr, ptr %29, align 8, !tbaa !5
  call void %356(ptr noundef %357, ptr noundef %358)
  br label %359

359:                                              ; preds = %353, %346
  br label %498

360:                                              ; preds = %332
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %361 = load ptr, ptr %29, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.ImDrawCmd, ptr %361, i32 0, i32 0
  %363 = getelementptr inbounds %struct.ImVec4, ptr %362, i32 0, i32 0
  %364 = load float, ptr %363, align 8, !tbaa !73
  %365 = getelementptr inbounds %struct.ImVec2, ptr %22, i32 0, i32 0
  %366 = load float, ptr %365, align 4, !tbaa !74
  %367 = fsub float %364, %366
  %368 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 0
  %369 = load float, ptr %368, align 4, !tbaa !74
  %370 = fmul float %367, %369
  %371 = load ptr, ptr %29, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.ImDrawCmd, ptr %371, i32 0, i32 0
  %373 = getelementptr inbounds %struct.ImVec4, ptr %372, i32 0, i32 1
  %374 = load float, ptr %373, align 4, !tbaa !75
  %375 = getelementptr inbounds %struct.ImVec2, ptr %22, i32 0, i32 1
  %376 = load float, ptr %375, align 4, !tbaa !76
  %377 = fsub float %374, %376
  %378 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 1
  %379 = load float, ptr %378, align 4, !tbaa !76
  %380 = fmul float %377, %379
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %30, float noundef %370, float noundef %380)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %381 = load ptr, ptr %29, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.ImDrawCmd, ptr %381, i32 0, i32 0
  %383 = getelementptr inbounds %struct.ImVec4, ptr %382, i32 0, i32 2
  %384 = load float, ptr %383, align 8, !tbaa !77
  %385 = getelementptr inbounds %struct.ImVec2, ptr %22, i32 0, i32 0
  %386 = load float, ptr %385, align 4, !tbaa !74
  %387 = fsub float %384, %386
  %388 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 0
  %389 = load float, ptr %388, align 4, !tbaa !74
  %390 = fmul float %387, %389
  %391 = load ptr, ptr %29, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.ImDrawCmd, ptr %391, i32 0, i32 0
  %393 = getelementptr inbounds %struct.ImVec4, ptr %392, i32 0, i32 3
  %394 = load float, ptr %393, align 4, !tbaa !78
  %395 = getelementptr inbounds %struct.ImVec2, ptr %22, i32 0, i32 1
  %396 = load float, ptr %395, align 4, !tbaa !76
  %397 = fsub float %394, %396
  %398 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 1
  %399 = load float, ptr %398, align 4, !tbaa !76
  %400 = fmul float %397, %399
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %31, float noundef %390, float noundef %400)
  %401 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  %402 = load float, ptr %401, align 4, !tbaa !74
  %403 = fcmp olt float %402, 0.000000e+00
  br i1 %403, label %404, label %406

404:                                              ; preds = %360
  %405 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  store float 0.000000e+00, ptr %405, align 4, !tbaa !74
  br label %406

406:                                              ; preds = %404, %360
  %407 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 1
  %408 = load float, ptr %407, align 4, !tbaa !76
  %409 = fcmp olt float %408, 0.000000e+00
  br i1 %409, label %410, label %412

410:                                              ; preds = %406
  %411 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 1
  store float 0.000000e+00, ptr %411, align 4, !tbaa !76
  br label %412

412:                                              ; preds = %410, %406
  %413 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %414 = load float, ptr %413, align 4, !tbaa !74
  %415 = load i32, ptr %7, align 4, !tbaa !17
  %416 = sitofp i32 %415 to float
  %417 = fcmp ogt float %414, %416
  br i1 %417, label %418, label %422

418:                                              ; preds = %412
  %419 = load i32, ptr %7, align 4, !tbaa !17
  %420 = sitofp i32 %419 to float
  %421 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  store float %420, ptr %421, align 4, !tbaa !74
  br label %422

422:                                              ; preds = %418, %412
  %423 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %424 = load float, ptr %423, align 4, !tbaa !76
  %425 = load i32, ptr %8, align 4, !tbaa !17
  %426 = sitofp i32 %425 to float
  %427 = fcmp ogt float %424, %426
  br i1 %427, label %428, label %432

428:                                              ; preds = %422
  %429 = load i32, ptr %8, align 4, !tbaa !17
  %430 = sitofp i32 %429 to float
  %431 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  store float %430, ptr %431, align 4, !tbaa !76
  br label %432

432:                                              ; preds = %428, %422
  %433 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %434 = load float, ptr %433, align 4, !tbaa !74
  %435 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  %436 = load float, ptr %435, align 4, !tbaa !74
  %437 = fcmp ole float %434, %436
  br i1 %437, label %444, label %438

438:                                              ; preds = %432
  %439 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %440 = load float, ptr %439, align 4, !tbaa !76
  %441 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 1
  %442 = load float, ptr %441, align 4, !tbaa !76
  %443 = fcmp ole float %440, %442
  br i1 %443, label %444, label %445

444:                                              ; preds = %438, %432
  store i32 10, ptr %9, align 4
  br label %495

445:                                              ; preds = %438
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  %446 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  %447 = load float, ptr %446, align 4, !tbaa !74
  %448 = fptosi float %447 to i32
  %449 = getelementptr inbounds %struct.VkRect2D, ptr %32, i32 0, i32 0
  %450 = getelementptr inbounds %struct.VkOffset2D, ptr %449, i32 0, i32 0
  store i32 %448, ptr %450, align 4, !tbaa !79
  %451 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 1
  %452 = load float, ptr %451, align 4, !tbaa !76
  %453 = fptosi float %452 to i32
  %454 = getelementptr inbounds %struct.VkRect2D, ptr %32, i32 0, i32 0
  %455 = getelementptr inbounds %struct.VkOffset2D, ptr %454, i32 0, i32 1
  store i32 %453, ptr %455, align 4, !tbaa !83
  %456 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %457 = load float, ptr %456, align 4, !tbaa !74
  %458 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  %459 = load float, ptr %458, align 4, !tbaa !74
  %460 = fsub float %457, %459
  %461 = fptoui float %460 to i32
  %462 = getelementptr inbounds %struct.VkRect2D, ptr %32, i32 0, i32 1
  %463 = getelementptr inbounds %struct.VkExtent2D, ptr %462, i32 0, i32 0
  store i32 %461, ptr %463, align 4, !tbaa !84
  %464 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %465 = load float, ptr %464, align 4, !tbaa !76
  %466 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 1
  %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 %32, i32 0, i32 1
  %471 = getelementptr inbounds %struct.VkExtent2D, ptr %470, i32 0, i32 1
  store i32 %469, ptr %471, align 4, !tbaa !85
  %472 = load ptr, ptr %5, align 8, !tbaa !5
  call void @vkCmdSetScissor(ptr noundef %472, i32 noundef 0, i32 noundef 1, ptr noundef %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %473 = load ptr, ptr %29, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.ImDrawCmd, ptr %473, i32 0, i32 1
  %475 = load ptr, ptr %474, align 8, !tbaa !86
  store ptr %475, ptr %33, align 8, !tbaa !5
  %476 = load ptr, ptr %5, align 8, !tbaa !5
  %477 = load ptr, ptr %10, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %477, i32 0, i32 5
  %479 = load ptr, ptr %478, align 8, !tbaa !87
  %480 = getelementptr inbounds [1 x ptr], ptr %33, i64 0, i64 0
  call void @vkCmdBindDescriptorSets(ptr noundef %476, i32 noundef 0, ptr noundef %479, i32 noundef 0, i32 noundef 1, ptr noundef %480, i32 noundef 0, ptr noundef null)
  %481 = load ptr, ptr %5, align 8, !tbaa !5
  %482 = load ptr, ptr %29, align 8, !tbaa !5
  %483 = getelementptr inbounds %struct.ImDrawCmd, ptr %482, i32 0, i32 4
  %484 = load i32, ptr %483, align 8, !tbaa !88
  %485 = load ptr, ptr %29, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.ImDrawCmd, ptr %485, i32 0, i32 3
  %487 = load i32, ptr %486, align 4, !tbaa !89
  %488 = load i32, ptr %25, align 4, !tbaa !17
  %489 = add i32 %487, %488
  %490 = load ptr, ptr %29, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.ImDrawCmd, ptr %490, i32 0, i32 2
  %492 = load i32, ptr %491, align 8, !tbaa !90
  %493 = load i32, ptr %24, align 4, !tbaa !17
  %494 = add i32 %492, %493
  call void @vkCmdDrawIndexed(ptr noundef %481, i32 noundef %484, i32 noundef 1, i32 noundef %489, i32 noundef %494, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  store i32 0, ptr %9, align 4
  br label %495

495:                                              ; preds = %445, %444
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  %496 = load i32, ptr %9, align 4
  switch i32 %496, label %499 [
    i32 0, label %497
  ]

497:                                              ; preds = %495
  br label %498

498:                                              ; preds = %497, %359
  store i32 0, ptr %9, align 4
  br label %499

499:                                              ; preds = %498, %495
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  %500 = load i32, ptr %9, align 4
  switch i32 %500, label %534 [
    i32 0, label %501
    i32 10, label %502
  ]

501:                                              ; preds = %499
  br label %502

502:                                              ; preds = %501, %499
  %503 = load i32, ptr %28, align 4, !tbaa !17
  %504 = add nsw i32 %503, 1
  store i32 %504, ptr %28, align 4, !tbaa !17
  br label %324, !llvm.loop !91

505:                                              ; preds = %331
  %506 = load ptr, ptr %27, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.ImDrawList, ptr %506, i32 0, i32 1
  %508 = getelementptr inbounds %struct.ImVector.1, ptr %507, i32 0, i32 0
  %509 = load i32, ptr %508, align 8, !tbaa !60
  %510 = load i32, ptr %25, align 4, !tbaa !17
  %511 = add nsw i32 %510, %509
  store i32 %511, ptr %25, align 4, !tbaa !17
  %512 = load ptr, ptr %27, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.ImDrawList, ptr %512, i32 0, i32 2
  %514 = getelementptr inbounds %struct.ImVector.2, ptr %513, i32 0, i32 0
  %515 = load i32, ptr %514, align 8, !tbaa !58
  %516 = load i32, ptr %24, align 4, !tbaa !17
  %517 = add nsw i32 %516, %515
  store i32 %517, ptr %24, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %518

518:                                              ; preds = %505
  %519 = load i32, ptr %26, align 4, !tbaa !17
  %520 = add nsw i32 %519, 1
  store i32 %520, ptr %26, align 4, !tbaa !17
  br label %311, !llvm.loop !92

521:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %522 = getelementptr inbounds %struct.VkRect2D, ptr %34, i32 0, i32 0
  %523 = getelementptr inbounds %struct.VkOffset2D, ptr %522, i32 0, i32 0
  store i32 0, ptr %523, align 4, !tbaa !93
  %524 = getelementptr inbounds %struct.VkOffset2D, ptr %522, i32 0, i32 1
  store i32 0, ptr %524, align 4, !tbaa !94
  %525 = getelementptr inbounds %struct.VkRect2D, ptr %34, i32 0, i32 1
  %526 = getelementptr inbounds %struct.VkExtent2D, ptr %525, i32 0, i32 0
  %527 = load i32, ptr %7, align 4, !tbaa !17
  store i32 %527, ptr %526, align 4, !tbaa !95
  %528 = getelementptr inbounds %struct.VkExtent2D, ptr %525, i32 0, i32 1
  %529 = load i32, ptr %8, align 4, !tbaa !17
  store i32 %529, ptr %528, align 4, !tbaa !96
  %530 = load ptr, ptr %5, align 8, !tbaa !5
  call void @vkCmdSetScissor(ptr noundef %530, i32 noundef 0, i32 noundef 1, ptr noundef %34)
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #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 %531

531:                                              ; preds = %521, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  %532 = load i32, ptr %9, align 4
  switch i32 %532, label %534 [
    i32 0, label %533
    i32 1, label %533
  ]

533:                                              ; preds = %531, %531
  ret void

534:                                              ; preds = %531, %499
  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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL15AlignBufferSizemm(i64 noundef, i64 noundef) #5

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP35ImGui_ImplVulkan_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) #2

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 144}
!21 = !{!"_ZTS21ImGui_ImplVulkan_Data", !22, i64 0, !6, i64 104, !25, i64 112, !12, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !12, 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, !6, i64 224, !26, i64 232}
!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, !25, i64 96}
!23 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!24 = !{!"_ZTS8VkFormat", !7, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTS36ImGui_ImplVulkan_WindowRenderBuffers", !12, i64 0, !12, i64 4, !6, i64 8}
!27 = !{!26, !6, i64 8}
!28 = !{!26, !12, i64 0}
!29 = !{!22, !12, i64 64}
!30 = !{!26, !12, i64 4}
!31 = !{!10, !12, i64 12}
!32 = !{!21, !25, i64 112}
!33 = !{!25, !25, i64 0}
!34 = !{!10, !12, i64 8}
!35 = !{!36, !6, i64 32}
!36 = !{!"_ZTS35ImGui_ImplVulkan_FrameRenderBuffers", !6, i64 0, !6, i64 8, !25, i64 16, !25, i64 24, !6, i64 32, !6, i64 40}
!37 = !{!36, !25, i64 16}
!38 = !{!36, !6, i64 40}
!39 = !{!36, !25, i64 24}
!40 = !{!22, !6, i64 16}
!41 = !{!36, !6, i64 0}
!42 = !{!43, !43, i64 0}
!43 = !{!"_ZTS8VkResult", !7, i64 0}
!44 = !{!36, !6, i64 8}
!45 = !{!10, !12, i64 4}
!46 = !{!47, !6, i64 40}
!47 = !{!"_ZTS10ImDrawList", !48, i64 0, !49, i64 16, !50, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !51, i64 88, !52, i64 104, !53, i64 120, !54, i64 136, !56, i64 168, !15, i64 192}
!48 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!54 = !{!"_ZTS15ImDrawCmdHeader", !55, i64 0, !6, i64 16, !12, i64 24}
!55 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!56 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !57, i64 8}
!57 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!58 = !{!47, !12, i64 32}
!59 = !{!47, !6, i64 24}
!60 = !{!47, !12, i64 16}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = !{!64, !65, i64 0}
!64 = !{!"_ZTS19VkMappedMemoryRange", !65, i64 0, !6, i64 8, !6, i64 16, !25, i64 24, !25, i64 32}
!65 = !{!"_ZTS15VkStructureType", !7, i64 0}
!66 = !{!64, !6, i64 16}
!67 = !{!64, !25, i64 32}
!68 = !{i64 0, i64 4, !69, i64 4, i64 4, !69}
!69 = !{!15, !15, i64 0}
!70 = !{!47, !12, i64 0}
!71 = !{!72, !6, i64 40}
!72 = !{!"_ZTS9ImDrawCmd", !55, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48}
!73 = !{!72, !15, i64 0}
!74 = !{!14, !15, i64 0}
!75 = !{!72, !15, i64 4}
!76 = !{!14, !15, i64 4}
!77 = !{!72, !15, i64 8}
!78 = !{!72, !15, i64 12}
!79 = !{!80, !12, i64 0}
!80 = !{!"_ZTS8VkRect2D", !81, i64 0, !82, i64 8}
!81 = !{!"_ZTS10VkOffset2D", !12, i64 0, !12, i64 4}
!82 = !{!"_ZTS10VkExtent2D", !12, i64 0, !12, i64 4}
!83 = !{!80, !12, i64 4}
!84 = !{!80, !12, i64 8}
!85 = !{!80, !12, i64 12}
!86 = !{!72, !6, i64 16}
!87 = !{!21, !6, i64 136}
!88 = !{!72, !12, i64 32}
!89 = !{!72, !12, i64 28}
!90 = !{!72, !12, i64 24}
!91 = distinct !{!91, !62}
!92 = distinct !{!92, !62}
!93 = !{!81, !12, i64 0}
!94 = !{!81, !12, i64 4}
!95 = !{!82, !12, i64 0}
!96 = !{!82, !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_ImplVulkan_FrameRenderBuffers = type { ptr, ptr, i64, i64, ptr, ptr }
%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T = external hidden unnamed_addr constant [80 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 %242, 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 144
  %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 %23, i64 232
  %30 = getelementptr inbounds i8, ptr %23, i64 240
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %43

33:                                               ; preds = %28
  store i32 0, ptr %29, align 8, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %23, i64 64
  %35 = load i32, ptr %34, align 8, !tbaa !21
  %36 = getelementptr inbounds i8, ptr %23, i64 236
  store i32 %35, ptr %36, align 4, !tbaa !22
  %37 = zext i32 %35 to i64
  %38 = mul nuw nsw i64 %37, 48
  %39 = tail call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %38)
  store ptr %39, ptr %30, align 8, !tbaa !19
  %40 = load i32, ptr %36, align 4, !tbaa !22
  %41 = zext i32 %40 to i64
  %42 = mul nuw nsw i64 %41, 48
  tail call void @llvm.memset.p0.i64(ptr align 8 %39, i8 0, i64 %42, i1 false)
  br label %43

43:                                               ; preds = %33, %28
  %44 = getelementptr inbounds i8, ptr %23, i64 236
  %45 = load i32, ptr %44, align 4, !tbaa !22
  %46 = getelementptr inbounds i8, ptr %23, i64 64
  %47 = load i32, ptr %46, align 8, !tbaa !21
  %48 = icmp eq i32 %45, %47
  br i1 %48, label %50, label %49

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

50:                                               ; preds = %43
  %51 = load i32, ptr %29, align 8, !tbaa !20
  %52 = add i32 %51, 1
  %53 = urem i32 %52, %45
  store i32 %53, ptr %29, align 8, !tbaa !20
  %54 = load ptr, ptr %30, align 8, !tbaa !19
  %55 = zext i32 %53 to i64
  %56 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %54, i64 %55
  %57 = getelementptr inbounds i8, ptr %0, i64 12
  %58 = load i32, ptr %57, align 4, !tbaa !23
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %60, label %146

60:                                               ; preds = %50
  %61 = zext nneg i32 %58 to i64
  %62 = mul nuw nsw i64 %61, 20
  %63 = getelementptr inbounds i8, ptr %23, i64 112
  %64 = load i64, ptr %63, align 8, !tbaa !27
  %65 = tail call noundef i64 @_ZL15AlignBufferSizemm(i64 noundef %62, i64 noundef %64)
  %66 = getelementptr inbounds i8, ptr %0, i64 8
  %67 = load i32, ptr %66, align 8, !tbaa !28
  %68 = sext i32 %67 to i64
  %69 = shl nsw i64 %68, 1
  %70 = load i64, ptr %63, align 8, !tbaa !27
  %71 = tail call noundef i64 @_ZL15AlignBufferSizemm(i64 noundef %69, i64 noundef %70)
  %72 = getelementptr inbounds i8, ptr %56, i64 32
  %73 = load ptr, ptr %72, align 8, !tbaa !29
  %74 = icmp eq ptr %73, null
  br i1 %74, label %79, label %75

75:                                               ; preds = %60
  %76 = getelementptr inbounds i8, ptr %56, i64 16
  %77 = load i64, ptr %76, align 8, !tbaa !31
  %78 = icmp ult i64 %77, %65
  br i1 %78, label %79, label %81

79:                                               ; preds = %75, %60
  %80 = getelementptr inbounds i8, ptr %56, i64 16
  tail call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %80, i64 noundef %65, i32 noundef 128)
  br label %81

81:                                               ; preds = %79, %75
  %82 = getelementptr inbounds i8, ptr %56, i64 40
  %83 = load ptr, ptr %82, align 8, !tbaa !32
  %84 = icmp eq ptr %83, null
  br i1 %84, label %89, label %85

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %56, i64 24
  %87 = load i64, ptr %86, align 8, !tbaa !33
  %88 = icmp ult i64 %87, %71
  br i1 %88, label %89, label %92

89:                                               ; preds = %85, %81
  %90 = getelementptr inbounds i8, ptr %56, i64 8
  %91 = getelementptr inbounds i8, ptr %56, i64 24
  tail call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull align 8 dereferenceable(8) %91, i64 noundef %71, i32 noundef 64)
  br label %92

92:                                               ; preds = %89, %85
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store ptr null, ptr %4, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store ptr null, ptr %5, align 8, !tbaa !34
  %93 = getelementptr inbounds i8, ptr %23, i64 16
  %94 = load ptr, ptr %93, align 8, !tbaa !35
  %95 = load ptr, ptr %56, align 8, !tbaa !36
  %96 = call i32 @vkMapMemory(ptr noundef %94, ptr noundef %95, i64 noundef 0, i64 noundef %65, i32 noundef 0, ptr noundef nonnull %4)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %96)
  %97 = load ptr, ptr %93, align 8, !tbaa !35
  %98 = getelementptr inbounds i8, ptr %56, i64 8
  %99 = load ptr, ptr %98, align 8, !tbaa !37
  %100 = call i32 @vkMapMemory(ptr noundef %97, ptr noundef %99, i64 noundef 0, i64 noundef %71, i32 noundef 0, ptr noundef nonnull %5)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %100)
  %101 = getelementptr inbounds i8, ptr %0, i64 4
  %102 = load i32, ptr %101, align 4, !tbaa !38
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %92
  %104 = getelementptr inbounds i8, ptr %0, i64 16
  br label %118

._crit_edge:                                      ; preds = %118, %92
  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 !39
  %105 = load ptr, ptr %56, align 8, !tbaa !36
  %106 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %105, ptr %106, align 16, !tbaa !42
  %107 = getelementptr inbounds i8, ptr %6, i64 32
  store i64 -1, ptr %107, align 16, !tbaa !43
  %108 = getelementptr inbounds i8, ptr %6, i64 40
  store i32 6, ptr %108, align 8, !tbaa !39
  %109 = load ptr, ptr %98, align 8, !tbaa !37
  %110 = getelementptr inbounds i8, ptr %6, i64 56
  store ptr %109, ptr %110, align 8, !tbaa !42
  %111 = getelementptr inbounds i8, ptr %6, i64 72
  store i64 -1, ptr %111, align 8, !tbaa !43
  %112 = load ptr, ptr %93, align 8, !tbaa !35
  %113 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %112, i32 noundef 2, ptr noundef nonnull %6)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %113)
  %114 = load ptr, ptr %93, align 8, !tbaa !35
  %115 = load ptr, ptr %56, align 8, !tbaa !36
  call void @vkUnmapMemory(ptr noundef %114, ptr noundef %115)
  %116 = load ptr, ptr %93, align 8, !tbaa !35
  %117 = load ptr, ptr %98, align 8, !tbaa !37
  call void @vkUnmapMemory(ptr noundef %116, ptr noundef %117)
  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 %146

118:                                              ; preds = %.lr.ph, %118
  %.0137146 = phi i32 [ 0, %.lr.ph ], [ %143, %118 ]
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %104, i32 noundef %.0137146)
  %120 = load ptr, ptr %119, align 8, !tbaa !34
  %121 = load ptr, ptr %4, align 8, !tbaa !34
  %122 = getelementptr inbounds i8, ptr %120, i64 32
  %123 = getelementptr inbounds i8, ptr %120, i64 40
  %124 = load ptr, ptr %123, align 8, !tbaa !44
  %125 = load i32, ptr %122, align 8, !tbaa !56
  %126 = sext i32 %125 to i64
  %127 = mul nsw i64 %126, 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %121, ptr align 4 %124, i64 %127, i1 false)
  %128 = load ptr, ptr %5, align 8, !tbaa !34
  %129 = getelementptr inbounds i8, ptr %120, i64 16
  %130 = getelementptr inbounds i8, ptr %120, i64 24
  %131 = load ptr, ptr %130, align 8, !tbaa !57
  %132 = load i32, ptr %129, align 8, !tbaa !58
  %133 = sext i32 %132 to i64
  %134 = shl nsw i64 %133, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %128, ptr align 2 %131, i64 %134, i1 false)
  %135 = load i32, ptr %122, align 8, !tbaa !56
  %136 = load ptr, ptr %4, align 8, !tbaa !34
  %137 = sext i32 %135 to i64
  %138 = getelementptr inbounds %struct.ImDrawVert, ptr %136, i64 %137
  store ptr %138, ptr %4, align 8, !tbaa !34
  %139 = load i32, ptr %129, align 8, !tbaa !58
  %140 = load ptr, ptr %5, align 8, !tbaa !34
  %141 = sext i32 %139 to i64
  %142 = getelementptr inbounds i16, ptr %140, i64 %141
  store ptr %142, ptr %5, align 8, !tbaa !34
  %143 = add nuw nsw i32 %.0137146, 1
  %144 = load i32, ptr %101, align 4, !tbaa !38
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %118, label %._crit_edge, !llvm.loop !59

146:                                              ; preds = %._crit_edge, %50
  %147 = extractelement <2 x i32> %18, i64 0
  %148 = extractelement <2 x i32> %18, i64 1
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP35ImGui_ImplVulkan_FrameRenderBuffersii(ptr noundef nonnull %0, ptr noundef %.0, ptr noundef %1, ptr noundef %56, i32 noundef %147, i32 noundef %148)
  %149 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.029.0.copyload = load float, ptr %149, 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
  %150 = getelementptr inbounds i8, ptr %0, i64 4
  %151 = load i32, ptr %150, align 4, !tbaa !38
  %152 = icmp sgt i32 %151, 0
  br i1 %152, label %.lr.ph155, label %._crit_edge156

.lr.ph155:                                        ; preds = %146
  %153 = getelementptr inbounds i8, ptr %0, i64 16
  %154 = getelementptr inbounds i8, ptr %7, i64 4
  %155 = uitofp nneg i32 %147 to float
  %156 = getelementptr inbounds i8, ptr %8, i64 4
  %157 = uitofp nneg i32 %148 to float
  %158 = getelementptr inbounds i8, ptr %9, i64 8
  %159 = getelementptr inbounds i8, ptr %23, i64 136
  br label %162

._crit_edge156:                                   ; preds = %._crit_edge150, %146
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  store i32 0, ptr %11, align 4, !tbaa !61
  %160 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 0, ptr %160, align 4, !tbaa !63
  %161 = getelementptr inbounds i8, ptr %11, i64 8
  store <2 x i32> %18, ptr %161, align 4, !tbaa !64
  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 %242

162:                                              ; preds = %.lr.ph155, %._crit_edge150
  %.0134153 = phi i32 [ 0, %.lr.ph155 ], [ %173, %._crit_edge150 ]
  %.0135152 = phi i32 [ 0, %.lr.ph155 ], [ %169, %._crit_edge150 ]
  %.0136151 = phi i32 [ 0, %.lr.ph155 ], [ %172, %._crit_edge150 ]
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %153, i32 noundef %.0134153)
  %164 = load ptr, ptr %163, align 8, !tbaa !34
  %165 = load i32, ptr %164, align 8, !tbaa !65
  %166 = icmp sgt i32 %165, 0
  br i1 %166, label %.lr.ph149, label %._crit_edge150

._crit_edge150:                                   ; preds = %238, %162
  %167 = getelementptr inbounds i8, ptr %164, i64 16
  %168 = load i32, ptr %167, align 8, !tbaa !58
  %169 = add nsw i32 %168, %.0135152
  %170 = getelementptr inbounds i8, ptr %164, i64 32
  %171 = load i32, ptr %170, align 8, !tbaa !56
  %172 = add nsw i32 %171, %.0136151
  %173 = add nuw nsw i32 %.0134153, 1
  %174 = load i32, ptr %150, align 4, !tbaa !38
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %162, label %._crit_edge156, !llvm.loop !66

.lr.ph149:                                        ; preds = %162, %238
  %.0132147 = phi i32 [ %239, %238 ], [ 0, %162 ]
  %176 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %164, i32 noundef %.0132147)
  %177 = getelementptr inbounds i8, ptr %176, i64 40
  %178 = load ptr, ptr %177, align 8, !tbaa !67
  %magicptr = ptrtoint ptr %178 to i64
  switch i64 %magicptr, label %180 [
    i64 0, label %181
    i64 -8, label %179
  ]

179:                                              ; preds = %.lr.ph149
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP35ImGui_ImplVulkan_FrameRenderBuffersii(ptr noundef %0, ptr noundef %.0, ptr noundef %1, ptr noundef %56, i32 noundef %147, i32 noundef %148)
  br label %238

180:                                              ; preds = %.lr.ph149
  call void %178(ptr noundef nonnull %164, ptr noundef nonnull %176)
  br label %238

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

199:                                              ; preds = %181
  store float 0.000000e+00, ptr %7, align 4, !tbaa !73
  br label %200

200:                                              ; preds = %199, %181
  %201 = phi float [ 0.000000e+00, %199 ], [ %197, %181 ]
  %202 = load float, ptr %154, align 4, !tbaa !74
  %203 = fcmp olt float %202, 0.000000e+00
  br i1 %203, label %204, label %205

204:                                              ; preds = %200
  store float 0.000000e+00, ptr %154, align 4, !tbaa !74
  br label %205

205:                                              ; preds = %204, %200
  %206 = phi float [ 0.000000e+00, %204 ], [ %202, %200 ]
  %207 = load float, ptr %8, align 4, !tbaa !73
  %208 = fcmp ogt float %207, %155
  br i1 %208, label %209, label %210

209:                                              ; preds = %205
  store float %155, ptr %8, align 4, !tbaa !73
  br label %210

210:                                              ; preds = %209, %205
  %211 = phi float [ %155, %209 ], [ %207, %205 ]
  %212 = load float, ptr %156, align 4, !tbaa !74
  %213 = fcmp ogt float %212, %157
  br i1 %213, label %214, label %215

214:                                              ; preds = %210
  store float %157, ptr %156, align 4, !tbaa !74
  br label %215

215:                                              ; preds = %214, %210
  %216 = phi float [ %157, %214 ], [ %212, %210 ]
  %217 = fcmp ugt float %211, %201
  %218 = fcmp ugt float %216, %206
  %or.cond157 = select i1 %217, i1 %218, i1 false
  br i1 %or.cond157, label %.critedge, label %237

.critedge:                                        ; preds = %215
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  %219 = insertelement <2 x float> poison, float %201, i64 0
  %220 = insertelement <2 x float> %219, float %206, i64 1
  %221 = fptosi <2 x float> %220 to <2 x i32>
  store <2 x i32> %221, ptr %9, align 8, !tbaa !64
  %222 = insertelement <2 x float> poison, float %211, i64 0
  %223 = insertelement <2 x float> %222, float %216, i64 1
  %224 = fsub <2 x float> %223, %220
  %225 = fptoui <2 x float> %224 to <2 x i32>
  store <2 x i32> %225, ptr %158, align 8, !tbaa !64
  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
  %226 = getelementptr inbounds i8, ptr %176, i64 16
  %227 = load ptr, ptr %226, align 8, !tbaa !75
  store ptr %227, ptr %10, align 8, !tbaa !34
  %228 = load ptr, ptr %159, align 8, !tbaa !76
  call void @vkCmdBindDescriptorSets(ptr noundef %1, i32 noundef 0, ptr noundef %228, i32 noundef 0, i32 noundef 1, ptr noundef nonnull %10, i32 noundef 0, ptr noundef null)
  %229 = getelementptr inbounds i8, ptr %176, i64 32
  %230 = load i32, ptr %229, align 8, !tbaa !77
  %231 = getelementptr inbounds i8, ptr %176, i64 28
  %232 = load i32, ptr %231, align 4, !tbaa !78
  %233 = add i32 %232, %.0135152
  %234 = getelementptr inbounds i8, ptr %176, i64 24
  %235 = load i32, ptr %234, align 8, !tbaa !79
  %236 = add i32 %235, %.0136151
  call void @vkCmdDrawIndexed(ptr noundef %1, i32 noundef %230, i32 noundef 1, i32 noundef %233, i32 noundef %236, 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 %238

237:                                              ; preds = %215
  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 %238

238:                                              ; preds = %180, %179, %.critedge, %237
  %239 = add nuw nsw i32 %.0132147, 1
  %240 = load i32, ptr %164, align 8, !tbaa !65
  %241 = icmp slt i32 %239, %240
  br i1 %241, label %.lr.ph149, label %._crit_edge150, !llvm.loop !80

242:                                              ; preds = %3, %._crit_edge156
  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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL15AlignBufferSizemm(i64 noundef, i64 noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP35ImGui_ImplVulkan_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 #2

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 144}
!10 = !{!"_ZTS21ImGui_ImplVulkan_Data", !11, i64 0, !12, i64 104, !17, i64 112, !13, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !13, 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, !12, i64 224, !18, i64 232}
!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, !17, i64 96}
!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 = !{!"_ZTS36ImGui_ImplVulkan_WindowRenderBuffers", !13, i64 0, !13, i64 4, !12, i64 8}
!19 = !{!18, !12, i64 8}
!20 = !{!18, !13, i64 0}
!21 = !{!11, !13, i64 64}
!22 = !{!18, !13, i64 4}
!23 = !{!24, !13, i64 12}
!24 = !{!"_ZTS10ImDrawData", !15, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !25, i64 16, !26, i64 32, !26, i64 40, !26, i64 48, !12, i64 56}
!25 = !{!"_ZTS8ImVectorIP10ImDrawListE", !13, i64 0, !13, i64 4, !12, i64 8}
!26 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!27 = !{!10, !17, i64 112}
!28 = !{!24, !13, i64 8}
!29 = !{!30, !12, i64 32}
!30 = !{!"_ZTS35ImGui_ImplVulkan_FrameRenderBuffers", !12, i64 0, !12, i64 8, !17, i64 16, !17, i64 24, !12, i64 32, !12, i64 40}
!31 = !{!30, !17, i64 16}
!32 = !{!30, !12, i64 40}
!33 = !{!30, !17, i64 24}
!34 = !{!12, !12, i64 0}
!35 = !{!11, !12, i64 16}
!36 = !{!30, !12, i64 0}
!37 = !{!30, !12, i64 8}
!38 = !{!24, !13, i64 4}
!39 = !{!40, !41, i64 0}
!40 = !{!"_ZTS19VkMappedMemoryRange", !41, i64 0, !12, i64 8, !12, i64 16, !17, i64 24, !17, i64 32}
!41 = !{!"_ZTS15VkStructureType", !7, i64 0}
!42 = !{!40, !12, i64 16}
!43 = !{!40, !17, i64 32}
!44 = !{!45, !12, i64 40}
!45 = !{!"_ZTS10ImDrawList", !46, i64 0, !47, i64 16, !48, i64 32, !13, i64 48, !13, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !49, i64 88, !50, i64 104, !51, i64 120, !52, i64 136, !54, i64 168, !6, i64 192}
!46 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !13, i64 0, !13, i64 4, !12, i64 8}
!47 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !12, i64 8}
!48 = !{!"_ZTS8ImVectorI10ImDrawVertE", !13, i64 0, !13, i64 4, !12, i64 8}
!49 = !{!"_ZTS8ImVectorI6ImVec4E", !13, i64 0, !13, i64 4, !12, i64 8}
!50 = !{!"_ZTS8ImVectorIPvE", !13, i64 0, !13, i64 4, !12, i64 8}
!51 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !12, i64 8}
!52 = !{!"_ZTS15ImDrawCmdHeader", !53, i64 0, !12, i64 16, !13, i64 24}
!53 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!54 = !{!"_ZTS18ImDrawListSplitter", !13, i64 0, !13, i64 4, !55, i64 8}
!55 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !12, i64 8}
!56 = !{!45, !13, i64 32}
!57 = !{!45, !12, i64 24}
!58 = !{!45, !13, i64 16}
!59 = distinct !{!59, !60}
!60 = !{!"llvm.loop.mustprogress"}
!61 = !{!62, !13, i64 0}
!62 = !{!"_ZTS10VkOffset2D", !13, i64 0, !13, i64 4}
!63 = !{!62, !13, i64 4}
!64 = !{!13, !13, i64 0}
!65 = !{!45, !13, i64 0}
!66 = distinct !{!66, !60}
!67 = !{!68, !12, i64 40}
!68 = !{!"_ZTS9ImDrawCmd", !53, i64 0, !12, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !12, i64 40, !12, i64 48}
!69 = !{!68, !6, i64 0}
!70 = !{!68, !6, i64 4}
!71 = !{!68, !6, i64 8}
!72 = !{!68, !6, i64 12}
!73 = !{!26, !6, i64 0}
!74 = !{!26, !6, i64 4}
!75 = !{!68, !12, i64 16}
!76 = !{!10, !12, i64 136}
!77 = !{!68, !13, i64 32}
!78 = !{!68, !13, i64 28}
!79 = !{!68, !13, i64 24}
!80 = distinct !{!80, !60}


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