; LLVM IR from paintdream/DontStarveLuaJIT :: src/luajit/src (lj_cconv)

; 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.anon = type { %union.anon, i32 }
%union.anon = type { %struct.GCRef }
%struct.GCRef = type { i32 }
%struct.GCcdata = type { %struct.GCRef, i8, i8, i16 }
%struct.CType = type { i32, i32, i16, i16, %struct.GCRef }
%struct.GCstr = type { %struct.GCRef, i8, i8, i8, i8, i32, i32 }
%struct.GCudata = type { %struct.GCRef, i8, i8, i8, i8, %struct.GCRef, i32, %struct.GCRef, i32 }

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_get(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define hidden void @lj_cconv_ct_tv(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 17, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr %13, ptr %15, align 8, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.anon, ptr %24, i32 0, i32 1
  %26 = load i32, ptr %25, align 4, !tbaa !11
  %27 = icmp ult i32 %26, -65537
  %28 = xor i1 %27, true
  %29 = xor i1 %28, true
  %30 = zext i1 %29 to i32
  %31 = sext i32 %30 to i64
  %32 = call i64 @llvm.expect.i64(i64 %31, i64 1)
  %33 = icmp ne i64 %32, 0
  br i1 %33, label %34, label %38

34:                                               ; preds = %5
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %35, ptr %15, align 8, !tbaa !5
  store i32 14, ptr %11, align 4, !tbaa !9
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = or i32 %36, 2
  store i32 %37, ptr %10, align 4, !tbaa !9
  br label %334

38:                                               ; preds = %5
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.anon, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !11
  %42 = icmp eq i32 %41, -11
  br i1 %42, label %43, label %102

43:                                               ; preds = %38
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.anon, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %struct.GCRef, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %48 = zext i32 %47 to i64
  %49 = inttoptr i64 %48 to ptr
  %50 = getelementptr inbounds %struct.GCcdata, ptr %49, i64 1
  store ptr %50, ptr %15, align 8, !tbaa !5
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.anon, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %struct.GCRef, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !11
  %55 = zext i32 %54 to i64
  %56 = inttoptr i64 %55 to ptr
  %57 = getelementptr inbounds %struct.GCcdata, ptr %56, i32 0, i32 3
  %58 = load i16, ptr %57, align 2, !tbaa !11
  %59 = zext i16 %58 to i32
  store i32 %59, ptr %11, align 4, !tbaa !9
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = call ptr @ctype_get(ptr noundef %60, i32 noundef %61)
  store ptr %62, ptr %12, align 8, !tbaa !5
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.CType, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 4, !tbaa !12
  %66 = and i32 %65, -260046848
  %67 = icmp eq i32 %66, 545259520
  br i1 %67, label %68, label %75

68:                                               ; preds = %43
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  store ptr %70, ptr %15, align 8, !tbaa !5
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.CType, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 4, !tbaa !12
  %74 = and i32 %73, 65535
  store i32 %74, ptr %11, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %68, %43
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = call ptr @ctype_raw(ptr noundef %76, i32 noundef %77)
  store ptr %78, ptr %12, align 8, !tbaa !5
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.CType, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 4, !tbaa !12
  %82 = lshr i32 %81, 28
  %83 = icmp eq i32 %82, 6
  br i1 %83, label %84, label %90

84:                                               ; preds = %75
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = or i32 196608, %86
  %88 = add i32 536870912, %87
  %89 = call i32 @lj_ctype_intern(ptr noundef %85, i32 noundef %88, i32 noundef 8)
  store i32 %89, ptr %11, align 4, !tbaa !9
  br label %101

90:                                               ; preds = %75
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.CType, ptr %91, i32 0, i32 0
  %93 = load i32, ptr %92, align 4, !tbaa !12
  %94 = lshr i32 %93, 28
  %95 = icmp eq i32 %94, 5
  br i1 %95, label %96, label %100

96:                                               ; preds = %90
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = call ptr @ctype_child(ptr noundef %97, ptr noundef %98)
  store ptr %99, ptr %12, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %96, %90
  br label %338

101:                                              ; preds = %84
  br label %333

102:                                              ; preds = %38
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.anon, ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !11
  %106 = icmp eq i32 %105, -5
  br i1 %106, label %107, label %200

107:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.anon, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %struct.GCRef, ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 8, !tbaa !11
  %112 = zext i32 %111 to i64
  %113 = inttoptr i64 %112 to ptr
  store ptr %113, ptr %16, align 8, !tbaa !5
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.CType, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !12
  %117 = lshr i32 %116, 28
  %118 = icmp eq i32 %117, 5
  br i1 %118, label %119, label %143

119:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  %123 = call ptr @lj_ctype_getfieldq(ptr noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %17, ptr noundef null)
  store ptr %123, ptr %18, align 8, !tbaa !5
  %124 = load ptr, ptr %18, align 8, !tbaa !5
  %125 = icmp ne ptr %124, null
  br i1 %125, label %126, label %132

126:                                              ; preds = %119
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.CType, ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 4, !tbaa !12
  %130 = lshr i32 %129, 28
  %131 = icmp eq i32 %130, 11
  br i1 %131, label %133, label %132

132:                                              ; preds = %126, %119
  store i32 3, ptr %19, align 4
  br label %140

133:                                              ; preds = %126
  %134 = load ptr, ptr %18, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.CType, ptr %134, i32 0, i32 1
  store ptr %135, ptr %15, align 8, !tbaa !5
  %136 = load ptr, ptr %18, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.CType, ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 4, !tbaa !12
  %139 = and i32 %138, 65535
  store i32 %139, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %19, align 4
  br label %140

140:                                              ; preds = %133, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  %141 = load i32, ptr %19, align 4
  switch i32 %141, label %197 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  br label %196

143:                                              ; preds = %107
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.CType, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 4, !tbaa !12
  %147 = and i32 %146, -67108864
  %148 = icmp eq i32 %147, 805306368
  br i1 %148, label %149, label %190

149:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = call ptr @ctype_rawchild(ptr noundef %150, ptr noundef %151)
  store ptr %152, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %153 = load ptr, ptr %16, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.GCstr, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %154, align 4, !tbaa !16
  %156 = add i32 %155, 1
  store i32 %156, ptr %21, align 4, !tbaa !9
  %157 = load ptr, ptr %20, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.CType, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 4, !tbaa !12
  %160 = and i32 %159, -67108864
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %162, label %167

162:                                              ; preds = %149
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.CType, ptr %163, i32 0, i32 1
  %165 = load i32, ptr %164, align 4, !tbaa !18
  %166 = icmp ne i32 %165, 1
  br i1 %166, label %167, label %168

167:                                              ; preds = %162, %149
  store i32 3, ptr %19, align 4
  br label %189

168:                                              ; preds = %162
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.CType, ptr %169, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !18
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %183

173:                                              ; preds = %168
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.CType, ptr %174, i32 0, i32 1
  %176 = load i32, ptr %175, align 4, !tbaa !18
  %177 = load i32, ptr %21, align 4, !tbaa !9
  %178 = icmp ult i32 %176, %177
  br i1 %178, label %179, label %183

179:                                              ; preds = %173
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.CType, ptr %180, i32 0, i32 1
  %182 = load i32, ptr %181, align 4, !tbaa !18
  store i32 %182, ptr %21, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %179, %173, %168
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.GCstr, ptr %185, i64 1
  %187 = load i32, ptr %21, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %184, ptr align 1 %186, i64 %188, i1 false)
  store i32 1, ptr %19, align 4
  br label %189

189:                                              ; preds = %183, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %197

190:                                              ; preds = %143
  %191 = load ptr, ptr %16, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.GCstr, ptr %191, i64 1
  store ptr %192, ptr %15, align 8, !tbaa !5
  store i32 20, ptr %11, align 4, !tbaa !9
  %193 = load i32, ptr %10, align 4, !tbaa !9
  %194 = or i32 %193, 2
  store i32 %194, ptr %10, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %190
  br label %196

196:                                              ; preds = %195, %142
  store i32 0, ptr %19, align 4
  br label %197

197:                                              ; preds = %196, %189, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %198 = load i32, ptr %19, align 4
  switch i32 %198, label %355 [
    i32 0, label %199
    i32 3, label %322
  ]

199:                                              ; preds = %197
  br label %332

200:                                              ; preds = %102
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.anon, ptr %201, i32 0, i32 1
  %203 = load i32, ptr %202, align 4, !tbaa !11
  %204 = icmp eq i32 %203, -12
  br i1 %204, label %205, label %240

205:                                              ; preds = %200
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.CType, ptr %206, i32 0, i32 0
  %208 = load i32, ptr %207, align 4, !tbaa !12
  %209 = lshr i32 %208, 28
  %210 = icmp eq i32 %209, 3
  br i1 %210, label %211, label %222

211:                                              ; preds = %205
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.anon, ptr %215, i32 0, i32 0
  %217 = getelementptr inbounds %struct.GCRef, ptr %216, i32 0, i32 0
  %218 = load i32, ptr %217, align 8, !tbaa !11
  %219 = zext i32 %218 to i64
  %220 = inttoptr i64 %219 to ptr
  %221 = load i32, ptr %10, align 4, !tbaa !9
  call void @cconv_array_tab(ptr noundef %212, ptr noundef %213, ptr noundef %214, ptr noundef %220, i32 noundef %221)
  store i32 1, ptr %19, align 4
  br label %355

222:                                              ; preds = %205
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.CType, ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 4, !tbaa !12
  %226 = lshr i32 %225, 28
  %227 = icmp eq i32 %226, 1
  br i1 %227, label %228, label %239

228:                                              ; preds = %222
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = load ptr, ptr %7, align 8, !tbaa !5
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.anon, ptr %232, i32 0, i32 0
  %234 = getelementptr inbounds %struct.GCRef, ptr %233, i32 0, i32 0
  %235 = load i32, ptr %234, align 8, !tbaa !11
  %236 = zext i32 %235 to i64
  %237 = inttoptr i64 %236 to ptr
  %238 = load i32, ptr %10, align 4, !tbaa !9
  call void @cconv_struct_tab(ptr noundef %229, ptr noundef %230, ptr noundef %231, ptr noundef %237, i32 noundef %238)
  store i32 1, ptr %19, align 4
  br label %355

239:                                              ; preds = %222
  br label %322

240:                                              ; preds = %200
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.anon, ptr %241, i32 0, i32 1
  %243 = load i32, ptr %242, align 4, !tbaa !11
  %244 = icmp eq i32 %243, -2
  br i1 %244, label %250, label %245

245:                                              ; preds = %240
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.anon, ptr %246, i32 0, i32 1
  %248 = load i32, ptr %247, align 4, !tbaa !11
  %249 = icmp eq i32 %248, -3
  br i1 %249, label %250, label %256

250:                                              ; preds = %245, %240
  %251 = load ptr, ptr %9, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.anon, ptr %251, i32 0, i32 1
  %253 = load i32, ptr %252, align 4, !tbaa !11
  %254 = sub i32 -2, %253
  %255 = trunc i32 %254 to i8
  store i8 %255, ptr %14, align 1, !tbaa !11
  store ptr %14, ptr %15, align 8, !tbaa !5
  store i32 3, ptr %11, align 4, !tbaa !9
  br label %330

256:                                              ; preds = %245
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.anon, ptr %257, i32 0, i32 1
  %259 = load i32, ptr %258, align 4, !tbaa !11
  %260 = icmp eq i32 %259, -1
  br i1 %260, label %261, label %264

261:                                              ; preds = %256
  store ptr null, ptr %13, align 8, !tbaa !5
  %262 = load i32, ptr %10, align 4, !tbaa !9
  %263 = or i32 %262, 2
  store i32 %263, ptr %10, align 4, !tbaa !9
  br label %329

264:                                              ; preds = %256
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.anon, ptr %265, i32 0, i32 1
  %267 = load i32, ptr %266, align 4, !tbaa !11
  %268 = icmp eq i32 %267, -13
  br i1 %268, label %269, label %287

269:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %270 = load ptr, ptr %9, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.anon, ptr %270, i32 0, i32 0
  %272 = getelementptr inbounds %struct.GCRef, ptr %271, i32 0, i32 0
  %273 = load i32, ptr %272, align 8, !tbaa !11
  %274 = zext i32 %273 to i64
  %275 = inttoptr i64 %274 to ptr
  store ptr %275, ptr %22, align 8, !tbaa !5
  %276 = load ptr, ptr %22, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.GCudata, ptr %276, i64 1
  store ptr %277, ptr %13, align 8, !tbaa !5
  %278 = load ptr, ptr %22, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.GCudata, ptr %278, i32 0, i32 3
  %280 = load i8, ptr %279, align 2, !tbaa !19
  %281 = zext i8 %280 to i32
  %282 = icmp eq i32 %281, 1
  br i1 %282, label %283, label %286

283:                                              ; preds = %269
  %284 = load ptr, ptr %13, align 8, !tbaa !5
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  store ptr %285, ptr %13, align 8, !tbaa !5
  br label %286

286:                                              ; preds = %283, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %328

287:                                              ; preds = %264
  %288 = load ptr, ptr %9, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.anon, ptr %288, i32 0, i32 1
  %290 = load i32, ptr %289, align 4, !tbaa !11
  %291 = ashr i32 %290, 15
  %292 = icmp eq i32 %291, -2
  br i1 %292, label %293, label %298

293:                                              ; preds = %287
  %294 = load ptr, ptr %9, align 8, !tbaa !5
  %295 = load i64, ptr %294, align 8, !tbaa !11
  %296 = and i64 %295, 140737488355327
  %297 = inttoptr i64 %296 to ptr
  store ptr %297, ptr %13, align 8, !tbaa !5
  br label %327

298:                                              ; preds = %287
  %299 = load ptr, ptr %9, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.anon, ptr %299, i32 0, i32 1
  %301 = load i32, ptr %300, align 4, !tbaa !11
  %302 = icmp eq i32 %301, -9
  br i1 %302, label %303, label %321

303:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %304 = load ptr, ptr %6, align 8, !tbaa !5
  %305 = load ptr, ptr %7, align 8, !tbaa !5
  %306 = load ptr, ptr %9, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.anon, ptr %306, i32 0, i32 0
  %308 = getelementptr inbounds %struct.GCRef, ptr %307, i32 0, i32 0
  %309 = load i32, ptr %308, align 8, !tbaa !11
  %310 = zext i32 %309 to i64
  %311 = inttoptr i64 %310 to ptr
  %312 = call ptr @lj_ccallback_new(ptr noundef %304, ptr noundef %305, ptr noundef %311)
  store ptr %312, ptr %23, align 8, !tbaa !5
  %313 = load ptr, ptr %23, align 8, !tbaa !5
  %314 = icmp ne ptr %313, null
  br i1 %314, label %315, label %318

315:                                              ; preds = %303
  %316 = load ptr, ptr %23, align 8, !tbaa !5
  %317 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %316, ptr %317, align 8, !tbaa !5
  store i32 1, ptr %19, align 4
  br label %319

318:                                              ; preds = %303
  store i32 3, ptr %19, align 4
  br label %319

319:                                              ; preds = %318, %315
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %320 = load i32, ptr %19, align 4
  switch i32 %320, label %355 [
    i32 3, label %322
  ]

321:                                              ; preds = %298
  br label %322

322:                                              ; preds = %321, %319, %239, %197
  %323 = load ptr, ptr %6, align 8, !tbaa !5
  %324 = load ptr, ptr %7, align 8, !tbaa !5
  %325 = load ptr, ptr %9, align 8, !tbaa !5
  %326 = load i32, ptr %10, align 4, !tbaa !9
  call void @cconv_err_convtv(ptr noundef %323, ptr noundef %324, ptr noundef %325, i32 noundef %326) #8
  unreachable

327:                                              ; preds = %293
  br label %328

328:                                              ; preds = %327, %286
  br label %329

329:                                              ; preds = %328, %261
  br label %330

330:                                              ; preds = %329, %250
  br label %331

331:                                              ; preds = %330
  br label %332

332:                                              ; preds = %331, %199
  br label %333

333:                                              ; preds = %332, %101
  br label %334

334:                                              ; preds = %333, %34
  %335 = load ptr, ptr %6, align 8, !tbaa !5
  %336 = load i32, ptr %11, align 4, !tbaa !9
  %337 = call ptr @ctype_get(ptr noundef %335, i32 noundef %336)
  store ptr %337, ptr %12, align 8, !tbaa !5
  br label %338

338:                                              ; preds = %334, %100
  %339 = load ptr, ptr %7, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.CType, ptr %339, i32 0, i32 0
  %341 = load i32, ptr %340, align 4, !tbaa !12
  %342 = lshr i32 %341, 28
  %343 = icmp eq i32 %342, 5
  br i1 %343, label %344, label %348

344:                                              ; preds = %338
  %345 = load ptr, ptr %6, align 8, !tbaa !5
  %346 = load ptr, ptr %7, align 8, !tbaa !5
  %347 = call ptr @ctype_child(ptr noundef %345, ptr noundef %346)
  store ptr %347, ptr %7, align 8, !tbaa !5
  br label %348

348:                                              ; preds = %344, %338
  %349 = load ptr, ptr %6, align 8, !tbaa !5
  %350 = load ptr, ptr %7, align 8, !tbaa !5
  %351 = load ptr, ptr %12, align 8, !tbaa !5
  %352 = load ptr, ptr %8, align 8, !tbaa !5
  %353 = load ptr, ptr %15, align 8, !tbaa !5
  %354 = load i32, ptr %10, align 4, !tbaa !9
  call void @lj_cconv_ct_ct(ptr noundef %349, ptr noundef %350, ptr noundef %351, ptr noundef %352, ptr noundef %353, i32 noundef %354)
  store i32 0, ptr %19, align 4
  br label %355

355:                                              ; preds = %348, %319, %228, %211, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  %356 = load i32, ptr %19, align 4
  switch i32 %356, label %358 [
    i32 0, label %357
    i32 1, label %357
  ]

357:                                              ; preds = %355, %355
  ret void

358:                                              ; preds = %355
  unreachable
}

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_raw(ptr noundef, i32 noundef) #3

declare hidden i32 @lj_ctype_intern(ptr noundef, i32 noundef, i32 noundef) #5

declare hidden ptr @lj_ctype_getfieldq(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5

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

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

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

declare hidden ptr @lj_ccallback_new(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: noreturn nounwind uwtable
declare hidden void @cconv_err_convtv(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline 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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { noreturn 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 #7 = { nounwind }
attributes #8 = { noreturn }

!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 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"CType", !10, i64 0, !10, i64 4, !14, i64 8, !14, i64 10, !15, i64 12}
!14 = !{!"short", !7, i64 0}
!15 = !{!"GCRef", !10, i64 0}
!16 = !{!17, !10, i64 12}
!17 = !{!"GCstr", !15, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !10, i64 8, !10, i64 12}
!18 = !{!13, !10, i64 4}
!19 = !{!20, !7, i64 6}
!20 = !{!"GCudata", !15, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !15, i64 8, !10, i64 12, !15, i64 16, !10, i64 20}


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

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

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

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

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_get(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define hidden void @lj_cconv_ct_tv(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  %9 = getelementptr inbounds i8, ptr %3, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = icmp ult i32 %10, -65537
  br i1 %11, label %12, label %14, !prof !8

12:                                               ; preds = %5
  %13 = or i32 %4, 2
  br label %.thread136

14:                                               ; preds = %5
  switch i32 %10, label %101 [
    i32 -11, label %15
    i32 -5, label %39
    i32 -12, label %75
    i32 -2, label %86
    i32 -3, label %86
    i32 -1, label %89
    i32 -13, label %91
  ]

15:                                               ; preds = %14
  %16 = load i32, ptr %3, align 8, !tbaa !5
  %17 = zext i32 %16 to i64
  %18 = inttoptr i64 %17 to ptr
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = getelementptr inbounds i8, ptr %18, i64 6
  %21 = load i16, ptr %20, align 2, !tbaa !5
  %22 = zext i16 %21 to i32
  %23 = tail call ptr @ctype_get(ptr noundef %0, i32 noundef %22)
  %24 = load i32, ptr %23, align 4, !tbaa !9
  %25 = and i32 %24, -260046848
  %26 = icmp eq i32 %25, 545259520
  br i1 %26, label %27, label %30

27:                                               ; preds = %15
  %28 = load ptr, ptr %19, align 8, !tbaa !14
  %29 = and i32 %24, 65535
  br label %30

30:                                               ; preds = %27, %15
  %.0105 = phi ptr [ %28, %27 ], [ %19, %15 ]
  %.095 = phi i32 [ %29, %27 ], [ %22, %15 ]
  %31 = tail call ptr @ctype_raw(ptr noundef %0, i32 noundef %.095)
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = lshr i32 %32, 28
  switch i32 %33, label %116 [
    i32 6, label %34
    i32 5, label %37
  ]

34:                                               ; preds = %30
  %35 = or disjoint i32 %.095, 537067520
  %36 = tail call i32 @lj_ctype_intern(ptr noundef %0, i32 noundef %35, i32 noundef 8) #7
  br label %.thread136

37:                                               ; preds = %30
  %38 = tail call ptr @ctype_child(ptr noundef %0, ptr noundef nonnull %31)
  br label %116

39:                                               ; preds = %14
  %40 = load i32, ptr %3, align 8, !tbaa !5
  %41 = zext i32 %40 to i64
  %42 = inttoptr i64 %41 to ptr
  %43 = load i32, ptr %1, align 4, !tbaa !9
  %.mask117 = and i32 %43, -268435456
  %44 = icmp eq i32 %.mask117, 1342177280
  br i1 %44, label %45, label %53

45:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %46 = call ptr @lj_ctype_getfieldq(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %42, ptr noundef nonnull %8, ptr noundef null) #7
  %.not120 = icmp eq ptr %46, null
  br i1 %.not120, label %.thread, label %47

47:                                               ; preds = %45
  %48 = load i32, ptr %46, align 4, !tbaa !9
  %.mask121 = and i32 %48, -268435456
  %49 = icmp eq i32 %.mask121, -1342177280
  br i1 %49, label %50, label %.thread

.thread:                                          ; preds = %47, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %.critedge

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %46, i64 4
  %52 = and i32 %48, 65535
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %.thread136

53:                                               ; preds = %39
  %54 = and i32 %43, -67108864
  %55 = icmp eq i32 %54, 805306368
  br i1 %55, label %56, label %66

56:                                               ; preds = %53
  %57 = tail call ptr @ctype_rawchild(ptr noundef %0, ptr noundef nonnull %1)
  %58 = getelementptr inbounds i8, ptr %42, i64 12
  %59 = load i32, ptr %58, align 4, !tbaa !16
  %60 = add i32 %59, 1
  %61 = load i32, ptr %57, align 4, !tbaa !9
  %62 = icmp ult i32 %61, 67108864
  br i1 %62, label %63, label %.critedge

63:                                               ; preds = %56
  %64 = getelementptr inbounds i8, ptr %57, i64 4
  %65 = load i32, ptr %64, align 4, !tbaa !18
  %.not118 = icmp eq i32 %65, 1
  br i1 %.not118, label %69, label %.critedge

66:                                               ; preds = %53
  %67 = getelementptr inbounds i8, ptr %42, i64 16
  %68 = or i32 %4, 2
  br label %.thread136

69:                                               ; preds = %63
  %70 = getelementptr inbounds i8, ptr %1, i64 4
  %71 = load i32, ptr %70, align 4, !tbaa !18
  %.not119.not = icmp eq i32 %71, 0
  %72 = tail call i32 @llvm.umin.i32(i32 %71, i32 %60)
  %.094 = select i1 %.not119.not, i32 %60, i32 %72
  %73 = getelementptr inbounds i8, ptr %42, i64 16
  %74 = zext i32 %.094 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr nonnull align 1 %73, i64 %74, i1 false)
  br label %122

75:                                               ; preds = %14
  %76 = load i32, ptr %1, align 4, !tbaa !9
  %77 = lshr i32 %76, 28
  switch i32 %77, label %.critedge [
    i32 3, label %78
    i32 1, label %82
  ]

78:                                               ; preds = %75
  %79 = load i32, ptr %3, align 8, !tbaa !5
  %80 = zext i32 %79 to i64
  %81 = inttoptr i64 %80 to ptr
  tail call void @cconv_array_tab(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %81, i32 noundef %4)
  br label %122

82:                                               ; preds = %75
  %83 = load i32, ptr %3, align 8, !tbaa !5
  %84 = zext i32 %83 to i64
  %85 = inttoptr i64 %84 to ptr
  tail call void @cconv_struct_tab(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %85, i32 noundef %4)
  br label %122

86:                                               ; preds = %14, %14
  %87 = trunc i32 %10 to i8
  %88 = sub nuw nsw i8 -2, %87
  store i8 %88, ptr %7, align 1, !tbaa !5
  br label %.thread136

89:                                               ; preds = %14
  store ptr null, ptr %6, align 8, !tbaa !14
  %90 = or i32 %4, 2
  br label %.thread136

91:                                               ; preds = %14
  %92 = load i32, ptr %3, align 8, !tbaa !5
  %93 = zext i32 %92 to i64
  %94 = inttoptr i64 %93 to ptr
  %95 = getelementptr inbounds i8, ptr %94, i64 24
  store ptr %95, ptr %6, align 8, !tbaa !14
  %96 = getelementptr inbounds i8, ptr %94, i64 6
  %97 = load i8, ptr %96, align 2, !tbaa !19
  %98 = icmp eq i8 %97, 1
  br i1 %98, label %99, label %.thread136

99:                                               ; preds = %91
  %100 = load ptr, ptr %95, align 8, !tbaa !14
  store ptr %100, ptr %6, align 8, !tbaa !14
  br label %.thread136

101:                                              ; preds = %14
  %.mask = and i32 %10, -32768
  %102 = icmp eq i32 %.mask, -65536
  br i1 %102, label %103, label %107

103:                                              ; preds = %101
  %104 = load i64, ptr %3, align 8, !tbaa !5
  %105 = and i64 %104, 140737488355327
  %106 = inttoptr i64 %105 to ptr
  store ptr %106, ptr %6, align 8, !tbaa !14
  br label %.thread136

107:                                              ; preds = %101
  %108 = icmp eq i32 %10, -9
  br i1 %108, label %109, label %.critedge

109:                                              ; preds = %107
  %110 = load i32, ptr %3, align 8, !tbaa !5
  %111 = zext i32 %110 to i64
  %112 = inttoptr i64 %111 to ptr
  %113 = tail call ptr @lj_ccallback_new(ptr noundef %0, ptr noundef %1, ptr noundef %112) #7
  %.not = icmp eq ptr %113, null
  br i1 %.not, label %.critedge, label %114

114:                                              ; preds = %109
  store ptr %113, ptr %2, align 8, !tbaa !14
  br label %122

.critedge:                                        ; preds = %.thread, %56, %63, %109, %75, %107
  call void @cconv_err_convtv(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %3, i32 noundef %4) #8
  unreachable

.thread136:                                       ; preds = %50, %66, %91, %99, %34, %89, %103, %86, %12
  %.4109 = phi ptr [ %3, %12 ], [ %.0105, %34 ], [ %7, %86 ], [ %6, %89 ], [ %6, %103 ], [ %6, %99 ], [ %6, %91 ], [ %51, %50 ], [ %67, %66 ]
  %.499 = phi i32 [ 14, %12 ], [ %36, %34 ], [ 3, %86 ], [ 17, %89 ], [ 17, %103 ], [ 17, %99 ], [ 17, %91 ], [ %52, %50 ], [ 20, %66 ]
  %.3 = phi i32 [ %13, %12 ], [ %4, %34 ], [ %4, %86 ], [ %90, %89 ], [ %4, %103 ], [ %4, %99 ], [ %4, %91 ], [ %4, %50 ], [ %68, %66 ]
  %115 = call ptr @ctype_get(ptr noundef %0, i32 noundef %.499)
  br label %116

116:                                              ; preds = %30, %37, %.thread136
  %.5 = phi ptr [ %.4109, %.thread136 ], [ %.0105, %37 ], [ %.0105, %30 ]
  %.0104 = phi ptr [ %115, %.thread136 ], [ %38, %37 ], [ %31, %30 ]
  %.4 = phi i32 [ %.3, %.thread136 ], [ %4, %37 ], [ %4, %30 ]
  %117 = load i32, ptr %1, align 4, !tbaa !9
  %.mask122 = and i32 %117, -268435456
  %118 = icmp eq i32 %.mask122, 1342177280
  br i1 %118, label %119, label %121

119:                                              ; preds = %116
  %120 = call ptr @ctype_child(ptr noundef %0, ptr noundef nonnull %1)
  br label %121

121:                                              ; preds = %119, %116
  %.0 = phi ptr [ %120, %119 ], [ %1, %116 ]
  call void @lj_cconv_ct_ct(ptr noundef %0, ptr noundef %.0, ptr noundef %.0104, ptr noundef %2, ptr noundef %.5, i32 noundef %.4)
  br label %122

122:                                              ; preds = %69, %114, %121, %82, %78
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret void
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden ptr @ctype_raw(ptr noundef, i32 noundef) local_unnamed_addr #3

declare hidden i32 @lj_ctype_intern(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare hidden ptr @lj_ctype_getfieldq(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

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

declare hidden ptr @lj_ccallback_new(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: noreturn nounwind uwtable
declare hidden void @cconv_err_convtv(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #6

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!9 = !{!10, !11, i64 0}
!10 = !{!"CType", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 10, !13, i64 12}
!11 = !{!"int", !6, i64 0}
!12 = !{!"short", !6, i64 0}
!13 = !{!"GCRef", !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!17, !11, i64 12}
!17 = !{!"GCstr", !13, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !11, i64 8, !11, i64 12}
!18 = !{!10, !11, i64 4}
!19 = !{!20, !6, i64 6}
!20 = !{!"GCudata", !13, i64 0, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !13, i64 8, !11, i64 12, !13, i64 16, !11, i64 20}


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