; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer/VK (PipelineStateVK)

; 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.VkPipelineShaderStageCreateInfo = type { i32, ptr, i32, i32, ptr, ptr, ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%struct.VkVertexInputAttributeDescription = type { i32, i32, i32, i32 }
%struct.VkVertexInputBindingDescription = type { i32, i32, i32 }
%struct.VkPipelineVertexInputStateCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr }
%struct.VkPipelineInputAssemblyStateCreateInfo = type { i32, ptr, i32, i32, i32 }
%struct.VkPipelineViewportStateCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr }
%struct.VkPipelineRasterizationStateCreateInfo = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, float, float, float, float }
%struct.VkPipelineMultisampleStateCreateInfo = type { i32, ptr, i32, i32, i32, float, ptr, i32, i32 }
%struct.VkPipelineDepthStencilStateCreateInfo = type { i32, ptr, i32, i32, i32, i32, i32, i32, %struct.VkStencilOpState, %struct.VkStencilOpState, float, float }
%struct.VkStencilOpState = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.VkPipelineColorBlendAttachmentState = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.VkPipelineColorBlendStateCreateInfo = type { i32, ptr, i32, i32, i32, i32, ptr, [4 x float] }
%struct.VkPipelineDynamicStateCreateInfo = type { i32, ptr, i32, i32, ptr }
%struct.VkGraphicsPipelineCreateInfo = type { i32, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32 }
%class.PipelineStateVK = type { %class.PipelineState, ptr, %"class.JPH::RefConst", %"class.JPH::RefConst.0", ptr }
%class.PipelineState = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::RefConst.0" = type { ptr }
%class.VertexShaderVK = type { %class.VertexShader.base, ptr, %struct.VkPipelineShaderStageCreateInfo }
%class.VertexShader.base = type <{ ptr, %"class.JPH::RefTarget" }>
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%class.PixelShaderVK = type { %class.PixelShader.base, ptr, %struct.VkPipelineShaderStageCreateInfo }
%class.PixelShader.base = type <{ ptr, %"class.JPH::RefTarget.1" }>
%"class.JPH::RefTarget.1" = type { %"struct.std::atomic" }

@_ZTV15PipelineStateVK = external dso_local unnamed_addr constant { [5 x ptr] }, align 8
@__const.PipelineStateVK.dynamic_states = external hidden unnamed_addr constant [2 x i32], align 4

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

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZN15PipelineStateVKC2EP10RendererVKPK14VertexShaderVKPKN13PipelineState17EInputDescriptionEjPK13PixelShaderVKNS5_9EDrawPassENS5_9EFillModeENS5_9ETopologyENS5_10EDepthTestENS5_10EBlendModeENS5_9ECullModeE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca [2 x %struct.VkPipelineShaderStageCreateInfo], align 16
  %28 = alloca %"class.JPH::Array", align 8
  %29 = alloca %struct.VkVertexInputAttributeDescription, align 4
  %30 = alloca %struct.VkVertexInputAttributeDescription, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca [2 x %struct.VkVertexInputBindingDescription], align 16
  %39 = alloca %struct.VkPipelineVertexInputStateCreateInfo, align 8
  %40 = alloca %struct.VkPipelineInputAssemblyStateCreateInfo, align 8
  %41 = alloca %struct.VkPipelineViewportStateCreateInfo, align 8
  %42 = alloca %struct.VkPipelineRasterizationStateCreateInfo, align 8
  %43 = alloca %struct.VkPipelineMultisampleStateCreateInfo, align 8
  %44 = alloca %struct.VkPipelineDepthStencilStateCreateInfo, align 8
  %45 = alloca %struct.VkPipelineColorBlendAttachmentState, align 4
  %46 = alloca %struct.VkPipelineColorBlendStateCreateInfo, align 8
  %47 = alloca [2 x i32], align 4
  %48 = alloca %struct.VkPipelineDynamicStateCreateInfo, align 8
  %49 = alloca %struct.VkGraphicsPipelineCreateInfo, align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store i32 %4, ptr %17, align 4, !tbaa !9
  store ptr %5, ptr %18, align 8, !tbaa !5
  store i32 %6, ptr %19, align 4, !tbaa !11
  store i32 %7, ptr %20, align 4, !tbaa !13
  store i32 %8, ptr %21, align 4, !tbaa !15
  store i32 %9, ptr %22, align 4, !tbaa !17
  store i32 %10, ptr %23, align 4, !tbaa !19
  store i32 %11, ptr %24, align 4, !tbaa !21
  %50 = load ptr, ptr %13, align 8
  call void @_ZN13PipelineStateC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #8
  store ptr getelementptr inbounds inrange(-16, 24) ({ [5 x ptr] }, ptr @_ZTV15PipelineStateVK, i32 0, i32 0, i32 2), ptr %50, align 8, !tbaa !23
  %51 = getelementptr inbounds %class.PipelineStateVK, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %52, ptr %51, align 8, !tbaa !25
  %53 = getelementptr inbounds %class.PipelineStateVK, ptr %50, i32 0, i32 2
  %54 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN3JPH8RefConstI14VertexShaderVKEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef %54)
          to label %55 unwind label %70

55:                                               ; preds = %12
  %56 = getelementptr inbounds %class.PipelineStateVK, ptr %50, i32 0, i32 3
  %57 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN3JPH8RefConstI13PixelShaderVKEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef %57)
          to label %58 unwind label %74

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 96, ptr %27) #8
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.VertexShaderVK, ptr %59, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 8 %60, i64 48, i1 false), !tbaa.struct !30
  %61 = getelementptr inbounds %struct.VkPipelineShaderStageCreateInfo, ptr %27, i64 1
  %62 = load ptr, ptr %18, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.PixelShaderVK, ptr %62, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 8 %63, i64 48, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  call void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  call void @llvm.memset.p0.i64(ptr align 4 %29, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  call void @llvm.memset.p0.i64(ptr align 4 %30, i8 0, i64 16, i1 false)
  %64 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %30, i32 0, i32 1
  store i32 1, ptr %64, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 1, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %156, %58
  %66 = load i32, ptr %32, align 4, !tbaa !9
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = icmp ult i32 %66, %67
  br i1 %68, label %78, label %69

69:                                               ; preds = %65
  store i32 2, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %160

70:                                               ; preds = %12
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %25, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %26, align 4
  br label %342

74:                                               ; preds = %55
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %25, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %26, align 4
  br label %341

78:                                               ; preds = %65
  %79 = load ptr, ptr %16, align 8, !tbaa !5
  %80 = load i32, ptr %32, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %79, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !38
  switch i32 %83, label %155 [
    i32 0, label %84
    i32 2, label %84
    i32 1, label %96
    i32 3, label %104
    i32 4, label %112
    i32 5, label %127
    i32 6, label %127
  ]

84:                                               ; preds = %78, %78
  %85 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %29, i32 0, i32 2
  store i32 106, ptr %85, align 4, !tbaa !40
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %29)
          to label %86 unwind label %92

86:                                               ; preds = %84
  %87 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %29, i32 0, i32 3
  %88 = load i32, ptr %87, align 4, !tbaa !41
  %89 = zext i32 %88 to i64
  %90 = add i64 %89, 12
  %91 = trunc i64 %90 to i32
  store i32 %91, ptr %87, align 4, !tbaa !41
  br label %155

92:                                               ; preds = %114, %104, %96, %84
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %25, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %26, align 4
  br label %159

96:                                               ; preds = %78
  %97 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %29, i32 0, i32 2
  store i32 37, ptr %97, align 4, !tbaa !40
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %29)
          to label %98 unwind label %92

98:                                               ; preds = %96
  %99 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %29, i32 0, i32 3
  %100 = load i32, ptr %99, align 4, !tbaa !41
  %101 = zext i32 %100 to i64
  %102 = add i64 %101, 4
  %103 = trunc i64 %102 to i32
  store i32 %103, ptr %99, align 4, !tbaa !41
  br label %155

104:                                              ; preds = %78
  %105 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %29, i32 0, i32 2
  store i32 103, ptr %105, align 4, !tbaa !40
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %29)
          to label %106 unwind label %92

106:                                              ; preds = %104
  %107 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %29, i32 0, i32 3
  %108 = load i32, ptr %107, align 4, !tbaa !41
  %109 = zext i32 %108 to i64
  %110 = add i64 %109, 8
  %111 = trunc i64 %110 to i32
  store i32 %111, ptr %107, align 4, !tbaa !41
  br label %155

112:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 4, ptr %34, align 4, !tbaa !9
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %114 unwind label %123

114:                                              ; preds = %112
  %115 = load i32, ptr %113, align 4, !tbaa !9
  store i32 %115, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  %116 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %30, i32 0, i32 2
  store i32 37, ptr %116, align 4, !tbaa !40
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %30)
          to label %117 unwind label %92

117:                                              ; preds = %114
  %118 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %30, i32 0, i32 3
  %119 = load i32, ptr %118, align 4, !tbaa !41
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 4
  %122 = trunc i64 %121 to i32
  store i32 %122, ptr %118, align 4, !tbaa !41
  br label %155

123:                                              ; preds = %112
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %25, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %159

127:                                              ; preds = %78, %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 16, ptr %35, align 4, !tbaa !9
  %128 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %129 unwind label %136

129:                                              ; preds = %127
  %130 = load i32, ptr %128, align 4, !tbaa !9
  store i32 %130, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  %131 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %30, i32 0, i32 2
  store i32 109, ptr %131, align 4, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %147, %129
  %133 = load i32, ptr %36, align 4, !tbaa !9
  %134 = icmp slt i32 %133, 4
  br i1 %134, label %140, label %135

135:                                              ; preds = %132
  store i32 6, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %154

136:                                              ; preds = %127
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %25, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %159

140:                                              ; preds = %132
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(16) %30)
          to label %141 unwind label %150

141:                                              ; preds = %140
  %142 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %30, i32 0, i32 3
  %143 = load i32, ptr %142, align 4, !tbaa !41
  %144 = zext i32 %143 to i64
  %145 = add i64 %144, 16
  %146 = trunc i64 %145 to i32
  store i32 %146, ptr %142, align 4, !tbaa !41
  br label %147

147:                                              ; preds = %141
  %148 = load i32, ptr %36, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %36, align 4, !tbaa !9
  br label %132, !llvm.loop !42

150:                                              ; preds = %140
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %25, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %159

154:                                              ; preds = %135
  br label %155

155:                                              ; preds = %154, %117, %106, %98, %86, %78
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %32, align 4, !tbaa !9
  %158 = add i32 %157, 1
  store i32 %158, ptr %32, align 4, !tbaa !9
  br label %65, !llvm.loop !44

159:                                              ; preds = %150, %136, %123, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %340

160:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %179, %160
  %162 = load i32, ptr %37, align 4, !tbaa !9
  %163 = invoke noundef i64 @_ZNK3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %164 unwind label %168

164:                                              ; preds = %161
  %165 = trunc i64 %163 to i32
  %166 = icmp ult i32 %162, %165
  br i1 %166, label %172, label %167

167:                                              ; preds = %164
  store i32 9, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %182

168:                                              ; preds = %172, %161
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %25, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %340

172:                                              ; preds = %164
  %173 = load i32, ptr %37, align 4, !tbaa !9
  %174 = load i32, ptr %37, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %175)
          to label %177 unwind label %168

177:                                              ; preds = %172
  %178 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %176, i32 0, i32 0
  store i32 %173, ptr %178, align 4, !tbaa !45
  br label %179

179:                                              ; preds = %177
  %180 = load i32, ptr %37, align 4, !tbaa !9
  %181 = add i32 %180, 1
  store i32 %181, ptr %37, align 4, !tbaa !9
  br label %161, !llvm.loop !46

182:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #8
  %183 = getelementptr inbounds [2 x %struct.VkVertexInputBindingDescription], ptr %38, i64 0, i64 0
  %184 = getelementptr inbounds %struct.VkVertexInputBindingDescription, ptr %183, i32 0, i32 0
  store i32 0, ptr %184, align 16, !tbaa !47
  %185 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %29, i32 0, i32 3
  %186 = load i32, ptr %185, align 4, !tbaa !41
  %187 = getelementptr inbounds [2 x %struct.VkVertexInputBindingDescription], ptr %38, i64 0, i64 0
  %188 = getelementptr inbounds %struct.VkVertexInputBindingDescription, ptr %187, i32 0, i32 1
  store i32 %186, ptr %188, align 4, !tbaa !50
  %189 = getelementptr inbounds [2 x %struct.VkVertexInputBindingDescription], ptr %38, i64 0, i64 0
  %190 = getelementptr inbounds %struct.VkVertexInputBindingDescription, ptr %189, i32 0, i32 2
  store i32 0, ptr %190, align 8, !tbaa !51
  %191 = getelementptr inbounds [2 x %struct.VkVertexInputBindingDescription], ptr %38, i64 0, i64 1
  %192 = getelementptr inbounds %struct.VkVertexInputBindingDescription, ptr %191, i32 0, i32 0
  store i32 1, ptr %192, align 4, !tbaa !47
  %193 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %30, i32 0, i32 3
  %194 = load i32, ptr %193, align 4, !tbaa !41
  %195 = load i32, ptr %31, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = invoke noundef i32 @_ZN3JPH7AlignUpIjEET_S1_m(i32 noundef %194, i64 noundef %196)
          to label %198 unwind label %262

198:                                              ; preds = %182
  %199 = getelementptr inbounds [2 x %struct.VkVertexInputBindingDescription], ptr %38, i64 0, i64 1
  %200 = getelementptr inbounds %struct.VkVertexInputBindingDescription, ptr %199, i32 0, i32 1
  store i32 %197, ptr %200, align 4, !tbaa !50
  %201 = getelementptr inbounds [2 x %struct.VkVertexInputBindingDescription], ptr %38, i64 0, i64 1
  %202 = getelementptr inbounds %struct.VkVertexInputBindingDescription, ptr %201, i32 0, i32 2
  store i32 1, ptr %202, align 4, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 48, ptr %39) #8
  call void @llvm.memset.p0.i64(ptr align 8 %39, i8 0, i64 48, i1 false)
  %203 = getelementptr inbounds %struct.VkPipelineVertexInputStateCreateInfo, ptr %39, i32 0, i32 0
  store i32 19, ptr %203, align 8, !tbaa !52
  %204 = getelementptr inbounds %struct.VkVertexInputAttributeDescription, ptr %30, i32 0, i32 3
  %205 = load i32, ptr %204, align 4, !tbaa !41
  %206 = icmp ugt i32 %205, 0
  %207 = zext i1 %206 to i64
  %208 = select i1 %206, i32 2, i32 1
  %209 = getelementptr inbounds %struct.VkPipelineVertexInputStateCreateInfo, ptr %39, i32 0, i32 3
  store i32 %208, ptr %209, align 4, !tbaa !54
  %210 = getelementptr inbounds [2 x %struct.VkVertexInputBindingDescription], ptr %38, i64 0, i64 0
  %211 = getelementptr inbounds %struct.VkPipelineVertexInputStateCreateInfo, ptr %39, i32 0, i32 4
  store ptr %210, ptr %211, align 8, !tbaa !55
  %212 = invoke noundef i64 @_ZNK3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %213 unwind label %266

213:                                              ; preds = %198
  %214 = trunc i64 %212 to i32
  %215 = getelementptr inbounds %struct.VkPipelineVertexInputStateCreateInfo, ptr %39, i32 0, i32 5
  store i32 %214, ptr %215, align 8, !tbaa !56
  %216 = invoke noundef ptr @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
          to label %217 unwind label %266

217:                                              ; preds = %213
  %218 = getelementptr inbounds %struct.VkPipelineVertexInputStateCreateInfo, ptr %39, i32 0, i32 6
  store ptr %216, ptr %218, align 8, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #8
  call void @llvm.memset.p0.i64(ptr align 8 %40, i8 0, i64 32, i1 false)
  %219 = getelementptr inbounds %struct.VkPipelineInputAssemblyStateCreateInfo, ptr %40, i32 0, i32 0
  store i32 20, ptr %219, align 8, !tbaa !58
  %220 = load i32, ptr %21, align 4, !tbaa !15
  %221 = icmp eq i32 %220, 0
  %222 = zext i1 %221 to i64
  %223 = select i1 %221, i32 3, i32 1
  %224 = getelementptr inbounds %struct.VkPipelineInputAssemblyStateCreateInfo, ptr %40, i32 0, i32 3
  store i32 %223, ptr %224, align 4, !tbaa !61
  %225 = getelementptr inbounds %struct.VkPipelineInputAssemblyStateCreateInfo, ptr %40, i32 0, i32 4
  store i32 0, ptr %225, align 8, !tbaa !62
  call void @llvm.lifetime.start.p0(i64 48, ptr %41) #8
  call void @llvm.memset.p0.i64(ptr align 8 %41, i8 0, i64 48, i1 false)
  %226 = getelementptr inbounds %struct.VkPipelineViewportStateCreateInfo, ptr %41, i32 0, i32 0
  store i32 22, ptr %226, align 8, !tbaa !63
  %227 = getelementptr inbounds %struct.VkPipelineViewportStateCreateInfo, ptr %41, i32 0, i32 3
  store i32 1, ptr %227, align 4, !tbaa !65
  %228 = getelementptr inbounds %struct.VkPipelineViewportStateCreateInfo, ptr %41, i32 0, i32 5
  store i32 1, ptr %228, align 8, !tbaa !66
  call void @llvm.lifetime.start.p0(i64 64, ptr %42) #8
  call void @llvm.memset.p0.i64(ptr align 8 %42, i8 0, i64 64, i1 false)
  %229 = getelementptr inbounds %struct.VkPipelineRasterizationStateCreateInfo, ptr %42, i32 0, i32 0
  store i32 23, ptr %229, align 8, !tbaa !67
  %230 = getelementptr inbounds %struct.VkPipelineRasterizationStateCreateInfo, ptr %42, i32 0, i32 3
  store i32 0, ptr %230, align 4, !tbaa !72
  %231 = getelementptr inbounds %struct.VkPipelineRasterizationStateCreateInfo, ptr %42, i32 0, i32 4
  store i32 0, ptr %231, align 8, !tbaa !73
  %232 = load i32, ptr %20, align 4, !tbaa !13
  %233 = icmp eq i32 %232, 0
  %234 = zext i1 %233 to i64
  %235 = select i1 %233, i32 0, i32 1
  %236 = getelementptr inbounds %struct.VkPipelineRasterizationStateCreateInfo, ptr %42, i32 0, i32 5
  store i32 %235, ptr %236, align 4, !tbaa !74
  %237 = getelementptr inbounds %struct.VkPipelineRasterizationStateCreateInfo, ptr %42, i32 0, i32 12
  store float 1.000000e+00, ptr %237, align 8, !tbaa !75
  %238 = load i32, ptr %24, align 4, !tbaa !21
  %239 = icmp eq i32 %238, 0
  %240 = zext i1 %239 to i64
  %241 = select i1 %239, i32 2, i32 1
  %242 = getelementptr inbounds %struct.VkPipelineRasterizationStateCreateInfo, ptr %42, i32 0, i32 6
  store i32 %241, ptr %242, align 8, !tbaa !76
  %243 = getelementptr inbounds %struct.VkPipelineRasterizationStateCreateInfo, ptr %42, i32 0, i32 7
  store i32 0, ptr %243, align 4, !tbaa !77
  %244 = getelementptr inbounds %struct.VkPipelineRasterizationStateCreateInfo, ptr %42, i32 0, i32 8
  store i32 0, ptr %244, align 8, !tbaa !78
  call void @llvm.lifetime.start.p0(i64 48, ptr %43) #8
  call void @llvm.memset.p0.i64(ptr align 8 %43, i8 0, i64 48, i1 false)
  %245 = getelementptr inbounds %struct.VkPipelineMultisampleStateCreateInfo, ptr %43, i32 0, i32 0
  store i32 24, ptr %245, align 8, !tbaa !79
  %246 = getelementptr inbounds %struct.VkPipelineMultisampleStateCreateInfo, ptr %43, i32 0, i32 4
  store i32 0, ptr %246, align 8, !tbaa !82
  %247 = getelementptr inbounds %struct.VkPipelineMultisampleStateCreateInfo, ptr %43, i32 0, i32 3
  store i32 1, ptr %247, align 4, !tbaa !83
  call void @llvm.lifetime.start.p0(i64 104, ptr %44) #8
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 104, i1 false)
  %248 = getelementptr inbounds %struct.VkPipelineDepthStencilStateCreateInfo, ptr %44, i32 0, i32 0
  store i32 25, ptr %248, align 8, !tbaa !84
  %249 = load i32, ptr %22, align 4, !tbaa !17
  %250 = icmp eq i32 %249, 1
  %251 = zext i1 %250 to i64
  %252 = select i1 %250, i32 1, i32 0
  %253 = getelementptr inbounds %struct.VkPipelineDepthStencilStateCreateInfo, ptr %44, i32 0, i32 3
  store i32 %252, ptr %253, align 4, !tbaa !89
  %254 = load i32, ptr %22, align 4, !tbaa !17
  %255 = icmp eq i32 %254, 1
  %256 = zext i1 %255 to i64
  %257 = select i1 %255, i32 1, i32 0
  %258 = getelementptr inbounds %struct.VkPipelineDepthStencilStateCreateInfo, ptr %44, i32 0, i32 4
  store i32 %257, ptr %258, align 8, !tbaa !90
  %259 = getelementptr inbounds %struct.VkPipelineDepthStencilStateCreateInfo, ptr %44, i32 0, i32 5
  store i32 4, ptr %259, align 4, !tbaa !91
  call void @llvm.lifetime.start.p0(i64 32, ptr %45) #8
  call void @llvm.memset.p0.i64(ptr align 4 %45, i8 0, i64 32, i1 false)
  %260 = getelementptr inbounds %struct.VkPipelineColorBlendAttachmentState, ptr %45, i32 0, i32 7
  store i32 15, ptr %260, align 4, !tbaa !92
  %261 = load i32, ptr %23, align 4, !tbaa !19
  switch i32 %261, label %280 [
    i32 0, label %270
    i32 1, label %272
  ]

262:                                              ; preds = %182
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %25, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %26, align 4
  br label %339

266:                                              ; preds = %213, %198
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %25, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %26, align 4
  br label %338

270:                                              ; preds = %217
  %271 = getelementptr inbounds %struct.VkPipelineColorBlendAttachmentState, ptr %45, i32 0, i32 0
  store i32 0, ptr %271, align 4, !tbaa !96
  br label %280

272:                                              ; preds = %217
  %273 = getelementptr inbounds %struct.VkPipelineColorBlendAttachmentState, ptr %45, i32 0, i32 0
  store i32 1, ptr %273, align 4, !tbaa !96
  %274 = getelementptr inbounds %struct.VkPipelineColorBlendAttachmentState, ptr %45, i32 0, i32 1
  store i32 6, ptr %274, align 4, !tbaa !97
  %275 = getelementptr inbounds %struct.VkPipelineColorBlendAttachmentState, ptr %45, i32 0, i32 2
  store i32 7, ptr %275, align 4, !tbaa !98
  %276 = getelementptr inbounds %struct.VkPipelineColorBlendAttachmentState, ptr %45, i32 0, i32 3
  store i32 0, ptr %276, align 4, !tbaa !99
  %277 = getelementptr inbounds %struct.VkPipelineColorBlendAttachmentState, ptr %45, i32 0, i32 4
  store i32 0, ptr %277, align 4, !tbaa !100
  %278 = getelementptr inbounds %struct.VkPipelineColorBlendAttachmentState, ptr %45, i32 0, i32 5
  store i32 0, ptr %278, align 4, !tbaa !101
  %279 = getelementptr inbounds %struct.VkPipelineColorBlendAttachmentState, ptr %45, i32 0, i32 6
  store i32 0, ptr %279, align 4, !tbaa !102
  br label %280

280:                                              ; preds = %272, %270, %217
  call void @llvm.lifetime.start.p0(i64 56, ptr %46) #8
  call void @llvm.memset.p0.i64(ptr align 8 %46, i8 0, i64 56, i1 false)
  %281 = getelementptr inbounds %struct.VkPipelineColorBlendStateCreateInfo, ptr %46, i32 0, i32 0
  store i32 26, ptr %281, align 8, !tbaa !103
  %282 = getelementptr inbounds %struct.VkPipelineColorBlendStateCreateInfo, ptr %46, i32 0, i32 3
  store i32 0, ptr %282, align 4, !tbaa !106
  %283 = getelementptr inbounds %struct.VkPipelineColorBlendStateCreateInfo, ptr %46, i32 0, i32 4
  store i32 3, ptr %283, align 8, !tbaa !107
  %284 = getelementptr inbounds %struct.VkPipelineColorBlendStateCreateInfo, ptr %46, i32 0, i32 5
  store i32 1, ptr %284, align 4, !tbaa !108
  %285 = getelementptr inbounds %struct.VkPipelineColorBlendStateCreateInfo, ptr %46, i32 0, i32 6
  store ptr %45, ptr %285, align 8, !tbaa !109
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 @__const.PipelineStateVK.dynamic_states, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %48) #8
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 32, i1 false)
  %286 = getelementptr inbounds %struct.VkPipelineDynamicStateCreateInfo, ptr %48, i32 0, i32 0
  store i32 27, ptr %286, align 8, !tbaa !110
  %287 = call noundef i64 @_ZSt4sizeI14VkDynamicStateLm2EEmRAT0__KT_(ptr noundef nonnull align 4 dereferenceable(8) %47) #8
  %288 = trunc i64 %287 to i32
  %289 = getelementptr inbounds %struct.VkPipelineDynamicStateCreateInfo, ptr %48, i32 0, i32 3
  store i32 %288, ptr %289, align 4, !tbaa !112
  %290 = getelementptr inbounds [2 x i32], ptr %47, i64 0, i64 0
  %291 = getelementptr inbounds %struct.VkPipelineDynamicStateCreateInfo, ptr %48, i32 0, i32 4
  store ptr %290, ptr %291, align 8, !tbaa !113
  call void @llvm.lifetime.start.p0(i64 144, ptr %49) #8
  call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 144, i1 false)
  %292 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 0
  store i32 28, ptr %292, align 8, !tbaa !114
  %293 = call noundef i64 @_ZSt4sizeI31VkPipelineShaderStageCreateInfoLm2EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(96) %27) #8
  %294 = trunc i64 %293 to i32
  %295 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 3
  store i32 %294, ptr %295, align 4, !tbaa !116
  %296 = getelementptr inbounds [2 x %struct.VkPipelineShaderStageCreateInfo], ptr %27, i64 0, i64 0
  %297 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 4
  store ptr %296, ptr %297, align 8, !tbaa !117
  %298 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 5
  store ptr %39, ptr %298, align 8, !tbaa !118
  %299 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 6
  store ptr %40, ptr %299, align 8, !tbaa !119
  %300 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 8
  store ptr %41, ptr %300, align 8, !tbaa !120
  %301 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 9
  store ptr %42, ptr %301, align 8, !tbaa !121
  %302 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 10
  store ptr %43, ptr %302, align 8, !tbaa !122
  %303 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 11
  store ptr %44, ptr %303, align 8, !tbaa !123
  %304 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 12
  store ptr %46, ptr %304, align 8, !tbaa !124
  %305 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 13
  store ptr %48, ptr %305, align 8, !tbaa !125
  %306 = getelementptr inbounds %class.PipelineStateVK, ptr %50, i32 0, i32 1
  %307 = load ptr, ptr %306, align 8, !tbaa !25
  %308 = invoke noundef ptr @_ZNK10RendererVK17GetPipelineLayoutEv(ptr noundef nonnull align 16 dereferenceable(1936) %307)
          to label %309 unwind label %334

309:                                              ; preds = %280
  %310 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 14
  store ptr %308, ptr %310, align 8, !tbaa !126
  %311 = load i32, ptr %19, align 4, !tbaa !11
  %312 = icmp eq i32 %311, 1
  br i1 %312, label %313, label %318

313:                                              ; preds = %309
  %314 = getelementptr inbounds %class.PipelineStateVK, ptr %50, i32 0, i32 1
  %315 = load ptr, ptr %314, align 8, !tbaa !25
  %316 = invoke noundef ptr @_ZNK10RendererVK13GetRenderPassEv(ptr noundef nonnull align 16 dereferenceable(1936) %315)
          to label %317 unwind label %334

317:                                              ; preds = %313
  br label %323

318:                                              ; preds = %309
  %319 = getelementptr inbounds %class.PipelineStateVK, ptr %50, i32 0, i32 1
  %320 = load ptr, ptr %319, align 8, !tbaa !25
  %321 = invoke noundef ptr @_ZNK10RendererVK19GetRenderPassShadowEv(ptr noundef nonnull align 16 dereferenceable(1936) %320)
          to label %322 unwind label %334

322:                                              ; preds = %318
  br label %323

323:                                              ; preds = %322, %317
  %324 = phi ptr [ %316, %317 ], [ %321, %322 ]
  %325 = getelementptr inbounds %struct.VkGraphicsPipelineCreateInfo, ptr %49, i32 0, i32 15
  store ptr %324, ptr %325, align 8, !tbaa !127
  %326 = getelementptr inbounds %class.PipelineStateVK, ptr %50, i32 0, i32 1
  %327 = load ptr, ptr %326, align 8, !tbaa !25
  %328 = invoke noundef ptr @_ZNK10RendererVK9GetDeviceEv(ptr noundef nonnull align 16 dereferenceable(1936) %327)
          to label %329 unwind label %334

329:                                              ; preds = %323
  %330 = getelementptr inbounds %class.PipelineStateVK, ptr %50, i32 0, i32 4
  %331 = invoke i32 @vkCreateGraphicsPipelines(ptr noundef %328, ptr noundef null, i32 noundef 1, ptr noundef %49, ptr noundef null, ptr noundef %330)
          to label %332 unwind label %334

332:                                              ; preds = %329
  invoke void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %331)
          to label %333 unwind label %334

333:                                              ; preds = %332
  call void @llvm.lifetime.end.p0(i64 144, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %27) #8
  ret void

334:                                              ; preds = %332, %329, %323, %318, %313, %280
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %25, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 144, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #8
  br label %338

338:                                              ; preds = %334, %266
  call void @llvm.lifetime.end.p0(i64 48, ptr %39) #8
  br label %339

339:                                              ; preds = %338, %262
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #8
  br label %340

340:                                              ; preds = %339, %168, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %27) #8
  call void @_ZN3JPH8RefConstI13PixelShaderVKED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #8
  br label %341

341:                                              ; preds = %340, %74
  call void @_ZN3JPH8RefConstI14VertexShaderVKED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #8
  br label %342

342:                                              ; preds = %341, %70
  call void @_ZN13PipelineStateD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #8
  br label %343

343:                                              ; preds = %342
  %344 = load ptr, ptr %25, align 8
  %345 = load i32, ptr %26, align 4
  %346 = insertvalue { ptr, i32 } poison, ptr %344, 0
  %347 = insertvalue { ptr, i32 } %346, i32 %345, 1
  resume { ptr, i32 } %347
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13PipelineStateC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstI14VertexShaderVKEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstI13PixelShaderVKEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3 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) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH7AlignUpIjEET_S1_m(i32 noundef, i64 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt4sizeI14VkDynamicStateLm2EEmRAT0__KT_(ptr noundef nonnull align 4 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt4sizeI31VkPipelineShaderStageCreateInfoLm2EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(96)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10RendererVK17GetPipelineLayoutEv(ptr noundef nonnull align 16 dereferenceable(1936)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10RendererVK13GetRenderPassEv(ptr noundef nonnull align 16 dereferenceable(1936)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10RendererVK19GetRenderPassShadowEv(ptr noundef nonnull align 16 dereferenceable(1936)) #5 align 2

declare void @_Z18FatalErrorIfFailed8VkResult(i32 noundef) #7

declare i32 @vkCreateGraphicsPipelines(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10RendererVK9GetDeviceEv(ptr noundef nonnull align 16 dereferenceable(1936)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8RefConstI13PixelShaderVKED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8RefConstI14VertexShaderVKED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13PipelineStateD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

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 = { 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 #3 = { inlinehint 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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: write) }
attributes #7 = { "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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN13PipelineState9EDrawPassE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN13PipelineState9EFillModeE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTSN13PipelineState9ETopologyE", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTSN13PipelineState10EDepthTestE", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTSN13PipelineState10EBlendModeE", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTSN13PipelineState9ECullModeE", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!26, !6, i64 8}
!26 = !{!"_ZTS15PipelineStateVK", !27, i64 0, !6, i64 8, !28, i64 16, !29, i64 24, !6, i64 32}
!27 = !{!"_ZTS13PipelineState"}
!28 = !{!"_ZTSN3JPH8RefConstI14VertexShaderVKEE", !6, i64 0}
!29 = !{!"_ZTSN3JPH8RefConstI13PixelShaderVKEE", !6, i64 0}
!30 = !{i64 0, i64 4, !31, i64 8, i64 8, !5, i64 16, i64 4, !9, i64 20, i64 4, !33, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5}
!31 = !{!32, !32, i64 0}
!32 = !{!"_ZTS15VkStructureType", !7, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"_ZTS21VkShaderStageFlagBits", !7, i64 0}
!35 = !{!36, !10, i64 4}
!36 = !{!"_ZTS33VkVertexInputAttributeDescription", !10, i64 0, !10, i64 4, !37, i64 8, !10, i64 12}
!37 = !{!"_ZTS8VkFormat", !7, i64 0}
!38 = !{!39, !39, i64 0}
!39 = !{!"_ZTSN13PipelineState17EInputDescriptionE", !7, i64 0}
!40 = !{!36, !37, i64 8}
!41 = !{!36, !10, i64 12}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}
!45 = !{!36, !10, i64 0}
!46 = distinct !{!46, !43}
!47 = !{!48, !10, i64 0}
!48 = !{!"_ZTS31VkVertexInputBindingDescription", !10, i64 0, !10, i64 4, !49, i64 8}
!49 = !{!"_ZTS17VkVertexInputRate", !7, i64 0}
!50 = !{!48, !10, i64 4}
!51 = !{!48, !49, i64 8}
!52 = !{!53, !32, i64 0}
!53 = !{!"_ZTS36VkPipelineVertexInputStateCreateInfo", !32, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !10, i64 32, !6, i64 40}
!54 = !{!53, !10, i64 20}
!55 = !{!53, !6, i64 24}
!56 = !{!53, !10, i64 32}
!57 = !{!53, !6, i64 40}
!58 = !{!59, !32, i64 0}
!59 = !{!"_ZTS38VkPipelineInputAssemblyStateCreateInfo", !32, i64 0, !6, i64 8, !10, i64 16, !60, i64 20, !10, i64 24}
!60 = !{!"_ZTS19VkPrimitiveTopology", !7, i64 0}
!61 = !{!59, !60, i64 20}
!62 = !{!59, !10, i64 24}
!63 = !{!64, !32, i64 0}
!64 = !{!"_ZTS33VkPipelineViewportStateCreateInfo", !32, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !10, i64 32, !6, i64 40}
!65 = !{!64, !10, i64 20}
!66 = !{!64, !10, i64 32}
!67 = !{!68, !32, i64 0}
!68 = !{!"_ZTS38VkPipelineRasterizationStateCreateInfo", !32, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !69, i64 28, !10, i64 32, !70, i64 36, !10, i64 40, !71, i64 44, !71, i64 48, !71, i64 52, !71, i64 56}
!69 = !{!"_ZTS13VkPolygonMode", !7, i64 0}
!70 = !{!"_ZTS11VkFrontFace", !7, i64 0}
!71 = !{!"float", !7, i64 0}
!72 = !{!68, !10, i64 20}
!73 = !{!68, !10, i64 24}
!74 = !{!68, !69, i64 28}
!75 = !{!68, !71, i64 56}
!76 = !{!68, !10, i64 32}
!77 = !{!68, !70, i64 36}
!78 = !{!68, !10, i64 40}
!79 = !{!80, !32, i64 0}
!80 = !{!"_ZTS36VkPipelineMultisampleStateCreateInfo", !32, i64 0, !6, i64 8, !10, i64 16, !81, i64 20, !10, i64 24, !71, i64 28, !6, i64 32, !10, i64 40, !10, i64 44}
!81 = !{!"_ZTS21VkSampleCountFlagBits", !7, i64 0}
!82 = !{!80, !10, i64 24}
!83 = !{!80, !81, i64 20}
!84 = !{!85, !32, i64 0}
!85 = !{!"_ZTS37VkPipelineDepthStencilStateCreateInfo", !32, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !86, i64 28, !10, i64 32, !10, i64 36, !87, i64 40, !87, i64 68, !71, i64 96, !71, i64 100}
!86 = !{!"_ZTS11VkCompareOp", !7, i64 0}
!87 = !{!"_ZTS16VkStencilOpState", !88, i64 0, !88, i64 4, !88, i64 8, !86, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!88 = !{!"_ZTS11VkStencilOp", !7, i64 0}
!89 = !{!85, !10, i64 20}
!90 = !{!85, !10, i64 24}
!91 = !{!85, !86, i64 28}
!92 = !{!93, !10, i64 28}
!93 = !{!"_ZTS35VkPipelineColorBlendAttachmentState", !10, i64 0, !94, i64 4, !94, i64 8, !95, i64 12, !94, i64 16, !94, i64 20, !95, i64 24, !10, i64 28}
!94 = !{!"_ZTS13VkBlendFactor", !7, i64 0}
!95 = !{!"_ZTS9VkBlendOp", !7, i64 0}
!96 = !{!93, !10, i64 0}
!97 = !{!93, !94, i64 4}
!98 = !{!93, !94, i64 8}
!99 = !{!93, !95, i64 12}
!100 = !{!93, !94, i64 16}
!101 = !{!93, !94, i64 20}
!102 = !{!93, !95, i64 24}
!103 = !{!104, !32, i64 0}
!104 = !{!"_ZTS35VkPipelineColorBlendStateCreateInfo", !32, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !105, i64 24, !10, i64 28, !6, i64 32, !7, i64 40}
!105 = !{!"_ZTS9VkLogicOp", !7, i64 0}
!106 = !{!104, !10, i64 20}
!107 = !{!104, !105, i64 24}
!108 = !{!104, !10, i64 28}
!109 = !{!104, !6, i64 32}
!110 = !{!111, !32, i64 0}
!111 = !{!"_ZTS32VkPipelineDynamicStateCreateInfo", !32, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24}
!112 = !{!111, !10, i64 20}
!113 = !{!111, !6, i64 24}
!114 = !{!115, !32, i64 0}
!115 = !{!"_ZTS28VkGraphicsPipelineCreateInfo", !32, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !6, i64 128, !10, i64 136}
!116 = !{!115, !10, i64 20}
!117 = !{!115, !6, i64 24}
!118 = !{!115, !6, i64 32}
!119 = !{!115, !6, i64 40}
!120 = !{!115, !6, i64 56}
!121 = !{!115, !6, i64 64}
!122 = !{!115, !6, i64 72}
!123 = !{!115, !6, i64 80}
!124 = !{!115, !6, i64 88}
!125 = !{!115, !6, i64 96}
!126 = !{!115, !6, i64 104}
!127 = !{!115, !6, i64 112}


; 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.VkPipelineShaderStageCreateInfo = type { i32, ptr, i32, i32, ptr, ptr, ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%struct.VkVertexInputAttributeDescription = type { i32, i32, i32, i32 }
%struct.VkVertexInputBindingDescription = type { i32, i32, i32 }
%struct.VkPipelineVertexInputStateCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr }
%struct.VkPipelineInputAssemblyStateCreateInfo = type { i32, ptr, i32, i32, i32 }
%struct.VkPipelineViewportStateCreateInfo = type { i32, ptr, i32, i32, ptr, i32, ptr }
%struct.VkPipelineRasterizationStateCreateInfo = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, float, float, float, float }
%struct.VkPipelineMultisampleStateCreateInfo = type { i32, ptr, i32, i32, i32, float, ptr, i32, i32 }
%struct.VkPipelineDepthStencilStateCreateInfo = type { i32, ptr, i32, i32, i32, i32, i32, i32, %struct.VkStencilOpState, %struct.VkStencilOpState, float, float }
%struct.VkStencilOpState = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.VkPipelineColorBlendAttachmentState = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.VkPipelineColorBlendStateCreateInfo = type { i32, ptr, i32, i32, i32, i32, ptr, [4 x float] }
%struct.VkPipelineDynamicStateCreateInfo = type { i32, ptr, i32, i32, ptr }
%struct.VkGraphicsPipelineCreateInfo = type { i32, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32 }

@_ZTV15PipelineStateVK = external dso_local unnamed_addr constant { [5 x ptr] }, align 8
@__const.PipelineStateVK.dynamic_states = external hidden unnamed_addr constant [2 x i32], align 4

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

declare i32 @__gxx_personality_v0(...)

; 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 void @_ZN15PipelineStateVKC2EP10RendererVKPK14VertexShaderVKPKN13PipelineState17EInputDescriptionEjPK13PixelShaderVKNS5_9EDrawPassENS5_9EFillModeENS5_9ETopologyENS5_10EDepthTestENS5_10EBlendModeENS5_9ECullModeE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %13 = alloca [2 x %struct.VkPipelineShaderStageCreateInfo], align 16
  %14 = alloca %"class.JPH::Array", align 8
  %15 = alloca %struct.VkVertexInputAttributeDescription, align 4
  %16 = alloca %struct.VkVertexInputAttributeDescription, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [2 x %struct.VkVertexInputBindingDescription], align 16
  %21 = alloca %struct.VkPipelineVertexInputStateCreateInfo, align 8
  %22 = alloca %struct.VkPipelineInputAssemblyStateCreateInfo, align 8
  %23 = alloca %struct.VkPipelineViewportStateCreateInfo, align 8
  %24 = alloca %struct.VkPipelineRasterizationStateCreateInfo, align 8
  %25 = alloca %struct.VkPipelineMultisampleStateCreateInfo, align 8
  %26 = alloca %struct.VkPipelineDepthStencilStateCreateInfo, align 8
  %27 = alloca %struct.VkPipelineColorBlendAttachmentState, align 4
  %28 = alloca %struct.VkPipelineColorBlendStateCreateInfo, align 8
  %29 = alloca [2 x i32], align 8
  %30 = alloca %struct.VkPipelineDynamicStateCreateInfo, align 8
  %31 = alloca %struct.VkGraphicsPipelineCreateInfo, align 8
  tail call void @_ZN13PipelineStateC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #8
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTV15PipelineStateVK, i64 16), ptr %0, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %1, ptr %32, align 8, !tbaa !8
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN3JPH8RefConstI14VertexShaderVKEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef %2)
          to label %34 unwind label %47

34:                                               ; preds = %12
  %35 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_ZN3JPH8RefConstI13PixelShaderVKEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef %5)
          to label %36 unwind label %49

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %13) #8
  %37 = getelementptr inbounds i8, ptr %2, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(48) %37, i64 48, i1 false), !tbaa.struct !15
  %38 = getelementptr inbounds i8, ptr %13, i64 48
  %39 = getelementptr inbounds i8, ptr %5, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %38, ptr noundef nonnull align 8 dereferenceable(48) %39, i64 48, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %16, i8 0, i64 16, i1 false)
  %40 = getelementptr inbounds i8, ptr %16, i64 4
  store i32 1, ptr %40, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #8
  store i32 1, ptr %17, align 4, !tbaa !19
  %.not43 = icmp eq i32 %4, 0
  br i1 %.not43, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %36
  %41 = getelementptr inbounds i8, ptr %16, i64 8
  %42 = getelementptr inbounds i8, ptr %16, i64 12
  %43 = getelementptr inbounds i8, ptr %15, i64 8
  %44 = getelementptr inbounds i8, ptr %15, i64 12
  %wide.trip.count = zext i32 %4 to i64
  br label %51

.preheader:                                       ; preds = %.loopexit, %36
  %45 = call noundef i64 @_ZNK3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %46 = and i64 %45, 4294967295
  %.not44 = icmp eq i64 %46, 0
  br i1 %.not44, label %._crit_edge, label %.lr.ph42

47:                                               ; preds = %12
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %179

49:                                               ; preds = %34
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %178

51:                                               ; preds = %.lr.ph, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %.loopexit ]
  %52 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  %53 = load i32, ptr %52, align 4, !tbaa !26
  switch i32 %53, label %.loopexit [
    i32 0, label %54
    i32 2, label %54
    i32 1, label %57
    i32 3, label %58
    i32 4, label %59
    i32 5, label %62
    i32 6, label %62
  ]

54:                                               ; preds = %51, %51
  store i32 106, ptr %43, align 4, !tbaa !28
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %.loopexit.sink.split unwind label %55

55:                                               ; preds = %59, %58, %57, %54
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %177

57:                                               ; preds = %51
  store i32 37, ptr %43, align 4, !tbaa !28
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %.loopexit.sink.split unwind label %55

58:                                               ; preds = %51
  store i32 103, ptr %43, align 4, !tbaa !28
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %.loopexit.sink.split unwind label %55

59:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  store i32 4, ptr %18, align 4, !tbaa !19
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %61 = load i32, ptr %60, align 4, !tbaa !19
  store i32 %61, ptr %17, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  store i32 37, ptr %41, align 4, !tbaa !28
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(16) %16)
          to label %.loopexit.sink.split unwind label %55

62:                                               ; preds = %51, %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #8
  store i32 16, ptr %19, align 4, !tbaa !19
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %64 = load i32, ptr %63, align 4, !tbaa !19
  store i32 %64, ptr %17, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #8
  store i32 109, ptr %41, align 4, !tbaa !28
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(16) %16)
          to label %65 unwind label %74

65:                                               ; preds = %62
  %66 = load i32, ptr %42, align 4, !tbaa !29
  %67 = add i32 %66, 16
  store i32 %67, ptr %42, align 4, !tbaa !29
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(16) %16)
          to label %68 unwind label %74

68:                                               ; preds = %65
  %69 = load i32, ptr %42, align 4, !tbaa !29
  %70 = add i32 %69, 16
  store i32 %70, ptr %42, align 4, !tbaa !29
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(16) %16)
          to label %71 unwind label %74

71:                                               ; preds = %68
  %72 = load i32, ptr %42, align 4, !tbaa !29
  %73 = add i32 %72, 16
  store i32 %73, ptr %42, align 4, !tbaa !29
  invoke void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(16) %16)
          to label %.loopexit.sink.split unwind label %74

74:                                               ; preds = %71, %68, %65, %62
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %177

.loopexit.sink.split:                             ; preds = %71, %59, %58, %57, %54
  %.sink = phi ptr [ %44, %54 ], [ %44, %57 ], [ %44, %58 ], [ %42, %59 ], [ %42, %71 ]
  %.sink51 = phi i32 [ 12, %54 ], [ 4, %57 ], [ 8, %58 ], [ 4, %59 ], [ 16, %71 ]
  %76 = load i32, ptr %.sink, align 4, !tbaa !29
  %77 = add i32 %76, %.sink51
  store i32 %77, ptr %.sink, align 4, !tbaa !29
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.sink.split, %51
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %51, !llvm.loop !30

._crit_edge:                                      ; preds = %91, %.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #8
  store i32 0, ptr %20, align 16, !tbaa !32
  %78 = getelementptr inbounds i8, ptr %15, i64 12
  %79 = load i32, ptr %78, align 4, !tbaa !29
  %80 = getelementptr inbounds i8, ptr %20, i64 4
  store i32 %79, ptr %80, align 4, !tbaa !35
  %81 = getelementptr inbounds i8, ptr %20, i64 8
  store i32 0, ptr %81, align 8, !tbaa !36
  %82 = getelementptr inbounds i8, ptr %20, i64 12
  store i32 1, ptr %82, align 4, !tbaa !32
  %83 = getelementptr inbounds i8, ptr %16, i64 12
  %84 = load i32, ptr %83, align 4, !tbaa !29
  %85 = load i32, ptr %17, align 4, !tbaa !19
  %86 = zext i32 %85 to i64
  %87 = invoke noundef i32 @_ZN3JPH7AlignUpIjEET_S1_m(i32 noundef %84, i64 noundef %86)
          to label %96 unwind label %129

88:                                               ; preds = %.lr.ph42
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %177

.lr.ph42:                                         ; preds = %.preheader, %91
  %indvars.iv46 = phi i64 [ %indvars.iv.next47, %91 ], [ 0, %.preheader ]
  %90 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv46)
          to label %91 unwind label %88

91:                                               ; preds = %.lr.ph42
  %92 = trunc nuw i64 %indvars.iv46 to i32
  store i32 %92, ptr %90, align 4, !tbaa !37
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %93 = call noundef i64 @_ZNK3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %94 = and i64 %93, 4294967295
  %95 = icmp ult i64 %indvars.iv.next47, %94
  br i1 %95, label %.lr.ph42, label %._crit_edge, !llvm.loop !38

96:                                               ; preds = %._crit_edge
  %97 = getelementptr inbounds i8, ptr %20, i64 16
  store i32 %87, ptr %97, align 16, !tbaa !35
  %98 = getelementptr inbounds i8, ptr %20, i64 20
  store i32 1, ptr %98, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %21, i8 0, i64 40, i1 false)
  store i32 19, ptr %21, align 8, !tbaa !39
  %99 = load i32, ptr %83, align 4, !tbaa !29
  %.not = icmp eq i32 %99, 0
  %100 = select i1 %.not, i32 1, i32 2
  %101 = getelementptr inbounds i8, ptr %21, i64 20
  store i32 %100, ptr %101, align 4, !tbaa !41
  %102 = getelementptr inbounds i8, ptr %21, i64 24
  store ptr %20, ptr %102, align 8, !tbaa !42
  %103 = call noundef i64 @_ZNK3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %104 = trunc i64 %103 to i32
  %105 = getelementptr inbounds i8, ptr %21, i64 32
  store i32 %104, ptr %105, align 8, !tbaa !43
  %106 = call noundef ptr @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %14)
  %107 = getelementptr inbounds i8, ptr %21, i64 40
  store ptr %106, ptr %107, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %22, i8 0, i64 32, i1 false)
  store i32 20, ptr %22, align 8, !tbaa !45
  %108 = icmp eq i32 %8, 0
  %109 = select i1 %108, i32 3, i32 1
  %110 = getelementptr inbounds i8, ptr %22, i64 20
  store i32 %109, ptr %110, align 4, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %23) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %23, i8 0, i64 48, i1 false)
  store i32 22, ptr %23, align 8, !tbaa !49
  %111 = getelementptr inbounds i8, ptr %23, i64 20
  store i32 1, ptr %111, align 4, !tbaa !51
  %112 = getelementptr inbounds i8, ptr %23, i64 32
  store i32 1, ptr %112, align 8, !tbaa !52
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %24, i8 0, i64 64, i1 false)
  store i32 23, ptr %24, align 8, !tbaa !53
  %113 = getelementptr inbounds i8, ptr %24, i64 24
  store i32 0, ptr %113, align 8, !tbaa !58
  %114 = icmp ne i32 %7, 0
  %115 = zext i1 %114 to i32
  %116 = getelementptr inbounds i8, ptr %24, i64 28
  store i32 %115, ptr %116, align 4, !tbaa !59
  %117 = getelementptr inbounds i8, ptr %24, i64 56
  store float 1.000000e+00, ptr %117, align 8, !tbaa !60
  %118 = icmp eq i32 %11, 0
  %119 = select i1 %118, i32 2, i32 1
  %120 = getelementptr inbounds i8, ptr %24, i64 32
  store i32 %119, ptr %120, align 8, !tbaa !61
  %121 = getelementptr inbounds i8, ptr %24, i64 40
  store i32 0, ptr %121, align 8, !tbaa !62
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %25) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %25, i8 0, i64 48, i1 false)
  store i32 24, ptr %25, align 8, !tbaa !63
  %122 = getelementptr inbounds i8, ptr %25, i64 20
  store i32 1, ptr %122, align 4, !tbaa !66
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %26) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %26, i8 0, i64 104, i1 false)
  store i32 25, ptr %26, align 8, !tbaa !67
  %123 = icmp eq i32 %9, 1
  %124 = zext i1 %123 to i32
  %125 = getelementptr inbounds i8, ptr %26, i64 20
  store i32 %124, ptr %125, align 4, !tbaa !72
  %126 = getelementptr inbounds i8, ptr %26, i64 24
  store i32 %124, ptr %126, align 8, !tbaa !73
  %127 = getelementptr inbounds i8, ptr %26, i64 28
  store i32 4, ptr %127, align 4, !tbaa !74
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(32) %27, i8 0, i64 28, i1 false)
  %128 = getelementptr inbounds i8, ptr %27, i64 28
  store i32 15, ptr %128, align 4, !tbaa !75
  %cond = icmp eq i32 %10, 1
  br i1 %cond, label %131, label %135

129:                                              ; preds = %._crit_edge
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %176

131:                                              ; preds = %96
  store i32 1, ptr %27, align 4, !tbaa !79
  %132 = getelementptr inbounds i8, ptr %27, i64 4
  store i32 6, ptr %132, align 4, !tbaa !80
  %133 = getelementptr inbounds i8, ptr %27, i64 8
  store i32 7, ptr %133, align 4, !tbaa !81
  %134 = getelementptr inbounds i8, ptr %27, i64 12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %134, i8 0, i64 16, i1 false)
  br label %135

135:                                              ; preds = %96, %131
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %28) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %28, i8 0, i64 56, i1 false)
  store i32 26, ptr %28, align 8, !tbaa !82
  %136 = getelementptr inbounds i8, ptr %28, i64 24
  store i32 3, ptr %136, align 8, !tbaa !85
  %137 = getelementptr inbounds i8, ptr %28, i64 28
  store i32 1, ptr %137, align 4, !tbaa !86
  %138 = getelementptr inbounds i8, ptr %28, i64 32
  store ptr %27, ptr %138, align 8, !tbaa !87
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #8
  %139 = load i64, ptr @__const.PipelineStateVK.dynamic_states, align 4
  store i64 %139, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %30, i8 0, i64 24, i1 false)
  store i32 27, ptr %30, align 8, !tbaa !88
  %140 = call noundef i64 @_ZSt4sizeI14VkDynamicStateLm2EEmRAT0__KT_(ptr noundef nonnull align 4 dereferenceable(8) %29) #8
  %141 = trunc i64 %140 to i32
  %142 = getelementptr inbounds i8, ptr %30, i64 20
  store i32 %141, ptr %142, align 4, !tbaa !90
  %143 = getelementptr inbounds i8, ptr %30, i64 24
  store ptr %29, ptr %143, align 8, !tbaa !91
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %31) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(144) %31, i8 0, i64 144, i1 false)
  store i32 28, ptr %31, align 8, !tbaa !92
  %144 = call noundef i64 @_ZSt4sizeI31VkPipelineShaderStageCreateInfoLm2EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(96) %13) #8
  %145 = trunc i64 %144 to i32
  %146 = getelementptr inbounds i8, ptr %31, i64 20
  store i32 %145, ptr %146, align 4, !tbaa !94
  %147 = getelementptr inbounds i8, ptr %31, i64 24
  store ptr %13, ptr %147, align 8, !tbaa !95
  %148 = getelementptr inbounds i8, ptr %31, i64 32
  store ptr %21, ptr %148, align 8, !tbaa !96
  %149 = getelementptr inbounds i8, ptr %31, i64 40
  store ptr %22, ptr %149, align 8, !tbaa !97
  %150 = getelementptr inbounds i8, ptr %31, i64 56
  store ptr %23, ptr %150, align 8, !tbaa !98
  %151 = getelementptr inbounds i8, ptr %31, i64 64
  store ptr %24, ptr %151, align 8, !tbaa !99
  %152 = getelementptr inbounds i8, ptr %31, i64 72
  store ptr %25, ptr %152, align 8, !tbaa !100
  %153 = getelementptr inbounds i8, ptr %31, i64 80
  store ptr %26, ptr %153, align 8, !tbaa !101
  %154 = getelementptr inbounds i8, ptr %31, i64 88
  store ptr %28, ptr %154, align 8, !tbaa !102
  %155 = getelementptr inbounds i8, ptr %31, i64 96
  store ptr %30, ptr %155, align 8, !tbaa !103
  %156 = load ptr, ptr %32, align 8, !tbaa !8
  %157 = call noundef ptr @_ZNK10RendererVK17GetPipelineLayoutEv(ptr noundef nonnull align 16 dereferenceable(1936) %156)
  %158 = getelementptr inbounds i8, ptr %31, i64 104
  store ptr %157, ptr %158, align 8, !tbaa !104
  %159 = icmp eq i32 %6, 1
  %160 = load ptr, ptr %32, align 8, !tbaa !8
  br i1 %159, label %161, label %163

161:                                              ; preds = %135
  %162 = call noundef ptr @_ZNK10RendererVK13GetRenderPassEv(ptr noundef nonnull align 16 dereferenceable(1936) %160)
  br label %165

163:                                              ; preds = %135
  %164 = call noundef ptr @_ZNK10RendererVK19GetRenderPassShadowEv(ptr noundef nonnull align 16 dereferenceable(1936) %160)
  br label %165

165:                                              ; preds = %163, %161
  %166 = phi ptr [ %162, %161 ], [ %164, %163 ]
  %167 = getelementptr inbounds i8, ptr %31, i64 112
  store ptr %166, ptr %167, align 8, !tbaa !105
  %168 = load ptr, ptr %32, align 8, !tbaa !8
  %169 = call noundef ptr @_ZNK10RendererVK9GetDeviceEv(ptr noundef nonnull align 16 dereferenceable(1936) %168)
  %170 = getelementptr inbounds i8, ptr %0, i64 32
  %171 = invoke i32 @vkCreateGraphicsPipelines(ptr noundef %169, ptr noundef null, i32 noundef 1, ptr noundef nonnull %31, ptr noundef null, ptr noundef nonnull %170)
          to label %172 unwind label %174

172:                                              ; preds = %165
  invoke void @_Z18FatalErrorIfFailed8VkResult(i32 noundef %171)
          to label %173 unwind label %174

173:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %31) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %13) #8
  ret void

174:                                              ; preds = %172, %165
  %175 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %31) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #8
  br label %176

176:                                              ; preds = %174, %129
  %.pn = phi { ptr, i32 } [ %175, %174 ], [ %130, %129 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  br label %177

177:                                              ; preds = %55, %74, %176, %88
  %.pn34.pn = phi { ptr, i32 } [ %89, %88 ], [ %.pn, %176 ], [ %75, %74 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %13) #8
  call void @_ZN3JPH8RefConstI13PixelShaderVKED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35) #8
  br label %178

178:                                              ; preds = %177, %49
  %.pn34.pn.pn = phi { ptr, i32 } [ %.pn34.pn, %177 ], [ %50, %49 ]
  call void @_ZN3JPH8RefConstI14VertexShaderVKED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  br label %179

179:                                              ; preds = %178, %47
  %.pn34.pn.pn.pn = phi { ptr, i32 } [ %.pn34.pn.pn, %178 ], [ %48, %47 ]
  call void @_ZN13PipelineStateD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #8
  resume { ptr, i32 } %.pn34.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13PipelineStateC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstI14VertexShaderVKEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstI13PixelShaderVKEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #3 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) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH7AlignUpIjEET_S1_m(i32 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt4sizeI14VkDynamicStateLm2EEmRAT0__KT_(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt4sizeI31VkPipelineShaderStageCreateInfoLm2EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10RendererVK17GetPipelineLayoutEv(ptr noundef nonnull align 16 dereferenceable(1936)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10RendererVK13GetRenderPassEv(ptr noundef nonnull align 16 dereferenceable(1936)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10RendererVK19GetRenderPassShadowEv(ptr noundef nonnull align 16 dereferenceable(1936)) local_unnamed_addr #5 align 2

declare void @_Z18FatalErrorIfFailed8VkResult(i32 noundef) local_unnamed_addr #7

declare i32 @vkCreateGraphicsPipelines(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10RendererVK9GetDeviceEv(ptr noundef nonnull align 16 dereferenceable(1936)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayI33VkVertexInputAttributeDescriptionNS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8RefConstI13PixelShaderVKED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8RefConstI14VertexShaderVKED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13PipelineStateD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

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 = { 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 #3 = { inlinehint 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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: write) }
attributes #7 = { "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 }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTS15PipelineStateVK", !10, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !11, i64 32}
!10 = !{!"_ZTS13PipelineState"}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSN3JPH8RefConstI14VertexShaderVKEE", !11, i64 0}
!14 = !{!"_ZTSN3JPH8RefConstI13PixelShaderVKEE", !11, i64 0}
!15 = !{i64 0, i64 4, !16, i64 8, i64 8, !18, i64 16, i64 4, !19, i64 20, i64 4, !21, i64 24, i64 8, !18, i64 32, i64 8, !18, i64 40, i64 8, !18}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS15VkStructureType", !12, i64 0}
!18 = !{!11, !11, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !12, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTS21VkShaderStageFlagBits", !12, i64 0}
!23 = !{!24, !20, i64 4}
!24 = !{!"_ZTS33VkVertexInputAttributeDescription", !20, i64 0, !20, i64 4, !25, i64 8, !20, i64 12}
!25 = !{!"_ZTS8VkFormat", !12, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTSN13PipelineState17EInputDescriptionE", !12, i64 0}
!28 = !{!24, !25, i64 8}
!29 = !{!24, !20, i64 12}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !20, i64 0}
!33 = !{!"_ZTS31VkVertexInputBindingDescription", !20, i64 0, !20, i64 4, !34, i64 8}
!34 = !{!"_ZTS17VkVertexInputRate", !12, i64 0}
!35 = !{!33, !20, i64 4}
!36 = !{!33, !34, i64 8}
!37 = !{!24, !20, i64 0}
!38 = distinct !{!38, !31}
!39 = !{!40, !17, i64 0}
!40 = !{!"_ZTS36VkPipelineVertexInputStateCreateInfo", !17, i64 0, !11, i64 8, !20, i64 16, !20, i64 20, !11, i64 24, !20, i64 32, !11, i64 40}
!41 = !{!40, !20, i64 20}
!42 = !{!40, !11, i64 24}
!43 = !{!40, !20, i64 32}
!44 = !{!40, !11, i64 40}
!45 = !{!46, !17, i64 0}
!46 = !{!"_ZTS38VkPipelineInputAssemblyStateCreateInfo", !17, i64 0, !11, i64 8, !20, i64 16, !47, i64 20, !20, i64 24}
!47 = !{!"_ZTS19VkPrimitiveTopology", !12, i64 0}
!48 = !{!46, !47, i64 20}
!49 = !{!50, !17, i64 0}
!50 = !{!"_ZTS33VkPipelineViewportStateCreateInfo", !17, i64 0, !11, i64 8, !20, i64 16, !20, i64 20, !11, i64 24, !20, i64 32, !11, i64 40}
!51 = !{!50, !20, i64 20}
!52 = !{!50, !20, i64 32}
!53 = !{!54, !17, i64 0}
!54 = !{!"_ZTS38VkPipelineRasterizationStateCreateInfo", !17, i64 0, !11, i64 8, !20, i64 16, !20, i64 20, !20, i64 24, !55, i64 28, !20, i64 32, !56, i64 36, !20, i64 40, !57, i64 44, !57, i64 48, !57, i64 52, !57, i64 56}
!55 = !{!"_ZTS13VkPolygonMode", !12, i64 0}
!56 = !{!"_ZTS11VkFrontFace", !12, i64 0}
!57 = !{!"float", !12, i64 0}
!58 = !{!54, !20, i64 24}
!59 = !{!54, !55, i64 28}
!60 = !{!54, !57, i64 56}
!61 = !{!54, !20, i64 32}
!62 = !{!54, !20, i64 40}
!63 = !{!64, !17, i64 0}
!64 = !{!"_ZTS36VkPipelineMultisampleStateCreateInfo", !17, i64 0, !11, i64 8, !20, i64 16, !65, i64 20, !20, i64 24, !57, i64 28, !11, i64 32, !20, i64 40, !20, i64 44}
!65 = !{!"_ZTS21VkSampleCountFlagBits", !12, i64 0}
!66 = !{!64, !65, i64 20}
!67 = !{!68, !17, i64 0}
!68 = !{!"_ZTS37VkPipelineDepthStencilStateCreateInfo", !17, i64 0, !11, i64 8, !20, i64 16, !20, i64 20, !20, i64 24, !69, i64 28, !20, i64 32, !20, i64 36, !70, i64 40, !70, i64 68, !57, i64 96, !57, i64 100}
!69 = !{!"_ZTS11VkCompareOp", !12, i64 0}
!70 = !{!"_ZTS16VkStencilOpState", !71, i64 0, !71, i64 4, !71, i64 8, !69, i64 12, !20, i64 16, !20, i64 20, !20, i64 24}
!71 = !{!"_ZTS11VkStencilOp", !12, i64 0}
!72 = !{!68, !20, i64 20}
!73 = !{!68, !20, i64 24}
!74 = !{!68, !69, i64 28}
!75 = !{!76, !20, i64 28}
!76 = !{!"_ZTS35VkPipelineColorBlendAttachmentState", !20, i64 0, !77, i64 4, !77, i64 8, !78, i64 12, !77, i64 16, !77, i64 20, !78, i64 24, !20, i64 28}
!77 = !{!"_ZTS13VkBlendFactor", !12, i64 0}
!78 = !{!"_ZTS9VkBlendOp", !12, i64 0}
!79 = !{!76, !20, i64 0}
!80 = !{!76, !77, i64 4}
!81 = !{!76, !77, i64 8}
!82 = !{!83, !17, i64 0}
!83 = !{!"_ZTS35VkPipelineColorBlendStateCreateInfo", !17, i64 0, !11, i64 8, !20, i64 16, !20, i64 20, !84, i64 24, !20, i64 28, !11, i64 32, !12, i64 40}
!84 = !{!"_ZTS9VkLogicOp", !12, i64 0}
!85 = !{!83, !84, i64 24}
!86 = !{!83, !20, i64 28}
!87 = !{!83, !11, i64 32}
!88 = !{!89, !17, i64 0}
!89 = !{!"_ZTS32VkPipelineDynamicStateCreateInfo", !17, i64 0, !11, i64 8, !20, i64 16, !20, i64 20, !11, i64 24}
!90 = !{!89, !20, i64 20}
!91 = !{!89, !11, i64 24}
!92 = !{!93, !17, i64 0}
!93 = !{!"_ZTS28VkGraphicsPipelineCreateInfo", !17, i64 0, !11, i64 8, !20, i64 16, !20, i64 20, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !20, i64 120, !11, i64 128, !20, i64 136}
!94 = !{!93, !20, i64 20}
!95 = !{!93, !11, i64 24}
!96 = !{!93, !11, i64 32}
!97 = !{!93, !11, i64 40}
!98 = !{!93, !11, i64 56}
!99 = !{!93, !11, i64 64}
!100 = !{!93, !11, i64 72}
!101 = !{!93, !11, i64 80}
!102 = !{!93, !11, i64 88}
!103 = !{!93, !11, i64 96}
!104 = !{!93, !11, i64 104}
!105 = !{!93, !11, i64 112}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass