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

; 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: 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) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_bool0x20llvh0x3A0x3ADenseMapBase0x3Cllvh0x3A0x3ADenseMap0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20int0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x3E0x3E0x2C0x20unsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20int0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x3E0x3E0x3A0x3ALookupBucketFor0x3Cunsigned0x20int0x3E0x28unsigned0x20int0x20const0x260x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x3E0x2A0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3 {
  %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 i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  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) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %20 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %20, ptr %15, align 4, !tbaa !9
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 6
  %23 = load i32, ptr %15, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = add i64 %24, 12
  %26 = call i32 @i32_load(ptr noundef %22, i64 noundef %25)
  store i32 %26, ptr %15, align 4, !tbaa !9
  %27 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %27, ptr %10, align 4, !tbaa !9
  %28 = load i32, ptr %15, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  %30 = xor i1 %29, true
  %31 = zext i1 %30 to i32
  store i32 %31, ptr %15, align 4, !tbaa !9
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %41

34:                                               ; preds = %4
  %35 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %35, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.w2c_hermes, ptr %36, i32 0, i32 6
  %38 = load i32, ptr %15, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %37, i64 noundef %39, i32 noundef %40)
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %226

41:                                               ; preds = %4
  %42 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %42, ptr %15, align 4, !tbaa !9
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %15, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = call i32 @i32_load(ptr noundef %44, i64 noundef %46)
  store i32 %47, ptr %15, align 4, !tbaa !9
  %48 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %48, ptr %7, align 4, !tbaa !9
  store i32 -2, ptr %16, align 4, !tbaa !9
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = icmp ult i32 %49, %50
  %52 = zext i1 %51 to i32
  store i32 %52, ptr %15, align 4, !tbaa !9
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %208

55:                                               ; preds = %41
  store i32 1, ptr %15, align 4, !tbaa !9
  %56 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %56, ptr %11, align 4, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %57, ptr %15, align 4, !tbaa !9
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.w2c_hermes, ptr %58, i32 0, i32 6
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = call i32 @i32_load(ptr noundef %59, i64 noundef %61)
  store i32 %62, ptr %15, align 4, !tbaa !9
  %63 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %63, ptr %13, align 4, !tbaa !9
  %64 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %64, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %65 = load i32, ptr %17, align 4, !tbaa !9
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = sub i32 %66, %65
  store i32 %67, ptr %16, align 4, !tbaa !9
  %68 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %68, ptr %14, align 4, !tbaa !9
  %69 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %69, ptr %17, align 4, !tbaa !9
  store i32 37, ptr %18, align 4, !tbaa !9
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = load i32, ptr %17, align 4, !tbaa !9
  %72 = mul i32 %71, %70
  store i32 %72, ptr %17, align 4, !tbaa !9
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = and i32 %74, %73
  store i32 %75, ptr %16, align 4, !tbaa !9
  %76 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %76, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %77 = load i32, ptr %17, align 4, !tbaa !9
  %78 = and i32 %77, 31
  %79 = load i32, ptr %16, align 4, !tbaa !9
  %80 = shl i32 %79, %78
  store i32 %80, ptr %16, align 4, !tbaa !9
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = add i32 %82, %81
  store i32 %83, ptr %15, align 4, !tbaa !9
  %84 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %84, ptr %6, align 4, !tbaa !9
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.w2c_hermes, ptr %85, i32 0, i32 6
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = call i32 @i32_load(ptr noundef %86, i64 noundef %88)
  store i32 %89, ptr %15, align 4, !tbaa !9
  %90 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %90, ptr %10, align 4, !tbaa !9
  %91 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %91, ptr %16, align 4, !tbaa !9
  %92 = load i32, ptr %15, align 4, !tbaa !9
  %93 = load i32, ptr %16, align 4, !tbaa !9
  %94 = icmp eq i32 %92, %93
  %95 = zext i1 %94 to i32
  store i32 %95, ptr %15, align 4, !tbaa !9
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %106

98:                                               ; preds = %55
  %99 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %99, ptr %15, align 4, !tbaa !9
  %100 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %100, ptr %16, align 4, !tbaa !9
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %102, i64 noundef %104, i32 noundef %105)
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %226

106:                                              ; preds = %55
  br label %107

107:                                              ; preds = %199, %106
  %108 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %108, ptr %15, align 4, !tbaa !9
  store i32 -1, ptr %16, align 4, !tbaa !9
  %109 = load i32, ptr %15, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = icmp eq i32 %109, %110
  %112 = zext i1 %111 to i32
  store i32 %112, ptr %15, align 4, !tbaa !9
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %133

115:                                              ; preds = %107
  %116 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %116, ptr %15, align 4, !tbaa !9
  %117 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %117, ptr %16, align 4, !tbaa !9
  %118 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %118, ptr %17, align 4, !tbaa !9
  %119 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %119, ptr %18, align 4, !tbaa !9
  %120 = load i32, ptr %18, align 4, !tbaa !9
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %124

122:                                              ; preds = %115
  %123 = load i32, ptr %16, align 4, !tbaa !9
  br label %126

124:                                              ; preds = %115
  %125 = load i32, ptr %17, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %124, %122
  %127 = phi i32 [ %123, %122 ], [ %125, %124 ]
  store i32 %127, ptr %16, align 4, !tbaa !9
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %129, i64 noundef %131, i32 noundef %132)
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %226

133:                                              ; preds = %107
  %134 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %134, ptr %15, align 4, !tbaa !9
  %135 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %135, ptr %16, align 4, !tbaa !9
  %136 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %136, ptr %17, align 4, !tbaa !9
  %137 = load i32, ptr %17, align 4, !tbaa !9
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %141

139:                                              ; preds = %133
  %140 = load i32, ptr %15, align 4, !tbaa !9
  br label %143

141:                                              ; preds = %133
  %142 = load i32, ptr %16, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %141, %139
  %144 = phi i32 [ %140, %139 ], [ %142, %141 ]
  store i32 %144, ptr %15, align 4, !tbaa !9
  %145 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %145, ptr %16, align 4, !tbaa !9
  %146 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %146, ptr %17, align 4, !tbaa !9
  store i32 -2, ptr %18, align 4, !tbaa !9
  %147 = load i32, ptr %17, align 4, !tbaa !9
  %148 = load i32, ptr %18, align 4, !tbaa !9
  %149 = icmp eq i32 %147, %148
  %150 = zext i1 %149 to i32
  store i32 %150, ptr %17, align 4, !tbaa !9
  %151 = load i32, ptr %17, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %155

153:                                              ; preds = %143
  %154 = load i32, ptr %15, align 4, !tbaa !9
  br label %157

155:                                              ; preds = %143
  %156 = load i32, ptr %16, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %155, %153
  %158 = phi i32 [ %154, %153 ], [ %156, %155 ]
  store i32 %158, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %159, ptr %9, align 4, !tbaa !9
  %160 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %160, ptr %15, align 4, !tbaa !9
  %161 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %161, ptr %16, align 4, !tbaa !9
  %162 = load i32, ptr %16, align 4, !tbaa !9
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = add i32 %163, %162
  store i32 %164, ptr %15, align 4, !tbaa !9
  %165 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %165, ptr %6, align 4, !tbaa !9
  %166 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %166, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %167 = load i32, ptr %16, align 4, !tbaa !9
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = add i32 %168, %167
  store i32 %169, ptr %15, align 4, !tbaa !9
  %170 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %170, ptr %11, align 4, !tbaa !9
  %171 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %171, ptr %15, align 4, !tbaa !9
  %172 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %172, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %173, ptr %17, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %174, ptr %18, align 4, !tbaa !9
  %175 = load i32, ptr %18, align 4, !tbaa !9
  %176 = load i32, ptr %17, align 4, !tbaa !9
  %177 = and i32 %176, %175
  store i32 %177, ptr %17, align 4, !tbaa !9
  %178 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %178, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %18, align 4, !tbaa !9
  %179 = load i32, ptr %18, align 4, !tbaa !9
  %180 = and i32 %179, 31
  %181 = load i32, ptr %17, align 4, !tbaa !9
  %182 = shl i32 %181, %180
  store i32 %182, ptr %17, align 4, !tbaa !9
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = load i32, ptr %16, align 4, !tbaa !9
  %185 = add i32 %184, %183
  store i32 %185, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %186, ptr %6, align 4, !tbaa !9
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.w2c_hermes, ptr %187, i32 0, i32 6
  %189 = load i32, ptr %16, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = call i32 @i32_load(ptr noundef %188, i64 noundef %190)
  store i32 %191, ptr %16, align 4, !tbaa !9
  %192 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %192, ptr %10, align 4, !tbaa !9
  %193 = load i32, ptr %15, align 4, !tbaa !9
  %194 = load i32, ptr %16, align 4, !tbaa !9
  %195 = icmp ne i32 %193, %194
  %196 = zext i1 %195 to i32
  store i32 %196, ptr %15, align 4, !tbaa !9
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %200

199:                                              ; preds = %157
  br label %107

200:                                              ; preds = %157
  %201 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %201, ptr %15, align 4, !tbaa !9
  %202 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %202, ptr %16, align 4, !tbaa !9
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %15, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %204, i64 noundef %206, i32 noundef %207)
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %226

208:                                              ; preds = %41
  store i32 0, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %209, ptr %6, align 4, !tbaa !9
  store i32 204136, ptr %16, align 4, !tbaa !9
  %210 = load i32, ptr %16, align 4, !tbaa !9
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = add i32 %211, %210
  store i32 %212, ptr %15, align 4, !tbaa !9
  %213 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %213, ptr %16, align 4, !tbaa !9
  store i32 81389, ptr %17, align 4, !tbaa !9
  %214 = load i32, ptr %17, align 4, !tbaa !9
  %215 = load i32, ptr %16, align 4, !tbaa !9
  %216 = add i32 %215, %214
  store i32 %216, ptr %16, align 4, !tbaa !9
  store i32 597, ptr %17, align 4, !tbaa !9
  %217 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %217, ptr %18, align 4, !tbaa !9
  store i32 48929, ptr %19, align 4, !tbaa !9
  %218 = load i32, ptr %19, align 4, !tbaa !9
  %219 = load i32, ptr %18, align 4, !tbaa !9
  %220 = add i32 %219, %218
  store i32 %220, ptr %18, align 4, !tbaa !9
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = load i32, ptr %15, align 4, !tbaa !9
  %223 = load i32, ptr %16, align 4, !tbaa !9
  %224 = load i32, ptr %17, align 4, !tbaa !9
  %225 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %221, i32 noundef %222, i32 noundef %223, i32 noundef %224, i32 noundef %225)
  call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

226:                                              ; preds = %200, %126, %98, %34
  %227 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret i32 %227
}

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


; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @w2c_hermes_bool0x20llvh0x3A0x3ADenseMapBase0x3Cllvh0x3A0x3ADenseMap0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20int0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x3E0x3E0x2C0x20unsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20int0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x3E0x3E0x3A0x3ALookupBucketFor0x3Cunsigned0x20int0x3E0x28unsigned0x20int0x20const0x260x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x3E0x2A0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %1 to i64
  %7 = add nuw nsw i64 %6, 12
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %.loopexit, label %9

9:                                                ; preds = %4
  %10 = zext i32 %2 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %10)
  %12 = icmp ult i32 %11, -2
  br i1 %12, label %13, label %37

13:                                               ; preds = %9
  %14 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %6)
  %15 = add i32 %8, -1
  %16 = mul i32 %11, 37
  %17 = and i32 %16, %15
  %18 = shl i32 %17, 3
  %19 = add i32 %14, %18
  %20 = zext i32 %19 to i64
  %21 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %20)
  %22 = icmp eq i32 %21, %11
  br i1 %22, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %13, %26
  %.0127 = phi i32 [ %29, %26 ], [ 0, %13 ]
  %.0126 = phi i32 [ %36, %26 ], [ %21, %13 ]
  %.0125 = phi i32 [ %31, %26 ], [ 1, %13 ]
  %.0124 = phi i32 [ %32, %26 ], [ %17, %13 ]
  %.0 = phi i32 [ %34, %26 ], [ %19, %13 ]
  %23 = icmp eq i32 %.0126, -1
  %.not133 = icmp eq i32 %.0127, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %.preheader
  %25 = select i1 %.not133, i32 %.0, i32 %.0127
  br label %.loopexit

26:                                               ; preds = %.preheader
  %27 = icmp eq i32 %.0126, -2
  %28 = select i1 %27, i1 %.not133, i1 false
  %29 = select i1 %28, i32 %.0, i32 %.0127
  %30 = add i32 %.0124, %.0125
  %31 = add i32 %.0125, 1
  %32 = and i32 %30, %15
  %33 = shl i32 %32, 3
  %34 = add i32 %33, %14
  %35 = zext i32 %34 to i64
  %36 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %35)
  %.not132 = icmp eq i32 %11, %36
  br i1 %.not132, label %.loopexit, label %.preheader

37:                                               ; preds = %9
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 204136, i32 noundef 81389, i32 noundef 597, i32 noundef 48929)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable

.loopexit:                                        ; preds = %26, %13, %4, %24
  %.lcssa.sink = phi i32 [ %25, %24 ], [ 0, %4 ], [ %19, %13 ], [ %34, %26 ]
  %.0123 = phi i32 [ 0, %24 ], [ 0, %4 ], [ 1, %13 ], [ 1, %26 ]
  %38 = zext i32 %3 to i64
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %38, i32 noundef %.lcssa.sink)
  ret i32 %.0123
}

attributes #0 = { 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 #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 = { 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 #3 = { 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,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass