; 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

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

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

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeTime0x28double0x2C0x20double0x2C0x20double0x2C0x20double0x29(ptr noundef, double noundef, double noundef, double noundef, double noundef) #3

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

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AlocalTime0x28double0x29(ptr noundef, double noundef) #3

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AutcTime0x28double0x29(ptr noundef, double noundef) #3

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AhourFromTime0x28double0x29(ptr noundef, double noundef) #3

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AminFromTime0x28double0x29(ptr noundef, double noundef) #3

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AsecFromTime0x28double0x29(ptr noundef, double noundef) #3

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

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

82:                                               ; preds = %60
  br label %92

83:                                               ; preds = %60
  br label %84

84:                                               ; preds = %83, %5
  store i32 67200, ptr %18, align 4, !tbaa !9
  %85 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %85, ptr %13, align 4, !tbaa !9
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.w2c_hermes, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %18, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call i64 @i64_load(ptr noundef %87, i64 noundef %89)
  store i64 %90, ptr %23, align 8, !tbaa !11
  %91 = load i64, ptr %23, align 8, !tbaa !11
  store i64 %91, ptr %14, align 8, !tbaa !11
  br label %92

92:                                               ; preds = %84, %82
  %93 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %93, ptr %23, align 8, !tbaa !11
  store i64 4294967295, ptr %24, align 8, !tbaa !11
  %94 = load i64, ptr %24, align 8, !tbaa !11
  %95 = load i64, ptr %23, align 8, !tbaa !11
  %96 = and i64 %95, %94
  store i64 %96, ptr %23, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !11
  %97 = load i64, ptr %23, align 8, !tbaa !11
  %98 = load i64, ptr %24, align 8, !tbaa !11
  %99 = icmp ne i64 %97, %98
  %100 = zext i1 %99 to i32
  store i32 %100, ptr %18, align 4, !tbaa !9
  %101 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %101, ptr %24, align 8, !tbaa !11
  store i64 -844424930131968, ptr %25, align 8, !tbaa !11
  %102 = load i64, ptr %24, align 8, !tbaa !11
  %103 = load i64, ptr %25, align 8, !tbaa !11
  %104 = icmp uge i64 %102, %103
  %105 = zext i1 %104 to i32
  store i32 %105, ptr %19, align 4, !tbaa !9
  %106 = load i32, ptr %19, align 4, !tbaa !9
  %107 = load i32, ptr %18, align 4, !tbaa !9
  %108 = and i32 %107, %106
  store i32 %108, ptr %18, align 4, !tbaa !9
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  %111 = xor i1 %110, true
  %112 = zext i1 %111 to i32
  store i32 %112, ptr %18, align 4, !tbaa !9
  %113 = load i32, ptr %18, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %159

115:                                              ; preds = %92
  %116 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %116, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !9
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %18, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 40
  %122 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %118, i64 noundef %121, i32 noundef %122)
  %123 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %123, ptr %18, align 4, !tbaa !9
  store i64 249108103169, ptr %24, align 8, !tbaa !11
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 32
  %129 = load i64, ptr %24, align 8, !tbaa !11
  call void @i64_store(ptr noundef %125, i64 noundef %128, i64 noundef %129)
  %130 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %130, ptr %18, align 4, !tbaa !9
  store i32 3, ptr %19, align 4, !tbaa !9
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 16
  %136 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %132, i64 noundef %135, i32 noundef %136)
  %137 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %137, ptr %18, align 4, !tbaa !9
  store i32 31890, ptr %19, 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 %18, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = add i64 %141, 8
  %143 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %139, i64 noundef %142, i32 noundef %143)
  %144 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %144, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %145, ptr %19, align 4, !tbaa !9
  %146 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %146, ptr %20, align 4, !tbaa !9
  store i32 8, ptr %21, align 4, !tbaa !9
  %147 = load i32, ptr %21, align 4, !tbaa !9
  %148 = load i32, ptr %20, align 4, !tbaa !9
  %149 = add i32 %148, %147
  store i32 %149, ptr %20, align 4, !tbaa !9
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %150, i32 noundef %151, i32 noundef %152)
  store i32 %153, ptr %19, align 4, !tbaa !9
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.w2c_hermes, ptr %154, i32 0, i32 6
  %156 = load i32, ptr %18, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %155, i64 noundef %157, i32 noundef %158)
  br label %410

159:                                              ; preds = %92
  %160 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %160, ptr %23, align 8, !tbaa !11
  %161 = load i64, ptr %23, align 8, !tbaa !11
  %162 = trunc i64 %161 to i32
  store i32 %162, ptr %18, 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 %18, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = add i64 %166, 24
  %168 = call double @f64_load(ptr noundef %164, i64 noundef %167)
  store double %168, ptr %26, align 8, !tbaa !13
  %169 = load double, ptr %26, align 8, !tbaa !13
  store double %169, ptr %15, align 8, !tbaa !13
  %170 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %170, ptr %18, align 4, !tbaa !9
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  %173 = xor i1 %172, true
  %174 = zext i1 %173 to i32
  store i32 %174, ptr %18, align 4, !tbaa !9
  %175 = load i32, ptr %18, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %183

177:                                              ; preds = %159
  %178 = load double, ptr %15, align 8, !tbaa !13
  store double %178, ptr %26, align 8, !tbaa !13
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = load double, ptr %26, align 8, !tbaa !13
  %181 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AlocalTime0x28double0x29(ptr noundef %179, double noundef %180)
  store double %181, ptr %26, align 8, !tbaa !13
  %182 = load double, ptr %26, align 8, !tbaa !13
  store double %182, ptr %15, align 8, !tbaa !13
  br label %183

183:                                              ; preds = %177, %159
  %184 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %184, ptr %18, align 4, !tbaa !9
  store i32 8, ptr %19, align 4, !tbaa !9
  %185 = load i32, ptr %19, align 4, !tbaa !9
  %186 = load i32, ptr %18, align 4, !tbaa !9
  %187 = add i32 %186, %185
  store i32 %187, ptr %18, align 4, !tbaa !9
  %188 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %188, ptr %19, align 4, !tbaa !9
  %189 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %189, ptr %20, align 4, !tbaa !9
  store i32 8, ptr %21, align 4, !tbaa !9
  %190 = load i32, ptr %21, align 4, !tbaa !9
  %191 = load i32, ptr %20, align 4, !tbaa !9
  %192 = sub i32 %191, %190
  store i32 %192, ptr %20, align 4, !tbaa !9
  store i32 67208, ptr %21, align 4, !tbaa !9
  %193 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %193, ptr %22, align 4, !tbaa !9
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 6
  %196 = load i32, ptr %22, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = add i64 %197, 4
  %199 = call i32 @i32_load(ptr noundef %195, i64 noundef %198)
  store i32 %199, ptr %22, align 4, !tbaa !9
  %200 = load i32, ptr %22, align 4, !tbaa !9
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %204

202:                                              ; preds = %183
  %203 = load i32, ptr %20, align 4, !tbaa !9
  br label %206

204:                                              ; preds = %183
  %205 = load i32, ptr %21, align 4, !tbaa !9
  br label %206

206:                                              ; preds = %204, %202
  %207 = phi i32 [ %203, %202 ], [ %205, %204 ]
  store i32 %207, ptr %20, align 4, !tbaa !9
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = load i32, ptr %18, align 4, !tbaa !9
  %210 = load i32, ptr %19, align 4, !tbaa !9
  %211 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %208, i32 noundef %209, i32 noundef %210, i32 noundef %211)
  %212 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %212, ptr %18, align 4, !tbaa !9
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.w2c_hermes, ptr %213, i32 0, i32 6
  %215 = load i32, ptr %18, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = add i64 %216, 8
  %218 = call i32 @i32_load(ptr noundef %214, i64 noundef %217)
  store i32 %218, ptr %18, align 4, !tbaa !9
  %219 = load i32, ptr %18, align 4, !tbaa !9
  %220 = icmp ne i32 %219, 0
  %221 = xor i1 %220, true
  %222 = zext i1 %221 to i32
  store i32 %222, ptr %18, align 4, !tbaa !9
  %223 = load i32, ptr %18, align 4, !tbaa !9
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %232

225:                                              ; preds = %206
  %226 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %226, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !9
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.w2c_hermes, ptr %227, i32 0, i32 6
  %229 = load i32, ptr %18, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %228, i64 noundef %230, i32 noundef %231)
  br label %410

232:                                              ; preds = %206
  %233 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %233, ptr %18, align 4, !tbaa !9
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.w2c_hermes, ptr %234, i32 0, i32 6
  %236 = load i32, ptr %18, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = add i64 %237, 16
  %239 = call double @f64_load(ptr noundef %235, i64 noundef %238)
  store double %239, ptr %26, align 8, !tbaa !13
  %240 = load double, ptr %26, align 8, !tbaa !13
  store double %240, ptr %16, align 8, !tbaa !13
  %241 = load double, ptr %15, align 8, !tbaa !13
  store double %241, ptr %26, align 8, !tbaa !13
  store double 8.640000e+07, ptr %27, align 8, !tbaa !13
  %242 = load double, ptr %27, align 8, !tbaa !13
  %243 = load double, ptr %26, align 8, !tbaa !13
  %244 = fdiv double %243, %242
  store double %244, ptr %26, align 8, !tbaa !13
  %245 = load double, ptr %26, align 8, !tbaa !13
  %246 = call double @wasm_floor(double noundef %245)
  store double %246, ptr %26, align 8, !tbaa !13
  %247 = load double, ptr %26, align 8, !tbaa !13
  store double %247, ptr %17, align 8, !tbaa !13
  store double 8.640000e+07, ptr %27, align 8, !tbaa !13
  %248 = load double, ptr %27, align 8, !tbaa !13
  %249 = load double, ptr %26, align 8, !tbaa !13
  %250 = fmul double %249, %248
  store double %250, ptr %26, align 8, !tbaa !13
  %251 = load double, ptr %15, align 8, !tbaa !13
  store double %251, ptr %27, align 8, !tbaa !13
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = load double, ptr %27, align 8, !tbaa !13
  %254 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AhourFromTime0x28double0x29(ptr noundef %252, double noundef %253)
  store double %254, ptr %27, align 8, !tbaa !13
  %255 = load double, ptr %15, align 8, !tbaa !13
  store double %255, ptr %28, align 8, !tbaa !13
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = load double, ptr %28, align 8, !tbaa !13
  %258 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AminFromTime0x28double0x29(ptr noundef %256, double noundef %257)
  store double %258, ptr %28, align 8, !tbaa !13
  %259 = load double, ptr %15, align 8, !tbaa !13
  store double %259, ptr %29, align 8, !tbaa !13
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = load double, ptr %29, align 8, !tbaa !13
  %262 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AsecFromTime0x28double0x29(ptr noundef %260, double noundef %261)
  store double %262, ptr %29, align 8, !tbaa !13
  %263 = load double, ptr %16, align 8, !tbaa !13
  store double %263, ptr %30, align 8, !tbaa !13
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = load double, ptr %27, align 8, !tbaa !13
  %266 = load double, ptr %28, align 8, !tbaa !13
  %267 = load double, ptr %29, align 8, !tbaa !13
  %268 = load double, ptr %30, align 8, !tbaa !13
  %269 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeTime0x28double0x2C0x20double0x2C0x20double0x2C0x20double0x29(ptr noundef %264, double noundef %265, double noundef %266, double noundef %267, double noundef %268)
  store double %269, ptr %27, align 8, !tbaa !13
  %270 = load double, ptr %27, align 8, !tbaa !13
  store double %270, ptr %15, align 8, !tbaa !13
  %271 = load double, ptr %27, align 8, !tbaa !13
  %272 = load double, ptr %26, align 8, !tbaa !13
  %273 = fadd double %272, %271
  store double %273, ptr %26, align 8, !tbaa !13
  %274 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %274, ptr %27, align 8, !tbaa !13
  %275 = load double, ptr %15, align 8, !tbaa !13
  store double %275, ptr %28, align 8, !tbaa !13
  %276 = load double, ptr %28, align 8, !tbaa !13
  %277 = call double @wasm_fabs(double noundef %276)
  store double %277, ptr %28, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %29, align 8, !tbaa !13
  %278 = load double, ptr %28, align 8, !tbaa !13
  %279 = load double, ptr %29, align 8, !tbaa !13
  %280 = fcmp olt double %278, %279
  %281 = zext i1 %280 to i32
  store i32 %281, ptr %20, align 4, !tbaa !9
  %282 = load i32, ptr %20, align 4, !tbaa !9
  %283 = icmp ne i32 %282, 0
  br i1 %283, label %284, label %286

284:                                              ; preds = %232
  %285 = load double, ptr %26, align 8, !tbaa !13
  br label %288

286:                                              ; preds = %232
  %287 = load double, ptr %27, align 8, !tbaa !13
  br label %288

288:                                              ; preds = %286, %284
  %289 = phi double [ %285, %284 ], [ %287, %286 ]
  store double %289, ptr %26, align 8, !tbaa !13
  %290 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %290, ptr %27, align 8, !tbaa !13
  %291 = load double, ptr %17, align 8, !tbaa !13
  store double %291, ptr %28, align 8, !tbaa !13
  %292 = load double, ptr %28, align 8, !tbaa !13
  %293 = call double @wasm_fabs(double noundef %292)
  store double %293, ptr %28, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %29, align 8, !tbaa !13
  %294 = load double, ptr %28, align 8, !tbaa !13
  %295 = load double, ptr %29, align 8, !tbaa !13
  %296 = fcmp olt double %294, %295
  %297 = zext i1 %296 to i32
  store i32 %297, ptr %20, align 4, !tbaa !9
  %298 = load i32, ptr %20, align 4, !tbaa !9
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %300, label %302

300:                                              ; preds = %288
  %301 = load double, ptr %26, align 8, !tbaa !13
  br label %304

302:                                              ; preds = %288
  %303 = load double, ptr %27, align 8, !tbaa !13
  br label %304

304:                                              ; preds = %302, %300
  %305 = phi double [ %301, %300 ], [ %303, %302 ]
  store double %305, ptr %26, align 8, !tbaa !13
  %306 = load double, ptr %26, align 8, !tbaa !13
  store double %306, ptr %15, align 8, !tbaa !13
  %307 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %307, ptr %18, align 4, !tbaa !9
  %308 = load i32, ptr %18, align 4, !tbaa !9
  %309 = icmp ne i32 %308, 0
  %310 = xor i1 %309, true
  %311 = zext i1 %310 to i32
  store i32 %311, ptr %18, align 4, !tbaa !9
  %312 = load i32, ptr %18, align 4, !tbaa !9
  %313 = icmp ne i32 %312, 0
  br i1 %313, label %314, label %320

314:                                              ; preds = %304
  %315 = load double, ptr %15, align 8, !tbaa !13
  store double %315, ptr %26, align 8, !tbaa !13
  %316 = load ptr, ptr %6, align 8, !tbaa !5
  %317 = load double, ptr %26, align 8, !tbaa !13
  %318 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AutcTime0x28double0x29(ptr noundef %316, double noundef %317)
  store double %318, ptr %26, align 8, !tbaa !13
  %319 = load double, ptr %26, align 8, !tbaa !13
  store double %319, ptr %15, align 8, !tbaa !13
  br label %320

320:                                              ; preds = %314, %304
  %321 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %321, ptr %26, align 8, !tbaa !13
  %322 = load double, ptr %15, align 8, !tbaa !13
  store double %322, ptr %27, align 8, !tbaa !13
  %323 = load double, ptr %27, align 8, !tbaa !13
  %324 = call double @wasm_trunc(double noundef %323)
  store double %324, ptr %27, align 8, !tbaa !13
  store double 0.000000e+00, ptr %28, align 8, !tbaa !13
  %325 = load double, ptr %28, align 8, !tbaa !13
  %326 = load double, ptr %27, align 8, !tbaa !13
  %327 = fadd double %326, %325
  store double %327, ptr %27, align 8, !tbaa !13
  %328 = load double, ptr %15, align 8, !tbaa !13
  store double %328, ptr %28, align 8, !tbaa !13
  %329 = load double, ptr %28, align 8, !tbaa !13
  %330 = call double @wasm_fabs(double noundef %329)
  store double %330, ptr %28, align 8, !tbaa !13
  %331 = load double, ptr %28, align 8, !tbaa !13
  store double %331, ptr %15, align 8, !tbaa !13
  store double 8.640000e+15, ptr %29, align 8, !tbaa !13
  %332 = load double, ptr %28, align 8, !tbaa !13
  %333 = load double, ptr %29, align 8, !tbaa !13
  %334 = fcmp ogt double %332, %333
  %335 = zext i1 %334 to i32
  store i32 %335, ptr %20, align 4, !tbaa !9
  %336 = load i32, ptr %20, align 4, !tbaa !9
  %337 = icmp ne i32 %336, 0
  br i1 %337, label %338, label %340

338:                                              ; preds = %320
  %339 = load double, ptr %26, align 8, !tbaa !13
  br label %342

340:                                              ; preds = %320
  %341 = load double, ptr %27, align 8, !tbaa !13
  br label %342

342:                                              ; preds = %340, %338
  %343 = phi double [ %339, %338 ], [ %341, %340 ]
  store double %343, ptr %26, align 8, !tbaa !13
  %344 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %344, ptr %27, align 8, !tbaa !13
  %345 = load double, ptr %15, align 8, !tbaa !13
  store double %345, ptr %28, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %29, align 8, !tbaa !13
  %346 = load double, ptr %28, align 8, !tbaa !13
  %347 = load double, ptr %29, align 8, !tbaa !13
  %348 = fcmp olt double %346, %347
  %349 = zext i1 %348 to i32
  store i32 %349, ptr %20, align 4, !tbaa !9
  %350 = load double, ptr %15, align 8, !tbaa !13
  store double %350, ptr %29, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %30, align 8, !tbaa !13
  %351 = load double, ptr %29, align 8, !tbaa !13
  %352 = load double, ptr %30, align 8, !tbaa !13
  %353 = fcmp ogt double %351, %352
  %354 = zext i1 %353 to i32
  store i32 %354, ptr %21, align 4, !tbaa !9
  %355 = load i32, ptr %21, align 4, !tbaa !9
  %356 = load i32, ptr %20, align 4, !tbaa !9
  %357 = or i32 %356, %355
  store i32 %357, ptr %20, align 4, !tbaa !9
  %358 = load i32, ptr %20, align 4, !tbaa !9
  %359 = icmp ne i32 %358, 0
  br i1 %359, label %360, label %362

360:                                              ; preds = %342
  %361 = load double, ptr %26, align 8, !tbaa !13
  br label %364

362:                                              ; preds = %342
  %363 = load double, ptr %27, align 8, !tbaa !13
  br label %364

364:                                              ; preds = %362, %360
  %365 = phi double [ %361, %360 ], [ %363, %362 ]
  store double %365, ptr %26, align 8, !tbaa !13
  %366 = load double, ptr %26, align 8, !tbaa !13
  store double %366, ptr %15, align 8, !tbaa !13
  %367 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %367, ptr %18, align 4, !tbaa !9
  %368 = load ptr, ptr %6, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.w2c_hermes, ptr %368, i32 0, i32 6
  %370 = load i32, ptr %18, align 4, !tbaa !9
  %371 = zext i32 %370 to i64
  %372 = call i32 @i32_load(ptr noundef %369, i64 noundef %371)
  store i32 %372, ptr %18, align 4, !tbaa !9
  %373 = load double, ptr %15, align 8, !tbaa !13
  store double %373, ptr %27, align 8, !tbaa !13
  %374 = load ptr, ptr %6, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.w2c_hermes, ptr %374, i32 0, i32 6
  %376 = load i32, ptr %18, align 4, !tbaa !9
  %377 = zext i32 %376 to i64
  %378 = add i64 %377, 24
  %379 = load double, ptr %27, align 8, !tbaa !13
  call void @f64_store(ptr noundef %375, i64 noundef %378, double noundef %379)
  %380 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %380, ptr %18, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %24, align 8, !tbaa !11
  %381 = load double, ptr %15, align 8, !tbaa !13
  store double %381, ptr %28, align 8, !tbaa !13
  %382 = load double, ptr %28, align 8, !tbaa !13
  %383 = call i64 @i64_reinterpret_f64(double noundef %382)
  store i64 %383, ptr %25, align 8, !tbaa !11
  %384 = load double, ptr %15, align 8, !tbaa !13
  store double %384, ptr %29, align 8, !tbaa !13
  %385 = load double, ptr %15, align 8, !tbaa !13
  store double %385, ptr %30, align 8, !tbaa !13
  %386 = load double, ptr %29, align 8, !tbaa !13
  %387 = load double, ptr %30, align 8, !tbaa !13
  %388 = fcmp une double %386, %387
  %389 = zext i1 %388 to i32
  store i32 %389, ptr %21, align 4, !tbaa !9
  %390 = load i32, ptr %21, align 4, !tbaa !9
  %391 = icmp ne i32 %390, 0
  br i1 %391, label %392, label %394

392:                                              ; preds = %364
  %393 = load i64, ptr %24, align 8, !tbaa !11
  br label %396

394:                                              ; preds = %364
  %395 = load i64, ptr %25, align 8, !tbaa !11
  br label %396

396:                                              ; preds = %394, %392
  %397 = phi i64 [ %393, %392 ], [ %395, %394 ]
  store i64 %397, ptr %24, align 8, !tbaa !11
  %398 = load ptr, ptr %6, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.w2c_hermes, ptr %398, i32 0, i32 6
  %400 = load i32, ptr %18, align 4, !tbaa !9
  %401 = zext i32 %400 to i64
  %402 = add i64 %401, 8
  %403 = load i64, ptr %24, align 8, !tbaa !11
  call void @i64_store(ptr noundef %399, i64 noundef %402, i64 noundef %403)
  %404 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %404, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %405 = load ptr, ptr %6, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.w2c_hermes, ptr %405, i32 0, i32 6
  %407 = load i32, ptr %18, align 4, !tbaa !9
  %408 = zext i32 %407 to i64
  %409 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %406, i64 noundef %408, i32 noundef %409)
  br label %410

410:                                              ; preds = %396, %225, %115
  %411 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %411, ptr %18, align 4, !tbaa !9
  store i32 48, ptr %19, align 4, !tbaa !9
  %412 = load i32, ptr %19, align 4, !tbaa !9
  %413 = load i32, ptr %18, align 4, !tbaa !9
  %414 = add i32 %413, %412
  store i32 %414, ptr %18, align 4, !tbaa !9
  %415 = load i32, ptr %18, align 4, !tbaa !9
  %416 = load ptr, ptr %6, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.w2c_hermes, ptr %416, i32 0, i32 3
  store i32 %415, ptr %417, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  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 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  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

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

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

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeTime0x28double0x2C0x20double0x2C0x20double0x2C0x20double0x29(ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

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

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AlocalTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #2

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AutcTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #2

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AhourFromTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #2

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AminFromTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #2

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AsecFromTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdatePrototypeSetMilliseconds_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 ]
  %.0212 = phi i32 [ %11, %15 ], [ 67200, %20 ]
  %.0211 = phi i1 [ false, %15 ], [ %22, %20 ]
  %24 = icmp eq i64 %.pre-phi, 0
  %.not215 = or i1 %.0211, %24
  br i1 %.not215, 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 249108103169)
  %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 31890)
  %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 %90

34:                                               ; preds = %23
  %35 = add nuw nsw i64 %.pre-phi, 24
  %36 = tail call double @f64_load(ptr noundef nonnull %9, i64 noundef %35)
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %37, label %39

37:                                               ; preds = %34
  %38 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AlocalTime0x28double0x29(ptr noundef nonnull %0, double noundef %36) #3
  br label %39

39:                                               ; preds = %37, %34
  %.0 = phi double [ %38, %37 ], [ %36, %34 ]
  %40 = add i32 %7, -40
  %41 = add i32 %11, -8
  %42 = add nuw nsw i64 %10, 4
  %43 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %42)
  %.not216 = icmp eq i32 %43, 0
  %44 = select i1 %.not216, i32 67208, i32 %41
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %40, i32 noundef %3, i32 noundef %44) #3
  %45 = zext i32 %8 to i64
  %46 = add nuw nsw i64 %45, 8
  %47 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %46)
  %.not217 = icmp eq i32 %47, 0
  br i1 %.not217, label %48, label %50

48:                                               ; preds = %39
  %49 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %49, i32 noundef 0)
  br label %90

50:                                               ; preds = %39
  %51 = add nuw nsw i64 %45, 16
  %52 = tail call double @f64_load(ptr noundef nonnull %9, i64 noundef %51)
  %53 = fdiv double %.0, 8.640000e+07
  %54 = tail call double @wasm_floor(double noundef %53)
  %55 = fmul double %54, 8.640000e+07
  %56 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AhourFromTime0x28double0x29(ptr noundef nonnull %0, double noundef %.0) #3
  %57 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AminFromTime0x28double0x29(ptr noundef nonnull %0, double noundef %.0) #3
  %58 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AsecFromTime0x28double0x29(ptr noundef nonnull %0, double noundef %.0) #3
  %59 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeTime0x28double0x2C0x20double0x2C0x20double0x2C0x20double0x29(ptr noundef nonnull %0, double noundef %56, double noundef %57, double noundef %58, double noundef %52) #3
  %60 = fadd double %55, %59
  %61 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %62 = tail call double @wasm_fabs(double noundef %59)
  %63 = fcmp one double %62, 0x7FF0000000000000
  %64 = select i1 %63, double %60, double %61
  %65 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %66 = tail call double @wasm_fabs(double noundef %54)
  %67 = fcmp one double %66, 0x7FF0000000000000
  %68 = select i1 %67, double %64, double %65
  br i1 %.not, label %69, label %71

69:                                               ; preds = %50
  %70 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AutcTime0x28double0x29(ptr noundef nonnull %0, double noundef %68) #3
  br label %71

71:                                               ; preds = %69, %50
  %.1 = phi double [ %70, %69 ], [ %68, %50 ]
  %72 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %73 = tail call double @wasm_trunc(double noundef %.1)
  %74 = fadd double %73, 0.000000e+00
  %75 = tail call double @wasm_fabs(double noundef %.1)
  %76 = fcmp ogt double %75, 8.640000e+15
  %77 = select i1 %76, double %72, double %74
  %78 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %79 = fcmp one double %75, 0x7FF0000000000000
  %80 = select i1 %79, double %77, double %78
  %81 = zext i32 %.0212 to i64
  %82 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %81)
  %83 = zext i32 %82 to i64
  %84 = add nuw nsw i64 %83, 24
  tail call void @f64_store(ptr noundef nonnull %9, i64 noundef %84, double noundef %80)
  %85 = tail call i64 @i64_reinterpret_f64(double noundef %80)
  %86 = fcmp uno double %80, 0.000000e+00
  %87 = select i1 %86, i64 9221120237041090560, i64 %85
  %88 = zext i32 %1 to i64
  %89 = add nuw nsw i64 %88, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %89, i64 noundef %87)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %88, i32 noundef 1)
  br label %90

90:                                               ; preds = %71, %48, %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