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

; 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 i32 @i32_load(ptr noundef, i64 noundef) #1

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 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: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) #1

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) #2

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AtypedArrayCreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ACallable0x3E0x2C0x20unsigned0x20long0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca double, 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 i64 %3, ptr %8, align 8, !tbaa !11
  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 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  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 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !15
  store i32 %24, ptr %14, align 4, !tbaa !9
  store i32 -64, ptr %15, align 4, !tbaa !9
  %25 = load i32, ptr %15, align 4, !tbaa !9
  %26 = load i32, ptr %14, align 4, !tbaa !9
  %27 = add i32 %26, %25
  store i32 %27, ptr %14, align 4, !tbaa !9
  %28 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %14, align 4, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 3
  store i32 %29, ptr %31, align 8, !tbaa !15
  %32 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %32, ptr %18, align 8, !tbaa !11
  %33 = load i64, ptr %18, align 8, !tbaa !11
  %34 = uitofp i64 %33 to double
  store double %34, ptr %20, align 8, !tbaa !13
  %35 = load double, ptr %20, align 8, !tbaa !13
  store double %35, ptr %13, align 8, !tbaa !13
  %36 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %36, ptr %14, align 4, !tbaa !9
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.w2c_hermes, ptr %37, i32 0, i32 6
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = add i64 %40, 4
  %42 = call i32 @i32_load(ptr noundef %38, i64 noundef %41)
  store i32 %42, ptr %14, align 4, !tbaa !9
  %43 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %43, ptr %11, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 164
  %49 = call i32 @i32_load(ptr noundef %45, i64 noundef %48)
  store i32 %49, ptr %14, align 4, !tbaa !9
  %50 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %50, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %51, ptr %15, align 4, !tbaa !9
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %15, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = add i64 %55, 168
  %57 = call i32 @i32_load(ptr noundef %53, i64 noundef %56)
  store i32 %57, ptr %15, align 4, !tbaa !9
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = icmp ult i32 %58, %59
  %61 = zext i1 %60 to i32
  store i32 %61, ptr %14, align 4, !tbaa !9
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %83

64:                                               ; preds = %4
  %65 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %65, ptr %14, align 4, !tbaa !9
  %66 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %66, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %67 = load i32, ptr %16, align 4, !tbaa !9
  %68 = load i32, ptr %15, align 4, !tbaa !9
  %69 = add i32 %68, %67
  store i32 %69, ptr %15, align 4, !tbaa !9
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 164
  %75 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %71, i64 noundef %74, i32 noundef %75)
  %76 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %76, ptr %14, align 4, !tbaa !9
  %77 = load double, ptr %13, align 8, !tbaa !13
  store double %77, ptr %21, align 8, !tbaa !13
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.w2c_hermes, ptr %78, i32 0, i32 6
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = load double, ptr %21, align 8, !tbaa !13
  call void @f64_store(ptr noundef %79, i64 noundef %81, double noundef %82)
  br label %93

83:                                               ; preds = %4
  %84 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %84, ptr %14, align 4, !tbaa !9
  %85 = load double, ptr %13, align 8, !tbaa !13
  store double %85, ptr %21, align 8, !tbaa !13
  %86 = load double, ptr %21, align 8, !tbaa !13
  %87 = call i64 @i64_reinterpret_f64(double noundef %86)
  store i64 %87, ptr %19, align 8, !tbaa !11
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = load i64, ptr %19, align 8, !tbaa !11
  %91 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %88, i32 noundef %89, i64 noundef %90)
  store i32 %91, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %92, ptr %10, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %83, %64
  %94 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %94, ptr %14, align 4, !tbaa !9
  store i32 48, ptr %15, align 4, !tbaa !9
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = add i32 %96, %95
  store i32 %97, ptr %14, align 4, !tbaa !9
  %98 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %98, ptr %15, align 4, !tbaa !9
  %99 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %99, ptr %16, align 4, !tbaa !9
  %100 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %100, ptr %17, align 4, !tbaa !9
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallable0x3A0x3AexecuteConstruct10x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ACallable0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %101, i32 noundef %102, i32 noundef %103, i32 noundef %104, i32 noundef %105)
  store i32 -1, ptr %14, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %106, ptr %10, align 4, !tbaa !9
  %107 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %107, ptr %14, 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 %14, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = add i64 %111, 48
  %113 = call i32 @i32_load(ptr noundef %109, i64 noundef %112)
  store i32 %113, ptr %14, align 4, !tbaa !9
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  %116 = xor i1 %115, true
  %117 = zext i1 %116 to i32
  store i32 %117, ptr %14, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %93
  br label %304

121:                                              ; preds = %93
  %122 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %122, ptr %14, align 4, !tbaa !9
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 56
  %128 = call i64 @i64_load(ptr noundef %124, i64 noundef %127)
  store i64 %128, ptr %18, align 8, !tbaa !11
  %129 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %129, ptr %12, align 8, !tbaa !11
  store i64 -844424930131968, ptr %19, align 8, !tbaa !11
  %130 = load i64, ptr %18, align 8, !tbaa !11
  %131 = load i64, ptr %19, align 8, !tbaa !11
  %132 = icmp uge i64 %130, %131
  %133 = zext i1 %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 %157

136:                                              ; preds = %121
  %137 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %137, ptr %18, align 8, !tbaa !11
  %138 = load i64, ptr %18, align 8, !tbaa !11
  %139 = trunc i64 %138 to i32
  store i32 %139, ptr %14, align 4, !tbaa !9
  %140 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %140, ptr %11, align 4, !tbaa !9
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = call i32 @i32_load(ptr noundef %142, i64 noundef %144)
  store i32 %145, ptr %14, align 4, !tbaa !9
  store i32 587202560, ptr %15, align 4, !tbaa !9
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = load i32, ptr %14, align 4, !tbaa !9
  %148 = sub i32 %147, %146
  store i32 %148, ptr %14, align 4, !tbaa !9
  store i32 184549376, ptr %15, align 4, !tbaa !9
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %15, align 4, !tbaa !9
  %151 = icmp ult i32 %149, %150
  %152 = zext i1 %151 to i32
  store i32 %152, ptr %14, align 4, !tbaa !9
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %156

155:                                              ; preds = %136
  br label %186

156:                                              ; preds = %136
  br label %157

157:                                              ; preds = %156, %121
  %158 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %158, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 40
  %164 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %160, i64 noundef %163, i32 noundef %164)
  %165 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %165, ptr %14, align 4, !tbaa !9
  store i64 201863462913, ptr %19, align 8, !tbaa !11
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.w2c_hermes, ptr %166, i32 0, i32 6
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = add i64 %169, 32
  %171 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %167, i64 noundef %170, i64 noundef %171)
  %172 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %172, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.w2c_hermes, ptr %173, i32 0, i32 6
  %175 = load i32, ptr %14, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = add i64 %176, 16
  %178 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %174, i64 noundef %177, i32 noundef %178)
  %179 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %179, ptr %14, align 4, !tbaa !9
  store i32 17826, ptr %15, align 4, !tbaa !9
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.w2c_hermes, ptr %180, i32 0, i32 6
  %182 = load i32, ptr %14, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = add i64 %183, 8
  %185 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %181, i64 noundef %184, i32 noundef %185)
  br label %293

186:                                              ; preds = %155
  %187 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %187, ptr %14, align 4, !tbaa !9
  %188 = load ptr, ptr %5, 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 = add i64 %191, 4
  %193 = call i32 @i32_load(ptr noundef %189, i64 noundef %192)
  store i32 %193, ptr %14, align 4, !tbaa !9
  %194 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %194, ptr %7, align 4, !tbaa !9
  %195 = load ptr, ptr %5, 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, 164
  %200 = call i32 @i32_load(ptr noundef %196, i64 noundef %199)
  store i32 %200, ptr %14, align 4, !tbaa !9
  %201 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %201, ptr %10, align 4, !tbaa !9
  %202 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %202, ptr %15, 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 = add i64 %206, 168
  %208 = call i32 @i32_load(ptr noundef %204, i64 noundef %207)
  store i32 %208, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %14, align 4, !tbaa !9
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = icmp ult i32 %209, %210
  %212 = zext i1 %211 to i32
  store i32 %212, ptr %14, align 4, !tbaa !9
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %234

215:                                              ; preds = %186
  %216 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %216, ptr %14, align 4, !tbaa !9
  %217 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %217, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %218 = load i32, ptr %16, align 4, !tbaa !9
  %219 = load i32, ptr %15, align 4, !tbaa !9
  %220 = add i32 %219, %218
  store i32 %220, ptr %15, align 4, !tbaa !9
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 6
  %223 = load i32, ptr %14, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = add i64 %224, 164
  %226 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %222, i64 noundef %225, i32 noundef %226)
  %227 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %227, ptr %14, align 4, !tbaa !9
  %228 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %228, ptr %19, align 8, !tbaa !11
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.w2c_hermes, ptr %229, i32 0, i32 6
  %231 = load i32, ptr %14, align 4, !tbaa !9
  %232 = zext i32 %231 to i64
  %233 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %230, i64 noundef %232, i64 noundef %233)
  br label %248

234:                                              ; preds = %186
  %235 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %235, ptr %14, align 4, !tbaa !9
  %236 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %236, ptr %19, align 8, !tbaa !11
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = load i64, ptr %19, align 8, !tbaa !11
  %240 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %237, i32 noundef %238, i64 noundef %239)
  store i32 %240, ptr %14, align 4, !tbaa !9
  %241 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %241, ptr %10, align 4, !tbaa !9
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.w2c_hermes, ptr %242, i32 0, i32 6
  %244 = load i32, ptr %14, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = call i32 @i32_load(ptr noundef %243, i64 noundef %245)
  store i32 %246, ptr %14, align 4, !tbaa !9
  %247 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %247, ptr %11, align 4, !tbaa !9
  br label %248

248:                                              ; preds = %234, %215
  %249 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %249, ptr %14, align 4, !tbaa !9
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.w2c_hermes, ptr %250, i32 0, i32 6
  %252 = load i32, ptr %14, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = add i64 %253, 24
  %255 = call i64 @i64_load32_u(ptr noundef %251, i64 noundef %254)
  store i64 %255, ptr %18, align 8, !tbaa !11
  %256 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %256, ptr %19, align 8, !tbaa !11
  %257 = load i64, ptr %18, align 8, !tbaa !11
  %258 = load i64, ptr %19, align 8, !tbaa !11
  %259 = icmp uge i64 %257, %258
  %260 = zext i1 %259 to i32
  store i32 %260, ptr %14, align 4, !tbaa !9
  %261 = load i32, ptr %14, align 4, !tbaa !9
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %264

263:                                              ; preds = %248
  br label %304

264:                                              ; preds = %248
  %265 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %265, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.w2c_hermes, ptr %266, i32 0, i32 6
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = add i64 %269, 40
  %271 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %267, i64 noundef %270, i32 noundef %271)
  %272 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %272, ptr %14, align 4, !tbaa !9
  store i64 249108103169, ptr %19, align 8, !tbaa !11
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.w2c_hermes, ptr %273, i32 0, i32 6
  %275 = load i32, ptr %14, align 4, !tbaa !9
  %276 = zext i32 %275 to i64
  %277 = add i64 %276, 32
  %278 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %274, i64 noundef %277, i64 noundef %278)
  %279 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %279, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.w2c_hermes, ptr %280, i32 0, i32 6
  %282 = load i32, ptr %14, align 4, !tbaa !9
  %283 = zext i32 %282 to i64
  %284 = add i64 %283, 16
  %285 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %281, i64 noundef %284, i32 noundef %285)
  %286 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %286, ptr %14, align 4, !tbaa !9
  store i32 43614, ptr %15, align 4, !tbaa !9
  %287 = load ptr, ptr %5, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.w2c_hermes, ptr %287, i32 0, i32 6
  %289 = load i32, ptr %14, align 4, !tbaa !9
  %290 = zext i32 %289 to i64
  %291 = add i64 %290, 8
  %292 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %288, i64 noundef %291, i32 noundef %292)
  br label %293

293:                                              ; preds = %264, %157
  %294 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %294, ptr %14, align 4, !tbaa !9
  %295 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %295, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %296 = load i32, ptr %16, align 4, !tbaa !9
  %297 = load i32, ptr %15, align 4, !tbaa !9
  %298 = add i32 %297, %296
  store i32 %298, ptr %15, align 4, !tbaa !9
  %299 = load ptr, ptr %5, align 8, !tbaa !5
  %300 = load i32, ptr %14, align 4, !tbaa !9
  %301 = load i32, ptr %15, align 4, !tbaa !9
  %302 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %299, i32 noundef %300, i32 noundef %301)
  store i32 %302, ptr %14, align 4, !tbaa !9
  store i32 -1, ptr %14, align 4, !tbaa !9
  %303 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %303, ptr %10, align 4, !tbaa !9
  br label %304

304:                                              ; preds = %293, %263, %120
  %305 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %305, ptr %14, align 4, !tbaa !9
  store i32 -64, ptr %15, align 4, !tbaa !9
  %306 = load i32, ptr %15, align 4, !tbaa !9
  %307 = load i32, ptr %14, align 4, !tbaa !9
  %308 = sub i32 %307, %306
  store i32 %308, ptr %14, align 4, !tbaa !9
  %309 = load i32, ptr %14, align 4, !tbaa !9
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.w2c_hermes, ptr %310, i32 0, i32 3
  store i32 %309, ptr %311, align 8, !tbaa !15
  %312 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %312, ptr %14, align 4, !tbaa !9
  %313 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 %313
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallable0x3A0x3AexecuteConstruct10x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ACallable0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

!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, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !10, i64 24}
!16 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !17, i64 40, !19, i64 80}
!17 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !18, i64 32}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!"", !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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #0

; 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 i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) local_unnamed_addr #0

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AtypedArrayCreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ACallable0x3E0x2C0x20unsigned0x20long0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -64
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = uitofp i64 %3 to double
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %1 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %13 = zext i32 %12 to i64
  %14 = add nuw nsw i64 %13, 164
  %15 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %14)
  %16 = add nuw nsw i64 %13, 168
  %17 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %16)
  %18 = icmp ult i32 %15, %17
  br i1 %18, label %19, label %22

19:                                               ; preds = %4
  %20 = add i32 %15, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %14, i32 noundef %20)
  %21 = zext i32 %15 to i64
  tail call void @f64_store(ptr noundef nonnull %9, i64 noundef %21, double noundef %8)
  br label %25

22:                                               ; preds = %4
  %23 = tail call i64 @i64_reinterpret_f64(double noundef %8)
  %24 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef nonnull %0, i32 noundef %12, i64 noundef %23) #3
  br label %25

25:                                               ; preds = %22, %19
  %.0162 = phi i32 [ %15, %19 ], [ %24, %22 ]
  %26 = add i32 %6, -16
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallable0x3A0x3AexecuteConstruct10x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ACallable0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %26, i32 noundef %2, i32 noundef %1, i32 noundef %.0162) #3
  %27 = zext i32 %7 to i64
  %28 = add nuw nsw i64 %27, 48
  %29 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %28)
  %.not = icmp eq i32 %29, 0
  br i1 %.not, label %66, label %30

30:                                               ; preds = %25
  %31 = add nuw nsw i64 %27, 56
  %32 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %31)
  %33 = icmp ugt i64 %32, -844424930131969
  br i1 %33, label %34, label %59

34:                                               ; preds = %30
  %35 = trunc i64 %32 to i32
  %36 = and i64 %32, 4294967295
  %37 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %36)
  %38 = add i32 %37, -587202560
  %39 = icmp ult i32 %38, 184549376
  br i1 %39, label %40, label %59

40:                                               ; preds = %34
  %41 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %42 = zext i32 %41 to i64
  %43 = add nuw nsw i64 %42, 164
  %44 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %43)
  %45 = add nuw nsw i64 %42, 168
  %46 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %45)
  %47 = icmp ult i32 %44, %46
  br i1 %47, label %48, label %51

48:                                               ; preds = %40
  %49 = add i32 %44, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %43, i32 noundef %49)
  %50 = zext i32 %44 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %50, i64 noundef %32)
  br label %55

51:                                               ; preds = %40
  %52 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef nonnull %0, i32 noundef %41, i64 noundef %32) #3
  %53 = zext i32 %52 to i64
  %54 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %53)
  br label %55

55:                                               ; preds = %51, %48
  %.1 = phi i32 [ %44, %48 ], [ %52, %51 ]
  %.0 = phi i32 [ %35, %48 ], [ %54, %51 ]
  %56 = zext i32 %.0 to i64
  %57 = add nuw nsw i64 %56, 24
  %58 = tail call i64 @i64_load32_u(ptr noundef nonnull %9, i64 noundef %57)
  %.not166 = icmp ult i64 %58, %3
  br i1 %.not166, label %59, label %66

59:                                               ; preds = %55, %30, %34
  %.sink168 = phi i64 [ 201863462913, %34 ], [ 201863462913, %30 ], [ 249108103169, %55 ]
  %.sink167 = phi i32 [ 17826, %34 ], [ 17826, %30 ], [ 43614, %55 ]
  %60 = add nuw nsw i64 %27, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %60, i32 noundef 0)
  %61 = add nuw nsw i64 %27, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %61, i64 noundef %.sink168)
  %62 = add nuw nsw i64 %27, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %62, i32 noundef 3)
  %63 = add nuw nsw i64 %27, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %63, i32 noundef %.sink167)
  %64 = add i32 %6, -56
  %65 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %64) #3
  br label %66

66:                                               ; preds = %55, %25, %59
  %.2 = phi i32 [ -1, %25 ], [ %.1, %55 ], [ -1, %59 ]
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %.2
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallable0x3A0x3AexecuteConstruct10x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ACallable0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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 = { "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 = { 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