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

; 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 void @i64_store(ptr noundef, i64 noundef, i64 noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 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 i64 @i64_load(ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AcallSitePrototypeGetEvalOrigin0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #4 {
  %6 = alloca ptr, align 8
  %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 i64, align 8
  %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 i64, align 8
  %20 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, 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 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !13
  store i32 %23, ptr %14, align 4, !tbaa !9
  store i32 48, ptr %15, align 4, !tbaa !9
  %24 = load i32, ptr %15, align 4, !tbaa !9
  %25 = load i32, ptr %14, align 4, !tbaa !9
  %26 = sub i32 %25, %24
  store i32 %26, ptr %14, align 4, !tbaa !9
  %27 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = load i32, ptr %14, align 4, !tbaa !9
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 3
  store i32 %28, ptr %30, align 8, !tbaa !13
  %31 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %31, ptr %14, align 4, !tbaa !9
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = call i32 @i32_load(ptr noundef %33, i64 noundef %35)
  store i32 %36, ptr %14, align 4, !tbaa !9
  %37 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %37, ptr %10, align 4, !tbaa !9
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = call i64 @i64_load(ptr noundef %39, i64 noundef %41)
  store i64 %42, ptr %19, align 8, !tbaa !11
  %43 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %43, ptr %13, align 8, !tbaa !11
  store i64 -844424930131968, ptr %20, align 8, !tbaa !11
  %44 = load i64, ptr %19, align 8, !tbaa !11
  %45 = load i64, ptr %20, align 8, !tbaa !11
  %46 = icmp uge i64 %44, %45
  %47 = zext i1 %46 to i32
  store i32 %47, ptr %14, align 4, !tbaa !9
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %82

50:                                               ; preds = %5
  %51 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %51, ptr %19, align 8, !tbaa !11
  %52 = load i64, ptr %19, align 8, !tbaa !11
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %14, align 4, !tbaa !9
  %54 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %54, ptr %12, align 4, !tbaa !9
  %55 = load i32, ptr %14, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  %57 = xor i1 %56, true
  %58 = zext i1 %57 to i32
  store i32 %58, ptr %14, align 4, !tbaa !9
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %50
  br label %255

62:                                               ; preds = %50
  %63 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %63, ptr %14, align 4, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 3
  %69 = call i32 @i32_load8_u(ptr noundef %65, i64 noundef %68)
  store i32 %69, ptr %14, align 4, !tbaa !9
  store i32 24, ptr %15, align 4, !tbaa !9
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = and i32 %70, 31
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = shl i32 %72, %71
  store i32 %73, ptr %14, align 4, !tbaa !9
  store i32 503316480, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = icmp eq i32 %74, %75
  %77 = zext i1 %76 to i32
  store i32 %77, ptr %14, align 4, !tbaa !9
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %62
  br label %130

81:                                               ; preds = %62
  br label %82

82:                                               ; preds = %81, %5
  store i32 217520, ptr %14, align 4, !tbaa !9
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.w2c_hermes, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = call i64 @i64_load(ptr noundef %84, i64 noundef %86)
  store i64 %87, ptr %19, align 8, !tbaa !11
  %88 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %88, ptr %13, align 8, !tbaa !11
  store i64 -844424930131969, ptr %20, align 8, !tbaa !11
  %89 = load i64, ptr %19, align 8, !tbaa !11
  %90 = load i64, ptr %20, align 8, !tbaa !11
  %91 = icmp ule i64 %89, %90
  %92 = zext i1 %91 to i32
  store i32 %92, ptr %14, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %82
  br label %273

96:                                               ; preds = %82
  store i32 217520, ptr %14, align 4, !tbaa !9
  %97 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %97, ptr %10, align 4, !tbaa !9
  %98 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %98, ptr %19, align 8, !tbaa !11
  %99 = load i64, ptr %19, align 8, !tbaa !11
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %14, align 4, !tbaa !9
  %101 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  %104 = xor i1 %103, true
  %105 = zext i1 %104 to i32
  store i32 %105, ptr %14, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %96
  br label %130

109:                                              ; preds = %96
  %110 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %110, ptr %14, align 4, !tbaa !9
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 3
  %116 = call i32 @i32_load8_u(ptr noundef %112, i64 noundef %115)
  store i32 %116, ptr %14, align 4, !tbaa !9
  %117 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %117, ptr %12, align 4, !tbaa !9
  store i32 24, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = and i32 %118, 31
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = shl i32 %120, %119
  store i32 %121, ptr %14, align 4, !tbaa !9
  store i32 503316480, ptr %15, align 4, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = icmp ne i32 %122, %123
  %125 = zext i1 %124 to i32
  store i32 %125, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %109
  br label %291

129:                                              ; preds = %109
  br label %130

130:                                              ; preds = %129, %108, %80
  %131 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %131, ptr %19, align 8, !tbaa !11
  %132 = load i64, ptr %19, align 8, !tbaa !11
  %133 = trunc i64 %132 to i32
  store i32 %133, ptr %14, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %193

136:                                              ; preds = %130
  %137 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %137, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = add i64 %141, 8
  %143 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %139, i64 noundef %142, i32 noundef %143)
  %144 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %144, ptr %14, align 4, !tbaa !9
  %145 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %145, ptr %15, align 4, !tbaa !9
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %14, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = add i64 %149, 12
  %151 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %147, i64 noundef %150, i32 noundef %151)
  %152 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %152, ptr %14, align 4, !tbaa !9
  %153 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %153, ptr %15, align 4, !tbaa !9
  %154 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %154, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %155 = load i32, ptr %17, align 4, !tbaa !9
  %156 = load i32, ptr %16, align 4, !tbaa !9
  %157 = add i32 %156, %155
  store i32 %157, ptr %16, align 4, !tbaa !9
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %15, align 4, !tbaa !9
  %161 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSCallSite0x3A0x3AgetEvalOrigin0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSCallSite0x3E0x29(ptr noundef %158, i32 noundef %159, i32 noundef %160, i32 noundef %161)
  %162 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %162, ptr %14, align 4, !tbaa !9
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = add i64 %166, 8
  %168 = call i32 @i32_load(ptr noundef %164, i64 noundef %167)
  store i32 %168, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %169, ptr %10, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 0
  %172 = xor i1 %171, true
  %173 = zext i1 %172 to i32
  store i32 %173, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %177

176:                                              ; preds = %136
  br label %247

177:                                              ; preds = %136
  %178 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %178, ptr %14, align 4, !tbaa !9
  %179 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %179, ptr %15, align 4, !tbaa !9
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.w2c_hermes, ptr %180, i32 0, i32 6
  %182 = load i32, ptr %15, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = call i32 @i32_load(ptr noundef %181, i64 noundef %183)
  store i32 %184, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = sub i32 %186, %185
  store i32 %187, ptr %15, align 4, !tbaa !9
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.w2c_hermes, ptr %188, i32 0, i32 6
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %189, i64 noundef %191, i32 noundef %192)
  br label %247

193:                                              ; preds = %130
  %194 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %194, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.w2c_hermes, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = add i64 %198, 40
  %200 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %196, i64 noundef %199, i32 noundef %200)
  %201 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %201, ptr %14, align 4, !tbaa !9
  store i64 214748364801, ptr %20, align 8, !tbaa !11
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %14, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = add i64 %205, 32
  %207 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %203, i64 noundef %206, i64 noundef %207)
  %208 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %208, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.w2c_hermes, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %14, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = add i64 %212, 16
  %214 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %210, i64 noundef %213, i32 noundef %214)
  %215 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %215, ptr %14, align 4, !tbaa !9
  store i32 49217, ptr %15, align 4, !tbaa !9
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.w2c_hermes, ptr %216, i32 0, i32 6
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = add i64 %219, 8
  %221 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %217, i64 noundef %220, i32 noundef %221)
  %222 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %222, ptr %14, align 4, !tbaa !9
  %223 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %223, ptr %15, align 4, !tbaa !9
  %224 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %224, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %225 = load i32, ptr %17, align 4, !tbaa !9
  %226 = load i32, ptr %16, align 4, !tbaa !9
  %227 = add i32 %226, %225
  store i32 %227, ptr %16, align 4, !tbaa !9
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = load i32, ptr %15, align 4, !tbaa !9
  %230 = load i32, ptr %16, align 4, !tbaa !9
  %231 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %228, i32 noundef %229, i32 noundef %230)
  store i32 %231, ptr %15, align 4, !tbaa !9
  %232 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %232, ptr %10, align 4, !tbaa !9
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %234, i64 noundef %236, i32 noundef %237)
  %238 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %238, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %239 = load i32, ptr %14, align 4, !tbaa !9
  %240 = load i32, ptr %15, align 4, !tbaa !9
  %241 = icmp eq i32 %239, %240
  %242 = zext i1 %241 to i32
  store i32 %242, ptr %14, align 4, !tbaa !9
  %243 = load i32, ptr %14, align 4, !tbaa !9
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %246

245:                                              ; preds = %193
  br label %309

246:                                              ; preds = %193
  br label %247

247:                                              ; preds = %246, %177, %176
  %248 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %248, ptr %14, align 4, !tbaa !9
  store i32 48, ptr %15, align 4, !tbaa !9
  %249 = load i32, ptr %15, align 4, !tbaa !9
  %250 = load i32, ptr %14, align 4, !tbaa !9
  %251 = add i32 %250, %249
  store i32 %251, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %14, align 4, !tbaa !9
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.w2c_hermes, ptr %253, i32 0, i32 3
  store i32 %252, ptr %254, align 8, !tbaa !13
  br label %327

255:                                              ; preds = %61
  store i32 0, ptr %14, align 4, !tbaa !9
  %256 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %256, ptr %11, align 4, !tbaa !9
  store i32 147142, ptr %15, align 4, !tbaa !9
  %257 = load i32, ptr %15, align 4, !tbaa !9
  %258 = load i32, ptr %14, align 4, !tbaa !9
  %259 = add i32 %258, %257
  store i32 %259, ptr %14, align 4, !tbaa !9
  %260 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %260, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  %261 = load i32, ptr %16, align 4, !tbaa !9
  %262 = load i32, ptr %15, align 4, !tbaa !9
  %263 = add i32 %262, %261
  store i32 %263, ptr %15, align 4, !tbaa !9
  store i32 106, ptr %16, align 4, !tbaa !9
  %264 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %264, ptr %17, align 4, !tbaa !9
  store i32 28119, ptr %18, align 4, !tbaa !9
  %265 = load i32, ptr %18, align 4, !tbaa !9
  %266 = load i32, ptr %17, align 4, !tbaa !9
  %267 = add i32 %266, %265
  store i32 %267, ptr %17, align 4, !tbaa !9
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = load i32, ptr %14, align 4, !tbaa !9
  %270 = load i32, ptr %15, align 4, !tbaa !9
  %271 = load i32, ptr %16, align 4, !tbaa !9
  %272 = load i32, ptr %17, 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 = %95
  store i32 0, ptr %14, align 4, !tbaa !9
  %274 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %274, ptr %11, align 4, !tbaa !9
  store i32 146777, ptr %15, align 4, !tbaa !9
  %275 = load i32, ptr %15, align 4, !tbaa !9
  %276 = load i32, ptr %14, align 4, !tbaa !9
  %277 = add i32 %276, %275
  store i32 %277, ptr %14, align 4, !tbaa !9
  %278 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %278, ptr %15, align 4, !tbaa !9
  store i32 82692, ptr %16, align 4, !tbaa !9
  %279 = load i32, ptr %16, align 4, !tbaa !9
  %280 = load i32, ptr %15, align 4, !tbaa !9
  %281 = add i32 %280, %279
  store i32 %281, ptr %15, align 4, !tbaa !9
  store i32 61, ptr %16, align 4, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %282, ptr %17, align 4, !tbaa !9
  store i32 72547, ptr %18, align 4, !tbaa !9
  %283 = load i32, ptr %18, align 4, !tbaa !9
  %284 = load i32, ptr %17, align 4, !tbaa !9
  %285 = add i32 %284, %283
  store i32 %285, ptr %17, align 4, !tbaa !9
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  %287 = load i32, ptr %14, align 4, !tbaa !9
  %288 = load i32, ptr %15, align 4, !tbaa !9
  %289 = load i32, ptr %16, align 4, !tbaa !9
  %290 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef %289, i32 noundef %290)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

291:                                              ; preds = %128
  store i32 0, ptr %14, align 4, !tbaa !9
  %292 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %292, ptr %11, align 4, !tbaa !9
  store i32 205071, ptr %15, align 4, !tbaa !9
  %293 = load i32, ptr %15, align 4, !tbaa !9
  %294 = load i32, ptr %14, align 4, !tbaa !9
  %295 = add i32 %294, %293
  store i32 %295, ptr %14, align 4, !tbaa !9
  %296 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %296, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  %297 = load i32, ptr %16, align 4, !tbaa !9
  %298 = load i32, ptr %15, align 4, !tbaa !9
  %299 = add i32 %298, %297
  store i32 %299, ptr %15, align 4, !tbaa !9
  store i32 299, ptr %16, align 4, !tbaa !9
  %300 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %300, ptr %17, align 4, !tbaa !9
  store i32 72549, ptr %18, align 4, !tbaa !9
  %301 = load i32, ptr %18, align 4, !tbaa !9
  %302 = load i32, ptr %17, align 4, !tbaa !9
  %303 = add i32 %302, %301
  store i32 %303, ptr %17, align 4, !tbaa !9
  %304 = load ptr, ptr %6, align 8, !tbaa !5
  %305 = load i32, ptr %14, align 4, !tbaa !9
  %306 = load i32, ptr %15, align 4, !tbaa !9
  %307 = load i32, ptr %16, align 4, !tbaa !9
  %308 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %304, i32 noundef %305, i32 noundef %306, i32 noundef %307, i32 noundef %308)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

309:                                              ; preds = %245
  store i32 0, ptr %14, align 4, !tbaa !9
  %310 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %310, ptr %11, align 4, !tbaa !9
  store i32 109717, ptr %15, align 4, !tbaa !9
  %311 = load i32, ptr %15, align 4, !tbaa !9
  %312 = load i32, ptr %14, align 4, !tbaa !9
  %313 = add i32 %312, %311
  store i32 %313, ptr %14, align 4, !tbaa !9
  %314 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %314, ptr %15, align 4, !tbaa !9
  store i32 77564, ptr %16, align 4, !tbaa !9
  %315 = load i32, ptr %16, align 4, !tbaa !9
  %316 = load i32, ptr %15, align 4, !tbaa !9
  %317 = add i32 %316, %315
  store i32 %317, ptr %15, align 4, !tbaa !9
  store i32 168, ptr %16, align 4, !tbaa !9
  %318 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %318, ptr %17, align 4, !tbaa !9
  store i32 28083, ptr %18, align 4, !tbaa !9
  %319 = load i32, ptr %18, align 4, !tbaa !9
  %320 = load i32, ptr %17, align 4, !tbaa !9
  %321 = add i32 %320, %319
  store i32 %321, ptr %17, align 4, !tbaa !9
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = load i32, ptr %14, align 4, !tbaa !9
  %324 = load i32, ptr %15, align 4, !tbaa !9
  %325 = load i32, ptr %16, align 4, !tbaa !9
  %326 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %322, i32 noundef %323, i32 noundef %324, i32 noundef %325, i32 noundef %326)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

327:                                              ; preds = %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, 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 8, 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
  ret void
}

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

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 = { "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}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


; 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 void @i64_store(ptr noundef, i64 noundef, i64 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 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 i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AcallSitePrototypeGetEvalOrigin0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -48
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %12 = zext i32 %11 to i64
  %13 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %12)
  %14 = icmp ugt i64 %13, -844424930131969
  br i1 %14, label %15, label %21

15:                                               ; preds = %5
  %16 = and i64 %13, 4294967295
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %51, label %17

17:                                               ; preds = %15
  %18 = add nuw nsw i64 %16, 3
  %19 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %18)
  %.mask = and i32 %19, 255
  %20 = icmp eq i32 %.mask, 30
  br i1 %20, label %29, label %21

21:                                               ; preds = %17, %5
  %22 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 217520)
  %23 = icmp ult i64 %22, -844424930131968
  br i1 %23, label %52, label %24

24:                                               ; preds = %21
  %25 = and i64 %22, 4294967295
  %.not181 = icmp eq i64 %25, 0
  br i1 %.not181, label %29, label %26

26:                                               ; preds = %24
  %27 = add nuw nsw i64 %25, 3
  %28 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %27)
  %.mask183 = and i32 %28, 255
  %.not182 = icmp eq i32 %.mask183, 30
  br i1 %.not182, label %29, label %53

29:                                               ; preds = %26, %24, %17
  %.0178 = phi i32 [ %11, %17 ], [ 217520, %24 ], [ 217520, %26 ]
  %.0 = phi i64 [ %13, %17 ], [ %22, %24 ], [ %22, %26 ]
  %30 = and i64 %.0, 4294967295
  %.not184 = icmp eq i64 %30, 0
  %31 = zext i32 %8 to i64
  br i1 %.not184, label %41, label %32

32:                                               ; preds = %29
  %33 = add nuw nsw i64 %31, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %33, i32 noundef 0)
  %34 = add nuw nsw i64 %31, 12
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %34, i32 noundef %.0178)
  %35 = add i32 %7, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSCallSite0x3A0x3AgetEvalOrigin0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSCallSite0x3E0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %3, i32 noundef %35) #4
  %36 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %33)
  %.not185 = icmp eq i32 %36, 0
  br i1 %.not185, label %50, label %37

37:                                               ; preds = %32
  %38 = zext i32 %36 to i64
  %39 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %38)
  %40 = add i32 %39, -1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %38, i32 noundef %40)
  br label %50

41:                                               ; preds = %29
  %42 = add nuw nsw i64 %31, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %42, i32 noundef 0)
  %43 = add nuw nsw i64 %31, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %43, i64 noundef 214748364801)
  %44 = add nuw nsw i64 %31, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %44, i32 noundef 3)
  %45 = add nuw nsw i64 %31, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %45, i32 noundef 49217)
  %46 = add i32 %7, -40
  %47 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %46)
  %48 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %48, i32 noundef %47)
  %49 = icmp eq i32 %47, 1
  br i1 %49, label %54, label %50

50:                                               ; preds = %41, %32, %37
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void

51:                                               ; preds = %15
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 147142, i32 noundef 82611, i32 noundef 106, i32 noundef 28119) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

52:                                               ; preds = %21
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 146777, i32 noundef 82692, i32 noundef 61, i32 noundef 72547) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

53:                                               ; preds = %26
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 205071, i32 noundef 82611, i32 noundef 299, i32 noundef 72549) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

54:                                               ; preds = %41
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109717, i32 noundef 77564, i32 noundef 168, i32 noundef 28083) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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 = { "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 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)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


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