; LLVM IR from Dragons-Lake/REI :: sources/REI/3rdParty/spirv_reflect (spirv_reflect)

; 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.Parser = type { i64, ptr, i32, ptr, i32, i32, i32, %struct.String, i64, ptr, i32, i32, ptr, i32, ptr, i32, i32, i32 }
%struct.String = type { i32, ptr }
%struct.SpvReflectShaderModule = type { i32, ptr, i32, i32, ptr, i32, i32, ptr, ptr, i32, i32, i32, ptr, i32, [64 x %struct.SpvReflectDescriptorSet], i32, ptr, i32, ptr, i32, ptr, ptr }
%struct.SpvReflectDescriptorSet = type { i32, i32, ptr }
%struct.Internal = type { i64, ptr, i32, i64, ptr }
%struct.SpvReflectEntryPoint = type { ptr, i32, i32, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, %struct.LocalSize, i32, i32 }
%struct.LocalSize = type { i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @spvReflectCreateShaderModule(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.Parser, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store i64 %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  %13 = load ptr, ptr %7, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 1168, i1 false)
  %14 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 40) #6
  %15 = load ptr, ptr %7, align 8, !tbaa !9
  %16 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %15, i32 0, i32 21
  store ptr %14, ptr %16, align 8, !tbaa !11
  %17 = load ptr, ptr %7, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %17, i32 0, i32 21
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %3
  store i32 3, ptr %4, align 4
  br label %281

22:                                               ; preds = %3
  %23 = load i64, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %24, i32 0, i32 21
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %struct.Internal, ptr %26, i32 0, i32 0
  store i64 %23, ptr %27, align 8, !tbaa !14
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %28, i32 0, i32 21
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct.Internal, ptr %30, i32 0, i32 0
  %32 = load i64, ptr %31, align 8, !tbaa !14
  %33 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %32) #6
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %34, i32 0, i32 21
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct.Internal, ptr %36, i32 0, i32 1
  store ptr %33, ptr %37, align 8, !tbaa !16
  %38 = load i64, ptr %5, align 8, !tbaa !5
  %39 = udiv i64 %38, 4
  %40 = trunc i64 %39 to i32
  %41 = load ptr, ptr %7, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %41, i32 0, i32 21
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.Internal, ptr %43, i32 0, i32 2
  store i32 %40, ptr %44, align 8, !tbaa !17
  %45 = load ptr, ptr %7, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %45, i32 0, i32 21
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct.Internal, ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %63

51:                                               ; preds = %22
  %52 = load ptr, ptr %7, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %52, i32 0, i32 21
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %62

56:                                               ; preds = %51
  %57 = load ptr, ptr %7, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %57, i32 0, i32 21
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  call void @free(ptr noundef %59) #7
  %60 = load ptr, ptr %7, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %60, i32 0, i32 21
  store ptr null, ptr %61, align 8, !tbaa !11
  br label %62

62:                                               ; preds = %56, %51
  store i32 3, ptr %4, align 4
  br label %281

63:                                               ; preds = %22
  %64 = load ptr, ptr %7, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %64, i32 0, i32 21
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct.Internal, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = load ptr, ptr %6, align 8, !tbaa !9
  %70 = load i64, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 1 %69, i64 %70, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %8) #7
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %71 = load ptr, ptr %7, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %71, i32 0, i32 21
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = getelementptr inbounds %struct.Internal, ptr %73, i32 0, i32 0
  %75 = load i64, ptr %74, align 8, !tbaa !14
  %76 = load ptr, ptr %7, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %76, i32 0, i32 21
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = getelementptr inbounds %struct.Internal, ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = call i32 @CreateParser(i64 noundef %75, ptr noundef %80, ptr noundef %8)
  store i32 %81, ptr %9, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %82 = load ptr, ptr %7, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %82, i32 0, i32 21
  %84 = load ptr, ptr %83, align 8, !tbaa !11
  %85 = getelementptr inbounds %struct.Internal, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  store ptr %86, ptr %10, align 8, !tbaa !9
  %87 = load ptr, ptr %10, align 8, !tbaa !9
  %88 = getelementptr inbounds i32, ptr %87, i64 2
  %89 = load i32, ptr %88, align 4, !tbaa !18
  %90 = and i32 %89, -65536
  %91 = lshr i32 %90, 16
  %92 = load ptr, ptr %7, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %92, i32 0, i32 0
  store i32 %91, ptr %93, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %94 = load i32, ptr %9, align 4, !tbaa !18
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %63
  %97 = call i32 @ParseNodes(ptr noundef %8)
  store i32 %97, ptr %9, align 4, !tbaa !18
  br label %98

98:                                               ; preds = %96, %63
  %99 = load i32, ptr %9, align 4, !tbaa !18
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %98
  %102 = call i32 @ParseStrings(ptr noundef %8)
  store i32 %102, ptr %9, align 4, !tbaa !18
  br label %103

103:                                              ; preds = %101, %98
  %104 = load i32, ptr %9, align 4, !tbaa !18
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %109

106:                                              ; preds = %103
  %107 = load ptr, ptr %7, align 8, !tbaa !9
  %108 = call i32 @ParseSource(ptr noundef %8, ptr noundef %107)
  store i32 %108, ptr %9, align 4, !tbaa !18
  br label %109

109:                                              ; preds = %106, %103
  %110 = load i32, ptr %9, align 4, !tbaa !18
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %114

112:                                              ; preds = %109
  %113 = call i32 @ParseFunctions(ptr noundef %8)
  store i32 %113, ptr %9, align 4, !tbaa !18
  br label %114

114:                                              ; preds = %112, %109
  %115 = load i32, ptr %9, align 4, !tbaa !18
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %119

117:                                              ; preds = %114
  %118 = call i32 @ParseMemberCounts(ptr noundef %8)
  store i32 %118, ptr %9, align 4, !tbaa !18
  br label %119

119:                                              ; preds = %117, %114
  %120 = load i32, ptr %9, align 4, !tbaa !18
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %124

122:                                              ; preds = %119
  %123 = call i32 @ParseNames(ptr noundef %8)
  store i32 %123, ptr %9, align 4, !tbaa !18
  br label %124

124:                                              ; preds = %122, %119
  %125 = load i32, ptr %9, align 4, !tbaa !18
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %129

127:                                              ; preds = %124
  %128 = call i32 @ParseDecorations(ptr noundef %8)
  store i32 %128, ptr %9, align 4, !tbaa !18
  br label %129

129:                                              ; preds = %127, %124
  %130 = load i32, ptr %9, align 4, !tbaa !18
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %132, label %161

132:                                              ; preds = %129
  %133 = getelementptr inbounds %struct.Parser, ptr %8, i32 0, i32 4
  %134 = load i32, ptr %133, align 8, !tbaa !20
  %135 = load ptr, ptr %7, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %135, i32 0, i32 5
  store i32 %134, ptr %136, align 8, !tbaa !23
  %137 = getelementptr inbounds %struct.Parser, ptr %8, i32 0, i32 5
  %138 = load i32, ptr %137, align 4, !tbaa !24
  %139 = load ptr, ptr %7, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %139, i32 0, i32 6
  store i32 %138, ptr %140, align 4, !tbaa !25
  %141 = load ptr, ptr %7, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %141, i32 0, i32 13
  store i32 0, ptr %142, align 8, !tbaa !26
  %143 = load ptr, ptr %7, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %143, i32 0, i32 14
  %145 = getelementptr inbounds [64 x %struct.SpvReflectDescriptorSet], ptr %144, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %145, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !18
  br label %146

146:                                              ; preds = %157, %132
  %147 = load i32, ptr %11, align 4, !tbaa !18
  %148 = icmp ult i32 %147, 64
  br i1 %148, label %150, label %149

149:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %160

150:                                              ; preds = %146
  %151 = load ptr, ptr %7, align 8, !tbaa !9
  %152 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %151, i32 0, i32 14
  %153 = load i32, ptr %11, align 4, !tbaa !18
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds [64 x %struct.SpvReflectDescriptorSet], ptr %152, i64 0, i64 %154
  %156 = getelementptr inbounds %struct.SpvReflectDescriptorSet, ptr %155, i32 0, i32 0
  store i32 -1, ptr %156, align 8, !tbaa !27
  br label %157

157:                                              ; preds = %150
  %158 = load i32, ptr %11, align 4, !tbaa !18
  %159 = add i32 %158, 1
  store i32 %159, ptr %11, align 4, !tbaa !18
  br label %146, !llvm.loop !29

160:                                              ; preds = %149
  br label %161

161:                                              ; preds = %160, %129
  %162 = load i32, ptr %9, align 4, !tbaa !18
  %163 = icmp eq i32 %162, 0
  br i1 %163, label %164, label %167

164:                                              ; preds = %161
  %165 = load ptr, ptr %7, align 8, !tbaa !9
  %166 = call i32 @ParseTypes(ptr noundef %8, ptr noundef %165)
  store i32 %166, ptr %9, align 4, !tbaa !18
  br label %167

167:                                              ; preds = %164, %161
  %168 = load i32, ptr %9, align 4, !tbaa !18
  %169 = icmp eq i32 %168, 0
  br i1 %169, label %170, label %173

170:                                              ; preds = %167
  %171 = load ptr, ptr %7, align 8, !tbaa !9
  %172 = call i32 @ParseDescriptorBindings(ptr noundef %8, ptr noundef %171)
  store i32 %172, ptr %9, align 4, !tbaa !18
  br label %173

173:                                              ; preds = %170, %167
  %174 = load i32, ptr %9, align 4, !tbaa !18
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %179

176:                                              ; preds = %173
  %177 = load ptr, ptr %7, align 8, !tbaa !9
  %178 = call i32 @ParseDescriptorType(ptr noundef %177)
  store i32 %178, ptr %9, align 4, !tbaa !18
  br label %179

179:                                              ; preds = %176, %173
  %180 = load i32, ptr %9, align 4, !tbaa !18
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %185

182:                                              ; preds = %179
  %183 = load ptr, ptr %7, align 8, !tbaa !9
  %184 = call i32 @ParseUAVCounterBindings(ptr noundef %183)
  store i32 %184, ptr %9, align 4, !tbaa !18
  br label %185

185:                                              ; preds = %182, %179
  %186 = load i32, ptr %9, align 4, !tbaa !18
  %187 = icmp eq i32 %186, 0
  br i1 %187, label %188, label %191

188:                                              ; preds = %185
  %189 = load ptr, ptr %7, align 8, !tbaa !9
  %190 = call i32 @ParseDescriptorBlocks(ptr noundef %8, ptr noundef %189)
  store i32 %190, ptr %9, align 4, !tbaa !18
  br label %191

191:                                              ; preds = %188, %185
  %192 = load i32, ptr %9, align 4, !tbaa !18
  %193 = icmp eq i32 %192, 0
  br i1 %193, label %194, label %197

194:                                              ; preds = %191
  %195 = load ptr, ptr %7, align 8, !tbaa !9
  %196 = call i32 @ParsePushConstantBlocks(ptr noundef %8, ptr noundef %195)
  store i32 %196, ptr %9, align 4, !tbaa !18
  br label %197

197:                                              ; preds = %194, %191
  %198 = load i32, ptr %9, align 4, !tbaa !18
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %200, label %203

200:                                              ; preds = %197
  %201 = load ptr, ptr %7, align 8, !tbaa !9
  %202 = call i32 @ParseEntryPoints(ptr noundef %8, ptr noundef %201)
  store i32 %202, ptr %9, align 4, !tbaa !18
  br label %203

203:                                              ; preds = %200, %197
  %204 = load i32, ptr %9, align 4, !tbaa !18
  %205 = icmp eq i32 %204, 0
  br i1 %205, label %206, label %256

206:                                              ; preds = %203
  %207 = load ptr, ptr %7, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %207, i32 0, i32 3
  %209 = load i32, ptr %208, align 4, !tbaa !31
  %210 = icmp ugt i32 %209, 0
  br i1 %210, label %211, label %256

211:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %212 = load ptr, ptr %7, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %212, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !32
  %215 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %214, i64 0
  store ptr %215, ptr %12, align 8, !tbaa !9
  %216 = load ptr, ptr %12, align 8, !tbaa !9
  %217 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !33
  %219 = load ptr, ptr %7, align 8, !tbaa !9
  %220 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %219, i32 0, i32 1
  store ptr %218, ptr %220, align 8, !tbaa !36
  %221 = load ptr, ptr %12, align 8, !tbaa !9
  %222 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %221, i32 0, i32 1
  %223 = load i32, ptr %222, align 8, !tbaa !37
  %224 = load ptr, ptr %7, align 8, !tbaa !9
  %225 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %224, i32 0, i32 2
  store i32 %223, ptr %225, align 8, !tbaa !38
  %226 = load ptr, ptr %12, align 8, !tbaa !9
  %227 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %226, i32 0, i32 2
  %228 = load i32, ptr %227, align 4, !tbaa !39
  %229 = load ptr, ptr %7, align 8, !tbaa !9
  %230 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %229, i32 0, i32 9
  store i32 %228, ptr %230, align 8, !tbaa !40
  %231 = load ptr, ptr %12, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %231, i32 0, i32 3
  %233 = load i32, ptr %232, align 8, !tbaa !41
  %234 = load ptr, ptr %7, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %234, i32 0, i32 10
  store i32 %233, ptr %235, align 4, !tbaa !42
  %236 = load ptr, ptr %12, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %236, i32 0, i32 4
  %238 = load i32, ptr %237, align 4, !tbaa !43
  %239 = load ptr, ptr %7, align 8, !tbaa !9
  %240 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %239, i32 0, i32 15
  store i32 %238, ptr %240, align 8, !tbaa !44
  %241 = load ptr, ptr %12, align 8, !tbaa !9
  %242 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %241, i32 0, i32 5
  %243 = load ptr, ptr %242, align 8, !tbaa !45
  %244 = load ptr, ptr %7, align 8, !tbaa !9
  %245 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %244, i32 0, i32 16
  store ptr %243, ptr %245, align 8, !tbaa !46
  %246 = load ptr, ptr %12, align 8, !tbaa !9
  %247 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %246, i32 0, i32 6
  %248 = load i32, ptr %247, align 8, !tbaa !47
  %249 = load ptr, ptr %7, align 8, !tbaa !9
  %250 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %249, i32 0, i32 17
  store i32 %248, ptr %250, align 8, !tbaa !48
  %251 = load ptr, ptr %12, align 8, !tbaa !9
  %252 = getelementptr inbounds %struct.SpvReflectEntryPoint, ptr %251, i32 0, i32 7
  %253 = load ptr, ptr %252, align 8, !tbaa !49
  %254 = load ptr, ptr %7, align 8, !tbaa !9
  %255 = getelementptr inbounds %struct.SpvReflectShaderModule, ptr %254, i32 0, i32 18
  store ptr %253, ptr %255, align 8, !tbaa !50
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %256

256:                                              ; preds = %211, %206, %203
  %257 = load i32, ptr %9, align 4, !tbaa !18
  %258 = icmp eq i32 %257, 0
  br i1 %258, label %259, label %262

259:                                              ; preds = %256
  %260 = load ptr, ptr %7, align 8, !tbaa !9
  %261 = call i32 @DisambiguateStorageBufferSrvUav(ptr noundef %260)
  store i32 %261, ptr %9, align 4, !tbaa !18
  br label %262

262:                                              ; preds = %259, %256
  %263 = load i32, ptr %9, align 4, !tbaa !18
  %264 = icmp eq i32 %263, 0
  br i1 %264, label %265, label %268

265:                                              ; preds = %262
  %266 = load ptr, ptr %7, align 8, !tbaa !9
  %267 = call i32 @SynchronizeDescriptorSets(ptr noundef %266)
  store i32 %267, ptr %9, align 4, !tbaa !18
  br label %268

268:                                              ; preds = %265, %262
  %269 = load i32, ptr %9, align 4, !tbaa !18
  %270 = icmp eq i32 %269, 0
  br i1 %270, label %271, label %274

271:                                              ; preds = %268
  %272 = load ptr, ptr %7, align 8, !tbaa !9
  %273 = call i32 @ParseExecutionModes(ptr noundef %8, ptr noundef %272)
  store i32 %273, ptr %9, align 4, !tbaa !18
  br label %274

274:                                              ; preds = %271, %268
  %275 = load i32, ptr %9, align 4, !tbaa !18
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %279

277:                                              ; preds = %274
  %278 = load ptr, ptr %7, align 8, !tbaa !9
  call void @spvReflectDestroyShaderModule(ptr noundef %278)
  br label %279

279:                                              ; preds = %277, %274
  call void @DestroyParser(ptr noundef %8)
  %280 = load i32, ptr %9, align 4, !tbaa !18
  store i32 %280, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #7
  br label %281

281:                                              ; preds = %279, %62, %21
  %282 = load i32, ptr %4, align 4
  ret i32 %282
}

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5

; Function Attrs: nounwind uwtable
declare hidden i32 @CreateParser(i64 noundef, ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseNodes(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseStrings(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseSource(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseFunctions(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseMemberCounts(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseNames(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseDecorations(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseTypes(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseDescriptorBindings(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseDescriptorType(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseUAVCounterBindings(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseDescriptorBlocks(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParsePushConstantBlocks(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseEntryPoints(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @DisambiguateStorageBufferSrvUav(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @SynchronizeDescriptorSets(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseExecutionModes(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @spvReflectDestroyShaderModule(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @DestroyParser(ptr noundef) #0

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nounwind allocsize(0,1) "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind allocsize(0,1) }
attributes #7 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 1160}
!12 = !{!"SpvReflectShaderModule", !13, i64 0, !10, i64 8, !13, i64 16, !13, i64 20, !10, i64 24, !13, i64 32, !13, i64 36, !10, i64 40, !10, i64 48, !13, i64 56, !13, i64 60, !13, i64 64, !10, i64 72, !13, i64 80, !7, i64 88, !13, i64 1112, !10, i64 1120, !13, i64 1128, !10, i64 1136, !13, i64 1144, !10, i64 1152, !10, i64 1160}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"Internal", !6, i64 0, !10, i64 8, !13, i64 16, !6, i64 24, !10, i64 32}
!16 = !{!15, !10, i64 8}
!17 = !{!15, !13, i64 16}
!18 = !{!13, !13, i64 0}
!19 = !{!12, !13, i64 0}
!20 = !{!21, !13, i64 32}
!21 = !{!"Parser", !6, i64 0, !10, i64 8, !13, i64 16, !10, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !22, i64 48, !6, i64 64, !10, i64 72, !13, i64 80, !13, i64 84, !10, i64 88, !13, i64 96, !10, i64 104, !13, i64 112, !13, i64 116, !13, i64 120}
!22 = !{!"String", !13, i64 0, !10, i64 8}
!23 = !{!12, !13, i64 32}
!24 = !{!21, !13, i64 36}
!25 = !{!12, !13, i64 36}
!26 = !{!12, !13, i64 80}
!27 = !{!28, !13, i64 0}
!28 = !{!"SpvReflectDescriptorSet", !13, i64 0, !13, i64 4, !10, i64 8}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!12, !13, i64 20}
!32 = !{!12, !10, i64 24}
!33 = !{!34, !10, i64 0}
!34 = !{!"SpvReflectEntryPoint", !10, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !10, i64 24, !13, i64 32, !10, i64 40, !13, i64 48, !10, i64 56, !13, i64 64, !10, i64 72, !13, i64 80, !10, i64 88, !35, i64 96, !13, i64 108, !13, i64 112}
!35 = !{!"LocalSize", !13, i64 0, !13, i64 4, !13, i64 8}
!36 = !{!12, !10, i64 8}
!37 = !{!34, !13, i64 8}
!38 = !{!12, !13, i64 16}
!39 = !{!34, !13, i64 12}
!40 = !{!12, !13, i64 56}
!41 = !{!34, !13, i64 16}
!42 = !{!12, !13, i64 60}
!43 = !{!34, !13, i64 20}
!44 = !{!12, !13, i64 1112}
!45 = !{!34, !10, i64 24}
!46 = !{!12, !10, i64 1120}
!47 = !{!34, !13, i64 32}
!48 = !{!12, !13, i64 1128}
!49 = !{!34, !10, i64 40}
!50 = !{!12, !10, i64 1136}


; 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.Parser = type { i64, ptr, i32, ptr, i32, i32, i32, %struct.String, i64, ptr, i32, i32, ptr, i32, ptr, i32, i32, i32 }
%struct.String = type { i32, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @spvReflectCreateShaderModule(i64 noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.Parser, align 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1168) %2, i8 0, i64 1160, i1 false)
  %5 = tail call noalias dereferenceable_or_null(40) ptr @calloc(i64 noundef 1, i64 noundef 40) #6
  %6 = getelementptr inbounds i8, ptr %2, i64 1160
  store ptr %5, ptr %6, align 8, !tbaa !5
  %7 = icmp eq ptr %5, null
  br i1 %7, label %168, label %8

8:                                                ; preds = %3
  store i64 %0, ptr %5, align 8, !tbaa !11
  %9 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %0) #6
  %10 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %9, ptr %10, align 8, !tbaa !14
  %11 = lshr i64 %0, 2
  %12 = trunc i64 %11 to i32
  %13 = getelementptr inbounds i8, ptr %5, i64 16
  store i32 %12, ptr %13, align 8, !tbaa !15
  %14 = icmp eq ptr %9, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %8
  tail call void @free(ptr noundef nonnull %5) #7
  store ptr null, ptr %6, align 8, !tbaa !5
  br label %168

16:                                               ; preds = %8
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %9, ptr align 1 %1, i64 %0, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %4, i8 0, i64 128, i1 false)
  %17 = call i32 @CreateParser(i64 noundef %0, ptr noundef nonnull %9, ptr noundef nonnull %4)
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load i32, ptr %21, align 4, !tbaa !16
  %23 = lshr i32 %22, 16
  store i32 %23, ptr %2, align 8, !tbaa !17
  %24 = icmp eq i32 %17, 0
  br i1 %24, label %25, label %.thread132

25:                                               ; preds = %16
  %26 = call i32 @ParseNodes(ptr noundef nonnull %4)
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %.thread132

28:                                               ; preds = %25
  %29 = call i32 @ParseStrings(ptr noundef nonnull %4)
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %.thread132

31:                                               ; preds = %28
  %32 = call i32 @ParseSource(ptr noundef nonnull %4, ptr noundef nonnull %2)
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %.thread132

34:                                               ; preds = %31
  %35 = call i32 @ParseFunctions(ptr noundef nonnull %4)
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %.thread132

37:                                               ; preds = %34
  %38 = call i32 @ParseMemberCounts(ptr noundef nonnull %4)
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %.thread132

40:                                               ; preds = %37
  %41 = call i32 @ParseNames(ptr noundef nonnull %4)
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %.thread132

43:                                               ; preds = %40
  %44 = call i32 @ParseDecorations(ptr noundef nonnull %4)
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %.critedge, label %.thread132

.critedge:                                        ; preds = %43
  %46 = getelementptr inbounds i8, ptr %4, i64 32
  %47 = getelementptr inbounds i8, ptr %2, i64 32
  %48 = load <2 x i32>, ptr %46, align 8, !tbaa !16
  store <2 x i32> %48, ptr %47, align 8, !tbaa !16
  %49 = getelementptr inbounds i8, ptr %2, i64 80
  store i32 0, ptr %49, align 8, !tbaa !18
  %50 = getelementptr inbounds i8, ptr %2, i64 88
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1024) %50, i8 0, i64 1024, i1 false)
  store i32 -1, ptr %50, align 8, !tbaa !19
  %51 = getelementptr inbounds i8, ptr %2, i64 104
  store i32 -1, ptr %51, align 8, !tbaa !19
  %52 = getelementptr inbounds i8, ptr %2, i64 120
  store i32 -1, ptr %52, align 8, !tbaa !19
  %53 = getelementptr inbounds i8, ptr %2, i64 136
  store i32 -1, ptr %53, align 8, !tbaa !19
  %54 = getelementptr inbounds i8, ptr %2, i64 152
  store i32 -1, ptr %54, align 8, !tbaa !19
  %55 = getelementptr inbounds i8, ptr %2, i64 168
  store i32 -1, ptr %55, align 8, !tbaa !19
  %56 = getelementptr inbounds i8, ptr %2, i64 184
  store i32 -1, ptr %56, align 8, !tbaa !19
  %57 = getelementptr inbounds i8, ptr %2, i64 200
  store i32 -1, ptr %57, align 8, !tbaa !19
  %58 = getelementptr inbounds i8, ptr %2, i64 216
  store i32 -1, ptr %58, align 8, !tbaa !19
  %59 = getelementptr inbounds i8, ptr %2, i64 232
  store i32 -1, ptr %59, align 8, !tbaa !19
  %60 = getelementptr inbounds i8, ptr %2, i64 248
  store i32 -1, ptr %60, align 8, !tbaa !19
  %61 = getelementptr inbounds i8, ptr %2, i64 264
  store i32 -1, ptr %61, align 8, !tbaa !19
  %62 = getelementptr inbounds i8, ptr %2, i64 280
  store i32 -1, ptr %62, align 8, !tbaa !19
  %63 = getelementptr inbounds i8, ptr %2, i64 296
  store i32 -1, ptr %63, align 8, !tbaa !19
  %64 = getelementptr inbounds i8, ptr %2, i64 312
  store i32 -1, ptr %64, align 8, !tbaa !19
  %65 = getelementptr inbounds i8, ptr %2, i64 328
  store i32 -1, ptr %65, align 8, !tbaa !19
  %66 = getelementptr inbounds i8, ptr %2, i64 344
  store i32 -1, ptr %66, align 8, !tbaa !19
  %67 = getelementptr inbounds i8, ptr %2, i64 360
  store i32 -1, ptr %67, align 8, !tbaa !19
  %68 = getelementptr inbounds i8, ptr %2, i64 376
  store i32 -1, ptr %68, align 8, !tbaa !19
  %69 = getelementptr inbounds i8, ptr %2, i64 392
  store i32 -1, ptr %69, align 8, !tbaa !19
  %70 = getelementptr inbounds i8, ptr %2, i64 408
  store i32 -1, ptr %70, align 8, !tbaa !19
  %71 = getelementptr inbounds i8, ptr %2, i64 424
  store i32 -1, ptr %71, align 8, !tbaa !19
  %72 = getelementptr inbounds i8, ptr %2, i64 440
  store i32 -1, ptr %72, align 8, !tbaa !19
  %73 = getelementptr inbounds i8, ptr %2, i64 456
  store i32 -1, ptr %73, align 8, !tbaa !19
  %74 = getelementptr inbounds i8, ptr %2, i64 472
  store i32 -1, ptr %74, align 8, !tbaa !19
  %75 = getelementptr inbounds i8, ptr %2, i64 488
  store i32 -1, ptr %75, align 8, !tbaa !19
  %76 = getelementptr inbounds i8, ptr %2, i64 504
  store i32 -1, ptr %76, align 8, !tbaa !19
  %77 = getelementptr inbounds i8, ptr %2, i64 520
  store i32 -1, ptr %77, align 8, !tbaa !19
  %78 = getelementptr inbounds i8, ptr %2, i64 536
  store i32 -1, ptr %78, align 8, !tbaa !19
  %79 = getelementptr inbounds i8, ptr %2, i64 552
  store i32 -1, ptr %79, align 8, !tbaa !19
  %80 = getelementptr inbounds i8, ptr %2, i64 568
  store i32 -1, ptr %80, align 8, !tbaa !19
  %81 = getelementptr inbounds i8, ptr %2, i64 584
  store i32 -1, ptr %81, align 8, !tbaa !19
  %82 = getelementptr inbounds i8, ptr %2, i64 600
  store i32 -1, ptr %82, align 8, !tbaa !19
  %83 = getelementptr inbounds i8, ptr %2, i64 616
  store i32 -1, ptr %83, align 8, !tbaa !19
  %84 = getelementptr inbounds i8, ptr %2, i64 632
  store i32 -1, ptr %84, align 8, !tbaa !19
  %85 = getelementptr inbounds i8, ptr %2, i64 648
  store i32 -1, ptr %85, align 8, !tbaa !19
  %86 = getelementptr inbounds i8, ptr %2, i64 664
  store i32 -1, ptr %86, align 8, !tbaa !19
  %87 = getelementptr inbounds i8, ptr %2, i64 680
  store i32 -1, ptr %87, align 8, !tbaa !19
  %88 = getelementptr inbounds i8, ptr %2, i64 696
  store i32 -1, ptr %88, align 8, !tbaa !19
  %89 = getelementptr inbounds i8, ptr %2, i64 712
  store i32 -1, ptr %89, align 8, !tbaa !19
  %90 = getelementptr inbounds i8, ptr %2, i64 728
  store i32 -1, ptr %90, align 8, !tbaa !19
  %91 = getelementptr inbounds i8, ptr %2, i64 744
  store i32 -1, ptr %91, align 8, !tbaa !19
  %92 = getelementptr inbounds i8, ptr %2, i64 760
  store i32 -1, ptr %92, align 8, !tbaa !19
  %93 = getelementptr inbounds i8, ptr %2, i64 776
  store i32 -1, ptr %93, align 8, !tbaa !19
  %94 = getelementptr inbounds i8, ptr %2, i64 792
  store i32 -1, ptr %94, align 8, !tbaa !19
  %95 = getelementptr inbounds i8, ptr %2, i64 808
  store i32 -1, ptr %95, align 8, !tbaa !19
  %96 = getelementptr inbounds i8, ptr %2, i64 824
  store i32 -1, ptr %96, align 8, !tbaa !19
  %97 = getelementptr inbounds i8, ptr %2, i64 840
  store i32 -1, ptr %97, align 8, !tbaa !19
  %98 = getelementptr inbounds i8, ptr %2, i64 856
  store i32 -1, ptr %98, align 8, !tbaa !19
  %99 = getelementptr inbounds i8, ptr %2, i64 872
  store i32 -1, ptr %99, align 8, !tbaa !19
  %100 = getelementptr inbounds i8, ptr %2, i64 888
  store i32 -1, ptr %100, align 8, !tbaa !19
  %101 = getelementptr inbounds i8, ptr %2, i64 904
  store i32 -1, ptr %101, align 8, !tbaa !19
  %102 = getelementptr inbounds i8, ptr %2, i64 920
  store i32 -1, ptr %102, align 8, !tbaa !19
  %103 = getelementptr inbounds i8, ptr %2, i64 936
  store i32 -1, ptr %103, align 8, !tbaa !19
  %104 = getelementptr inbounds i8, ptr %2, i64 952
  store i32 -1, ptr %104, align 8, !tbaa !19
  %105 = getelementptr inbounds i8, ptr %2, i64 968
  store i32 -1, ptr %105, align 8, !tbaa !19
  %106 = getelementptr inbounds i8, ptr %2, i64 984
  store i32 -1, ptr %106, align 8, !tbaa !19
  %107 = getelementptr inbounds i8, ptr %2, i64 1000
  store i32 -1, ptr %107, align 8, !tbaa !19
  %108 = getelementptr inbounds i8, ptr %2, i64 1016
  store i32 -1, ptr %108, align 8, !tbaa !19
  %109 = getelementptr inbounds i8, ptr %2, i64 1032
  store i32 -1, ptr %109, align 8, !tbaa !19
  %110 = getelementptr inbounds i8, ptr %2, i64 1048
  store i32 -1, ptr %110, align 8, !tbaa !19
  %111 = getelementptr inbounds i8, ptr %2, i64 1064
  store i32 -1, ptr %111, align 8, !tbaa !19
  %112 = getelementptr inbounds i8, ptr %2, i64 1080
  store i32 -1, ptr %112, align 8, !tbaa !19
  %113 = getelementptr inbounds i8, ptr %2, i64 1096
  store i32 -1, ptr %113, align 8, !tbaa !19
  %114 = call i32 @ParseTypes(ptr noundef nonnull %4, ptr noundef nonnull %2)
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %.thread132

116:                                              ; preds = %.critedge
  %117 = call i32 @ParseDescriptorBindings(ptr noundef nonnull %4, ptr noundef nonnull %2)
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %.thread132

119:                                              ; preds = %116
  %120 = call i32 @ParseDescriptorType(ptr noundef nonnull %2)
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %.thread132

122:                                              ; preds = %119
  %123 = call i32 @ParseUAVCounterBindings(ptr noundef nonnull %2)
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %.thread132

125:                                              ; preds = %122
  %126 = call i32 @ParseDescriptorBlocks(ptr noundef nonnull %4, ptr noundef nonnull %2)
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %.thread132

128:                                              ; preds = %125
  %129 = call i32 @ParsePushConstantBlocks(ptr noundef nonnull %4, ptr noundef nonnull %2)
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %.thread132

131:                                              ; preds = %128
  %132 = call i32 @ParseEntryPoints(ptr noundef nonnull %4, ptr noundef nonnull %2)
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %.thread132

134:                                              ; preds = %131
  %135 = getelementptr inbounds i8, ptr %2, i64 20
  %136 = load i32, ptr %135, align 4, !tbaa !21
  %.not = icmp eq i32 %136, 0
  br i1 %.not, label %.critedge89, label %137

137:                                              ; preds = %134
  %138 = getelementptr inbounds i8, ptr %2, i64 24
  %139 = load ptr, ptr %138, align 8, !tbaa !22
  %140 = load ptr, ptr %139, align 8, !tbaa !23
  %141 = getelementptr inbounds i8, ptr %2, i64 8
  store ptr %140, ptr %141, align 8, !tbaa !26
  %142 = getelementptr inbounds i8, ptr %139, i64 8
  %143 = load i32, ptr %142, align 8, !tbaa !27
  %144 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 %143, ptr %144, align 8, !tbaa !28
  %145 = getelementptr inbounds i8, ptr %139, i64 12
  %146 = getelementptr inbounds i8, ptr %2, i64 56
  %147 = load <2 x i32>, ptr %145, align 4, !tbaa !16
  store <2 x i32> %147, ptr %146, align 8, !tbaa !16
  %148 = getelementptr inbounds i8, ptr %139, i64 20
  %149 = load i32, ptr %148, align 4, !tbaa !29
  %150 = getelementptr inbounds i8, ptr %2, i64 1112
  store i32 %149, ptr %150, align 8, !tbaa !30
  %151 = getelementptr inbounds i8, ptr %139, i64 24
  %152 = load ptr, ptr %151, align 8, !tbaa !31
  %153 = getelementptr inbounds i8, ptr %2, i64 1120
  store ptr %152, ptr %153, align 8, !tbaa !32
  %154 = getelementptr inbounds i8, ptr %139, i64 32
  %155 = load i32, ptr %154, align 8, !tbaa !33
  %156 = getelementptr inbounds i8, ptr %2, i64 1128
  store i32 %155, ptr %156, align 8, !tbaa !34
  %157 = getelementptr inbounds i8, ptr %139, i64 40
  %158 = load ptr, ptr %157, align 8, !tbaa !35
  %159 = getelementptr inbounds i8, ptr %2, i64 1136
  store ptr %158, ptr %159, align 8, !tbaa !36
  br label %.critedge89

.critedge89:                                      ; preds = %137, %134
  %160 = call i32 @DisambiguateStorageBufferSrvUav(ptr noundef nonnull %2)
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %162, label %.thread132

162:                                              ; preds = %.critedge89
  %163 = call i32 @SynchronizeDescriptorSets(ptr noundef nonnull %2)
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %.thread132

165:                                              ; preds = %162
  %166 = call i32 @ParseExecutionModes(ptr noundef nonnull %4, ptr noundef nonnull %2)
  %.not86 = icmp eq i32 %166, 0
  br i1 %.not86, label %167, label %.thread132

.thread132:                                       ; preds = %16, %25, %28, %31, %34, %37, %40, %43, %.critedge, %116, %119, %122, %125, %128, %131, %.critedge89, %162, %165
  %.16135 = phi i32 [ %166, %165 ], [ %163, %162 ], [ %160, %.critedge89 ], [ %132, %131 ], [ %129, %128 ], [ %126, %125 ], [ %123, %122 ], [ %120, %119 ], [ %117, %116 ], [ %114, %.critedge ], [ %44, %43 ], [ %41, %40 ], [ %38, %37 ], [ %35, %34 ], [ %32, %31 ], [ %29, %28 ], [ %26, %25 ], [ %17, %16 ]
  call void @spvReflectDestroyShaderModule(ptr noundef nonnull %2)
  br label %167

167:                                              ; preds = %.thread132, %165
  %.16136 = phi i32 [ %.16135, %.thread132 ], [ 0, %165 ]
  call void @DestroyParser(ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #7
  br label %168

168:                                              ; preds = %15, %3, %167
  %.0 = phi i32 [ %.16136, %167 ], [ 3, %3 ], [ 3, %15 ]
  ret i32 %.0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5

; Function Attrs: nounwind uwtable
declare hidden i32 @CreateParser(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseNodes(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseStrings(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseSource(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseFunctions(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseMemberCounts(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseNames(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseDecorations(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseTypes(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseDescriptorBindings(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseDescriptorType(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseUAVCounterBindings(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseDescriptorBlocks(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParsePushConstantBlocks(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseEntryPoints(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @DisambiguateStorageBufferSrvUav(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @SynchronizeDescriptorSets(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @ParseExecutionModes(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @spvReflectDestroyShaderModule(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @DestroyParser(ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind allocsize(0,1) }
attributes #7 = { 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, !10, i64 1160}
!6 = !{!"SpvReflectShaderModule", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !7, i64 56, !7, i64 60, !7, i64 64, !10, i64 72, !7, i64 80, !8, i64 88, !7, i64 1112, !10, i64 1120, !7, i64 1128, !10, i64 1136, !7, i64 1144, !10, i64 1152, !10, i64 1160}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"Internal", !13, i64 0, !10, i64 8, !7, i64 16, !13, i64 24, !10, i64 32}
!13 = !{!"long", !8, i64 0}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !7, i64 16}
!16 = !{!7, !7, i64 0}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !7, i64 80}
!19 = !{!20, !7, i64 0}
!20 = !{!"SpvReflectDescriptorSet", !7, i64 0, !7, i64 4, !10, i64 8}
!21 = !{!6, !7, i64 20}
!22 = !{!6, !10, i64 24}
!23 = !{!24, !10, i64 0}
!24 = !{!"SpvReflectEntryPoint", !10, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !10, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !10, i64 88, !25, i64 96, !7, i64 108, !7, i64 112}
!25 = !{!"LocalSize", !7, i64 0, !7, i64 4, !7, i64 8}
!26 = !{!6, !10, i64 8}
!27 = !{!24, !7, i64 8}
!28 = !{!6, !7, i64 16}
!29 = !{!24, !7, i64 20}
!30 = !{!6, !7, i64 1112}
!31 = !{!24, !10, i64 24}
!32 = !{!6, !10, i64 1120}
!33 = !{!24, !7, i64 32}
!34 = !{!6, !7, i64 1128}
!35 = !{!24, !10, i64 40}
!36 = !{!6, !10, i64 1136}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass