; LLVM IR from beagleboard/librobotcontrol :: library/src (pinmux)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [78 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @rc_pinmux_set(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  %11 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %11, label %279 [
    i32 30, label %12
    i32 2, label %28
    i32 3, label %47
    i32 14, label %66
    i32 15, label %85
    i32 112, label %104
    i32 111, label %120
    i32 110, label %136
    i32 113, label %152
    i32 49, label %175
    i32 29, label %195
    i32 7, label %211
    i32 57, label %227
    i32 116, label %240
    i32 98, label %253
    i32 97, label %266
  ]

12:                                               ; preds = %2
  %13 = load i32, ptr %5, align 4, !tbaa !5
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %15, label %27

15:                                               ; preds = %12
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = icmp ne i32 %16, 1
  br i1 %17, label %18, label %27

18:                                               ; preds = %15
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = icmp ne i32 %19, 2
  br i1 %20, label %21, label %27

21:                                               ; preds = %18
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = icmp ne i32 %22, 5
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  %25 = load ptr, ptr @stderr, align 8, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

27:                                               ; preds = %21, %18, %15, %12
  store ptr @.str.1, ptr %8, align 8, !tbaa !9
  br label %283

28:                                               ; preds = %2
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %46

31:                                               ; preds = %28
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = icmp ne i32 %32, 1
  br i1 %33, label %34, label %46

34:                                               ; preds = %31
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = icmp ne i32 %35, 2
  br i1 %36, label %37, label %46

37:                                               ; preds = %34
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = icmp ne i32 %38, 3
  br i1 %39, label %40, label %46

40:                                               ; preds = %37
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = icmp ne i32 %41, 5
  br i1 %42, label %43, label %46

43:                                               ; preds = %40
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.2) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

46:                                               ; preds = %40, %37, %34, %31, %28
  store ptr @.str.3, ptr %8, align 8, !tbaa !9
  br label %283

47:                                               ; preds = %2
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %65

50:                                               ; preds = %47
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = icmp ne i32 %51, 1
  br i1 %52, label %53, label %65

53:                                               ; preds = %50
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = icmp ne i32 %54, 2
  br i1 %55, label %56, label %65

56:                                               ; preds = %53
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = icmp ne i32 %57, 3
  br i1 %58, label %59, label %65

59:                                               ; preds = %56
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = icmp ne i32 %60, 5
  br i1 %61, label %62, label %65

62:                                               ; preds = %59
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.4) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

65:                                               ; preds = %59, %56, %53, %50, %47
  store ptr @.str.5, ptr %8, align 8, !tbaa !9
  br label %283

66:                                               ; preds = %2
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %84

69:                                               ; preds = %66
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = icmp ne i32 %70, 1
  br i1 %71, label %72, label %84

72:                                               ; preds = %69
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 2
  br i1 %74, label %75, label %84

75:                                               ; preds = %72
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = icmp ne i32 %76, 6
  br i1 %77, label %78, label %84

78:                                               ; preds = %75
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = icmp ne i32 %79, 5
  br i1 %80, label %81, label %84

81:                                               ; preds = %78
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.6) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

84:                                               ; preds = %78, %75, %72, %69, %66
  store ptr @.str.7, ptr %8, align 8, !tbaa !9
  br label %283

85:                                               ; preds = %2
  %86 = load i32, ptr %5, align 4, !tbaa !5
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %103

88:                                               ; preds = %85
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = icmp ne i32 %89, 1
  br i1 %90, label %91, label %103

91:                                               ; preds = %88
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = icmp ne i32 %92, 2
  br i1 %93, label %94, label %103

94:                                               ; preds = %91
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = icmp ne i32 %95, 6
  br i1 %96, label %97, label %103

97:                                               ; preds = %94
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = icmp ne i32 %98, 5
  br i1 %99, label %100, label %103

100:                                              ; preds = %97
  %101 = load ptr, ptr @stderr, align 8, !tbaa !9
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.6) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

103:                                              ; preds = %97, %94, %91, %88, %85
  store ptr @.str.8, ptr %8, align 8, !tbaa !9
  br label %283

104:                                              ; preds = %2
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %119

107:                                              ; preds = %104
  %108 = load i32, ptr %5, align 4, !tbaa !5
  %109 = icmp ne i32 %108, 1
  br i1 %109, label %110, label %119

110:                                              ; preds = %107
  %111 = load i32, ptr %5, align 4, !tbaa !5
  %112 = icmp ne i32 %111, 2
  br i1 %112, label %113, label %119

113:                                              ; preds = %110
  %114 = load i32, ptr %5, align 4, !tbaa !5
  %115 = icmp ne i32 %114, 4
  br i1 %115, label %116, label %119

116:                                              ; preds = %113
  %117 = load ptr, ptr @stderr, align 8, !tbaa !9
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.9) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

119:                                              ; preds = %113, %110, %107, %104
  store ptr @.str.10, ptr %8, align 8, !tbaa !9
  br label %283

120:                                              ; preds = %2
  %121 = load i32, ptr %5, align 4, !tbaa !5
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %135

123:                                              ; preds = %120
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = icmp ne i32 %124, 1
  br i1 %125, label %126, label %135

126:                                              ; preds = %123
  %127 = load i32, ptr %5, align 4, !tbaa !5
  %128 = icmp ne i32 %127, 2
  br i1 %128, label %129, label %135

129:                                              ; preds = %126
  %130 = load i32, ptr %5, align 4, !tbaa !5
  %131 = icmp ne i32 %130, 4
  br i1 %131, label %132, label %135

132:                                              ; preds = %129
  %133 = load ptr, ptr @stderr, align 8, !tbaa !9
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.11) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

135:                                              ; preds = %129, %126, %123, %120
  store ptr @.str.12, ptr %8, align 8, !tbaa !9
  br label %283

136:                                              ; preds = %2
  %137 = load i32, ptr %5, align 4, !tbaa !5
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %151

139:                                              ; preds = %136
  %140 = load i32, ptr %5, align 4, !tbaa !5
  %141 = icmp ne i32 %140, 1
  br i1 %141, label %142, label %151

142:                                              ; preds = %139
  %143 = load i32, ptr %5, align 4, !tbaa !5
  %144 = icmp ne i32 %143, 2
  br i1 %144, label %145, label %151

145:                                              ; preds = %142
  %146 = load i32, ptr %5, align 4, !tbaa !5
  %147 = icmp ne i32 %146, 4
  br i1 %147, label %148, label %151

148:                                              ; preds = %145
  %149 = load ptr, ptr @stderr, align 8, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.13) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

151:                                              ; preds = %145, %142, %139, %136
  store ptr @.str.14, ptr %8, align 8, !tbaa !9
  br label %283

152:                                              ; preds = %2
  %153 = load i32, ptr %5, align 4, !tbaa !5
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %174

155:                                              ; preds = %152
  %156 = load i32, ptr %5, align 4, !tbaa !5
  %157 = icmp ne i32 %156, 1
  br i1 %157, label %158, label %174

158:                                              ; preds = %155
  %159 = load i32, ptr %5, align 4, !tbaa !5
  %160 = icmp ne i32 %159, 2
  br i1 %160, label %161, label %174

161:                                              ; preds = %158
  %162 = load i32, ptr %5, align 4, !tbaa !5
  %163 = icmp ne i32 %162, 4
  br i1 %163, label %164, label %174

164:                                              ; preds = %161
  %165 = call i32 @rc_model()
  %166 = icmp eq i32 %165, 7
  br i1 %166, label %167, label %170

167:                                              ; preds = %164
  %168 = load ptr, ptr @stderr, align 8, !tbaa !9
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str.15) #6
  br label %173

170:                                              ; preds = %164
  %171 = load ptr, ptr @stderr, align 8, !tbaa !9
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef @.str.16) #6
  br label %173

173:                                              ; preds = %170, %167
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

174:                                              ; preds = %161, %158, %155, %152
  store ptr @.str.17, ptr %8, align 8, !tbaa !9
  br label %283

175:                                              ; preds = %2
  %176 = load i32, ptr %5, align 4, !tbaa !5
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %194

178:                                              ; preds = %175
  %179 = load i32, ptr %5, align 4, !tbaa !5
  %180 = icmp ne i32 %179, 1
  br i1 %180, label %181, label %194

181:                                              ; preds = %178
  %182 = load i32, ptr %5, align 4, !tbaa !5
  %183 = icmp ne i32 %182, 2
  br i1 %183, label %184, label %194

184:                                              ; preds = %181
  %185 = call i32 @rc_model()
  %186 = icmp eq i32 %185, 7
  br i1 %186, label %187, label %190

187:                                              ; preds = %184
  %188 = load ptr, ptr @stderr, align 8, !tbaa !9
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.18) #6
  br label %193

190:                                              ; preds = %184
  %191 = load ptr, ptr @stderr, align 8, !tbaa !9
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.19) #6
  br label %193

193:                                              ; preds = %190, %187
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

194:                                              ; preds = %181, %178, %175
  store ptr @.str.20, ptr %8, align 8, !tbaa !9
  br label %283

195:                                              ; preds = %2
  %196 = load i32, ptr %5, align 4, !tbaa !5
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %210

198:                                              ; preds = %195
  %199 = load i32, ptr %5, align 4, !tbaa !5
  %200 = icmp ne i32 %199, 1
  br i1 %200, label %201, label %210

201:                                              ; preds = %198
  %202 = load i32, ptr %5, align 4, !tbaa !5
  %203 = icmp ne i32 %202, 2
  br i1 %203, label %204, label %210

204:                                              ; preds = %201
  %205 = load i32, ptr %5, align 4, !tbaa !5
  %206 = icmp ne i32 %205, 4
  br i1 %206, label %207, label %210

207:                                              ; preds = %204
  %208 = load ptr, ptr @stderr, align 8, !tbaa !9
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.21) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

210:                                              ; preds = %204, %201, %198, %195
  store ptr @.str.22, ptr %8, align 8, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %283

211:                                              ; preds = %2
  %212 = load i32, ptr %5, align 4, !tbaa !5
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %226

214:                                              ; preds = %211
  %215 = load i32, ptr %5, align 4, !tbaa !5
  %216 = icmp ne i32 %215, 1
  br i1 %216, label %217, label %226

217:                                              ; preds = %214
  %218 = load i32, ptr %5, align 4, !tbaa !5
  %219 = icmp ne i32 %218, 2
  br i1 %219, label %220, label %226

220:                                              ; preds = %217
  %221 = load i32, ptr %5, align 4, !tbaa !5
  %222 = icmp ne i32 %221, 4
  br i1 %222, label %223, label %226

223:                                              ; preds = %220
  %224 = load ptr, ptr @stderr, align 8, !tbaa !9
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.23) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

226:                                              ; preds = %220, %217, %214, %211
  store ptr @.str.24, ptr %8, align 8, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %283

227:                                              ; preds = %2
  %228 = load i32, ptr %5, align 4, !tbaa !5
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %239

230:                                              ; preds = %227
  %231 = load i32, ptr %5, align 4, !tbaa !5
  %232 = icmp ne i32 %231, 1
  br i1 %232, label %233, label %239

233:                                              ; preds = %230
  %234 = load i32, ptr %5, align 4, !tbaa !5
  %235 = icmp ne i32 %234, 2
  br i1 %235, label %236, label %239

236:                                              ; preds = %233
  %237 = load ptr, ptr @stderr, align 8, !tbaa !9
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.25) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

239:                                              ; preds = %233, %230, %227
  store ptr @.str.26, ptr %8, align 8, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %283

240:                                              ; preds = %2
  %241 = load i32, ptr %5, align 4, !tbaa !5
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %252

243:                                              ; preds = %240
  %244 = load i32, ptr %5, align 4, !tbaa !5
  %245 = icmp ne i32 %244, 1
  br i1 %245, label %246, label %252

246:                                              ; preds = %243
  %247 = load i32, ptr %5, align 4, !tbaa !5
  %248 = icmp ne i32 %247, 2
  br i1 %248, label %249, label %252

249:                                              ; preds = %246
  %250 = load ptr, ptr @stderr, align 8, !tbaa !9
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.27) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

252:                                              ; preds = %246, %243, %240
  store ptr @.str.28, ptr %8, align 8, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %283

253:                                              ; preds = %2
  %254 = load i32, ptr %5, align 4, !tbaa !5
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %265

256:                                              ; preds = %253
  %257 = load i32, ptr %5, align 4, !tbaa !5
  %258 = icmp ne i32 %257, 1
  br i1 %258, label %259, label %265

259:                                              ; preds = %256
  %260 = load i32, ptr %5, align 4, !tbaa !5
  %261 = icmp ne i32 %260, 2
  br i1 %261, label %262, label %265

262:                                              ; preds = %259
  %263 = load ptr, ptr @stderr, align 8, !tbaa !9
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.29) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

265:                                              ; preds = %259, %256, %253
  store ptr @.str.30, ptr %8, align 8, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %283

266:                                              ; preds = %2
  %267 = load i32, ptr %5, align 4, !tbaa !5
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %269, label %278

269:                                              ; preds = %266
  %270 = load i32, ptr %5, align 4, !tbaa !5
  %271 = icmp ne i32 %270, 1
  br i1 %271, label %272, label %278

272:                                              ; preds = %269
  %273 = load i32, ptr %5, align 4, !tbaa !5
  %274 = icmp ne i32 %273, 2
  br i1 %274, label %275, label %278

275:                                              ; preds = %272
  %276 = load ptr, ptr @stderr, align 8, !tbaa !9
  %277 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %276, ptr noundef @.str.31) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

278:                                              ; preds = %272, %269, %266
  store ptr @.str.32, ptr %8, align 8, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %283

279:                                              ; preds = %2
  %280 = load ptr, ptr @stderr, align 8, !tbaa !9
  %281 = load i32, ptr %4, align 4, !tbaa !5
  %282 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef @.str.33, i32 noundef %281) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

283:                                              ; preds = %278, %265, %252, %239, %226, %210, %194, %174, %151, %135, %119, %103, %84, %65, %46, %27
  %284 = load i32, ptr %9, align 4, !tbaa !5
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %286, label %292

286:                                              ; preds = %283
  %287 = call i32 @rc_model()
  %288 = icmp ne i32 %287, 7
  br i1 %288, label %289, label %292

289:                                              ; preds = %286
  %290 = load ptr, ptr @stderr, align 8, !tbaa !9
  %291 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef @.str.34) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

292:                                              ; preds = %286, %283
  %293 = call ptr @__errno_location() #7
  store i32 0, ptr %293, align 4, !tbaa !5
  %294 = load ptr, ptr %8, align 8, !tbaa !9
  %295 = call i32 (ptr, i32, ...) @open(ptr noundef %294, i32 noundef 1)
  store i32 %295, ptr %6, align 4, !tbaa !5
  %296 = load i32, ptr %6, align 4, !tbaa !5
  %297 = icmp eq i32 %296, -1
  %298 = xor i1 %297, true
  %299 = xor i1 %298, true
  %300 = zext i1 %299 to i32
  %301 = sext i32 %300 to i64
  %302 = call i64 @llvm.expect.i64(i64 %301, i64 0)
  %303 = icmp ne i64 %302, 0
  br i1 %303, label %304, label %308

304:                                              ; preds = %292
  call void @perror(ptr noundef @.str.35)
  %305 = load ptr, ptr @stderr, align 8, !tbaa !9
  %306 = load ptr, ptr %8, align 8, !tbaa !9
  %307 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %305, ptr noundef @.str.36, ptr noundef %306) #6
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

308:                                              ; preds = %292
  %309 = load i32, ptr %5, align 4, !tbaa !5
  switch i32 %309, label %338 [
    i32 0, label %310
    i32 1, label %314
    i32 2, label %318
    i32 3, label %322
    i32 4, label %326
    i32 5, label %330
    i32 6, label %334
  ]

310:                                              ; preds = %308
  %311 = load i32, ptr %6, align 4, !tbaa !5
  %312 = call i64 @write(i32 noundef %311, ptr noundef @.str.37, i64 noundef 4)
  %313 = trunc i64 %312 to i32
  store i32 %313, ptr %7, align 4, !tbaa !5
  br label %343

314:                                              ; preds = %308
  %315 = load i32, ptr %6, align 4, !tbaa !5
  %316 = call i64 @write(i32 noundef %315, ptr noundef @.str.38, i64 noundef 7)
  %317 = trunc i64 %316 to i32
  store i32 %317, ptr %7, align 4, !tbaa !5
  br label %343

318:                                              ; preds = %308
  %319 = load i32, ptr %6, align 4, !tbaa !5
  %320 = call i64 @write(i32 noundef %319, ptr noundef @.str.39, i64 noundef 7)
  %321 = trunc i64 %320 to i32
  store i32 %321, ptr %7, align 4, !tbaa !5
  br label %343

322:                                              ; preds = %308
  %323 = load i32, ptr %6, align 4, !tbaa !5
  %324 = call i64 @write(i32 noundef %323, ptr noundef @.str.40, i64 noundef 3)
  %325 = trunc i64 %324 to i32
  store i32 %325, ptr %7, align 4, !tbaa !5
  br label %343

326:                                              ; preds = %308
  %327 = load i32, ptr %6, align 4, !tbaa !5
  %328 = call i64 @write(i32 noundef %327, ptr noundef @.str.41, i64 noundef 3)
  %329 = trunc i64 %328 to i32
  store i32 %329, ptr %7, align 4, !tbaa !5
  br label %343

330:                                              ; preds = %308
  %331 = load i32, ptr %6, align 4, !tbaa !5
  %332 = call i64 @write(i32 noundef %331, ptr noundef @.str.42, i64 noundef 4)
  %333 = trunc i64 %332 to i32
  store i32 %333, ptr %7, align 4, !tbaa !5
  br label %343

334:                                              ; preds = %308
  %335 = load i32, ptr %6, align 4, !tbaa !5
  %336 = call i64 @write(i32 noundef %335, ptr noundef @.str.43, i64 noundef 3)
  %337 = trunc i64 %336 to i32
  store i32 %337, ptr %7, align 4, !tbaa !5
  br label %343

338:                                              ; preds = %308
  %339 = load ptr, ptr @stderr, align 8, !tbaa !9
  %340 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %339, ptr noundef @.str.44) #6
  %341 = load i32, ptr %6, align 4, !tbaa !5
  %342 = call i32 @close(i32 noundef %341)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

343:                                              ; preds = %334, %330, %326, %322, %318, %314, %310
  %344 = load i32, ptr %7, align 4, !tbaa !5
  %345 = icmp slt i32 %344, 0
  br i1 %345, label %346, label %349

346:                                              ; preds = %343
  call void @perror(ptr noundef @.str.45)
  %347 = load i32, ptr %6, align 4, !tbaa !5
  %348 = call i32 @close(i32 noundef %347)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

349:                                              ; preds = %343
  %350 = load i32, ptr %6, align 4, !tbaa !5
  %351 = call i32 @close(i32 noundef %350)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %352

352:                                              ; preds = %349, %346, %338, %304, %289, %279, %275, %262, %249, %236, %223, %207, %193, %173, %148, %132, %116, %100, %81, %62, %43, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %353 = load i32, ptr %3, align 4
  ret i32 %353
}

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

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

declare i32 @rc_model() #3

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #4

declare i32 @open(ptr noundef, i32 noundef, ...) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #5

declare void @perror(ptr noundef) #3

declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #3

declare i32 @close(i32 noundef) #3

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

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

!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 = !{!"int", !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}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [78 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @rc_pinmux_set(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  switch i32 %0, label %88 [
    i32 30, label %3
    i32 2, label %8
    i32 3, label %13
    i32 14, label %18
    i32 15, label %23
    i32 112, label %28
    i32 111, label %33
    i32 110, label %38
    i32 113, label %43
    i32 49, label %53
    i32 29, label %62
    i32 7, label %67
    i32 57, label %72
    i32 116, label %76
    i32 98, label %80
    i32 97, label %84
  ]

3:                                                ; preds = %2
  %4 = icmp ult i32 %1, 6
  br i1 %4, label %switch.hole_check, label %5

5:                                                ; preds = %switch.hole_check, %3
  %6 = load ptr, ptr @stderr, align 8, !tbaa !5
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str) #5
  br label %122

8:                                                ; preds = %2
  %9 = icmp ult i32 %1, 6
  br i1 %9, label %switch.hole_check184, label %10

10:                                               ; preds = %switch.hole_check184, %8
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.2) #5
  br label %122

13:                                               ; preds = %2
  %14 = icmp ult i32 %1, 6
  br i1 %14, label %switch.hole_check190, label %15

15:                                               ; preds = %switch.hole_check190, %13
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.4) #5
  br label %122

18:                                               ; preds = %2
  %19 = icmp ult i32 %1, 7
  br i1 %19, label %switch.hole_check196, label %20

20:                                               ; preds = %switch.hole_check196, %18
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.6) #5
  br label %122

23:                                               ; preds = %2
  %24 = icmp ult i32 %1, 7
  br i1 %24, label %switch.hole_check202, label %25

25:                                               ; preds = %switch.hole_check202, %23
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.6) #5
  br label %122

28:                                               ; preds = %2
  %29 = icmp ult i32 %1, 5
  br i1 %29, label %switch.hole_check208, label %30

30:                                               ; preds = %switch.hole_check208, %28
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.9) #5
  br label %122

33:                                               ; preds = %2
  %34 = icmp ult i32 %1, 5
  br i1 %34, label %switch.hole_check214, label %35

35:                                               ; preds = %switch.hole_check214, %33
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.11) #5
  br label %122

38:                                               ; preds = %2
  %39 = icmp ult i32 %1, 5
  br i1 %39, label %switch.hole_check220, label %40

40:                                               ; preds = %switch.hole_check220, %38
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.13) #5
  br label %122

43:                                               ; preds = %2
  %44 = icmp ult i32 %1, 5
  br i1 %44, label %switch.hole_check226, label %45

45:                                               ; preds = %switch.hole_check226, %43
  %46 = tail call i32 @rc_model() #6
  %47 = icmp eq i32 %46, 7
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  br i1 %47, label %49, label %51

49:                                               ; preds = %45
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.15) #5
  br label %122

51:                                               ; preds = %45
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.16) #5
  br label %122

53:                                               ; preds = %2
  %or.cond65 = icmp ugt i32 %1, 2
  br i1 %or.cond65, label %54, label %.thread

54:                                               ; preds = %53
  %55 = tail call i32 @rc_model() #6
  %56 = icmp eq i32 %55, 7
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  br i1 %56, label %58, label %60

58:                                               ; preds = %54
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.18) #5
  br label %122

60:                                               ; preds = %54
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.19) #5
  br label %122

62:                                               ; preds = %2
  %63 = icmp ult i32 %1, 5
  br i1 %63, label %switch.hole_check232, label %64

64:                                               ; preds = %switch.hole_check232, %62
  %65 = load ptr, ptr @stderr, align 8, !tbaa !5
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.21) #5
  br label %122

67:                                               ; preds = %2
  %68 = icmp ult i32 %1, 5
  br i1 %68, label %switch.hole_check238, label %69

69:                                               ; preds = %switch.hole_check238, %67
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.23) #5
  br label %122

72:                                               ; preds = %2
  %or.cond81 = icmp ugt i32 %1, 2
  br i1 %or.cond81, label %73, label %switch.lookup233

73:                                               ; preds = %72
  %74 = load ptr, ptr @stderr, align 8, !tbaa !5
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.25) #5
  br label %122

76:                                               ; preds = %2
  %or.cond85 = icmp ugt i32 %1, 2
  br i1 %or.cond85, label %77, label %switch.lookup233

77:                                               ; preds = %76
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  %79 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.27) #5
  br label %122

80:                                               ; preds = %2
  %or.cond89 = icmp ugt i32 %1, 2
  br i1 %or.cond89, label %81, label %switch.lookup233

81:                                               ; preds = %80
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.29) #5
  br label %122

84:                                               ; preds = %2
  %or.cond93 = icmp ugt i32 %1, 2
  br i1 %or.cond93, label %85, label %switch.lookup233

85:                                               ; preds = %84
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.31) #5
  br label %122

88:                                               ; preds = %2
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.33, i32 noundef %0) #5
  br label %122

switch.hole_check232:                             ; preds = %62
  %switch.maskindex234 = trunc nuw i32 %1 to i8
  %switch.shifted235 = lshr i8 23, %switch.maskindex234
  %switch.lobit236 = trunc i8 %switch.shifted235 to i1
  br i1 %switch.lobit236, label %switch.lookup233, label %64

switch.hole_check238:                             ; preds = %67
  %switch.maskindex240 = trunc nuw i32 %1 to i8
  %switch.shifted241 = lshr i8 23, %switch.maskindex240
  %switch.lobit242 = trunc i8 %switch.shifted241 to i1
  br i1 %switch.lobit242, label %switch.lookup233, label %69

switch.lookup233:                                 ; preds = %switch.hole_check238, %switch.hole_check232, %72, %76, %80, %84
  %.0174 = phi ptr [ @.str.26, %72 ], [ @.str.28, %76 ], [ @.str.30, %80 ], [ @.str.32, %84 ], [ @.str.22, %switch.hole_check232 ], [ @.str.24, %switch.hole_check238 ]
  %91 = tail call i32 @rc_model() #6
  %.not178 = icmp eq i32 %91, 7
  br i1 %.not178, label %.thread, label %92

92:                                               ; preds = %switch.lookup233
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.34) #5
  br label %122

switch.hole_check:                                ; preds = %3
  %switch.maskindex = trunc nuw i32 %1 to i8
  %switch.shifted = lshr i8 39, %switch.maskindex
  %switch.lobit = trunc i8 %switch.shifted to i1
  br i1 %switch.lobit, label %.thread, label %5

switch.hole_check184:                             ; preds = %8
  %switch.maskindex186 = trunc nuw i32 %1 to i8
  %switch.shifted187 = lshr i8 47, %switch.maskindex186
  %switch.lobit188 = trunc i8 %switch.shifted187 to i1
  br i1 %switch.lobit188, label %.thread, label %10

switch.hole_check190:                             ; preds = %13
  %switch.maskindex192 = trunc nuw i32 %1 to i8
  %switch.shifted193 = lshr i8 47, %switch.maskindex192
  %switch.lobit194 = trunc i8 %switch.shifted193 to i1
  br i1 %switch.lobit194, label %.thread, label %15

switch.hole_check196:                             ; preds = %18
  %switch.maskindex198 = trunc nuw i32 %1 to i8
  %switch.shifted199 = lshr i8 103, %switch.maskindex198
  %switch.lobit200 = trunc i8 %switch.shifted199 to i1
  br i1 %switch.lobit200, label %.thread, label %20

switch.hole_check202:                             ; preds = %23
  %switch.maskindex204 = trunc nuw i32 %1 to i8
  %switch.shifted205 = lshr i8 103, %switch.maskindex204
  %switch.lobit206 = trunc i8 %switch.shifted205 to i1
  br i1 %switch.lobit206, label %.thread, label %25

switch.hole_check208:                             ; preds = %28
  %switch.maskindex210 = trunc nuw i32 %1 to i8
  %switch.shifted211 = lshr i8 23, %switch.maskindex210
  %switch.lobit212 = trunc i8 %switch.shifted211 to i1
  br i1 %switch.lobit212, label %.thread, label %30

switch.hole_check214:                             ; preds = %33
  %switch.maskindex216 = trunc nuw i32 %1 to i8
  %switch.shifted217 = lshr i8 23, %switch.maskindex216
  %switch.lobit218 = trunc i8 %switch.shifted217 to i1
  br i1 %switch.lobit218, label %.thread, label %35

switch.hole_check220:                             ; preds = %38
  %switch.maskindex222 = trunc nuw i32 %1 to i8
  %switch.shifted223 = lshr i8 23, %switch.maskindex222
  %switch.lobit224 = trunc i8 %switch.shifted223 to i1
  br i1 %switch.lobit224, label %.thread, label %40

switch.hole_check226:                             ; preds = %43
  %switch.maskindex228 = trunc nuw i32 %1 to i8
  %switch.shifted229 = lshr i8 23, %switch.maskindex228
  %switch.lobit230 = trunc i8 %switch.shifted229 to i1
  br i1 %switch.lobit230, label %.thread, label %45

.thread:                                          ; preds = %switch.hole_check226, %switch.hole_check220, %switch.hole_check214, %switch.hole_check208, %switch.hole_check202, %switch.hole_check196, %switch.hole_check190, %switch.hole_check184, %switch.hole_check, %53, %switch.lookup233
  %.0174182 = phi ptr [ %.0174, %switch.lookup233 ], [ @.str.20, %53 ], [ @.str.1, %switch.hole_check ], [ @.str.3, %switch.hole_check184 ], [ @.str.5, %switch.hole_check190 ], [ @.str.7, %switch.hole_check196 ], [ @.str.8, %switch.hole_check202 ], [ @.str.10, %switch.hole_check208 ], [ @.str.12, %switch.hole_check214 ], [ @.str.14, %switch.hole_check220 ], [ @.str.17, %switch.hole_check226 ]
  %95 = tail call ptr @__errno_location() #7
  store i32 0, ptr %95, align 4, !tbaa !9
  %96 = tail call i32 (ptr, i32, ...) @open(ptr noundef nonnull %.0174182, i32 noundef 1) #6
  %97 = icmp eq i32 %96, -1
  br i1 %97, label %98, label %101, !prof !11

98:                                               ; preds = %.thread
  tail call void @perror(ptr noundef nonnull @.str.35) #8
  %99 = load ptr, ptr @stderr, align 8, !tbaa !5
  %100 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef nonnull @.str.36, ptr noundef nonnull %.0174182) #5
  br label %122

101:                                              ; preds = %.thread
  switch i32 %1, label %default.unreachable [
    i32 0, label %102
    i32 1, label %104
    i32 2, label %106
    i32 3, label %108
    i32 4, label %110
    i32 5, label %112
    i32 6, label %114
  ]

102:                                              ; preds = %101
  %103 = tail call i64 @write(i32 noundef %96, ptr noundef nonnull @.str.37, i64 noundef 4) #6
  br label %116

104:                                              ; preds = %101
  %105 = tail call i64 @write(i32 noundef %96, ptr noundef nonnull @.str.38, i64 noundef 7) #6
  br label %116

106:                                              ; preds = %101
  %107 = tail call i64 @write(i32 noundef %96, ptr noundef nonnull @.str.39, i64 noundef 7) #6
  br label %116

108:                                              ; preds = %101
  %109 = tail call i64 @write(i32 noundef %96, ptr noundef nonnull @.str.40, i64 noundef 3) #6
  br label %116

110:                                              ; preds = %101
  %111 = tail call i64 @write(i32 noundef %96, ptr noundef nonnull @.str.41, i64 noundef 3) #6
  br label %116

112:                                              ; preds = %101
  %113 = tail call i64 @write(i32 noundef %96, ptr noundef nonnull @.str.42, i64 noundef 4) #6
  br label %116

114:                                              ; preds = %101
  %115 = tail call i64 @write(i32 noundef %96, ptr noundef nonnull @.str.43, i64 noundef 3) #6
  br label %116

default.unreachable:                              ; preds = %101
  unreachable

116:                                              ; preds = %114, %112, %110, %108, %106, %104, %102
  %.0175.in = phi i64 [ %115, %114 ], [ %113, %112 ], [ %111, %110 ], [ %109, %108 ], [ %107, %106 ], [ %105, %104 ], [ %103, %102 ]
  %117 = and i64 %.0175.in, 2147483648
  %.not179 = icmp eq i64 %117, 0
  br i1 %.not179, label %120, label %118

118:                                              ; preds = %116
  tail call void @perror(ptr noundef nonnull @.str.45) #8
  %119 = tail call i32 @close(i32 noundef %96) #6
  br label %122

120:                                              ; preds = %116
  %121 = tail call i32 @close(i32 noundef %96) #6
  br label %122

122:                                              ; preds = %58, %60, %49, %51, %120, %118, %98, %92, %88, %85, %81, %77, %73, %69, %64, %40, %35, %30, %25, %20, %15, %10, %5
  %.0176 = phi i32 [ -1, %88 ], [ -1, %85 ], [ -1, %92 ], [ -1, %98 ], [ -1, %118 ], [ 0, %120 ], [ -1, %81 ], [ -1, %77 ], [ -1, %73 ], [ -1, %69 ], [ -1, %64 ], [ -1, %40 ], [ -1, %35 ], [ -1, %30 ], [ -1, %25 ], [ -1, %20 ], [ -1, %15 ], [ -1, %10 ], [ -1, %5 ], [ -1, %51 ], [ -1, %49 ], [ -1, %60 ], [ -1, %58 ]
  ret i32 %.0176
}

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

declare i32 @rc_model() local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #3

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #4

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

; Function Attrs: nofree
declare noundef i64 @write(i32 noundef, ptr nocapture noundef readonly, i64 noundef) local_unnamed_addr #4

declare i32 @close(i32 noundef) local_unnamed_addr #2

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 = { 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 = { "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 nofree nosync nounwind willreturn memory(none) "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 = { nofree "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 = { cold nounwind }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }
attributes #8 = { cold }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"branch_weights", !"expected", i32 1, i32 2000}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass