; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_compiled_5)

; 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.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

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

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) #1

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3ADenseMapBase0x3Cllvh0x3A0x3ADenseMap0x3Cunsigned0x20long0x20long0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetEmpty0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20long0x20long0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetPair0x3Cunsigned0x20long0x20long0x3E0x3E0x2C0x20unsigned0x20long0x20long0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetEmpty0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20long0x20long0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetPair0x3Cunsigned0x20long0x20long0x3E0x3E0x3A0x3AmoveFromOldBuckets0x28llvh0x3A0x3Adetail0x3A0x3ADenseSetPair0x3Cunsigned0x20long0x20long0x3E0x2A0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetPair0x3Cunsigned0x20long0x20long0x3E0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %27 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %27, ptr %18, align 4, !tbaa !9
  store i64 0, ptr %24, align 8, !tbaa !11
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.w2c_hermes, ptr %28, i32 0, i32 6
  %30 = load i32, ptr %18, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = add i64 %31, 4
  %33 = load i64, ptr %24, align 8, !tbaa !11
  call void @i64_store(ptr noundef %29, i64 noundef %32, i64 noundef %33)
  %34 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %34, ptr %18, align 4, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.w2c_hermes, ptr %35, i32 0, i32 6
  %37 = load i32, ptr %18, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = add i64 %38, 12
  %40 = call i32 @i32_load(ptr noundef %36, i64 noundef %39)
  store i32 %40, ptr %18, align 4, !tbaa !9
  %41 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %41, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %42, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %43 = load i32, ptr %20, align 4, !tbaa !9
  %44 = load i32, ptr %19, align 4, !tbaa !9
  %45 = sub i32 %44, %43
  store i32 %45, ptr %19, align 4, !tbaa !9
  %46 = load i32, ptr %19, align 4, !tbaa !9
  %47 = load i32, ptr %18, align 4, !tbaa !9
  %48 = and i32 %47, %46
  store i32 %48, ptr %18, align 4, !tbaa !9
  %49 = load i32, ptr %18, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  %51 = xor i1 %50, true
  %52 = zext i1 %51 to i32
  store i32 %52, ptr %18, align 4, !tbaa !9
  %53 = load i32, ptr %18, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %289

55:                                               ; preds = %4
  %56 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %56, ptr %18, align 4, !tbaa !9
  %57 = load i32, ptr %18, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %76

59:                                               ; preds = %55
  %60 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %60, ptr %18, align 4, !tbaa !9
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.w2c_hermes, ptr %61, i32 0, i32 6
  %63 = load i32, ptr %18, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = call i32 @i32_load(ptr noundef %62, i64 noundef %64)
  store i32 %65, ptr %18, align 4, !tbaa !9
  store i32 255, ptr %19, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %66, ptr %20, align 4, !tbaa !9
  store i32 3, ptr %21, align 4, !tbaa !9
  %67 = load i32, ptr %21, align 4, !tbaa !9
  %68 = and i32 %67, 31
  %69 = load i32, ptr %20, align 4, !tbaa !9
  %70 = shl i32 %69, %68
  store i32 %70, ptr %20, align 4, !tbaa !9
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load i32, ptr %18, align 4, !tbaa !9
  %73 = load i32, ptr %19, align 4, !tbaa !9
  %74 = load i32, ptr %20, align 4, !tbaa !9
  %75 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %71, i32 noundef %72, i32 noundef %73, i32 noundef %74)
  store i32 %75, ptr %18, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %59, %55
  %77 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %77, ptr %18, align 4, !tbaa !9
  %78 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %78, ptr %19, align 4, !tbaa !9
  %79 = load i32, ptr %18, align 4, !tbaa !9
  %80 = load i32, ptr %19, align 4, !tbaa !9
  %81 = icmp ne i32 %79, %80
  %82 = zext i1 %81 to i32
  store i32 %82, ptr %18, align 4, !tbaa !9
  %83 = load i32, ptr %18, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %288

85:                                               ; preds = %76
  %86 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %86, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %87 = load i32, ptr %19, align 4, !tbaa !9
  %88 = load i32, ptr %18, align 4, !tbaa !9
  %89 = sub i32 %88, %87
  store i32 %89, ptr %18, align 4, !tbaa !9
  %90 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %90, ptr %9, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %286, %85
  %92 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %92, ptr %18, align 4, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = call i64 @i64_load(ptr noundef %94, i64 noundef %96)
  store i64 %97, ptr %23, align 8, !tbaa !11
  %98 = load i64, ptr %23, align 8, !tbaa !11
  store i64 %98, ptr %16, align 8, !tbaa !11
  store i64 -3, ptr %24, align 8, !tbaa !11
  %99 = load i64, ptr %23, align 8, !tbaa !11
  %100 = load i64, ptr %24, align 8, !tbaa !11
  %101 = icmp ugt i64 %99, %100
  %102 = zext i1 %101 to i32
  store i32 %102, ptr %18, align 4, !tbaa !9
  %103 = load i32, ptr %18, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %91
  br label %273

106:                                              ; preds = %91
  %107 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %107, ptr %18, align 4, !tbaa !9
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %18, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = call i32 @i32_load(ptr noundef %109, i64 noundef %111)
  store i32 %112, ptr %18, align 4, !tbaa !9
  %113 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %114, ptr %24, align 8, !tbaa !11
  %115 = load i64, ptr %24, align 8, !tbaa !11
  %116 = trunc i64 %115 to i32
  store i32 %116, ptr %19, align 4, !tbaa !9
  store i32 37, ptr %20, align 4, !tbaa !9
  %117 = load i32, ptr %20, align 4, !tbaa !9
  %118 = load i32, ptr %19, align 4, !tbaa !9
  %119 = mul i32 %118, %117
  store i32 %119, ptr %19, align 4, !tbaa !9
  %120 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %120, ptr %20, align 4, !tbaa !9
  %121 = load i32, ptr %20, align 4, !tbaa !9
  %122 = load i32, ptr %19, align 4, !tbaa !9
  %123 = and i32 %122, %121
  store i32 %123, ptr %19, align 4, !tbaa !9
  %124 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %124, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %20, align 4, !tbaa !9
  %125 = load i32, ptr %20, align 4, !tbaa !9
  %126 = and i32 %125, 31
  %127 = load i32, ptr %19, align 4, !tbaa !9
  %128 = shl i32 %127, %126
  store i32 %128, ptr %19, align 4, !tbaa !9
  %129 = load i32, ptr %19, align 4, !tbaa !9
  %130 = load i32, ptr %18, align 4, !tbaa !9
  %131 = add i32 %130, %129
  store i32 %131, ptr %18, align 4, !tbaa !9
  %132 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %132, ptr %11, align 4, !tbaa !9
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %18, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = call i64 @i64_load(ptr noundef %134, i64 noundef %136)
  store i64 %137, ptr %23, align 8, !tbaa !11
  %138 = load i64, ptr %23, align 8, !tbaa !11
  store i64 %138, ptr %17, align 8, !tbaa !11
  %139 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %139, ptr %24, align 8, !tbaa !11
  %140 = load i64, ptr %23, align 8, !tbaa !11
  %141 = load i64, ptr %24, align 8, !tbaa !11
  %142 = icmp ne i64 %140, %141
  %143 = zext i1 %142 to i32
  store i32 %143, ptr %18, align 4, !tbaa !9
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %255

146:                                              ; preds = %106
  store i32 0, ptr %18, align 4, !tbaa !9
  %147 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %147, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %148 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %148, ptr %12, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %253, %146
  %150 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %150, ptr %23, align 8, !tbaa !11
  store i64 -1, ptr %24, align 8, !tbaa !11
  %151 = load i64, ptr %23, align 8, !tbaa !11
  %152 = load i64, ptr %24, align 8, !tbaa !11
  %153 = icmp eq i64 %151, %152
  %154 = zext i1 %153 to i32
  store i32 %154, ptr %18, align 4, !tbaa !9
  %155 = load i32, ptr %18, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %187

157:                                              ; preds = %149
  %158 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %158, ptr %18, align 4, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %159, ptr %19, align 4, !tbaa !9
  %160 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %160, ptr %20, align 4, !tbaa !9
  %161 = load i32, ptr %20, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %165

163:                                              ; preds = %157
  %164 = load i32, ptr %18, align 4, !tbaa !9
  br label %167

165:                                              ; preds = %157
  %166 = load i32, ptr %19, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %165, %163
  %168 = phi i32 [ %164, %163 ], [ %166, %165 ]
  store i32 %168, ptr %18, align 4, !tbaa !9
  %169 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %169, ptr %24, align 8, !tbaa !11
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.w2c_hermes, ptr %170, i32 0, i32 6
  %172 = load i32, ptr %18, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = load i64, ptr %24, align 8, !tbaa !11
  call void @i64_store(ptr noundef %171, i64 noundef %173, i64 noundef %174)
  %175 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %175, ptr %18, align 4, !tbaa !9
  %176 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %176, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %177 = load i32, ptr %20, align 4, !tbaa !9
  %178 = load i32, ptr %19, align 4, !tbaa !9
  %179 = add i32 %178, %177
  store i32 %179, ptr %19, align 4, !tbaa !9
  %180 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %180, ptr %13, align 4, !tbaa !9
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.w2c_hermes, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %18, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = add i64 %184, 4
  %186 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %182, i64 noundef %185, i32 noundef %186)
  br label %273

187:                                              ; preds = %149
  %188 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %188, ptr %18, align 4, !tbaa !9
  %189 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %189, ptr %19, align 4, !tbaa !9
  %190 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %190, ptr %20, align 4, !tbaa !9
  %191 = load i32, ptr %20, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %195

193:                                              ; preds = %187
  %194 = load i32, ptr %18, align 4, !tbaa !9
  br label %197

195:                                              ; preds = %187
  %196 = load i32, ptr %19, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %195, %193
  %198 = phi i32 [ %194, %193 ], [ %196, %195 ]
  store i32 %198, ptr %18, align 4, !tbaa !9
  %199 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %199, ptr %19, align 4, !tbaa !9
  %200 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %200, ptr %25, align 8, !tbaa !11
  store i64 -2, ptr %26, align 8, !tbaa !11
  %201 = load i64, ptr %25, align 8, !tbaa !11
  %202 = load i64, ptr %26, align 8, !tbaa !11
  %203 = icmp eq i64 %201, %202
  %204 = zext i1 %203 to i32
  store i32 %204, ptr %20, align 4, !tbaa !9
  %205 = load i32, ptr %20, align 4, !tbaa !9
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %209

207:                                              ; preds = %197
  %208 = load i32, ptr %18, align 4, !tbaa !9
  br label %211

209:                                              ; preds = %197
  %210 = load i32, ptr %19, align 4, !tbaa !9
  br label %211

211:                                              ; preds = %209, %207
  %212 = phi i32 [ %208, %207 ], [ %210, %209 ]
  store i32 %212, ptr %18, align 4, !tbaa !9
  %213 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %213, ptr %10, align 4, !tbaa !9
  %214 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %214, ptr %18, align 4, !tbaa !9
  %215 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %215, ptr %19, align 4, !tbaa !9
  %216 = load i32, ptr %19, align 4, !tbaa !9
  %217 = load i32, ptr %18, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %18, align 4, !tbaa !9
  %219 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %219, ptr %11, align 4, !tbaa !9
  %220 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %220, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %221 = load i32, ptr %19, align 4, !tbaa !9
  %222 = load i32, ptr %18, align 4, !tbaa !9
  %223 = add i32 %222, %221
  store i32 %223, ptr %18, align 4, !tbaa !9
  %224 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %224, ptr %12, align 4, !tbaa !9
  %225 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %225, ptr %23, align 8, !tbaa !11
  %226 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %226, ptr %19, align 4, !tbaa !9
  %227 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %227, ptr %20, align 4, !tbaa !9
  %228 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %228, ptr %21, align 4, !tbaa !9
  %229 = load i32, ptr %21, align 4, !tbaa !9
  %230 = load i32, ptr %20, align 4, !tbaa !9
  %231 = and i32 %230, %229
  store i32 %231, ptr %20, align 4, !tbaa !9
  %232 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %232, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %21, align 4, !tbaa !9
  %233 = load i32, ptr %21, align 4, !tbaa !9
  %234 = and i32 %233, 31
  %235 = load i32, ptr %20, align 4, !tbaa !9
  %236 = shl i32 %235, %234
  store i32 %236, ptr %20, align 4, !tbaa !9
  %237 = load i32, ptr %20, align 4, !tbaa !9
  %238 = load i32, ptr %19, align 4, !tbaa !9
  %239 = add i32 %238, %237
  store i32 %239, ptr %19, align 4, !tbaa !9
  %240 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %240, ptr %11, align 4, !tbaa !9
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %19, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = call i64 @i64_load(ptr noundef %242, i64 noundef %244)
  store i64 %245, ptr %24, align 8, !tbaa !11
  %246 = load i64, ptr %24, align 8, !tbaa !11
  store i64 %246, ptr %17, align 8, !tbaa !11
  %247 = load i64, ptr %23, align 8, !tbaa !11
  %248 = load i64, ptr %24, align 8, !tbaa !11
  %249 = icmp ne i64 %247, %248
  %250 = zext i1 %249 to i32
  store i32 %250, ptr %18, align 4, !tbaa !9
  %251 = load i32, ptr %18, align 4, !tbaa !9
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %254

253:                                              ; preds = %211
  br label %149

254:                                              ; preds = %211
  br label %255

255:                                              ; preds = %254, %106
  store i32 0, ptr %18, align 4, !tbaa !9
  %256 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %256, ptr %7, align 4, !tbaa !9
  store i32 186403, ptr %19, align 4, !tbaa !9
  %257 = load i32, ptr %19, align 4, !tbaa !9
  %258 = load i32, ptr %18, align 4, !tbaa !9
  %259 = add i32 %258, %257
  store i32 %259, ptr %18, align 4, !tbaa !9
  %260 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %260, ptr %19, align 4, !tbaa !9
  store i32 81389, ptr %20, align 4, !tbaa !9
  %261 = load i32, ptr %20, align 4, !tbaa !9
  %262 = load i32, ptr %19, align 4, !tbaa !9
  %263 = add i32 %262, %261
  store i32 %263, ptr %19, align 4, !tbaa !9
  store i32 382, ptr %20, align 4, !tbaa !9
  %264 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %264, ptr %21, align 4, !tbaa !9
  store i32 40783, ptr %22, align 4, !tbaa !9
  %265 = load i32, ptr %22, align 4, !tbaa !9
  %266 = load i32, ptr %21, align 4, !tbaa !9
  %267 = add i32 %266, %265
  store i32 %267, ptr %21, align 4, !tbaa !9
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = load i32, ptr %18, align 4, !tbaa !9
  %270 = load i32, ptr %19, align 4, !tbaa !9
  %271 = load i32, ptr %20, align 4, !tbaa !9
  %272 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %268, i32 noundef %269, i32 noundef %270, i32 noundef %271, i32 noundef %272)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

273:                                              ; preds = %167, %105
  %274 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %274, ptr %18, align 4, !tbaa !9
  store i32 8, ptr %19, align 4, !tbaa !9
  %275 = load i32, ptr %19, align 4, !tbaa !9
  %276 = load i32, ptr %18, align 4, !tbaa !9
  %277 = add i32 %276, %275
  store i32 %277, ptr %18, align 4, !tbaa !9
  %278 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %278, ptr %7, align 4, !tbaa !9
  %279 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %279, ptr %19, align 4, !tbaa !9
  %280 = load i32, ptr %18, align 4, !tbaa !9
  %281 = load i32, ptr %19, align 4, !tbaa !9
  %282 = icmp ne i32 %280, %281
  %283 = zext i1 %282 to i32
  store i32 %283, ptr %18, align 4, !tbaa !9
  %284 = load i32, ptr %18, align 4, !tbaa !9
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %286, label %287

286:                                              ; preds = %273
  br label %91

287:                                              ; preds = %273
  br label %288

288:                                              ; preds = %287, %76
  br label %307

289:                                              ; preds = %4
  store i32 0, ptr %18, align 4, !tbaa !9
  %290 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %290, ptr %7, align 4, !tbaa !9
  store i32 204356, ptr %19, align 4, !tbaa !9
  %291 = load i32, ptr %19, align 4, !tbaa !9
  %292 = load i32, ptr %18, align 4, !tbaa !9
  %293 = add i32 %292, %291
  store i32 %293, ptr %18, align 4, !tbaa !9
  %294 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %294, ptr %19, align 4, !tbaa !9
  store i32 81389, ptr %20, align 4, !tbaa !9
  %295 = load i32, ptr %20, align 4, !tbaa !9
  %296 = load i32, ptr %19, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %19, align 4, !tbaa !9
  store i32 352, ptr %20, align 4, !tbaa !9
  %298 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %298, ptr %21, align 4, !tbaa !9
  store i32 17267, ptr %22, align 4, !tbaa !9
  %299 = load i32, ptr %22, align 4, !tbaa !9
  %300 = load i32, ptr %21, align 4, !tbaa !9
  %301 = add i32 %300, %299
  store i32 %301, ptr %21, align 4, !tbaa !9
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = load i32, ptr %18, align 4, !tbaa !9
  %304 = load i32, ptr %19, align 4, !tbaa !9
  %305 = load i32, ptr %20, align 4, !tbaa !9
  %306 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %302, i32 noundef %303, i32 noundef %304, i32 noundef %305, i32 noundef %306)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

307:                                              ; preds = %288
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { noreturn "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 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 #5 = { nounwind }
attributes #6 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long", !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"

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

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

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3ADenseMapBase0x3Cllvh0x3A0x3ADenseMap0x3Cunsigned0x20long0x20long0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetEmpty0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20long0x20long0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetPair0x3Cunsigned0x20long0x20long0x3E0x3E0x2C0x20unsigned0x20long0x20long0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetEmpty0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20long0x20long0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetPair0x3Cunsigned0x20long0x20long0x3E0x3E0x3A0x3AmoveFromOldBuckets0x28llvh0x3A0x3Adetail0x3A0x3ADenseSetPair0x3Cunsigned0x20long0x20long0x3E0x2A0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseSetPair0x3Cunsigned0x20long0x20long0x3E0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %1 to i64
  %7 = add nuw nsw i64 %6, 4
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %7, i64 noundef 0)
  %8 = add nuw nsw i64 %6, 12
  %9 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %8)
  %10 = add i32 %9, -1
  %11 = tail call range(i32 0, 33) i32 @llvm.ctpop.i32(i32 %9)
  %.not = icmp ult i32 %11, 2
  br i1 %.not, label %12, label %48

12:                                               ; preds = %4
  %.not180 = icmp eq i32 %9, 0
  br i1 %.not180, label %17, label %13

13:                                               ; preds = %12
  %14 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %6)
  %15 = shl i32 %9, 3
  %16 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %14, i32 noundef 255, i32 noundef %15) #5
  br label %17

17:                                               ; preds = %13, %12
  %.not181 = icmp eq i32 %2, %3
  br i1 %.not181, label %.loopexit189, label %.preheader187

.preheader187:                                    ; preds = %17, %46
  %.0169 = phi i32 [ %.1, %46 ], [ 0, %17 ]
  %.0 = phi i32 [ %47, %46 ], [ %2, %17 ]
  %18 = zext i32 %.0 to i64
  %19 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef %18)
  %20 = icmp ugt i64 %19, -3
  br i1 %20, label %46, label %21

21:                                               ; preds = %.preheader187
  %22 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %6)
  %23 = trunc i64 %19 to i32
  %24 = mul i32 %23, 37
  %25 = and i32 %24, %10
  %26 = shl i32 %25, 3
  %27 = add i32 %22, %26
  %28 = zext i32 %27 to i64
  %29 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef %28)
  %.not182 = icmp eq i64 %29, %19
  br i1 %.not182, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %21, %35
  %.0172 = phi i32 [ %38, %35 ], [ 0, %21 ]
  %.0171 = phi i32 [ %43, %35 ], [ %27, %21 ]
  %.0170 = phi i32 [ %40, %35 ], [ 1, %21 ]
  %.0168 = phi i32 [ %41, %35 ], [ %25, %21 ]
  %.0167 = phi i64 [ %45, %35 ], [ %29, %21 ]
  %30 = icmp eq i64 %.0167, -1
  %.not185 = icmp eq i32 %.0172, 0
  br i1 %30, label %31, label %35

31:                                               ; preds = %.preheader
  %32 = select i1 %.not185, i32 %.0171, i32 %.0172
  %33 = zext i32 %32 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %33, i64 noundef %19)
  %34 = add i32 %.0169, 1
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %7, i32 noundef %34)
  br label %46

35:                                               ; preds = %.preheader
  %36 = icmp eq i64 %.0167, -2
  %37 = select i1 %36, i1 %.not185, i1 false
  %38 = select i1 %37, i32 %.0171, i32 %.0172
  %39 = add i32 %.0168, %.0170
  %40 = add i32 %.0170, 1
  %41 = and i32 %39, %10
  %42 = shl i32 %41, 3
  %43 = add i32 %42, %22
  %44 = zext i32 %43 to i64
  %45 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef %44)
  %.not184 = icmp eq i64 %19, %45
  br i1 %.not184, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %21, %35
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 186403, i32 noundef 81389, i32 noundef 382, i32 noundef 40783) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

46:                                               ; preds = %.preheader187, %31
  %.1 = phi i32 [ %.0169, %.preheader187 ], [ %34, %31 ]
  %47 = add i32 %.0, 8
  %.not186 = icmp eq i32 %47, %3
  br i1 %.not186, label %.loopexit189, label %.preheader187

48:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 204356, i32 noundef 81389, i32 noundef 352, i32 noundef 17267) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

.loopexit189:                                     ; preds = %46, %17
  ret void
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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