; LLVM IR from HRI-EU/Rcs :: src/RcsCore (Rcs_mesh)

; 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.RcsMeshData = type { i32, ptr, i32, ptr }

@Rcs_calloc = external global ptr, align 8
@RCS_GLOBAL_RLOG_CB = external global ptr, align 8
@.str = external hidden unnamed_addr constant [67 x i8], align 1
@RcsLogLevel = external global i32, align 4
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__.RcsMesh_readObjFile = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 x i8], align 1

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @RcsMesh_readObjFile(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca [512 x i8], align 16
  %9 = alloca [4 x [32 x i8]], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [32 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.RcsMeshData, ptr %15, i32 0, i32 0
  store i32 0, ptr %16, align 8, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.RcsMeshData, ptr %17, i32 0, i32 2
  store i32 0, ptr %18, align 8, !tbaa !12
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %39

21:                                               ; preds = %2
  br label %22

22:                                               ; preds = %21
  %23 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %27

25:                                               ; preds = %22
  %26 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %26(i32 noundef 4, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 669, ptr noundef @.str.14)
  br label %27

27:                                               ; preds = %25, %22
  %28 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %29 = icmp sle i32 4, %28
  br i1 %29, label %30, label %37

30:                                               ; preds = %27
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 669) #6
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.14) #6
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.3) #6
  br label %37

37:                                               ; preds = %30, %27
  br label %38

38:                                               ; preds = %37
  store i1 false, ptr %3, align 1
  br label %553

39:                                               ; preds = %2
  br label %40

40:                                               ; preds = %39
  %41 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %46

43:                                               ; preds = %40
  %44 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %44(i32 noundef 5, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 673, ptr noundef @.str.15, ptr noundef %45)
  br label %46

46:                                               ; preds = %43, %40
  %47 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %48 = icmp sle i32 5, %47
  br i1 %48, label %49, label %57

49:                                               ; preds = %46
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 673) #6
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.15, ptr noundef %53) #6
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.3) #6
  br label %57

57:                                               ; preds = %49, %46
  br label %58

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call noalias ptr @fopen(ptr noundef %59, ptr noundef @.str.16)
  store ptr %60, ptr %6, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %84

63:                                               ; preds = %58
  br label %64

64:                                               ; preds = %63
  %65 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %70

67:                                               ; preds = %64
  %68 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %68(i32 noundef 4, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 678, ptr noundef @.str.17, ptr noundef %69)
  br label %70

70:                                               ; preds = %67, %64
  %71 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %72 = icmp sle i32 4, %71
  br i1 %72, label %73, label %81

73:                                               ; preds = %70
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 678) #6
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.17, ptr noundef %77) #6
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.3) #6
  br label %81

81:                                               ; preds = %73, %70
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %552

84:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 512, ptr %8) #6
  br label %85

85:                                               ; preds = %108, %84
  %86 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = call ptr @fgets(ptr noundef %86, i32 noundef 512, ptr noundef %87)
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %109

90:                                               ; preds = %85
  %91 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %92 = call i32 @strncmp(ptr noundef %91, ptr noundef @.str.18, i64 noundef 2) #7
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %99

94:                                               ; preds = %90
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.RcsMeshData, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !9
  %98 = add i32 %97, 1
  store i32 %98, ptr %96, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %94, %90
  %100 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %101 = call i32 @strncmp(ptr noundef %100, ptr noundef @.str.19, i64 noundef 2) #7
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %99
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.RcsMeshData, ptr %104, i32 0, i32 2
  %106 = load i32, ptr %105, align 8, !tbaa !12
  %107 = add i32 %106, 1
  store i32 %107, ptr %105, align 8, !tbaa !12
  br label %108

108:                                              ; preds = %103, %99
  br label %85, !llvm.loop !14

109:                                              ; preds = %85
  br label %110

110:                                              ; preds = %109
  %111 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %121

113:                                              ; preds = %110
  %114 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.RcsMeshData, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !9
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.RcsMeshData, ptr %118, i32 0, i32 2
  %120 = load i32, ptr %119, align 8, !tbaa !12
  call void (i32, ptr, ptr, i32, ptr, ...) %114(i32 noundef 5, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 698, ptr noundef @.str.20, i32 noundef %117, i32 noundef %120)
  br label %121

121:                                              ; preds = %113, %110
  %122 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %123 = icmp sle i32 5, %122
  br i1 %123, label %124, label %137

124:                                              ; preds = %121
  %125 = load ptr, ptr @stderr, align 8, !tbaa !5
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 698) #6
  %127 = load ptr, ptr @stderr, align 8, !tbaa !5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.RcsMeshData, ptr %128, i32 0, i32 0
  %130 = load i32, ptr %129, align 8, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.RcsMeshData, ptr %131, i32 0, i32 2
  %133 = load i32, ptr %132, align 8, !tbaa !12
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.20, i32 noundef %130, i32 noundef %133) #6
  %135 = load ptr, ptr @stderr, align 8, !tbaa !5
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.3) #6
  br label %137

137:                                              ; preds = %124, %121
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  call void @rewind(ptr noundef %140)
  %141 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !5
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.RcsMeshData, ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 8, !tbaa !9
  %145 = mul i32 3, %144
  %146 = zext i32 %145 to i64
  %147 = call ptr %141(i64 noundef %146, i64 noundef 8)
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.RcsMeshData, ptr %148, i32 0, i32 1
  store ptr %147, ptr %149, align 8, !tbaa !16
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.RcsMeshData, ptr %150, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8, !tbaa !16
  %153 = icmp eq ptr %152, null
  br i1 %153, label %154, label %187

154:                                              ; preds = %139
  br label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %164

158:                                              ; preds = %155
  %159 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.RcsMeshData, ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 8, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %159(i32 noundef 4, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 706, ptr noundef @.str.21, ptr noundef %160, i32 noundef %163)
  br label %164

164:                                              ; preds = %158, %155
  %165 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %166 = icmp sle i32 4, %165
  br i1 %166, label %167, label %178

167:                                              ; preds = %164
  %168 = load ptr, ptr @stderr, align 8, !tbaa !5
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 706) #6
  %170 = load ptr, ptr @stderr, align 8, !tbaa !5
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.RcsMeshData, ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 8, !tbaa !9
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.21, ptr noundef %171, i32 noundef %174) #6
  %176 = load ptr, ptr @stderr, align 8, !tbaa !5
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.3) #6
  br label %178

178:                                              ; preds = %167, %164
  br label %179

179:                                              ; preds = %178
  br label %180

180:                                              ; preds = %179
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.RcsMeshData, ptr %181, i32 0, i32 0
  store i32 0, ptr %182, align 8, !tbaa !9
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.RcsMeshData, ptr %183, i32 0, i32 2
  store i32 0, ptr %184, align 8, !tbaa !12
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = call i32 @fclose(ptr noundef %185)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %551

187:                                              ; preds = %139
  %188 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !5
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.RcsMeshData, ptr %189, i32 0, i32 2
  %191 = load i32, ptr %190, align 8, !tbaa !12
  %192 = mul i32 3, %191
  %193 = zext i32 %192 to i64
  %194 = call ptr %188(i64 noundef %193, i64 noundef 4)
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.RcsMeshData, ptr %195, i32 0, i32 3
  store ptr %194, ptr %196, align 8, !tbaa !17
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.RcsMeshData, ptr %197, i32 0, i32 3
  %199 = load ptr, ptr %198, align 8, !tbaa !17
  %200 = icmp eq ptr %199, null
  br i1 %200, label %201, label %237

201:                                              ; preds = %187
  br label %202

202:                                              ; preds = %201
  %203 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %211

205:                                              ; preds = %202
  %206 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.RcsMeshData, ptr %208, i32 0, i32 2
  %210 = load i32, ptr %209, align 8, !tbaa !12
  call void (i32, ptr, ptr, i32, ptr, ...) %206(i32 noundef 4, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 718, ptr noundef @.str.21, ptr noundef %207, i32 noundef %210)
  br label %211

211:                                              ; preds = %205, %202
  %212 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %213 = icmp sle i32 4, %212
  br i1 %213, label %214, label %225

214:                                              ; preds = %211
  %215 = load ptr, ptr @stderr, align 8, !tbaa !5
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 718) #6
  %217 = load ptr, ptr @stderr, align 8, !tbaa !5
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.RcsMeshData, ptr %219, i32 0, i32 2
  %221 = load i32, ptr %220, align 8, !tbaa !12
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.21, ptr noundef %218, i32 noundef %221) #6
  %223 = load ptr, ptr @stderr, align 8, !tbaa !5
  %224 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef @.str.3) #6
  br label %225

225:                                              ; preds = %214, %211
  br label %226

226:                                              ; preds = %225
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.RcsMeshData, ptr %228, i32 0, i32 0
  store i32 0, ptr %229, align 8, !tbaa !9
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.RcsMeshData, ptr %230, i32 0, i32 2
  store i32 0, ptr %231, align 8, !tbaa !12
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.RcsMeshData, ptr %232, i32 0, i32 1
  %234 = load ptr, ptr %233, align 8, !tbaa !16
  call void @free(ptr noundef %234) #6
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = call i32 @fclose(ptr noundef %235)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %551

237:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 128, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !13
  br label %238

238:                                              ; preds = %546, %237
  %239 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = call ptr @fgets(ptr noundef %239, i32 noundef 512, ptr noundef %240)
  %242 = icmp ne ptr %241, null
  br i1 %242, label %243, label %547

243:                                              ; preds = %238
  br label %244

244:                                              ; preds = %243
  %245 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %246 = icmp ne ptr %245, null
  br i1 %246, label %247, label %251

247:                                              ; preds = %244
  %248 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %249 = load i32, ptr %10, align 4, !tbaa !13
  %250 = load i32, ptr %11, align 4, !tbaa !13
  call void (i32, ptr, ptr, i32, ptr, ...) %248(i32 noundef 5, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 731, ptr noundef @.str.22, i32 noundef %249, i32 noundef %250)
  br label %251

251:                                              ; preds = %247, %244
  %252 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %253 = icmp sle i32 5, %252
  br i1 %253, label %254, label %263

254:                                              ; preds = %251
  %255 = load ptr, ptr @stderr, align 8, !tbaa !5
  %256 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %255, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 731) #6
  %257 = load ptr, ptr @stderr, align 8, !tbaa !5
  %258 = load i32, ptr %10, align 4, !tbaa !13
  %259 = load i32, ptr %11, align 4, !tbaa !13
  %260 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %257, ptr noundef @.str.22, i32 noundef %258, i32 noundef %259) #6
  %261 = load ptr, ptr @stderr, align 8, !tbaa !5
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef @.str.3) #6
  br label %263

263:                                              ; preds = %254, %251
  br label %264

264:                                              ; preds = %263
  br label %265

265:                                              ; preds = %264
  br label %266

266:                                              ; preds = %265
  %267 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %268 = icmp ne ptr %267, null
  br i1 %268, label %269, label %272

269:                                              ; preds = %266
  %270 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %271 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  call void (i32, ptr, ptr, i32, ptr, ...) %270(i32 noundef 5, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 732, ptr noundef @.str.23, ptr noundef %271)
  br label %272

272:                                              ; preds = %269, %266
  %273 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %274 = icmp sle i32 5, %273
  br i1 %274, label %275, label %283

275:                                              ; preds = %272
  %276 = load ptr, ptr @stderr, align 8, !tbaa !5
  %277 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %276, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 732) #6
  %278 = load ptr, ptr @stderr, align 8, !tbaa !5
  %279 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %280 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %278, ptr noundef @.str.23, ptr noundef %279) #6
  %281 = load ptr, ptr @stderr, align 8, !tbaa !5
  %282 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %281, ptr noundef @.str.3) #6
  br label %283

283:                                              ; preds = %275, %272
  br label %284

284:                                              ; preds = %283
  br label %285

285:                                              ; preds = %284
  %286 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %287 = call i32 @strncmp(ptr noundef %286, ptr noundef @.str.18, i64 noundef 2) #7
  %288 = icmp eq i32 %287, 0
  br i1 %288, label %289, label %379

289:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %290 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %291 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 0
  %292 = getelementptr inbounds [32 x i8], ptr %291, i64 0, i64 0
  %293 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 1
  %294 = getelementptr inbounds [32 x i8], ptr %293, i64 0, i64 0
  %295 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 2
  %296 = getelementptr inbounds [32 x i8], ptr %295, i64 0, i64 0
  %297 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 3
  %298 = getelementptr inbounds [32 x i8], ptr %297, i64 0, i64 0
  %299 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %290, ptr noundef @.str.24, ptr noundef %292, ptr noundef %294, ptr noundef %296, ptr noundef %298) #6
  store i32 %299, ptr %12, align 4, !tbaa !13
  %300 = load i32, ptr %12, align 4, !tbaa !13
  %301 = icmp slt i32 %300, 4
  br i1 %301, label %302, label %343

302:                                              ; preds = %289
  br label %303

303:                                              ; preds = %302
  %304 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %305 = icmp ne ptr %304, null
  br i1 %305, label %306, label %313

306:                                              ; preds = %303
  %307 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = load i32, ptr %10, align 4, !tbaa !13
  %310 = udiv i32 %309, 3
  %311 = load i32, ptr %12, align 4, !tbaa !13
  %312 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  call void (i32, ptr, ptr, i32, ptr, ...) %307(i32 noundef 4, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 742, ptr noundef @.str.25, ptr noundef %308, i32 noundef %310, i32 noundef %311, ptr noundef %312)
  br label %313

313:                                              ; preds = %306, %303
  %314 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %315 = icmp sle i32 4, %314
  br i1 %315, label %316, label %328

316:                                              ; preds = %313
  %317 = load ptr, ptr @stderr, align 8, !tbaa !5
  %318 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %317, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 742) #6
  %319 = load ptr, ptr @stderr, align 8, !tbaa !5
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = load i32, ptr %10, align 4, !tbaa !13
  %322 = udiv i32 %321, 3
  %323 = load i32, ptr %12, align 4, !tbaa !13
  %324 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %325 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %319, ptr noundef @.str.25, ptr noundef %320, i32 noundef %322, i32 noundef %323, ptr noundef %324) #6
  %326 = load ptr, ptr @stderr, align 8, !tbaa !5
  %327 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %326, ptr noundef @.str.3) #6
  br label %328

328:                                              ; preds = %316, %313
  br label %329

329:                                              ; preds = %328
  br label %330

330:                                              ; preds = %329
  %331 = load ptr, ptr %5, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.RcsMeshData, ptr %331, i32 0, i32 1
  %333 = load ptr, ptr %332, align 8, !tbaa !16
  call void @free(ptr noundef %333) #6
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.RcsMeshData, ptr %334, i32 0, i32 3
  %336 = load ptr, ptr %335, align 8, !tbaa !17
  call void @free(ptr noundef %336) #6
  %337 = load ptr, ptr %5, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.RcsMeshData, ptr %337, i32 0, i32 0
  store i32 0, ptr %338, align 8, !tbaa !9
  %339 = load ptr, ptr %5, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.RcsMeshData, ptr %339, i32 0, i32 2
  store i32 0, ptr %340, align 8, !tbaa !12
  %341 = load ptr, ptr %6, align 8, !tbaa !5
  %342 = call i32 @fclose(ptr noundef %341)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %376

343:                                              ; preds = %289
  %344 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 1
  %345 = getelementptr inbounds [32 x i8], ptr %344, i64 0, i64 0
  %346 = call double @String_toDouble_l(ptr noundef %345)
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.RcsMeshData, ptr %347, i32 0, i32 1
  %349 = load ptr, ptr %348, align 8, !tbaa !16
  %350 = load i32, ptr %10, align 4, !tbaa !13
  %351 = zext i32 %350 to i64
  %352 = getelementptr inbounds double, ptr %349, i64 %351
  store double %346, ptr %352, align 8, !tbaa !18
  %353 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 2
  %354 = getelementptr inbounds [32 x i8], ptr %353, i64 0, i64 0
  %355 = call double @String_toDouble_l(ptr noundef %354)
  %356 = load ptr, ptr %5, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.RcsMeshData, ptr %356, i32 0, i32 1
  %358 = load ptr, ptr %357, align 8, !tbaa !16
  %359 = load i32, ptr %10, align 4, !tbaa !13
  %360 = add i32 %359, 1
  %361 = zext i32 %360 to i64
  %362 = getelementptr inbounds double, ptr %358, i64 %361
  store double %355, ptr %362, align 8, !tbaa !18
  %363 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 3
  %364 = getelementptr inbounds [32 x i8], ptr %363, i64 0, i64 0
  %365 = call double @String_toDouble_l(ptr noundef %364)
  %366 = load ptr, ptr %5, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.RcsMeshData, ptr %366, i32 0, i32 1
  %368 = load ptr, ptr %367, align 8, !tbaa !16
  %369 = load i32, ptr %10, align 4, !tbaa !13
  %370 = add i32 %369, 2
  %371 = zext i32 %370 to i64
  %372 = getelementptr inbounds double, ptr %368, i64 %371
  store double %365, ptr %372, align 8, !tbaa !18
  br label %373

373:                                              ; preds = %343
  %374 = load i32, ptr %10, align 4, !tbaa !13
  %375 = add i32 %374, 3
  store i32 %375, ptr %10, align 4, !tbaa !13
  store i32 0, ptr %7, align 4
  br label %376

376:                                              ; preds = %373, %330
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %377 = load i32, ptr %7, align 4
  switch i32 %377, label %550 [
    i32 0, label %378
  ]

378:                                              ; preds = %376
  br label %379

379:                                              ; preds = %378, %285
  %380 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %381 = call i32 @strncmp(ptr noundef %380, ptr noundef @.str.19, i64 noundef 2) #7
  %382 = icmp eq i32 %381, 0
  br i1 %382, label %383, label %546

383:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %384 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %385 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 0
  %386 = getelementptr inbounds [32 x i8], ptr %385, i64 0, i64 0
  %387 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 1
  %388 = getelementptr inbounds [32 x i8], ptr %387, i64 0, i64 0
  %389 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 2
  %390 = getelementptr inbounds [32 x i8], ptr %389, i64 0, i64 0
  %391 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 3
  %392 = getelementptr inbounds [32 x i8], ptr %391, i64 0, i64 0
  %393 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %384, ptr noundef @.str.24, ptr noundef %386, ptr noundef %388, ptr noundef %390, ptr noundef %392) #6
  store i32 %393, ptr %13, align 4, !tbaa !13
  %394 = load i32, ptr %13, align 4, !tbaa !13
  %395 = icmp slt i32 %394, 4
  br i1 %395, label %396, label %437

396:                                              ; preds = %383
  br label %397

397:                                              ; preds = %396
  %398 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %399 = icmp ne ptr %398, null
  br i1 %399, label %400, label %407

400:                                              ; preds = %397
  %401 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %402 = load ptr, ptr %4, align 8, !tbaa !5
  %403 = load i32, ptr %11, align 4, !tbaa !13
  %404 = udiv i32 %403, 3
  %405 = load i32, ptr %13, align 4, !tbaa !13
  %406 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  call void (i32, ptr, ptr, i32, ptr, ...) %401(i32 noundef 4, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 771, ptr noundef @.str.26, ptr noundef %402, i32 noundef %404, i32 noundef %405, ptr noundef %406)
  br label %407

407:                                              ; preds = %400, %397
  %408 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %409 = icmp sle i32 4, %408
  br i1 %409, label %410, label %422

410:                                              ; preds = %407
  %411 = load ptr, ptr @stderr, align 8, !tbaa !5
  %412 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %411, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 771) #6
  %413 = load ptr, ptr @stderr, align 8, !tbaa !5
  %414 = load ptr, ptr %4, align 8, !tbaa !5
  %415 = load i32, ptr %11, align 4, !tbaa !13
  %416 = udiv i32 %415, 3
  %417 = load i32, ptr %13, align 4, !tbaa !13
  %418 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %419 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %413, ptr noundef @.str.26, ptr noundef %414, i32 noundef %416, i32 noundef %417, ptr noundef %418) #6
  %420 = load ptr, ptr @stderr, align 8, !tbaa !5
  %421 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %420, ptr noundef @.str.3) #6
  br label %422

422:                                              ; preds = %410, %407
  br label %423

423:                                              ; preds = %422
  br label %424

424:                                              ; preds = %423
  %425 = load ptr, ptr %5, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.RcsMeshData, ptr %425, i32 0, i32 1
  %427 = load ptr, ptr %426, align 8, !tbaa !16
  call void @free(ptr noundef %427) #6
  %428 = load ptr, ptr %5, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.RcsMeshData, ptr %428, i32 0, i32 3
  %430 = load ptr, ptr %429, align 8, !tbaa !17
  call void @free(ptr noundef %430) #6
  %431 = load ptr, ptr %5, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.RcsMeshData, ptr %431, i32 0, i32 0
  store i32 0, ptr %432, align 8, !tbaa !9
  %433 = load ptr, ptr %5, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.RcsMeshData, ptr %433, i32 0, i32 2
  store i32 0, ptr %434, align 8, !tbaa !12
  %435 = load ptr, ptr %6, align 8, !tbaa !5
  %436 = call i32 @fclose(ptr noundef %435)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %543

437:                                              ; preds = %383
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  %438 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %439 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 1
  %440 = getelementptr inbounds [32 x i8], ptr %439, i64 0, i64 0
  call void @String_chopOff(ptr noundef %438, ptr noundef %440, ptr noundef @.str.27)
  %441 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %442 = call i32 @atoi(ptr noundef %441) #7
  %443 = sub nsw i32 %442, 1
  %444 = load ptr, ptr %5, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.RcsMeshData, ptr %444, i32 0, i32 3
  %446 = load ptr, ptr %445, align 8, !tbaa !17
  %447 = load i32, ptr %11, align 4, !tbaa !13
  %448 = zext i32 %447 to i64
  %449 = getelementptr inbounds i32, ptr %446, i64 %448
  store i32 %443, ptr %449, align 4, !tbaa !13
  %450 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %451 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 2
  %452 = getelementptr inbounds [32 x i8], ptr %451, i64 0, i64 0
  call void @String_chopOff(ptr noundef %450, ptr noundef %452, ptr noundef @.str.27)
  %453 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %454 = call i32 @atoi(ptr noundef %453) #7
  %455 = sub nsw i32 %454, 1
  %456 = load ptr, ptr %5, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.RcsMeshData, ptr %456, i32 0, i32 3
  %458 = load ptr, ptr %457, align 8, !tbaa !17
  %459 = load i32, ptr %11, align 4, !tbaa !13
  %460 = add i32 %459, 1
  %461 = zext i32 %460 to i64
  %462 = getelementptr inbounds i32, ptr %458, i64 %461
  store i32 %455, ptr %462, align 4, !tbaa !13
  %463 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %464 = getelementptr inbounds [4 x [32 x i8]], ptr %9, i64 0, i64 3
  %465 = getelementptr inbounds [32 x i8], ptr %464, i64 0, i64 0
  call void @String_chopOff(ptr noundef %463, ptr noundef %465, ptr noundef @.str.27)
  %466 = getelementptr inbounds [32 x i8], ptr %14, i64 0, i64 0
  %467 = call i32 @atoi(ptr noundef %466) #7
  %468 = sub nsw i32 %467, 1
  %469 = load ptr, ptr %5, align 8, !tbaa !5
  %470 = getelementptr inbounds %struct.RcsMeshData, ptr %469, i32 0, i32 3
  %471 = load ptr, ptr %470, align 8, !tbaa !17
  %472 = load i32, ptr %11, align 4, !tbaa !13
  %473 = add i32 %472, 2
  %474 = zext i32 %473 to i64
  %475 = getelementptr inbounds i32, ptr %471, i64 %474
  store i32 %468, ptr %475, align 4, !tbaa !13
  br label %476

476:                                              ; preds = %437
  %477 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %478 = icmp ne ptr %477, null
  br i1 %478, label %479, label %504

479:                                              ; preds = %476
  %480 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !5
  %481 = load ptr, ptr %5, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.RcsMeshData, ptr %481, i32 0, i32 3
  %483 = load ptr, ptr %482, align 8, !tbaa !17
  %484 = load i32, ptr %11, align 4, !tbaa !13
  %485 = zext i32 %484 to i64
  %486 = getelementptr inbounds i32, ptr %483, i64 %485
  %487 = load i32, ptr %486, align 4, !tbaa !13
  %488 = load ptr, ptr %5, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.RcsMeshData, ptr %488, i32 0, i32 3
  %490 = load ptr, ptr %489, align 8, !tbaa !17
  %491 = load i32, ptr %11, align 4, !tbaa !13
  %492 = add i32 %491, 1
  %493 = zext i32 %492 to i64
  %494 = getelementptr inbounds i32, ptr %490, i64 %493
  %495 = load i32, ptr %494, align 4, !tbaa !13
  %496 = load ptr, ptr %5, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.RcsMeshData, ptr %496, i32 0, i32 3
  %498 = load ptr, ptr %497, align 8, !tbaa !17
  %499 = load i32, ptr %11, align 4, !tbaa !13
  %500 = add i32 %499, 2
  %501 = zext i32 %500 to i64
  %502 = getelementptr inbounds i32, ptr %498, i64 %501
  %503 = load i32, ptr %502, align 4, !tbaa !13
  call void (i32, ptr, ptr, i32, ptr, ...) %480(i32 noundef 5, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 791, ptr noundef @.str.28, i32 noundef %487, i32 noundef %495, i32 noundef %503)
  br label %504

504:                                              ; preds = %479, %476
  %505 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %506 = icmp sle i32 5, %505
  br i1 %506, label %507, label %537

507:                                              ; preds = %504
  %508 = load ptr, ptr @stderr, align 8, !tbaa !5
  %509 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %508, ptr noundef @.str.2, ptr noundef @.str, ptr noundef @__func__.RcsMesh_readObjFile, i32 noundef 791) #6
  %510 = load ptr, ptr @stderr, align 8, !tbaa !5
  %511 = load ptr, ptr %5, align 8, !tbaa !5
  %512 = getelementptr inbounds %struct.RcsMeshData, ptr %511, i32 0, i32 3
  %513 = load ptr, ptr %512, align 8, !tbaa !17
  %514 = load i32, ptr %11, align 4, !tbaa !13
  %515 = zext i32 %514 to i64
  %516 = getelementptr inbounds i32, ptr %513, i64 %515
  %517 = load i32, ptr %516, align 4, !tbaa !13
  %518 = load ptr, ptr %5, align 8, !tbaa !5
  %519 = getelementptr inbounds %struct.RcsMeshData, ptr %518, i32 0, i32 3
  %520 = load ptr, ptr %519, align 8, !tbaa !17
  %521 = load i32, ptr %11, align 4, !tbaa !13
  %522 = add i32 %521, 1
  %523 = zext i32 %522 to i64
  %524 = getelementptr inbounds i32, ptr %520, i64 %523
  %525 = load i32, ptr %524, align 4, !tbaa !13
  %526 = load ptr, ptr %5, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.RcsMeshData, ptr %526, i32 0, i32 3
  %528 = load ptr, ptr %527, align 8, !tbaa !17
  %529 = load i32, ptr %11, align 4, !tbaa !13
  %530 = add i32 %529, 2
  %531 = zext i32 %530 to i64
  %532 = getelementptr inbounds i32, ptr %528, i64 %531
  %533 = load i32, ptr %532, align 4, !tbaa !13
  %534 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %510, ptr noundef @.str.28, i32 noundef %517, i32 noundef %525, i32 noundef %533) #6
  %535 = load ptr, ptr @stderr, align 8, !tbaa !5
  %536 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %535, ptr noundef @.str.3) #6
  br label %537

537:                                              ; preds = %507, %504
  br label %538

538:                                              ; preds = %537
  br label %539

539:                                              ; preds = %538
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %540

540:                                              ; preds = %539
  %541 = load i32, ptr %11, align 4, !tbaa !13
  %542 = add i32 %541, 3
  store i32 %542, ptr %11, align 4, !tbaa !13
  store i32 0, ptr %7, align 4
  br label %543

543:                                              ; preds = %540, %424
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %544 = load i32, ptr %7, align 4
  switch i32 %544, label %550 [
    i32 0, label %545
  ]

545:                                              ; preds = %543
  br label %546

546:                                              ; preds = %545, %379
  br label %238, !llvm.loop !20

547:                                              ; preds = %238
  %548 = load ptr, ptr %6, align 8, !tbaa !5
  %549 = call i32 @fclose(ptr noundef %548)
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %550

550:                                              ; preds = %547, %543, %376
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %9) #6
  br label %551

551:                                              ; preds = %550, %227, %180
  call void @llvm.lifetime.end.p0(i64 512, ptr %8) #6
  br label %552

552:                                              ; preds = %551, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %553

553:                                              ; preds = %552, %38
  %554 = load i1, ptr %3, align 1
  ret i1 %554
}

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #4

declare void @rewind(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #1

declare double @String_toDouble_l(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @String_chopOff(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint nounwind willreturn memory(read) 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 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!10, !6, i64 8}
!17 = !{!10, !6, i64 24}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !15}


; 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"

@Rcs_calloc = external local_unnamed_addr global ptr, align 8
@RCS_GLOBAL_RLOG_CB = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [67 x i8], align 1
@RcsLogLevel = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__.RcsMesh_readObjFile = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [14 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @RcsMesh_readObjFile(ptr noundef %0, ptr nocapture noundef %1) local_unnamed_addr #3 {
  %3 = alloca [512 x i8], align 16
  %4 = alloca [4 x [32 x i8]], align 16
  %5 = alloca [32 x i8], align 16
  store i32 0, ptr %1, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 0, ptr %6, align 8, !tbaa !11
  %7 = icmp eq ptr %0, null
  %8 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not131 = icmp eq ptr %8, null
  br i1 %7, label %9, label %21

9:                                                ; preds = %2
  br i1 %.not131, label %11, label %10

10:                                               ; preds = %9
  tail call void (i32, ptr, ptr, i32, ptr, ...) %8(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 669, ptr noundef nonnull @.str.14) #7
  br label %11

11:                                               ; preds = %10, %9
  %12 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %13 = icmp sgt i32 %12, 3
  br i1 %13, label %14, label %265

14:                                               ; preds = %11
  %15 = load ptr, ptr @stderr, align 8, !tbaa !12
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 669) #8
  %17 = load ptr, ptr @stderr, align 8, !tbaa !12
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.14) #8
  %19 = load ptr, ptr @stderr, align 8, !tbaa !12
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.3) #8
  br label %265

21:                                               ; preds = %2
  br i1 %.not131, label %23, label %22

22:                                               ; preds = %21
  tail call void (i32, ptr, ptr, i32, ptr, ...) %8(i32 noundef 5, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 673, ptr noundef nonnull @.str.15, ptr noundef nonnull %0) #7
  br label %23

23:                                               ; preds = %22, %21
  %24 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %25 = icmp sgt i32 %24, 4
  br i1 %25, label %26, label %33

26:                                               ; preds = %23
  %27 = load ptr, ptr @stderr, align 8, !tbaa !12
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 673) #8
  %29 = load ptr, ptr @stderr, align 8, !tbaa !12
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.15, ptr noundef nonnull %0) #8
  %31 = load ptr, ptr @stderr, align 8, !tbaa !12
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.3) #8
  br label %33

33:                                               ; preds = %23, %26
  %34 = tail call noalias ptr @fopen(ptr noundef nonnull %0, ptr noundef nonnull @.str.16)
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %49

36:                                               ; preds = %33
  %37 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not130 = icmp eq ptr %37, null
  br i1 %.not130, label %39, label %38

38:                                               ; preds = %36
  tail call void (i32, ptr, ptr, i32, ptr, ...) %37(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 678, ptr noundef nonnull @.str.17, ptr noundef nonnull %0) #7
  br label %39

39:                                               ; preds = %38, %36
  %40 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %41 = icmp sgt i32 %40, 3
  br i1 %41, label %42, label %265

42:                                               ; preds = %39
  %43 = load ptr, ptr @stderr, align 8, !tbaa !12
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 678) #8
  %45 = load ptr, ptr @stderr, align 8, !tbaa !12
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.17, ptr noundef nonnull %0) #8
  %47 = load ptr, ptr @stderr, align 8, !tbaa !12
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.3) #8
  br label %265

49:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #7
  %50 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 512, ptr noundef nonnull %34)
  %.not120143 = icmp eq ptr %50, null
  br i1 %.not120143, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %49, %62
  %51 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.18, i64 noundef 2) #9
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %56

53:                                               ; preds = %.lr.ph
  %54 = load i32, ptr %1, align 8, !tbaa !5
  %55 = add i32 %54, 1
  store i32 %55, ptr %1, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %53, %.lr.ph
  %57 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.19, i64 noundef 2) #9
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %62

59:                                               ; preds = %56
  %60 = load i32, ptr %6, align 8, !tbaa !11
  %61 = add i32 %60, 1
  store i32 %61, ptr %6, align 8, !tbaa !11
  br label %62

62:                                               ; preds = %59, %56
  %63 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 512, ptr noundef nonnull %34)
  %.not120 = icmp eq ptr %63, null
  br i1 %.not120, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %62, %49
  %64 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not121 = icmp eq ptr %64, null
  br i1 %.not121, label %68, label %65

65:                                               ; preds = %._crit_edge
  %66 = load i32, ptr %1, align 8, !tbaa !5
  %67 = load i32, ptr %6, align 8, !tbaa !11
  call void (i32, ptr, ptr, i32, ptr, ...) %64(i32 noundef 5, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 698, ptr noundef nonnull @.str.20, i32 noundef %66, i32 noundef %67) #7
  br label %68

68:                                               ; preds = %65, %._crit_edge
  %69 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %70 = icmp sgt i32 %69, 4
  br i1 %70, label %71, label %80

71:                                               ; preds = %68
  %72 = load ptr, ptr @stderr, align 8, !tbaa !12
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 698) #8
  %74 = load ptr, ptr @stderr, align 8, !tbaa !12
  %75 = load i32, ptr %1, align 8, !tbaa !5
  %76 = load i32, ptr %6, align 8, !tbaa !11
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.20, i32 noundef %75, i32 noundef %76) #8
  %78 = load ptr, ptr @stderr, align 8, !tbaa !12
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.3) #8
  br label %80

80:                                               ; preds = %71, %68
  call void @rewind(ptr noundef nonnull %34)
  %81 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !12
  %82 = load i32, ptr %1, align 8, !tbaa !5
  %83 = mul i32 %82, 3
  %84 = zext i32 %83 to i64
  %85 = call ptr %81(i64 noundef %84, i64 noundef 8) #7
  %86 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr %85, ptr %86, align 8, !tbaa !16
  %87 = icmp eq ptr %85, null
  br i1 %87, label %88, label %105

88:                                               ; preds = %80
  %89 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not129 = icmp eq ptr %89, null
  br i1 %.not129, label %92, label %90

90:                                               ; preds = %88
  %91 = load i32, ptr %1, align 8, !tbaa !5
  call void (i32, ptr, ptr, i32, ptr, ...) %89(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 706, ptr noundef nonnull @.str.21, ptr noundef nonnull %0, i32 noundef %91) #7
  br label %92

92:                                               ; preds = %90, %88
  %93 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %94 = icmp sgt i32 %93, 3
  br i1 %94, label %95, label %103

95:                                               ; preds = %92
  %96 = load ptr, ptr @stderr, align 8, !tbaa !12
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 706) #8
  %98 = load ptr, ptr @stderr, align 8, !tbaa !12
  %99 = load i32, ptr %1, align 8, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.21, ptr noundef nonnull %0, i32 noundef %99) #8
  %101 = load ptr, ptr @stderr, align 8, !tbaa !12
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.3) #8
  br label %103

103:                                              ; preds = %95, %92
  store i32 0, ptr %1, align 8, !tbaa !5
  store i32 0, ptr %6, align 8, !tbaa !11
  %104 = call i32 @fclose(ptr noundef nonnull %34)
  br label %264

105:                                              ; preds = %80
  %106 = load ptr, ptr @Rcs_calloc, align 8, !tbaa !12
  %107 = load i32, ptr %6, align 8, !tbaa !11
  %108 = mul i32 %107, 3
  %109 = zext i32 %108 to i64
  %110 = call ptr %106(i64 noundef %109, i64 noundef 4) #7
  %111 = getelementptr inbounds i8, ptr %1, i64 24
  store ptr %110, ptr %111, align 8, !tbaa !17
  %112 = icmp eq ptr %110, null
  br i1 %112, label %113, label %131

113:                                              ; preds = %105
  %114 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not128 = icmp eq ptr %114, null
  br i1 %.not128, label %117, label %115

115:                                              ; preds = %113
  %116 = load i32, ptr %6, align 8, !tbaa !11
  call void (i32, ptr, ptr, i32, ptr, ...) %114(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 718, ptr noundef nonnull @.str.21, ptr noundef nonnull %0, i32 noundef %116) #7
  br label %117

117:                                              ; preds = %115, %113
  %118 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %119 = icmp sgt i32 %118, 3
  br i1 %119, label %120, label %128

120:                                              ; preds = %117
  %121 = load ptr, ptr @stderr, align 8, !tbaa !12
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 718) #8
  %123 = load ptr, ptr @stderr, align 8, !tbaa !12
  %124 = load i32, ptr %6, align 8, !tbaa !11
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef nonnull @.str.21, ptr noundef nonnull %0, i32 noundef %124) #8
  %126 = load ptr, ptr @stderr, align 8, !tbaa !12
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef nonnull @.str.3) #8
  br label %128

128:                                              ; preds = %120, %117
  store i32 0, ptr %1, align 8, !tbaa !5
  store i32 0, ptr %6, align 8, !tbaa !11
  %129 = load ptr, ptr %86, align 8, !tbaa !16
  call void @free(ptr noundef %129) #7
  %130 = call i32 @fclose(ptr noundef nonnull %34)
  br label %264

131:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #7
  %132 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 512, ptr noundef nonnull %34)
  %.not122144 = icmp eq ptr %132, null
  br i1 %.not122144, label %._crit_edge150, label %.lr.ph149

.lr.ph149:                                        ; preds = %131
  %133 = getelementptr inbounds i8, ptr %4, i64 32
  %134 = getelementptr inbounds i8, ptr %4, i64 64
  %135 = getelementptr inbounds i8, ptr %4, i64 96
  br label %136

136:                                              ; preds = %.lr.ph149, %257
  %.099146 = phi i32 [ 0, %.lr.ph149 ], [ %.2101, %257 ]
  %.0102145 = phi i32 [ 0, %.lr.ph149 ], [ %.2104, %257 ]
  %137 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not123 = icmp eq ptr %137, null
  br i1 %.not123, label %139, label %138

138:                                              ; preds = %136
  call void (i32, ptr, ptr, i32, ptr, ...) %137(i32 noundef 5, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 731, ptr noundef nonnull @.str.22, i32 noundef %.0102145, i32 noundef %.099146) #7
  br label %139

139:                                              ; preds = %138, %136
  %140 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %141 = icmp sgt i32 %140, 4
  br i1 %141, label %142, label %149

142:                                              ; preds = %139
  %143 = load ptr, ptr @stderr, align 8, !tbaa !12
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 731) #8
  %145 = load ptr, ptr @stderr, align 8, !tbaa !12
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef nonnull @.str.22, i32 noundef %.0102145, i32 noundef %.099146) #8
  %147 = load ptr, ptr @stderr, align 8, !tbaa !12
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef nonnull @.str.3) #8
  br label %149

149:                                              ; preds = %139, %142
  %150 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not124 = icmp eq ptr %150, null
  br i1 %.not124, label %152, label %151

151:                                              ; preds = %149
  call void (i32, ptr, ptr, i32, ptr, ...) %150(i32 noundef 5, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 732, ptr noundef nonnull @.str.23, ptr noundef nonnull %3) #7
  br label %152

152:                                              ; preds = %151, %149
  %153 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %154 = icmp sgt i32 %153, 4
  br i1 %154, label %155, label %162

155:                                              ; preds = %152
  %156 = load ptr, ptr @stderr, align 8, !tbaa !12
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 732) #8
  %158 = load ptr, ptr @stderr, align 8, !tbaa !12
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef nonnull @.str.23, ptr noundef nonnull %3) #8
  %160 = load ptr, ptr @stderr, align 8, !tbaa !12
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef nonnull @.str.3) #8
  br label %162

162:                                              ; preds = %155, %152
  %163 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.18, i64 noundef 2) #9
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %196

165:                                              ; preds = %162
  %166 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.24, ptr noundef nonnull %4, ptr noundef nonnull %133, ptr noundef nonnull %134, ptr noundef nonnull %135) #7
  %167 = icmp sgt i32 %166, 3
  br i1 %167, label %.thread, label %168

168:                                              ; preds = %165
  %169 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not125 = icmp eq ptr %169, null
  br i1 %.not125, label %172, label %170

170:                                              ; preds = %168
  %171 = udiv i32 %.0102145, 3
  call void (i32, ptr, ptr, i32, ptr, ...) %169(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 742, ptr noundef nonnull @.str.25, ptr noundef nonnull %0, i32 noundef %171, i32 noundef %166, ptr noundef nonnull %3) #7
  br label %172

172:                                              ; preds = %170, %168
  %173 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %174 = icmp sgt i32 %173, 3
  br i1 %174, label %175, label %._crit_edge150.sink.split

175:                                              ; preds = %172
  %176 = load ptr, ptr @stderr, align 8, !tbaa !12
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 742) #8
  %178 = load ptr, ptr @stderr, align 8, !tbaa !12
  %179 = udiv i32 %.0102145, 3
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef nonnull @.str.25, ptr noundef nonnull %0, i32 noundef %179, i32 noundef %166, ptr noundef nonnull %3) #8
  br label %._crit_edge150.sink.split.sink.split

.thread:                                          ; preds = %165
  %181 = call double @String_toDouble_l(ptr noundef nonnull %133) #7
  %182 = load ptr, ptr %86, align 8, !tbaa !16
  %183 = zext i32 %.0102145 to i64
  %184 = getelementptr inbounds double, ptr %182, i64 %183
  store double %181, ptr %184, align 8, !tbaa !18
  %185 = call double @String_toDouble_l(ptr noundef nonnull %134) #7
  %186 = load ptr, ptr %86, align 8, !tbaa !16
  %187 = add i32 %.0102145, 1
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %186, i64 %188
  store double %185, ptr %189, align 8, !tbaa !18
  %190 = call double @String_toDouble_l(ptr noundef nonnull %135) #7
  %191 = load ptr, ptr %86, align 8, !tbaa !16
  %192 = add i32 %.0102145, 2
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds double, ptr %191, i64 %193
  store double %190, ptr %194, align 8, !tbaa !18
  %195 = add i32 %.0102145, 3
  br label %196

196:                                              ; preds = %.thread, %162
  %.2104 = phi i32 [ %.0102145, %162 ], [ %195, %.thread ]
  %197 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.19, i64 noundef 2) #9
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %257

199:                                              ; preds = %196
  %200 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.24, ptr noundef nonnull %4, ptr noundef nonnull %133, ptr noundef nonnull %134, ptr noundef nonnull %135) #7
  %201 = icmp sgt i32 %200, 3
  br i1 %201, label %215, label %202

202:                                              ; preds = %199
  %203 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not127 = icmp eq ptr %203, null
  br i1 %.not127, label %206, label %204

204:                                              ; preds = %202
  %205 = udiv i32 %.099146, 3
  call void (i32, ptr, ptr, i32, ptr, ...) %203(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 771, ptr noundef nonnull @.str.26, ptr noundef nonnull %0, i32 noundef %205, i32 noundef %200, ptr noundef nonnull %3) #7
  br label %206

206:                                              ; preds = %204, %202
  %207 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %208 = icmp sgt i32 %207, 3
  br i1 %208, label %209, label %._crit_edge150.sink.split

209:                                              ; preds = %206
  %210 = load ptr, ptr @stderr, align 8, !tbaa !12
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 771) #8
  %212 = load ptr, ptr @stderr, align 8, !tbaa !12
  %213 = udiv i32 %.099146, 3
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef nonnull @.str.26, ptr noundef nonnull %0, i32 noundef %213, i32 noundef %200, ptr noundef nonnull %3) #8
  br label %._crit_edge150.sink.split.sink.split

215:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @String_chopOff(ptr noundef nonnull %5, ptr noundef nonnull %133, ptr noundef nonnull @.str.27)
  %216 = call i32 @atoi(ptr nocapture noundef %5) #9
  %217 = add nsw i32 %216, -1
  %218 = load ptr, ptr %111, align 8, !tbaa !17
  %219 = zext i32 %.099146 to i64
  %220 = getelementptr inbounds i32, ptr %218, i64 %219
  store i32 %217, ptr %220, align 4, !tbaa !13
  call void @String_chopOff(ptr noundef nonnull %5, ptr noundef nonnull %134, ptr noundef nonnull @.str.27)
  %221 = call i32 @atoi(ptr nocapture noundef %5) #9
  %222 = add nsw i32 %221, -1
  %223 = load ptr, ptr %111, align 8, !tbaa !17
  %224 = add i32 %.099146, 1
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds i32, ptr %223, i64 %225
  store i32 %222, ptr %226, align 4, !tbaa !13
  call void @String_chopOff(ptr noundef nonnull %5, ptr noundef nonnull %135, ptr noundef nonnull @.str.27)
  %227 = call i32 @atoi(ptr nocapture noundef %5) #9
  %228 = add nsw i32 %227, -1
  %229 = load ptr, ptr %111, align 8, !tbaa !17
  %230 = add i32 %.099146, 2
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds i32, ptr %229, i64 %231
  store i32 %228, ptr %232, align 4, !tbaa !13
  %233 = load ptr, ptr @RCS_GLOBAL_RLOG_CB, align 8, !tbaa !12
  %.not126 = icmp eq ptr %233, null
  br i1 %.not126, label %239, label %234

234:                                              ; preds = %215
  %235 = getelementptr inbounds i32, ptr %229, i64 %219
  %236 = load i32, ptr %235, align 4, !tbaa !13
  %237 = getelementptr inbounds i32, ptr %229, i64 %225
  %238 = load i32, ptr %237, align 4, !tbaa !13
  call void (i32, ptr, ptr, i32, ptr, ...) %233(i32 noundef 5, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 791, ptr noundef nonnull @.str.28, i32 noundef %236, i32 noundef %238, i32 noundef %228) #7
  br label %239

239:                                              ; preds = %234, %215
  %240 = load i32, ptr @RcsLogLevel, align 4, !tbaa !13
  %241 = icmp sgt i32 %240, 4
  br i1 %241, label %242, label %.thread133

242:                                              ; preds = %239
  %243 = load ptr, ptr @stderr, align 8, !tbaa !12
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.RcsMesh_readObjFile, i32 noundef 791) #8
  %245 = load ptr, ptr @stderr, align 8, !tbaa !12
  %246 = load ptr, ptr %111, align 8, !tbaa !17
  %247 = getelementptr inbounds i32, ptr %246, i64 %219
  %248 = load i32, ptr %247, align 4, !tbaa !13
  %249 = getelementptr inbounds i32, ptr %246, i64 %225
  %250 = load i32, ptr %249, align 4, !tbaa !13
  %251 = getelementptr inbounds i32, ptr %246, i64 %231
  %252 = load i32, ptr %251, align 4, !tbaa !13
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef nonnull @.str.28, i32 noundef %248, i32 noundef %250, i32 noundef %252) #8
  %254 = load ptr, ptr @stderr, align 8, !tbaa !12
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %254, ptr noundef nonnull @.str.3) #8
  br label %.thread133

.thread133:                                       ; preds = %239, %242
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  %256 = add i32 %.099146, 3
  br label %257

257:                                              ; preds = %.thread133, %196
  %.2101 = phi i32 [ %.099146, %196 ], [ %256, %.thread133 ]
  %258 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 512, ptr noundef nonnull %34)
  %.not122 = icmp eq ptr %258, null
  br i1 %.not122, label %._crit_edge150, label %136, !llvm.loop !20

._crit_edge150.sink.split.sink.split:             ; preds = %175, %209
  %259 = load ptr, ptr @stderr, align 8, !tbaa !12
  %260 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef nonnull @.str.3) #8
  br label %._crit_edge150.sink.split

._crit_edge150.sink.split:                        ; preds = %._crit_edge150.sink.split.sink.split, %206, %172
  %261 = load ptr, ptr %86, align 8, !tbaa !16
  call void @free(ptr noundef %261) #7
  %262 = load ptr, ptr %111, align 8, !tbaa !17
  call void @free(ptr noundef %262) #7
  store i32 0, ptr %1, align 8, !tbaa !5
  store i32 0, ptr %6, align 8, !tbaa !11
  br label %._crit_edge150

._crit_edge150:                                   ; preds = %257, %._crit_edge150.sink.split, %131
  %.not122137 = phi i1 [ true, %131 ], [ false, %._crit_edge150.sink.split ], [ true, %257 ]
  %263 = call i32 @fclose(ptr noundef nonnull %34)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #7
  br label %264

264:                                              ; preds = %._crit_edge150, %128, %103
  %.6 = phi i1 [ false, %103 ], [ false, %128 ], [ %.not122137, %._crit_edge150 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #7
  br label %265

265:                                              ; preds = %264, %42, %39, %14, %11
  %.8 = phi i1 [ false, %11 ], [ false, %14 ], [ %.6, %264 ], [ false, %42 ], [ false, %39 ]
  ret i1 %.8
}

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare void @rewind(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare double @String_toDouble_l(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden void @String_chopOff(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree 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 #2 = { 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 #3 = { 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 #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { nounwind willreturn memory(read) }

!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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!10, !10, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!6, !10, i64 8}
!17 = !{!6, !10, i64 24}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !8, i64 0}
!20 = distinct !{!20, !15}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass