; LLVM IR from hadryansalles/Luz :: deps/imgui/imgui_impl_vulkan.ll (Z36ImGui_ImplVulkan_CreateDeviceObjectsv)

; 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.VkSamplerCreateInfo = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, float, i32, float, i32, i32, float, float, i32, i32 }
%struct.VkDescriptorSetLayoutBinding = type { i32, i32, i32, i32, ptr }
%struct.VkDescriptorSetLayoutCreateInfo = type { i32, ptr, i32, i32, ptr }
%struct.VkPushConstantRange = type { i32, i32, i32 }
%struct.VkPipelineLayoutCreateInfo = type { i32, ptr, i32, i32, ptr, 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 }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv() #1 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %struct.VkSamplerCreateInfo, align 8
  %5 = alloca [1 x %struct.VkDescriptorSetLayoutBinding], align 16
  %6 = alloca %struct.VkDescriptorSetLayoutCreateInfo, align 8
  %7 = alloca [1 x %struct.VkPushConstantRange], align 4
  %8 = alloca [1 x ptr], align 8
  %9 = alloca %struct.VkPipelineLayoutCreateInfo, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %10 = call noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav()
  store ptr %10, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %11 = load ptr, ptr %1, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %11, i32 0, i32 0
  store ptr %12, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %13, i32 0, i32 10
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = icmp ne ptr %15, null
  br i1 %16, label %38, label %17

17:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #4
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 80, i1 false)
  %18 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 0
  store i32 31, ptr %18, align 8, !tbaa !18
  %19 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 3
  store i32 1, ptr %19, align 4, !tbaa !27
  %20 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 4
  store i32 1, ptr %20, align 8, !tbaa !28
  %21 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 5
  store i32 1, ptr %21, align 4, !tbaa !29
  %22 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 6
  store i32 0, ptr %22, align 8, !tbaa !30
  %23 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 7
  store i32 0, ptr %23, align 4, !tbaa !31
  %24 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 8
  store i32 0, ptr %24, align 8, !tbaa !32
  %25 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 14
  store float -1.000000e+03, ptr %25, align 8, !tbaa !33
  %26 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 15
  store float 1.000000e+03, ptr %26, align 4, !tbaa !34
  %27 = getelementptr inbounds %struct.VkSamplerCreateInfo, ptr %4, i32 0, i32 11
  store float 1.000000e+00, ptr %27, align 4, !tbaa !35
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %28, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !36
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %31, i32 0, i32 13
  %33 = load ptr, ptr %32, align 8, !tbaa !37
  %34 = load ptr, ptr %1, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %34, i32 0, i32 10
  %36 = call i32 @vkCreateSampler(ptr noundef %30, ptr noundef %4, ptr noundef %33, ptr noundef %35)
  store i32 %36, ptr %3, align 4, !tbaa !38
  %37 = load i32, ptr %3, align 4, !tbaa !38
  call void @_ZL15check_vk_result8VkResult(i32 noundef %37)
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #4
  br label %38

38:                                               ; preds = %17, %0
  %39 = load ptr, ptr %1, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !40
  %42 = icmp ne ptr %41, null
  br i1 %42, label %64, label %43

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #4
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 24, i1 false)
  %44 = getelementptr inbounds [1 x %struct.VkDescriptorSetLayoutBinding], ptr %5, i64 0, i64 0
  %45 = getelementptr inbounds %struct.VkDescriptorSetLayoutBinding, ptr %44, i32 0, i32 1
  store i32 1, ptr %45, align 4, !tbaa !41
  %46 = getelementptr inbounds [1 x %struct.VkDescriptorSetLayoutBinding], ptr %5, i64 0, i64 0
  %47 = getelementptr inbounds %struct.VkDescriptorSetLayoutBinding, ptr %46, i32 0, i32 2
  store i32 1, ptr %47, align 8, !tbaa !44
  %48 = getelementptr inbounds [1 x %struct.VkDescriptorSetLayoutBinding], ptr %5, i64 0, i64 0
  %49 = getelementptr inbounds %struct.VkDescriptorSetLayoutBinding, ptr %48, i32 0, i32 3
  store i32 16, ptr %49, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #4
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 32, i1 false)
  %50 = getelementptr inbounds %struct.VkDescriptorSetLayoutCreateInfo, ptr %6, i32 0, i32 0
  store i32 32, ptr %50, align 8, !tbaa !46
  %51 = getelementptr inbounds %struct.VkDescriptorSetLayoutCreateInfo, ptr %6, i32 0, i32 3
  store i32 1, ptr %51, align 4, !tbaa !48
  %52 = getelementptr inbounds [1 x %struct.VkDescriptorSetLayoutBinding], ptr %5, i64 0, i64 0
  %53 = getelementptr inbounds %struct.VkDescriptorSetLayoutCreateInfo, ptr %6, i32 0, i32 4
  store ptr %52, ptr %53, align 8, !tbaa !49
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !36
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %57, i32 0, i32 13
  %59 = load ptr, ptr %58, align 8, !tbaa !37
  %60 = load ptr, ptr %1, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %60, i32 0, i32 4
  %62 = call i32 @vkCreateDescriptorSetLayout(ptr noundef %56, ptr noundef %6, ptr noundef %59, ptr noundef %61)
  store i32 %62, ptr %3, align 4, !tbaa !38
  %63 = load i32, ptr %3, align 4, !tbaa !38
  call void @_ZL15check_vk_result8VkResult(i32 noundef %63)
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #4
  br label %64

64:                                               ; preds = %43, %38
  %65 = load ptr, ptr %1, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %65, i32 0, i32 5
  %67 = load ptr, ptr %66, align 8, !tbaa !50
  %68 = icmp ne ptr %67, null
  br i1 %68, label %96, label %69

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #4
  call void @llvm.memset.p0.i64(ptr align 4 %7, i8 0, i64 12, i1 false)
  %70 = getelementptr inbounds [1 x %struct.VkPushConstantRange], ptr %7, i64 0, i64 0
  %71 = getelementptr inbounds %struct.VkPushConstantRange, ptr %70, i32 0, i32 0
  store i32 1, ptr %71, align 4, !tbaa !51
  %72 = getelementptr inbounds [1 x %struct.VkPushConstantRange], ptr %7, i64 0, i64 0
  %73 = getelementptr inbounds %struct.VkPushConstantRange, ptr %72, i32 0, i32 1
  store i32 0, ptr %73, align 4, !tbaa !53
  %74 = getelementptr inbounds [1 x %struct.VkPushConstantRange], ptr %7, i64 0, i64 0
  %75 = getelementptr inbounds %struct.VkPushConstantRange, ptr %74, i32 0, i32 2
  store i32 16, ptr %75, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %76 = load ptr, ptr %1, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %76, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !40
  store ptr %78, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #4
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 48, i1 false)
  %79 = getelementptr inbounds %struct.VkPipelineLayoutCreateInfo, ptr %9, i32 0, i32 0
  store i32 30, ptr %79, align 8, !tbaa !55
  %80 = getelementptr inbounds %struct.VkPipelineLayoutCreateInfo, ptr %9, i32 0, i32 3
  store i32 1, ptr %80, align 4, !tbaa !57
  %81 = getelementptr inbounds [1 x ptr], ptr %8, i64 0, i64 0
  %82 = getelementptr inbounds %struct.VkPipelineLayoutCreateInfo, ptr %9, i32 0, i32 4
  store ptr %81, ptr %82, align 8, !tbaa !58
  %83 = getelementptr inbounds %struct.VkPipelineLayoutCreateInfo, ptr %9, i32 0, i32 5
  store i32 1, ptr %83, align 8, !tbaa !59
  %84 = getelementptr inbounds [1 x %struct.VkPushConstantRange], ptr %7, i64 0, i64 0
  %85 = getelementptr inbounds %struct.VkPipelineLayoutCreateInfo, ptr %9, i32 0, i32 6
  store ptr %84, ptr %85, align 8, !tbaa !60
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %86, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !36
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %89, i32 0, i32 13
  %91 = load ptr, ptr %90, align 8, !tbaa !37
  %92 = load ptr, ptr %1, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %92, i32 0, i32 5
  %94 = call i32 @vkCreatePipelineLayout(ptr noundef %88, ptr noundef %9, ptr noundef %91, ptr noundef %93)
  store i32 %94, ptr %3, align 4, !tbaa !38
  %95 = load i32, ptr %3, align 4, !tbaa !38
  call void @_ZL15check_vk_result8VkResult(i32 noundef %95)
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #4
  br label %96

96:                                               ; preds = %69, %64
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !36
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %100, i32 0, i32 13
  %102 = load ptr, ptr %101, align 8, !tbaa !37
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %103, i32 0, i32 5
  %105 = load ptr, ptr %104, align 8, !tbaa !61
  %106 = load ptr, ptr %1, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !62
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ImGui_ImplVulkan_InitInfo, ptr %109, i32 0, i32 10
  %111 = load i32, ptr %110, align 4, !tbaa !63
  %112 = load ptr, ptr %1, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %112, i32 0, i32 6
  %114 = load ptr, ptr %1, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ImGui_ImplVulkan_Data, ptr %114, i32 0, i32 7
  %116 = load i32, ptr %115, align 8, !tbaa !64
  call void @_ZL31ImGui_ImplVulkan_CreatePipelineP10VkDevice_TPK21VkAllocationCallbacksP17VkPipelineCache_TP14VkRenderPass_T21VkSampleCountFlagBitsPP12VkPipeline_Tj(ptr noundef %99, ptr noundef %102, ptr noundef %105, ptr noundef %108, i32 noundef %111, ptr noundef %113, i32 noundef %116)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret i1 true
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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, !6, i64 176}
!10 = !{!"_ZTS21ImGui_ImplVulkan_Data", !11, i64 0, !6, i64 104, !16, 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, !17, i64 232}
!11 = !{!"_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, !13, i64 68, !14, i64 72, !15, i64 76, !6, i64 80, !6, i64 88, !16, i64 96}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS8VkFormat", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTS36ImGui_ImplVulkan_WindowRenderBuffers", !12, i64 0, !12, i64 4, !6, i64 8}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTS19VkSamplerCreateInfo", !20, i64 0, !6, i64 8, !12, i64 16, !21, i64 20, !21, i64 24, !22, i64 28, !23, i64 32, !23, i64 36, !23, i64 40, !24, i64 44, !12, i64 48, !24, i64 52, !12, i64 56, !25, i64 60, !24, i64 64, !24, i64 68, !26, i64 72, !12, i64 76}
!20 = !{!"_ZTS15VkStructureType", !7, i64 0}
!21 = !{!"_ZTS8VkFilter", !7, i64 0}
!22 = !{!"_ZTS19VkSamplerMipmapMode", !7, i64 0}
!23 = !{!"_ZTS20VkSamplerAddressMode", !7, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTS11VkCompareOp", !7, i64 0}
!26 = !{!"_ZTS13VkBorderColor", !7, i64 0}
!27 = !{!19, !21, i64 20}
!28 = !{!19, !21, i64 24}
!29 = !{!19, !22, i64 28}
!30 = !{!19, !23, i64 32}
!31 = !{!19, !23, i64 36}
!32 = !{!19, !23, i64 40}
!33 = !{!19, !24, i64 64}
!34 = !{!19, !24, i64 68}
!35 = !{!19, !24, i64 52}
!36 = !{!11, !6, i64 16}
!37 = !{!11, !6, i64 80}
!38 = !{!39, !39, i64 0}
!39 = !{!"_ZTS8VkResult", !7, i64 0}
!40 = !{!10, !6, i64 128}
!41 = !{!42, !43, i64 4}
!42 = !{!"_ZTS28VkDescriptorSetLayoutBinding", !12, i64 0, !43, i64 4, !12, i64 8, !12, i64 12, !6, i64 16}
!43 = !{!"_ZTS16VkDescriptorType", !7, i64 0}
!44 = !{!42, !12, i64 8}
!45 = !{!42, !12, i64 12}
!46 = !{!47, !20, i64 0}
!47 = !{!"_ZTS31VkDescriptorSetLayoutCreateInfo", !20, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !6, i64 24}
!48 = !{!47, !12, i64 20}
!49 = !{!47, !6, i64 24}
!50 = !{!10, !6, i64 136}
!51 = !{!52, !12, i64 0}
!52 = !{!"_ZTS19VkPushConstantRange", !12, i64 0, !12, i64 4, !12, i64 8}
!53 = !{!52, !12, i64 4}
!54 = !{!52, !12, i64 8}
!55 = !{!56, !20, i64 0}
!56 = !{!"_ZTS26VkPipelineLayoutCreateInfo", !20, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !6, i64 24, !12, i64 32, !6, i64 40}
!57 = !{!56, !12, i64 20}
!58 = !{!56, !6, i64 24}
!59 = !{!56, !12, i64 32}
!60 = !{!56, !6, i64 40}
!61 = !{!11, !6, i64 40}
!62 = !{!10, !6, i64 104}
!63 = !{!11, !13, i64 68}
!64 = !{!10, !12, i64 152}


; 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.VkSamplerCreateInfo = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, float, i32, float, i32, i32, float, float, i32, i32 }
%struct.VkDescriptorSetLayoutBinding = type { i32, i32, i32, i32, ptr }
%struct.VkDescriptorSetLayoutCreateInfo = type { i32, ptr, i32, i32, ptr }
%struct.VkPushConstantRange = type { i32, i32, i32 }
%struct.VkPipelineLayoutCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z36ImGui_ImplVulkan_CreateDeviceObjectsv() local_unnamed_addr #1 {
  %1 = alloca %struct.VkSamplerCreateInfo, align 8
  %2 = alloca [1 x %struct.VkDescriptorSetLayoutBinding], align 16
  %3 = alloca %struct.VkDescriptorSetLayoutCreateInfo, align 8
  %4 = alloca [1 x %struct.VkPushConstantRange], align 4
  %5 = alloca [1 x ptr], align 8
  %6 = alloca %struct.VkPipelineLayoutCreateInfo, align 8
  %7 = tail call noundef ptr @_ZL31ImGui_ImplVulkan_GetBackendDatav()
  %8 = getelementptr inbounds i8, ptr %7, i64 176
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %10, label %22

10:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %1, i8 0, i64 80, i1 false)
  store i32 31, ptr %1, align 8, !tbaa !17
  %11 = getelementptr inbounds i8, ptr %1, i64 20
  store i32 1, ptr %11, align 4, !tbaa !26
  %12 = getelementptr inbounds i8, ptr %1, i64 24
  store i32 1, ptr %12, align 8, !tbaa !27
  %13 = getelementptr inbounds i8, ptr %1, i64 28
  store i32 1, ptr %13, align 4, !tbaa !28
  %14 = getelementptr inbounds i8, ptr %1, i64 36
  store i32 0, ptr %14, align 4, !tbaa !29
  %15 = getelementptr inbounds i8, ptr %1, i64 64
  store <2 x float> <float -1.000000e+03, float 1.000000e+03>, ptr %15, align 8, !tbaa !30
  %16 = getelementptr inbounds i8, ptr %1, i64 52
  store float 1.000000e+00, ptr %16, align 4, !tbaa !31
  %17 = getelementptr inbounds i8, ptr %7, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !32
  %19 = getelementptr inbounds i8, ptr %7, i64 80
  %20 = load ptr, ptr %19, align 8, !tbaa !33
  %21 = call i32 @vkCreateSampler(ptr noundef %18, ptr noundef nonnull %1, ptr noundef %20, ptr noundef nonnull %8)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %21)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #4
  br label %22

22:                                               ; preds = %10, %0
  %23 = getelementptr inbounds i8, ptr %7, i64 128
  %24 = load ptr, ptr %23, align 8, !tbaa !34
  %.not23 = icmp eq ptr %24, null
  br i1 %.not23, label %25, label %36

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %2, i8 0, i64 24, i1 false)
  %26 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 1, ptr %26, align 4, !tbaa !35
  %27 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 1, ptr %27, align 8, !tbaa !38
  %28 = getelementptr inbounds i8, ptr %2, i64 12
  store i32 16, ptr %28, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %3, i8 0, i64 24, i1 false)
  store i32 32, ptr %3, align 8, !tbaa !40
  %29 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 1, ptr %29, align 4, !tbaa !42
  %30 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %2, ptr %30, align 8, !tbaa !43
  %31 = getelementptr inbounds i8, ptr %7, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !32
  %33 = getelementptr inbounds i8, ptr %7, i64 80
  %34 = load ptr, ptr %33, align 8, !tbaa !33
  %35 = call i32 @vkCreateDescriptorSetLayout(ptr noundef %32, ptr noundef nonnull %3, ptr noundef %34, ptr noundef nonnull %23)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %35)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  br label %36

36:                                               ; preds = %25, %22
  %37 = getelementptr inbounds i8, ptr %7, i64 136
  %38 = load ptr, ptr %37, align 8, !tbaa !44
  %.not24 = icmp eq ptr %38, null
  br i1 %.not24, label %39, label %52

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #4
  store i32 1, ptr %4, align 4, !tbaa !45
  %40 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 0, ptr %40, align 4, !tbaa !47
  %41 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 16, ptr %41, align 4, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %42 = load ptr, ptr %23, align 8, !tbaa !34
  store ptr %42, ptr %5, align 8, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %6, i8 0, i64 40, i1 false)
  store i32 30, ptr %6, align 8, !tbaa !50
  %43 = getelementptr inbounds i8, ptr %6, i64 20
  store i32 1, ptr %43, align 4, !tbaa !52
  %44 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr %5, ptr %44, align 8, !tbaa !53
  %45 = getelementptr inbounds i8, ptr %6, i64 32
  store i32 1, ptr %45, align 8, !tbaa !54
  %46 = getelementptr inbounds i8, ptr %6, i64 40
  store ptr %4, ptr %46, align 8, !tbaa !55
  %47 = getelementptr inbounds i8, ptr %7, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !32
  %49 = getelementptr inbounds i8, ptr %7, i64 80
  %50 = load ptr, ptr %49, align 8, !tbaa !33
  %51 = call i32 @vkCreatePipelineLayout(ptr noundef %48, ptr noundef nonnull %6, ptr noundef %50, ptr noundef nonnull %37)
  call void @_ZL15check_vk_result8VkResult(i32 noundef %51)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #4
  br label %52

52:                                               ; preds = %39, %36
  %53 = getelementptr inbounds i8, ptr %7, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !32
  %55 = getelementptr inbounds i8, ptr %7, i64 80
  %56 = load ptr, ptr %55, align 8, !tbaa !33
  %57 = getelementptr inbounds i8, ptr %7, i64 40
  %58 = load ptr, ptr %57, align 8, !tbaa !56
  %59 = getelementptr inbounds i8, ptr %7, i64 104
  %60 = load ptr, ptr %59, align 8, !tbaa !57
  %61 = getelementptr inbounds i8, ptr %7, i64 68
  %62 = load i32, ptr %61, align 4, !tbaa !58
  %63 = getelementptr inbounds i8, ptr %7, i64 144
  %64 = getelementptr inbounds i8, ptr %7, i64 152
  %65 = load i32, ptr %64, align 8, !tbaa !59
  call void @_ZL31ImGui_ImplVulkan_CreatePipelineP10VkDevice_TPK21VkAllocationCallbacksP17VkPipelineCache_TP14VkRenderPass_T21VkSampleCountFlagBitsPP12VkPipeline_Tj(ptr noundef %54, ptr noundef %56, ptr noundef %58, ptr noundef %60, i32 noundef %62, ptr noundef nonnull %63, i32 noundef %65)
  ret i1 true
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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, !8, i64 176}
!6 = !{!"_ZTS21ImGui_ImplVulkan_Data", !7, i64 0, !8, i64 104, !15, i64 112, !11, i64 120, !8, i64 128, !8, i64 136, !8, i64 144, !11, i64 152, !8, i64 160, !8, i64 168, !8, i64 176, !8, i64 184, !8, i64 192, !8, i64 200, !8, i64 208, !8, i64 216, !8, i64 224, !16, i64 232}
!7 = !{!"_ZTS25ImGui_ImplVulkan_InitInfo", !8, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !12, i64 68, !13, i64 72, !14, i64 76, !8, i64 80, !8, i64 88, !15, i64 96}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS21VkSampleCountFlagBits", !9, i64 0}
!13 = !{!"bool", !9, i64 0}
!14 = !{!"_ZTS8VkFormat", !9, i64 0}
!15 = !{!"long", !9, i64 0}
!16 = !{!"_ZTS36ImGui_ImplVulkan_WindowRenderBuffers", !11, i64 0, !11, i64 4, !8, i64 8}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTS19VkSamplerCreateInfo", !19, i64 0, !8, i64 8, !11, i64 16, !20, i64 20, !20, i64 24, !21, i64 28, !22, i64 32, !22, i64 36, !22, i64 40, !23, i64 44, !11, i64 48, !23, i64 52, !11, i64 56, !24, i64 60, !23, i64 64, !23, i64 68, !25, i64 72, !11, i64 76}
!19 = !{!"_ZTS15VkStructureType", !9, i64 0}
!20 = !{!"_ZTS8VkFilter", !9, i64 0}
!21 = !{!"_ZTS19VkSamplerMipmapMode", !9, i64 0}
!22 = !{!"_ZTS20VkSamplerAddressMode", !9, i64 0}
!23 = !{!"float", !9, i64 0}
!24 = !{!"_ZTS11VkCompareOp", !9, i64 0}
!25 = !{!"_ZTS13VkBorderColor", !9, i64 0}
!26 = !{!18, !20, i64 20}
!27 = !{!18, !20, i64 24}
!28 = !{!18, !21, i64 28}
!29 = !{!18, !22, i64 36}
!30 = !{!23, !23, i64 0}
!31 = !{!18, !23, i64 52}
!32 = !{!7, !8, i64 16}
!33 = !{!7, !8, i64 80}
!34 = !{!6, !8, i64 128}
!35 = !{!36, !37, i64 4}
!36 = !{!"_ZTS28VkDescriptorSetLayoutBinding", !11, i64 0, !37, i64 4, !11, i64 8, !11, i64 12, !8, i64 16}
!37 = !{!"_ZTS16VkDescriptorType", !9, i64 0}
!38 = !{!36, !11, i64 8}
!39 = !{!36, !11, i64 12}
!40 = !{!41, !19, i64 0}
!41 = !{!"_ZTS31VkDescriptorSetLayoutCreateInfo", !19, i64 0, !8, i64 8, !11, i64 16, !11, i64 20, !8, i64 24}
!42 = !{!41, !11, i64 20}
!43 = !{!41, !8, i64 24}
!44 = !{!6, !8, i64 136}
!45 = !{!46, !11, i64 0}
!46 = !{!"_ZTS19VkPushConstantRange", !11, i64 0, !11, i64 4, !11, i64 8}
!47 = !{!46, !11, i64 4}
!48 = !{!46, !11, i64 8}
!49 = !{!8, !8, i64 0}
!50 = !{!51, !19, i64 0}
!51 = !{!"_ZTS26VkPipelineLayoutCreateInfo", !19, i64 0, !8, i64 8, !11, i64 16, !11, i64 20, !8, i64 24, !11, i64 32, !8, i64 40}
!52 = !{!51, !11, i64 20}
!53 = !{!51, !8, i64 24}
!54 = !{!51, !11, i64 32}
!55 = !{!51, !8, i64 40}
!56 = !{!7, !8, i64 40}
!57 = !{!6, !8, i64 104}
!58 = !{!7, !12, i64 68}
!59 = !{!6, !11, i64 152}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass