; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) #0

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_reinterpret_i64(i64 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(double noundef) #0

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden double @wasm_trunc(double noundef) #0

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

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

81:                                               ; preds = %59
  br label %91

82:                                               ; preds = %59
  br label %83

83:                                               ; preds = %82, %5
  store i32 67200, ptr %15, align 4, !tbaa !9
  %84 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %84, ptr %12, align 4, !tbaa !9
  %85 = load ptr, ptr %6, 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 i64 @i64_load(ptr noundef %86, i64 noundef %88)
  store i64 %89, ptr %21, align 8, !tbaa !11
  %90 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %90, ptr %13, align 8, !tbaa !11
  br label %91

91:                                               ; preds = %83, %81
  %92 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %92, ptr %21, align 8, !tbaa !11
  store i64 4294967295, ptr %22, align 8, !tbaa !11
  %93 = load i64, ptr %22, align 8, !tbaa !11
  %94 = load i64, ptr %21, align 8, !tbaa !11
  %95 = and i64 %94, %93
  store i64 %95, ptr %21, align 8, !tbaa !11
  store i64 0, ptr %22, align 8, !tbaa !11
  %96 = load i64, ptr %21, align 8, !tbaa !11
  %97 = load i64, ptr %22, align 8, !tbaa !11
  %98 = icmp ne i64 %96, %97
  %99 = zext i1 %98 to i32
  store i32 %99, ptr %15, align 4, !tbaa !9
  %100 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %100, ptr %22, align 8, !tbaa !11
  store i64 -844424930131968, ptr %23, align 8, !tbaa !11
  %101 = load i64, ptr %22, align 8, !tbaa !11
  %102 = load i64, ptr %23, align 8, !tbaa !11
  %103 = icmp uge i64 %101, %102
  %104 = zext i1 %103 to i32
  store i32 %104, ptr %16, align 4, !tbaa !9
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = and i32 %106, %105
  store i32 %107, ptr %15, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = icmp ne i32 %108, 0
  %110 = xor i1 %109, true
  %111 = zext i1 %110 to i32
  store i32 %111, ptr %15, align 4, !tbaa !9
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %158

114:                                              ; preds = %91
  %115 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %115, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = add i64 %119, 40
  %121 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %117, i64 noundef %120, i32 noundef %121)
  %122 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %122, ptr %15, align 4, !tbaa !9
  store i64 214748364801, ptr %22, align 8, !tbaa !11
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %15, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 32
  %128 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %124, i64 noundef %127, i64 noundef %128)
  %129 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %129, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 16
  %135 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %131, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %136, ptr %15, align 4, !tbaa !9
  store i32 32264, ptr %16, align 4, !tbaa !9
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 8
  %142 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %138, i64 noundef %141, i32 noundef %142)
  %143 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %143, ptr %15, align 4, !tbaa !9
  %144 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %144, ptr %16, align 4, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %145, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = load i32, ptr %17, align 4, !tbaa !9
  %148 = add i32 %147, %146
  store i32 %148, ptr %17, align 4, !tbaa !9
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load i32, ptr %16, align 4, !tbaa !9
  %151 = load i32, ptr %17, align 4, !tbaa !9
  %152 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %149, i32 noundef %150, i32 noundef %151)
  store i32 %152, ptr %16, align 4, !tbaa !9
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %15, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %154, i64 noundef %156, i32 noundef %157)
  br label %294

158:                                              ; preds = %91
  %159 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %159, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %160 = load i32, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = add i32 %161, %160
  store i32 %162, ptr %15, align 4, !tbaa !9
  %163 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %163, ptr %16, align 4, !tbaa !9
  %164 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %164, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %165 = load i32, ptr %18, align 4, !tbaa !9
  %166 = load i32, ptr %17, align 4, !tbaa !9
  %167 = sub i32 %166, %165
  store i32 %167, ptr %17, align 4, !tbaa !9
  store i32 67208, ptr %18, align 4, !tbaa !9
  %168 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %168, ptr %19, align 4, !tbaa !9
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %19, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = add i64 %172, 4
  %174 = call i32 @i32_load(ptr noundef %170, i64 noundef %173)
  store i32 %174, ptr %19, align 4, !tbaa !9
  %175 = load i32, ptr %19, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %179

177:                                              ; preds = %158
  %178 = load i32, ptr %17, align 4, !tbaa !9
  br label %181

179:                                              ; preds = %158
  %180 = load i32, ptr %18, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %179, %177
  %182 = phi i32 [ %178, %177 ], [ %180, %179 ]
  store i32 %182, ptr %17, align 4, !tbaa !9
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = load i32, ptr %15, align 4, !tbaa !9
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %183, i32 noundef %184, i32 noundef %185, i32 noundef %186)
  %187 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %187, ptr %15, align 4, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %188, ptr %16, align 4, !tbaa !9
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 6
  %191 = load i32, ptr %16, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = add i64 %192, 8
  %194 = call i32 @i32_load(ptr noundef %190, i64 noundef %193)
  store i32 %194, ptr %16, align 4, !tbaa !9
  %195 = load i32, ptr %16, align 4, !tbaa !9
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %287

197:                                              ; preds = %181
  %198 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %198, ptr %16, align 4, !tbaa !9
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %16, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = call i32 @i32_load(ptr noundef %200, i64 noundef %202)
  store i32 %203, ptr %16, align 4, !tbaa !9
  %204 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %204, ptr %25, align 8, !tbaa !13
  %205 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %205, ptr %18, align 4, !tbaa !9
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.w2c_hermes, ptr %206, i32 0, i32 6
  %208 = load i32, ptr %18, align 4, !tbaa !9
  %209 = zext i32 %208 to i64
  %210 = add i64 %209, 16
  %211 = call double @f64_load(ptr noundef %207, i64 noundef %210)
  store double %211, ptr %26, align 8, !tbaa !13
  %212 = load double, ptr %26, align 8, !tbaa !13
  store double %212, ptr %14, align 8, !tbaa !13
  %213 = load double, ptr %26, align 8, !tbaa !13
  %214 = call double @wasm_trunc(double noundef %213)
  store double %214, ptr %26, align 8, !tbaa !13
  store double 0.000000e+00, ptr %27, align 8, !tbaa !13
  %215 = load double, ptr %27, align 8, !tbaa !13
  %216 = load double, ptr %26, align 8, !tbaa !13
  %217 = fadd double %216, %215
  store double %217, ptr %26, align 8, !tbaa !13
  %218 = load double, ptr %14, align 8, !tbaa !13
  store double %218, ptr %27, align 8, !tbaa !13
  %219 = load double, ptr %27, align 8, !tbaa !13
  %220 = call double @wasm_fabs(double noundef %219)
  store double %220, ptr %27, align 8, !tbaa !13
  %221 = load double, ptr %27, align 8, !tbaa !13
  store double %221, ptr %14, align 8, !tbaa !13
  store double 8.640000e+15, ptr %28, align 8, !tbaa !13
  %222 = load double, ptr %27, align 8, !tbaa !13
  %223 = load double, ptr %28, align 8, !tbaa !13
  %224 = fcmp ogt double %222, %223
  %225 = zext i1 %224 to i32
  store i32 %225, ptr %19, align 4, !tbaa !9
  %226 = load i32, ptr %19, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %230

228:                                              ; preds = %197
  %229 = load double, ptr %25, align 8, !tbaa !13
  br label %232

230:                                              ; preds = %197
  %231 = load double, ptr %26, align 8, !tbaa !13
  br label %232

232:                                              ; preds = %230, %228
  %233 = phi double [ %229, %228 ], [ %231, %230 ]
  store double %233, ptr %25, align 8, !tbaa !13
  %234 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %234, ptr %26, align 8, !tbaa !13
  %235 = load double, ptr %14, align 8, !tbaa !13
  store double %235, ptr %27, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %28, align 8, !tbaa !13
  %236 = load double, ptr %27, align 8, !tbaa !13
  %237 = load double, ptr %28, align 8, !tbaa !13
  %238 = fcmp olt double %236, %237
  %239 = zext i1 %238 to i32
  store i32 %239, ptr %19, align 4, !tbaa !9
  %240 = load double, ptr %14, align 8, !tbaa !13
  store double %240, ptr %28, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %29, align 8, !tbaa !13
  %241 = load double, ptr %28, align 8, !tbaa !13
  %242 = load double, ptr %29, align 8, !tbaa !13
  %243 = fcmp ogt double %241, %242
  %244 = zext i1 %243 to i32
  store i32 %244, ptr %20, align 4, !tbaa !9
  %245 = load i32, ptr %20, align 4, !tbaa !9
  %246 = load i32, ptr %19, align 4, !tbaa !9
  %247 = or i32 %246, %245
  store i32 %247, ptr %19, align 4, !tbaa !9
  %248 = load i32, ptr %19, align 4, !tbaa !9
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %252

250:                                              ; preds = %232
  %251 = load double, ptr %25, align 8, !tbaa !13
  br label %254

252:                                              ; preds = %232
  %253 = load double, ptr %26, align 8, !tbaa !13
  br label %254

254:                                              ; preds = %252, %250
  %255 = phi double [ %251, %250 ], [ %253, %252 ]
  store double %255, ptr %25, align 8, !tbaa !13
  %256 = load double, ptr %25, align 8, !tbaa !13
  store double %256, ptr %14, align 8, !tbaa !13
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.w2c_hermes, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %16, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = add i64 %260, 24
  %262 = load double, ptr %25, align 8, !tbaa !13
  call void @f64_store(ptr noundef %258, i64 noundef %261, double noundef %262)
  %263 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %263, ptr %16, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %23, align 8, !tbaa !11
  %264 = load double, ptr %14, align 8, !tbaa !13
  store double %264, ptr %26, align 8, !tbaa !13
  %265 = load double, ptr %26, align 8, !tbaa !13
  %266 = call i64 @i64_reinterpret_f64(double noundef %265)
  store i64 %266, ptr %24, align 8, !tbaa !11
  %267 = load double, ptr %14, align 8, !tbaa !13
  store double %267, ptr %27, align 8, !tbaa !13
  %268 = load double, ptr %14, align 8, !tbaa !13
  store double %268, ptr %28, align 8, !tbaa !13
  %269 = load double, ptr %27, align 8, !tbaa !13
  %270 = load double, ptr %28, align 8, !tbaa !13
  %271 = fcmp une double %269, %270
  %272 = zext i1 %271 to i32
  store i32 %272, ptr %19, align 4, !tbaa !9
  %273 = load i32, ptr %19, align 4, !tbaa !9
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %275, label %277

275:                                              ; preds = %254
  %276 = load i64, ptr %23, align 8, !tbaa !11
  br label %279

277:                                              ; preds = %254
  %278 = load i64, ptr %24, align 8, !tbaa !11
  br label %279

279:                                              ; preds = %277, %275
  %280 = phi i64 [ %276, %275 ], [ %278, %277 ]
  store i64 %280, ptr %23, align 8, !tbaa !11
  %281 = load ptr, ptr %6, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.w2c_hermes, ptr %281, i32 0, i32 6
  %283 = load i32, ptr %16, align 4, !tbaa !9
  %284 = zext i32 %283 to i64
  %285 = add i64 %284, 8
  %286 = load i64, ptr %23, align 8, !tbaa !11
  call void @i64_store(ptr noundef %282, i64 noundef %285, i64 noundef %286)
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %288

287:                                              ; preds = %181
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %288

288:                                              ; preds = %287, %279
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 6
  %291 = load i32, ptr %15, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %290, i64 noundef %292, i32 noundef %293)
  br label %294

294:                                              ; preds = %288, %114
  %295 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %295, ptr %15, align 4, !tbaa !9
  store i32 48, 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 i32, ptr %15, align 4, !tbaa !9
  %300 = load ptr, ptr %6, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.w2c_hermes, ptr %300, i32 0, i32 3
  store i32 %299, ptr %301, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  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 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }

!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: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_load(ptr 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 #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdatePrototypeSetTime_RJS0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %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 %20

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

20:                                               ; preds = %15, %5
  %21 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 67200)
  %.pre = and i64 %21, 4294967295
  %22 = icmp ult i64 %21, -844424930131968
  br label %23

23:                                               ; preds = %15, %20
  %.pre-phi = phi i64 [ %16, %15 ], [ %.pre, %20 ]
  %.0145 = phi i1 [ false, %15 ], [ %22, %20 ]
  %.0 = phi i32 [ %11, %15 ], [ 67200, %20 ]
  %24 = icmp eq i64 %.pre-phi, 0
  %.not149 = or i1 %.0145, %24
  br i1 %.not149, label %25, label %34

25:                                               ; preds = %23
  %26 = zext i32 %8 to i64
  %27 = add nuw nsw i64 %26, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %27, i32 noundef 0)
  %28 = add nuw nsw i64 %26, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %28, i64 noundef 214748364801)
  %29 = add nuw nsw i64 %26, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %29, i32 noundef 3)
  %30 = add nuw nsw i64 %26, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %30, i32 noundef 32264)
  %31 = add i32 %7, -40
  %32 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %31)
  %33 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %33, i32 noundef %32)
  br label %65

34:                                               ; preds = %23
  %35 = add i32 %7, -40
  %36 = add i32 %11, -8
  %37 = add nuw nsw i64 %10, 4
  %38 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %37)
  %.not = icmp eq i32 %38, 0
  %39 = select i1 %.not, i32 67208, i32 %36
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %3, i32 noundef %39) #3
  %40 = zext i32 %8 to i64
  %41 = add nuw nsw i64 %40, 8
  %42 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %41)
  %.not150 = icmp eq i32 %42, 0
  br i1 %.not150, label %._crit_edge, label %43

._crit_edge:                                      ; preds = %34
  %.pre151 = zext i32 %1 to i64
  br label %64

43:                                               ; preds = %34
  %44 = zext i32 %.0 to i64
  %45 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %44)
  %46 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %47 = add nuw nsw i64 %40, 16
  %48 = tail call double @f64_load(ptr noundef nonnull %9, i64 noundef %47)
  %49 = tail call double @wasm_trunc(double noundef %48)
  %50 = fadd double %49, 0.000000e+00
  %51 = tail call double @wasm_fabs(double noundef %48)
  %52 = fcmp ogt double %51, 8.640000e+15
  %53 = select i1 %52, double %46, double %50
  %54 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %55 = fcmp one double %51, 0x7FF0000000000000
  %56 = select i1 %55, double %53, double %54
  %57 = zext i32 %45 to i64
  %58 = add nuw nsw i64 %57, 24
  tail call void @f64_store(ptr noundef nonnull %9, i64 noundef %58, double noundef %56)
  %59 = tail call i64 @i64_reinterpret_f64(double noundef %56)
  %60 = fcmp uno double %56, 0.000000e+00
  %61 = select i1 %60, i64 9221120237041090560, i64 %59
  %62 = zext i32 %1 to i64
  %63 = add nuw nsw i64 %62, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %63, i64 noundef %61)
  br label %64

64:                                               ; preds = %._crit_edge, %43
  %.pre-phi152 = phi i64 [ %.pre151, %._crit_edge ], [ %62, %43 ]
  %.0146 = phi i32 [ 0, %._crit_edge ], [ 1, %43 ]
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %.pre-phi152, i32 noundef %.0146)
  br label %65

65:                                               ; preds = %64, %25
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

attributes #0 = { 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 = { 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 }

!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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass