; LLVM IR from hadryansalles/Luz :: deps/imgui (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.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_ImplVulkan_WindowRenderBuffers }
%struct.ImGui_ImplVulkanH_Window = type { i32, i32, ptr, ptr, %struct.VkSurfaceFormatKHR, i32, ptr, ptr, i8, i8, %union.VkClearValue, i32, i32, i32, i32, ptr, ptr }
%struct.VkSurfaceFormatKHR = type { i32, i32 }
%union.VkClearValue = type { %union.VkClearColorValue }
%union.VkClearColorValue = type { [4 x float] }
%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 [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [84 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 %543

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 516, 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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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 525, 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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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_ImplVulkan_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 %312

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
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %154, i32 0, i32 2
  %156 = load i64, ptr %155, align 8, !tbaa !35
  %157 = call noundef i64 @_ZL15AlignBufferSizemm(i64 noundef %153, i64 noundef %156)
  store i64 %157, ptr %15, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ImDrawData, ptr %158, i32 0, i32 2
  %160 = load i32, ptr %159, align 8, !tbaa !37
  %161 = sext i32 %160 to i64
  %162 = mul i64 %161, 2
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %163, i32 0, i32 2
  %165 = load i64, ptr %164, align 8, !tbaa !35
  %166 = call noundef i64 @_ZL15AlignBufferSizemm(i64 noundef %162, i64 noundef %165)
  store i64 %166, ptr %16, align 8, !tbaa !36
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %167, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !38
  %170 = icmp eq ptr %169, null
  br i1 %170, label %177, label %171

171:                                              ; preds = %148
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %172, i32 0, i32 2
  %174 = load i64, ptr %173, align 8, !tbaa !40
  %175 = load i64, ptr %15, align 8, !tbaa !36
  %176 = icmp ult i64 %174, %175
  br i1 %176, label %177, label %185

177:                                              ; preds = %171, %148
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %178, i32 0, i32 4
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %14, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %182, i32 0, i32 2
  %184 = load i64, ptr %15, align 8, !tbaa !36
  call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef nonnull align 8 dereferenceable(8) %183, i64 noundef %184, i32 noundef 128)
  br label %185

185:                                              ; preds = %177, %171
  %186 = load ptr, ptr %14, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %186, i32 0, i32 5
  %188 = load ptr, ptr %187, align 8, !tbaa !41
  %189 = icmp eq ptr %188, null
  br i1 %189, label %196, label %190

190:                                              ; preds = %185
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %191, i32 0, i32 3
  %193 = load i64, ptr %192, align 8, !tbaa !42
  %194 = load i64, ptr %16, align 8, !tbaa !36
  %195 = icmp ult i64 %193, %194
  br i1 %195, label %196, label %204

196:                                              ; preds = %190, %185
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %197, i32 0, i32 5
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %199, i32 0, i32 1
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %201, i32 0, i32 3
  %203 = load i64, ptr %16, align 8, !tbaa !36
  call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %198, ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull align 8 dereferenceable(8) %202, i64 noundef %203, i32 noundef 64)
  br label %204

204:                                              ; preds = %196, %190
  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
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %205, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !43
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %208, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8, !tbaa !44
  %211 = load i64, ptr %15, align 8, !tbaa !36
  %212 = call i32 @vkMapMemory(ptr noundef %207, ptr noundef %210, i64 noundef 0, i64 noundef %211, i32 noundef 0, ptr noundef %17)
  store i32 %212, ptr %19, align 4, !tbaa !45
  %213 = load i32, ptr %19, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %213)
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %214, i32 0, i32 2
  %216 = load ptr, ptr %215, align 8, !tbaa !43
  %217 = load ptr, ptr %14, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %217, i32 0, i32 1
  %219 = load ptr, ptr %218, align 8, !tbaa !47
  %220 = load i64, ptr %16, align 8, !tbaa !36
  %221 = call i32 @vkMapMemory(ptr noundef %216, ptr noundef %219, i64 noundef 0, i64 noundef %220, i32 noundef 0, ptr noundef %18)
  store i32 %221, ptr %19, align 4, !tbaa !45
  %222 = load i32, ptr %19, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %222)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !17
  br label %223

223:                                              ; preds = %272, %204
  %224 = load i32, ptr %20, align 4, !tbaa !17
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.ImDrawData, ptr %225, i32 0, i32 1
  %227 = load i32, ptr %226, align 4, !tbaa !48
  %228 = icmp slt i32 %224, %227
  br i1 %228, label %230, label %229

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

230:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.ImDrawData, ptr %231, i32 0, i32 4
  %233 = load i32, ptr %20, align 4, !tbaa !17
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %232, i32 noundef %233)
  %235 = load ptr, ptr %234, align 8, !tbaa !5
  store ptr %235, ptr %21, align 8, !tbaa !5
  %236 = load ptr, ptr %17, align 8, !tbaa !5
  %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 2
  %240 = load ptr, ptr %239, align 8, !tbaa !49
  %241 = load ptr, ptr %21, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.ImDrawList, ptr %241, i32 0, i32 2
  %243 = getelementptr inbounds %struct.ImVector.2, ptr %242, i32 0, i32 0
  %244 = load i32, ptr %243, align 8, !tbaa !61
  %245 = sext i32 %244 to i64
  %246 = mul i64 %245, 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %236, ptr align 4 %240, i64 %246, i1 false)
  %247 = load ptr, ptr %18, align 8, !tbaa !5
  %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 2
  %251 = load ptr, ptr %250, align 8, !tbaa !62
  %252 = load ptr, ptr %21, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.ImDrawList, ptr %252, i32 0, i32 1
  %254 = getelementptr inbounds %struct.ImVector.1, ptr %253, i32 0, i32 0
  %255 = load i32, ptr %254, align 8, !tbaa !63
  %256 = sext i32 %255 to i64
  %257 = mul i64 %256, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %247, ptr align 2 %251, i64 %257, i1 false)
  %258 = load ptr, ptr %21, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.ImDrawList, ptr %258, i32 0, i32 2
  %260 = getelementptr inbounds %struct.ImVector.2, ptr %259, i32 0, i32 0
  %261 = load i32, ptr %260, align 8, !tbaa !61
  %262 = load ptr, ptr %17, align 8, !tbaa !5
  %263 = sext i32 %261 to i64
  %264 = getelementptr inbounds %struct.ImDrawVert, ptr %262, i64 %263
  store ptr %264, ptr %17, align 8, !tbaa !5
  %265 = load ptr, ptr %21, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.ImDrawList, ptr %265, i32 0, i32 1
  %267 = getelementptr inbounds %struct.ImVector.1, ptr %266, i32 0, i32 0
  %268 = load i32, ptr %267, align 8, !tbaa !63
  %269 = load ptr, ptr %18, align 8, !tbaa !5
  %270 = sext i32 %268 to i64
  %271 = getelementptr inbounds i16, ptr %269, i64 %270
  store ptr %271, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %272

272:                                              ; preds = %230
  %273 = load i32, ptr %20, align 4, !tbaa !17
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %20, align 4, !tbaa !17
  br label %223, !llvm.loop !64

275:                                              ; preds = %229
  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)
  %276 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %277 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %276, i32 0, i32 0
  store i32 6, ptr %277, align 16, !tbaa !66
  %278 = load ptr, ptr %14, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %278, i32 0, i32 0
  %280 = load ptr, ptr %279, align 8, !tbaa !44
  %281 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %282 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %281, i32 0, i32 2
  store ptr %280, ptr %282, align 16, !tbaa !69
  %283 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %284 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %283, i32 0, i32 4
  store i64 -1, ptr %284, align 16, !tbaa !70
  %285 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 1
  %286 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %285, i32 0, i32 0
  store i32 6, ptr %286, align 8, !tbaa !66
  %287 = load ptr, ptr %14, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %287, i32 0, i32 1
  %289 = load ptr, ptr %288, align 8, !tbaa !47
  %290 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 1
  %291 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %290, i32 0, i32 2
  store ptr %289, ptr %291, align 8, !tbaa !69
  %292 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 1
  %293 = getelementptr inbounds %struct.VkMappedMemoryRange, ptr %292, i32 0, i32 4
  store i64 -1, ptr %293, align 8, !tbaa !70
  %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 !43
  %297 = getelementptr inbounds [2 x %struct.VkMappedMemoryRange], ptr %22, i64 0, i64 0
  %298 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %296, i32 noundef 2, ptr noundef %297)
  store i32 %298, ptr %19, align 4, !tbaa !45
  %299 = load i32, ptr %19, align 4, !tbaa !45
  call void @_ZL15check_vk_result8VkResult(i32 noundef %299)
  %300 = load ptr, ptr %11, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %300, i32 0, i32 2
  %302 = load ptr, ptr %301, align 8, !tbaa !43
  %303 = load ptr, ptr %14, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %303, i32 0, i32 0
  %305 = load ptr, ptr %304, align 8, !tbaa !44
  call void @vkUnmapMemory(ptr noundef %302, ptr noundef %305)
  %306 = load ptr, ptr %11, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %306, i32 0, i32 2
  %308 = load ptr, ptr %307, align 8, !tbaa !43
  %309 = load ptr, ptr %14, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.ImGui_ImplVulkan_FrameRenderBuffers, ptr %309, i32 0, i32 1
  %311 = load ptr, ptr %310, align 8, !tbaa !47
  call void @vkUnmapMemory(ptr noundef %308, ptr noundef %311)
  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 %312

312:                                              ; preds = %275, %125
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  %314 = load ptr, ptr %6, align 8, !tbaa !5
  %315 = load ptr, ptr %5, align 8, !tbaa !5
  %316 = load ptr, ptr %14, align 8, !tbaa !5
  %317 = load i32, ptr %7, align 4, !tbaa !17
  %318 = load i32, ptr %8, align 4, !tbaa !17
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP35ImGui_ImplVulkan_FrameRenderBuffersii(ptr noundef %313, ptr noundef %314, ptr noundef %315, ptr noundef %316, i32 noundef %317, i32 noundef %318)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %319 = load ptr, ptr %4, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.ImDrawData, ptr %319, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %320, i64 8, i1 false), !tbaa.struct !71
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %321 = load ptr, ptr %4, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.ImDrawData, ptr %321, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %322, i64 8, i1 false), !tbaa.struct !71
  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 %323

323:                                              ; preds = %530, %312
  %324 = load i32, ptr %27, align 4, !tbaa !17
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.ImDrawData, ptr %325, i32 0, i32 1
  %327 = load i32, ptr %326, align 4, !tbaa !48
  %328 = icmp slt i32 %324, %327
  br i1 %328, label %330, label %329

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

330:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %331 = load ptr, ptr %4, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.ImDrawData, ptr %331, i32 0, i32 4
  %333 = load i32, ptr %27, align 4, !tbaa !17
  %334 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %332, i32 noundef %333)
  %335 = load ptr, ptr %334, align 8, !tbaa !5
  store ptr %335, 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 %336

336:                                              ; preds = %514, %330
  %337 = load i32, ptr %29, align 4, !tbaa !17
  %338 = load ptr, ptr %28, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.ImDrawList, ptr %338, i32 0, i32 0
  %340 = getelementptr inbounds %struct.ImVector.0, ptr %339, i32 0, i32 0
  %341 = load i32, ptr %340, align 8, !tbaa !73
  %342 = icmp slt i32 %337, %341
  br i1 %342, label %344, label %343

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

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

353:                                              ; preds = %344
  %354 = load ptr, ptr %30, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.ImDrawCmd, ptr %354, i32 0, i32 5
  %356 = load ptr, ptr %355, align 8, !tbaa !74
  %357 = icmp eq ptr %356, inttoptr (i64 -8 to ptr)
  br i1 %357, label %358, label %365

358:                                              ; preds = %353
  %359 = load ptr, ptr %4, align 8, !tbaa !5
  %360 = load ptr, ptr %6, align 8, !tbaa !5
  %361 = load ptr, ptr %5, align 8, !tbaa !5
  %362 = load ptr, ptr %14, align 8, !tbaa !5
  %363 = load i32, ptr %7, align 4, !tbaa !17
  %364 = load i32, ptr %8, align 4, !tbaa !17
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP35ImGui_ImplVulkan_FrameRenderBuffersii(ptr noundef %359, ptr noundef %360, ptr noundef %361, ptr noundef %362, i32 noundef %363, i32 noundef %364)
  br label %371

365:                                              ; preds = %353
  %366 = load ptr, ptr %30, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.ImDrawCmd, ptr %366, i32 0, i32 5
  %368 = load ptr, ptr %367, align 8, !tbaa !74
  %369 = load ptr, ptr %28, align 8, !tbaa !5
  %370 = load ptr, ptr %30, align 8, !tbaa !5
  call void %368(ptr noundef %369, ptr noundef %370)
  br label %371

371:                                              ; preds = %365, %358
  br label %510

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

416:                                              ; preds = %372
  %417 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  store float 0.000000e+00, ptr %417, align 4, !tbaa !77
  br label %418

418:                                              ; preds = %416, %372
  %419 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %420 = load float, ptr %419, align 4, !tbaa !79
  %421 = fcmp olt float %420, 0.000000e+00
  br i1 %421, label %422, label %424

422:                                              ; preds = %418
  %423 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  store float 0.000000e+00, ptr %423, align 4, !tbaa !79
  br label %424

424:                                              ; preds = %422, %418
  %425 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %426 = load float, ptr %425, align 4, !tbaa !77
  %427 = load i32, ptr %7, align 4, !tbaa !17
  %428 = sitofp i32 %427 to float
  %429 = fcmp ogt float %426, %428
  br i1 %429, label %430, label %434

430:                                              ; preds = %424
  %431 = load i32, ptr %7, align 4, !tbaa !17
  %432 = sitofp i32 %431 to float
  %433 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  store float %432, ptr %433, align 4, !tbaa !77
  br label %434

434:                                              ; preds = %430, %424
  %435 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %436 = load float, ptr %435, align 4, !tbaa !79
  %437 = load i32, ptr %8, align 4, !tbaa !17
  %438 = sitofp i32 %437 to float
  %439 = fcmp ogt float %436, %438
  br i1 %439, label %440, label %444

440:                                              ; preds = %434
  %441 = load i32, ptr %8, align 4, !tbaa !17
  %442 = sitofp i32 %441 to float
  %443 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  store float %442, ptr %443, align 4, !tbaa !79
  br label %444

444:                                              ; preds = %440, %434
  %445 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %446 = load float, ptr %445, align 4, !tbaa !77
  %447 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %448 = load float, ptr %447, align 4, !tbaa !77
  %449 = fcmp ole float %446, %448
  br i1 %449, label %456, label %450

450:                                              ; preds = %444
  %451 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %452 = load float, ptr %451, align 4, !tbaa !79
  %453 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %454 = load float, ptr %453, align 4, !tbaa !79
  %455 = fcmp ole float %452, %454
  br i1 %455, label %456, label %457

456:                                              ; preds = %450, %444
  store i32 10, ptr %9, align 4
  br label %507

457:                                              ; preds = %450
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %458 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %459 = load float, ptr %458, align 4, !tbaa !77
  %460 = fptosi float %459 to i32
  %461 = getelementptr inbounds %struct.VkRect2D, ptr %33, i32 0, i32 0
  %462 = getelementptr inbounds %struct.VkOffset2D, ptr %461, i32 0, i32 0
  store i32 %460, ptr %462, align 4, !tbaa !82
  %463 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %464 = load float, ptr %463, align 4, !tbaa !79
  %465 = fptosi float %464 to i32
  %466 = getelementptr inbounds %struct.VkRect2D, ptr %33, i32 0, i32 0
  %467 = getelementptr inbounds %struct.VkOffset2D, ptr %466, i32 0, i32 1
  store i32 %465, ptr %467, align 4, !tbaa !86
  %468 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %469 = load float, ptr %468, align 4, !tbaa !77
  %470 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 0
  %471 = load float, ptr %470, align 4, !tbaa !77
  %472 = fsub float %469, %471
  %473 = fptoui float %472 to i32
  %474 = getelementptr inbounds %struct.VkRect2D, ptr %33, i32 0, i32 1
  %475 = getelementptr inbounds %struct.VkExtent2D, ptr %474, i32 0, i32 0
  store i32 %473, ptr %475, align 4, !tbaa !87
  %476 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %477 = load float, ptr %476, align 4, !tbaa !79
  %478 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %479 = load float, ptr %478, align 4, !tbaa !79
  %480 = fsub float %477, %479
  %481 = fptoui float %480 to i32
  %482 = getelementptr inbounds %struct.VkRect2D, ptr %33, i32 0, i32 1
  %483 = getelementptr inbounds %struct.VkExtent2D, ptr %482, i32 0, i32 1
  store i32 %481, ptr %483, align 4, !tbaa !88
  %484 = load ptr, ptr %5, align 8, !tbaa !5
  call void @vkCmdSetScissor(ptr noundef %484, i32 noundef 0, i32 noundef 1, ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %485 = load ptr, ptr %30, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.ImDrawCmd, ptr %485, i32 0, i32 1
  %487 = load ptr, ptr %486, align 8, !tbaa !89
  store ptr %487, ptr %34, align 8, !tbaa !5
  %488 = load ptr, ptr %5, align 8, !tbaa !5
  %489 = load ptr, ptr %10, align 8, !tbaa !5
  %490 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %489, i32 0, i32 5
  %491 = load ptr, ptr %490, align 8, !tbaa !90
  %492 = getelementptr inbounds [1 x ptr], ptr %34, i64 0, i64 0
  call void @vkCmdBindDescriptorSets(ptr noundef %488, i32 noundef 0, ptr noundef %491, i32 noundef 0, i32 noundef 1, ptr noundef %492, i32 noundef 0, ptr noundef null)
  %493 = load ptr, ptr %5, align 8, !tbaa !5
  %494 = load ptr, ptr %30, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.ImDrawCmd, ptr %494, i32 0, i32 4
  %496 = load i32, ptr %495, align 8, !tbaa !91
  %497 = load ptr, ptr %30, align 8, !tbaa !5
  %498 = getelementptr inbounds %struct.ImDrawCmd, ptr %497, i32 0, i32 3
  %499 = load i32, ptr %498, align 4, !tbaa !92
  %500 = load i32, ptr %26, align 4, !tbaa !17
  %501 = add i32 %499, %500
  %502 = load ptr, ptr %30, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.ImDrawCmd, ptr %502, i32 0, i32 2
  %504 = load i32, ptr %503, align 8, !tbaa !93
  %505 = load i32, ptr %25, align 4, !tbaa !17
  %506 = add i32 %504, %505
  call void @vkCmdDrawIndexed(ptr noundef %493, i32 noundef %496, i32 noundef 1, i32 noundef %501, i32 noundef %506, 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 %507

507:                                              ; preds = %457, %456
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %508 = load i32, ptr %9, align 4
  switch i32 %508, label %511 [
    i32 0, label %509
  ]

509:                                              ; preds = %507
  br label %510

510:                                              ; preds = %509, %371
  store i32 0, ptr %9, align 4
  br label %511

511:                                              ; preds = %510, %507
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  %512 = load i32, ptr %9, align 4
  switch i32 %512, label %546 [
    i32 0, label %513
    i32 10, label %514
  ]

513:                                              ; preds = %511
  br label %514

514:                                              ; preds = %513, %511
  %515 = load i32, ptr %29, align 4, !tbaa !17
  %516 = add nsw i32 %515, 1
  store i32 %516, ptr %29, align 4, !tbaa !17
  br label %336, !llvm.loop !94

517:                                              ; preds = %343
  %518 = load ptr, ptr %28, align 8, !tbaa !5
  %519 = getelementptr inbounds %struct.ImDrawList, ptr %518, i32 0, i32 1
  %520 = getelementptr inbounds %struct.ImVector.1, ptr %519, i32 0, i32 0
  %521 = load i32, ptr %520, align 8, !tbaa !63
  %522 = load i32, ptr %26, align 4, !tbaa !17
  %523 = add nsw i32 %522, %521
  store i32 %523, ptr %26, align 4, !tbaa !17
  %524 = load ptr, ptr %28, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.ImDrawList, ptr %524, i32 0, i32 2
  %526 = getelementptr inbounds %struct.ImVector.2, ptr %525, i32 0, i32 0
  %527 = load i32, ptr %526, align 8, !tbaa !61
  %528 = load i32, ptr %25, align 4, !tbaa !17
  %529 = add nsw i32 %528, %527
  store i32 %529, ptr %25, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %530

530:                                              ; preds = %517
  %531 = load i32, ptr %27, align 4, !tbaa !17
  %532 = add nsw i32 %531, 1
  store i32 %532, ptr %27, align 4, !tbaa !17
  br label %323, !llvm.loop !95

533:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  %534 = getelementptr inbounds %struct.VkRect2D, ptr %35, i32 0, i32 0
  %535 = getelementptr inbounds %struct.VkOffset2D, ptr %534, i32 0, i32 0
  store i32 0, ptr %535, align 4, !tbaa !96
  %536 = getelementptr inbounds %struct.VkOffset2D, ptr %534, i32 0, i32 1
  store i32 0, ptr %536, align 4, !tbaa !97
  %537 = getelementptr inbounds %struct.VkRect2D, ptr %35, i32 0, i32 1
  %538 = getelementptr inbounds %struct.VkExtent2D, ptr %537, i32 0, i32 0
  %539 = load i32, ptr %7, align 4, !tbaa !17
  store i32 %539, ptr %538, align 4, !tbaa !98
  %540 = getelementptr inbounds %struct.VkExtent2D, ptr %537, i32 0, i32 1
  %541 = load i32, ptr %8, align 4, !tbaa !17
  store i32 %541, ptr %540, align 4, !tbaa !99
  %542 = load ptr, ptr %5, align 8, !tbaa !5
  call void @vkCmdSetScissor(ptr noundef %542, 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 %543

543:                                              ; preds = %533, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  %544 = load i32, ptr %9, align 4
  switch i32 %544, label %546 [
    i32 0, label %545
    i32 1, label %545
  ]

545:                                              ; preds = %543, %543
  ret void

546:                                              ; preds = %543, %511
  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: 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) #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_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) #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 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 = !{!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 = !{!21, !25, i64 112}
!36 = !{!25, !25, i64 0}
!37 = !{!10, !12, i64 8}
!38 = !{!39, !6, i64 32}
!39 = !{!"_ZTS35ImGui_ImplVulkan_FrameRenderBuffers", !6, i64 0, !6, i64 8, !25, i64 16, !25, i64 24, !6, i64 32, !6, i64 40}
!40 = !{!39, !25, i64 16}
!41 = !{!39, !6, i64 40}
!42 = !{!39, !25, i64 24}
!43 = !{!22, !6, i64 16}
!44 = !{!39, !6, i64 0}
!45 = !{!46, !46, i64 0}
!46 = !{!"_ZTS8VkResult", !7, i64 0}
!47 = !{!39, !6, i64 8}
!48 = !{!10, !12, i64 4}
!49 = !{!50, !6, i64 40}
!50 = !{!"_ZTS10ImDrawList", !51, i64 0, !52, i64 16, !53, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !54, i64 88, !55, i64 104, !56, i64 120, !57, i64 136, !59, i64 168, !15, i64 192}
!51 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!54 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!56 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!57 = !{!"_ZTS15ImDrawCmdHeader", !58, i64 0, !6, i64 16, !12, i64 24}
!58 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!59 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !60, i64 8}
!60 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!61 = !{!50, !12, i64 32}
!62 = !{!50, !6, i64 24}
!63 = !{!50, !12, i64 16}
!64 = distinct !{!64, !65}
!65 = !{!"llvm.loop.mustprogress"}
!66 = !{!67, !68, i64 0}
!67 = !{!"_ZTS19VkMappedMemoryRange", !68, i64 0, !6, i64 8, !6, i64 16, !25, i64 24, !25, i64 32}
!68 = !{!"_ZTS15VkStructureType", !7, i64 0}
!69 = !{!67, !6, i64 16}
!70 = !{!67, !25, i64 32}
!71 = !{i64 0, i64 4, !72, i64 4, i64 4, !72}
!72 = !{!15, !15, i64 0}
!73 = !{!50, !12, i64 0}
!74 = !{!75, !6, i64 40}
!75 = !{!"_ZTS9ImDrawCmd", !58, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48}
!76 = !{!75, !15, i64 0}
!77 = !{!14, !15, i64 0}
!78 = !{!75, !15, i64 4}
!79 = !{!14, !15, i64 4}
!80 = !{!75, !15, i64 8}
!81 = !{!75, !15, i64 12}
!82 = !{!83, !12, i64 0}
!83 = !{!"_ZTS8VkRect2D", !84, i64 0, !85, i64 8}
!84 = !{!"_ZTS10VkOffset2D", !12, i64 0, !12, i64 4}
!85 = !{!"_ZTS10VkExtent2D", !12, i64 0, !12, i64 4}
!86 = !{!83, !12, i64 4}
!87 = !{!83, !12, i64 8}
!88 = !{!83, !12, i64 12}
!89 = !{!75, !6, i64 16}
!90 = !{!21, !6, i64 136}
!91 = !{!75, !12, i64 32}
!92 = !{!75, !12, i64 28}
!93 = !{!75, !12, i64 24}
!94 = distinct !{!94, !65}
!95 = distinct !{!95, !65}
!96 = !{!84, !12, i64 0}
!97 = !{!84, !12, i64 4}
!98 = !{!85, !12, i64 0}
!99 = !{!85, !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 [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [84 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 %248, 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 %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 516, ptr noundef nonnull @__PRETTY_FUNCTION__._Z31ImGui_ImplVulkan_RenderDrawDataP10ImDrawDataP17VkCommandBuffer_TP12VkPipeline_T) #8
  unreachable

34:                                               ; preds = %28
  %35 = getelementptr inbounds i8, ptr %32, i64 120
  %36 = getelementptr inbounds i8, ptr %32, i64 128
  %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 124
  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 124
  %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 525, 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_ImplVulkan_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 %152

66:                                               ; preds = %56
  %67 = zext nneg i32 %64 to i64
  %68 = mul nuw nsw i64 %67, 20
  %69 = getelementptr inbounds i8, ptr %23, i64 112
  %70 = load i64, ptr %69, align 8, !tbaa !30
  %71 = tail call noundef i64 @_ZL15AlignBufferSizemm(i64 noundef %68, i64 noundef %70)
  %72 = getelementptr inbounds i8, ptr %0, i64 8
  %73 = load i32, ptr %72, align 8, !tbaa !31
  %74 = sext i32 %73 to i64
  %75 = shl nsw i64 %74, 1
  %76 = load i64, ptr %69, align 8, !tbaa !30
  %77 = tail call noundef i64 @_ZL15AlignBufferSizemm(i64 noundef %75, i64 noundef %76)
  %78 = getelementptr inbounds i8, ptr %62, i64 32
  %79 = load ptr, ptr %78, align 8, !tbaa !32
  %80 = icmp eq ptr %79, null
  br i1 %80, label %85, label %81

81:                                               ; preds = %66
  %82 = getelementptr inbounds i8, ptr %62, i64 16
  %83 = load i64, ptr %82, align 8, !tbaa !34
  %84 = icmp ult i64 %83, %71
  br i1 %84, label %85, label %87

85:                                               ; preds = %81, %66
  %86 = getelementptr inbounds i8, ptr %62, i64 16
  tail call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %86, i64 noundef %71, i32 noundef 128)
  br label %87

87:                                               ; preds = %85, %81
  %88 = getelementptr inbounds i8, ptr %62, i64 40
  %89 = load ptr, ptr %88, align 8, !tbaa !35
  %90 = icmp eq ptr %89, null
  br i1 %90, label %95, label %91

91:                                               ; preds = %87
  %92 = getelementptr inbounds i8, ptr %62, i64 24
  %93 = load i64, ptr %92, align 8, !tbaa !36
  %94 = icmp ult i64 %93, %77
  br i1 %94, label %95, label %98

95:                                               ; preds = %91, %87
  %96 = getelementptr inbounds i8, ptr %62, i64 8
  %97 = getelementptr inbounds i8, ptr %62, i64 24
  tail call void @_ZL20CreateOrResizeBufferRP10VkBuffer_TRP16VkDeviceMemory_TRmm21VkBufferUsageFlagBits(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull align 8 dereferenceable(8) %97, i64 noundef %77, i32 noundef 64)
  br label %98

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

.lr.ph:                                           ; preds = %98
  %110 = getelementptr inbounds i8, ptr %0, i64 16
  br label %124

._crit_edge:                                      ; preds = %124, %98
  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 !42
  %111 = load ptr, ptr %62, align 8, !tbaa !39
  %112 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %111, ptr %112, align 16, !tbaa !45
  %113 = getelementptr inbounds i8, ptr %6, i64 32
  store i64 -1, ptr %113, align 16, !tbaa !46
  %114 = getelementptr inbounds i8, ptr %6, i64 40
  store i32 6, ptr %114, align 8, !tbaa !42
  %115 = load ptr, ptr %104, align 8, !tbaa !40
  %116 = getelementptr inbounds i8, ptr %6, i64 56
  store ptr %115, ptr %116, align 8, !tbaa !45
  %117 = getelementptr inbounds i8, ptr %6, i64 72
  store i64 -1, ptr %117, align 8, !tbaa !46
  %118 = load ptr, ptr %99, align 8, !tbaa !38
  %119 = call i32 @vkFlushMappedMemoryRanges(ptr noundef %118, i32 noundef 2, ptr noundef nonnull %6)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %119)
  %120 = load ptr, ptr %99, align 8, !tbaa !38
  %121 = load ptr, ptr %62, align 8, !tbaa !39
  call void @vkUnmapMemory(ptr noundef %120, ptr noundef %121)
  %122 = load ptr, ptr %99, align 8, !tbaa !38
  %123 = load ptr, ptr %104, align 8, !tbaa !40
  call void @vkUnmapMemory(ptr noundef %122, ptr noundef %123)
  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 %152

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

152:                                              ; preds = %._crit_edge, %56
  %153 = extractelement <2 x i32> %18, i64 0
  %154 = 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 %62, i32 noundef %153, i32 noundef %154)
  %155 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.029.0.copyload = load float, ptr %155, 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
  %156 = getelementptr inbounds i8, ptr %0, i64 4
  %157 = load i32, ptr %156, align 4, !tbaa !41
  %158 = icmp sgt i32 %157, 0
  br i1 %158, label %.lr.ph159, label %._crit_edge160

.lr.ph159:                                        ; preds = %152
  %159 = getelementptr inbounds i8, ptr %0, i64 16
  %160 = getelementptr inbounds i8, ptr %7, i64 4
  %161 = uitofp nneg i32 %153 to float
  %162 = getelementptr inbounds i8, ptr %8, i64 4
  %163 = uitofp nneg i32 %154 to float
  %164 = getelementptr inbounds i8, ptr %9, i64 8
  %165 = getelementptr inbounds i8, ptr %23, i64 136
  br label %168

._crit_edge160:                                   ; preds = %._crit_edge154, %152
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  store i32 0, ptr %11, align 4, !tbaa !64
  %166 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 0, ptr %166, align 4, !tbaa !66
  %167 = getelementptr inbounds i8, ptr %11, i64 8
  store <2 x i32> %18, ptr %167, align 4, !tbaa !67
  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 %248

168:                                              ; preds = %.lr.ph159, %._crit_edge154
  %.0136157 = phi i32 [ 0, %.lr.ph159 ], [ %179, %._crit_edge154 ]
  %.0137156 = phi i32 [ 0, %.lr.ph159 ], [ %175, %._crit_edge154 ]
  %.0138155 = phi i32 [ 0, %.lr.ph159 ], [ %178, %._crit_edge154 ]
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %159, i32 noundef %.0136157)
  %170 = load ptr, ptr %169, align 8, !tbaa !37
  %171 = load i32, ptr %170, align 8, !tbaa !68
  %172 = icmp sgt i32 %171, 0
  br i1 %172, label %.lr.ph153, label %._crit_edge154

._crit_edge154:                                   ; preds = %244, %168
  %173 = getelementptr inbounds i8, ptr %170, i64 16
  %174 = load i32, ptr %173, align 8, !tbaa !61
  %175 = add nsw i32 %174, %.0137156
  %176 = getelementptr inbounds i8, ptr %170, i64 32
  %177 = load i32, ptr %176, align 8, !tbaa !59
  %178 = add nsw i32 %177, %.0138155
  %179 = add nuw nsw i32 %.0136157, 1
  %180 = load i32, ptr %156, align 4, !tbaa !41
  %181 = icmp slt i32 %179, %180
  br i1 %181, label %168, label %._crit_edge160, !llvm.loop !69

.lr.ph153:                                        ; preds = %168, %244
  %.0134151 = phi i32 [ %245, %244 ], [ 0, %168 ]
  %182 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %170, i32 noundef %.0134151)
  %183 = getelementptr inbounds i8, ptr %182, i64 40
  %184 = load ptr, ptr %183, align 8, !tbaa !70
  %magicptr = ptrtoint ptr %184 to i64
  switch i64 %magicptr, label %186 [
    i64 0, label %187
    i64 -8, label %185
  ]

185:                                              ; preds = %.lr.ph153
  call void @_ZL33ImGui_ImplVulkan_SetupRenderStateP10ImDrawDataP12VkPipeline_TP17VkCommandBuffer_TP35ImGui_ImplVulkan_FrameRenderBuffersii(ptr noundef %0, ptr noundef %.0, ptr noundef %1, ptr noundef %62, i32 noundef %153, i32 noundef %154)
  br label %244

186:                                              ; preds = %.lr.ph153
  call void %184(ptr noundef nonnull %170, ptr noundef nonnull %182)
  br label %244

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

205:                                              ; preds = %187
  store float 0.000000e+00, ptr %7, align 4, !tbaa !76
  br label %206

206:                                              ; preds = %205, %187
  %207 = phi float [ 0.000000e+00, %205 ], [ %203, %187 ]
  %208 = load float, ptr %160, align 4, !tbaa !77
  %209 = fcmp olt float %208, 0.000000e+00
  br i1 %209, label %210, label %211

210:                                              ; preds = %206
  store float 0.000000e+00, ptr %160, align 4, !tbaa !77
  br label %211

211:                                              ; preds = %210, %206
  %212 = phi float [ 0.000000e+00, %210 ], [ %208, %206 ]
  %213 = load float, ptr %8, align 4, !tbaa !76
  %214 = fcmp ogt float %213, %161
  br i1 %214, label %215, label %216

215:                                              ; preds = %211
  store float %161, ptr %8, align 4, !tbaa !76
  br label %216

216:                                              ; preds = %215, %211
  %217 = phi float [ %161, %215 ], [ %213, %211 ]
  %218 = load float, ptr %162, align 4, !tbaa !77
  %219 = fcmp ogt float %218, %163
  br i1 %219, label %220, label %221

220:                                              ; preds = %216
  store float %163, ptr %162, align 4, !tbaa !77
  br label %221

221:                                              ; preds = %220, %216
  %222 = phi float [ %163, %220 ], [ %218, %216 ]
  %223 = fcmp ugt float %217, %207
  %224 = fcmp ugt float %222, %212
  %or.cond161 = select i1 %223, i1 %224, i1 false
  br i1 %or.cond161, label %.critedge, label %243

.critedge:                                        ; preds = %221
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  %225 = insertelement <2 x float> poison, float %207, i64 0
  %226 = insertelement <2 x float> %225, float %212, i64 1
  %227 = fptosi <2 x float> %226 to <2 x i32>
  store <2 x i32> %227, ptr %9, align 8, !tbaa !67
  %228 = insertelement <2 x float> poison, float %217, i64 0
  %229 = insertelement <2 x float> %228, float %222, i64 1
  %230 = fsub <2 x float> %229, %226
  %231 = fptoui <2 x float> %230 to <2 x i32>
  store <2 x i32> %231, ptr %164, align 8, !tbaa !67
  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
  %232 = getelementptr inbounds i8, ptr %182, i64 16
  %233 = load ptr, ptr %232, align 8, !tbaa !78
  store ptr %233, ptr %10, align 8, !tbaa !37
  %234 = load ptr, ptr %165, align 8, !tbaa !79
  call void @vkCmdBindDescriptorSets(ptr noundef %1, i32 noundef 0, ptr noundef %234, i32 noundef 0, i32 noundef 1, ptr noundef nonnull %10, i32 noundef 0, ptr noundef null)
  %235 = getelementptr inbounds i8, ptr %182, i64 32
  %236 = load i32, ptr %235, align 8, !tbaa !80
  %237 = getelementptr inbounds i8, ptr %182, i64 28
  %238 = load i32, ptr %237, align 4, !tbaa !81
  %239 = add i32 %238, %.0137156
  %240 = getelementptr inbounds i8, ptr %182, i64 24
  %241 = load i32, ptr %240, align 8, !tbaa !82
  %242 = add i32 %241, %.0138155
  call void @vkCmdDrawIndexed(ptr noundef %1, i32 noundef %236, i32 noundef 1, i32 noundef %239, i32 noundef %242, 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 %244

243:                                              ; preds = %221
  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 %244

244:                                              ; preds = %186, %185, %.critedge, %243
  %245 = add nuw nsw i32 %.0134151, 1
  %246 = load i32, ptr %170, align 8, !tbaa !68
  %247 = icmp slt i32 %245, %246
  br i1 %247, label %.lr.ph153, label %._crit_edge154, !llvm.loop !83

248:                                              ; preds = %3, %._crit_edge160
  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: 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 #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_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 #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 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 = !{!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 = !{!10, !17, i64 112}
!31 = !{!20, !13, i64 8}
!32 = !{!33, !12, i64 32}
!33 = !{!"_ZTS35ImGui_ImplVulkan_FrameRenderBuffers", !12, i64 0, !12, i64 8, !17, i64 16, !17, i64 24, !12, i64 32, !12, i64 40}
!34 = !{!33, !17, i64 16}
!35 = !{!33, !12, i64 40}
!36 = !{!33, !17, i64 24}
!37 = !{!12, !12, i64 0}
!38 = !{!11, !12, i64 16}
!39 = !{!33, !12, i64 0}
!40 = !{!33, !12, i64 8}
!41 = !{!20, !13, i64 4}
!42 = !{!43, !44, i64 0}
!43 = !{!"_ZTS19VkMappedMemoryRange", !44, i64 0, !12, i64 8, !12, i64 16, !17, i64 24, !17, i64 32}
!44 = !{!"_ZTS15VkStructureType", !7, i64 0}
!45 = !{!43, !12, i64 16}
!46 = !{!43, !17, i64 32}
!47 = !{!48, !12, i64 40}
!48 = !{!"_ZTS10ImDrawList", !49, i64 0, !50, i64 16, !51, i64 32, !13, i64 48, !13, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !52, i64 88, !53, i64 104, !54, i64 120, !55, i64 136, !57, i64 168, !6, i64 192}
!49 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !13, i64 0, !13, i64 4, !12, i64 8}
!50 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !12, i64 8}
!51 = !{!"_ZTS8ImVectorI10ImDrawVertE", !13, i64 0, !13, i64 4, !12, i64 8}
!52 = !{!"_ZTS8ImVectorI6ImVec4E", !13, i64 0, !13, i64 4, !12, i64 8}
!53 = !{!"_ZTS8ImVectorIPvE", !13, i64 0, !13, i64 4, !12, i64 8}
!54 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !12, i64 8}
!55 = !{!"_ZTS15ImDrawCmdHeader", !56, i64 0, !12, i64 16, !13, i64 24}
!56 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!57 = !{!"_ZTS18ImDrawListSplitter", !13, i64 0, !13, i64 4, !58, i64 8}
!58 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !12, i64 8}
!59 = !{!48, !13, i64 32}
!60 = !{!48, !12, i64 24}
!61 = !{!48, !13, i64 16}
!62 = distinct !{!62, !63}
!63 = !{!"llvm.loop.mustprogress"}
!64 = !{!65, !13, i64 0}
!65 = !{!"_ZTS10VkOffset2D", !13, i64 0, !13, i64 4}
!66 = !{!65, !13, i64 4}
!67 = !{!13, !13, i64 0}
!68 = !{!48, !13, i64 0}
!69 = distinct !{!69, !63}
!70 = !{!71, !12, i64 40}
!71 = !{!"_ZTS9ImDrawCmd", !56, i64 0, !12, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !12, i64 40, !12, i64 48}
!72 = !{!71, !6, i64 0}
!73 = !{!71, !6, i64 4}
!74 = !{!71, !6, i64 8}
!75 = !{!71, !6, i64 12}
!76 = !{!22, !6, i64 0}
!77 = !{!22, !6, i64 4}
!78 = !{!71, !12, i64 16}
!79 = !{!10, !12, i64 136}
!80 = !{!71, !13, i64 32}
!81 = !{!71, !13, i64 28}
!82 = !{!71, !13, i64 24}
!83 = distinct !{!83, !63}


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