; 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 double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef, double noundef) #3

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef, double noundef) #3

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

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeDay0x28double0x2C0x20double0x2C0x20double0x29(ptr 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_hermes0x3A0x3Avm0x3A0x3AtimeWithinDay0x28double0x29(ptr noundef, double noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdatePrototypeSetDate_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 i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %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 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 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 4, 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 %17, align 4, !tbaa !9
  store i32 48, ptr %18, align 4, !tbaa !9
  %33 = load i32, ptr %18, align 4, !tbaa !9
  %34 = load i32, ptr %17, align 4, !tbaa !9
  %35 = sub i32 %34, %33
  store i32 %35, ptr %17, align 4, !tbaa !9
  %36 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %36, ptr %11, align 4, !tbaa !9
  %37 = load i32, ptr %17, 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 %17, 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 %17, 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 %17, align 4, !tbaa !9
  %46 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %46, ptr %12, 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 %17, 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 %22, align 8, !tbaa !11
  %52 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %52, ptr %14, align 8, !tbaa !11
  store i64 -844424930131968, ptr %23, align 8, !tbaa !11
  %53 = load i64, ptr %22, align 8, !tbaa !11
  %54 = load i64, ptr %23, align 8, !tbaa !11
  %55 = icmp uge i64 %53, %54
  %56 = zext i1 %55 to i32
  store i32 %56, ptr %17, align 4, !tbaa !9
  %57 = load i32, ptr %17, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %83

59:                                               ; preds = %5
  %60 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %60, ptr %17, align 4, !tbaa !9
  %61 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %61, ptr %13, align 4, !tbaa !9
  %62 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %62, ptr %22, align 8, !tbaa !11
  %63 = load i64, ptr %22, align 8, !tbaa !11
  %64 = trunc i64 %63 to i32
  store i32 %64, ptr %17, 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 %17, 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 %17, align 4, !tbaa !9
  store i32 24, ptr %18, align 4, !tbaa !9
  %71 = load i32, ptr %18, align 4, !tbaa !9
  %72 = and i32 %71, 31
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = shl i32 %73, %72
  store i32 %74, ptr %17, align 4, !tbaa !9
  store i32 1023410176, ptr %18, align 4, !tbaa !9
  %75 = load i32, ptr %17, align 4, !tbaa !9
  %76 = load i32, ptr %18, align 4, !tbaa !9
  %77 = icmp eq i32 %75, %76
  %78 = zext i1 %77 to i32
  store i32 %78, ptr %17, align 4, !tbaa !9
  %79 = load i32, ptr %17, 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 %17, align 4, !tbaa !9
  %84 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %84, ptr %13, 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 %17, 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 %22, align 8, !tbaa !11
  %90 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %90, ptr %14, align 8, !tbaa !11
  br label %91

91:                                               ; preds = %83, %81
  %92 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %92, ptr %22, align 8, !tbaa !11
  store i64 4294967295, ptr %23, align 8, !tbaa !11
  %93 = load i64, ptr %23, align 8, !tbaa !11
  %94 = load i64, ptr %22, align 8, !tbaa !11
  %95 = and i64 %94, %93
  store i64 %95, ptr %22, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !11
  %96 = load i64, ptr %22, align 8, !tbaa !11
  %97 = load i64, ptr %23, align 8, !tbaa !11
  %98 = icmp ne i64 %96, %97
  %99 = zext i1 %98 to i32
  store i32 %99, ptr %17, align 4, !tbaa !9
  %100 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %100, ptr %23, align 8, !tbaa !11
  store i64 -844424930131968, ptr %24, align 8, !tbaa !11
  %101 = load i64, ptr %23, align 8, !tbaa !11
  %102 = load i64, ptr %24, align 8, !tbaa !11
  %103 = icmp uge i64 %101, %102
  %104 = zext i1 %103 to i32
  store i32 %104, ptr %18, align 4, !tbaa !9
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = and i32 %106, %105
  store i32 %107, ptr %17, align 4, !tbaa !9
  %108 = load i32, ptr %17, 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 %17, align 4, !tbaa !9
  %112 = load i32, ptr %17, 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 %17, align 4, !tbaa !9
  store i32 0, ptr %18, 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 %17, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = add i64 %119, 40
  %121 = load i32, ptr %18, 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 %17, align 4, !tbaa !9
  store i64 214748364801, ptr %23, 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 %17, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 32
  %128 = load i64, ptr %23, 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 %17, align 4, !tbaa !9
  store i32 3, ptr %18, 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 %17, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 16
  %135 = load i32, ptr %18, 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 %17, align 4, !tbaa !9
  store i32 32213, ptr %18, 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 %17, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 8
  %142 = load i32, ptr %18, 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 %17, align 4, !tbaa !9
  %144 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %144, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %145, ptr %19, align 4, !tbaa !9
  store i32 8, ptr %20, align 4, !tbaa !9
  %146 = load i32, ptr %20, align 4, !tbaa !9
  %147 = load i32, ptr %19, align 4, !tbaa !9
  %148 = add i32 %147, %146
  store i32 %148, ptr %19, align 4, !tbaa !9
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %149, i32 noundef %150, i32 noundef %151)
  store i32 %152, ptr %18, 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 %17, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %154, i64 noundef %156, i32 noundef %157)
  br label %404

158:                                              ; preds = %91
  %159 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %159, ptr %22, align 8, !tbaa !11
  %160 = load i64, ptr %22, align 8, !tbaa !11
  %161 = trunc i64 %160 to i32
  store i32 %161, ptr %17, align 4, !tbaa !9
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 6
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = add i64 %165, 24
  %167 = call double @f64_load(ptr noundef %163, i64 noundef %166)
  store double %167, ptr %25, align 8, !tbaa !13
  %168 = load double, ptr %25, align 8, !tbaa !13
  store double %168, ptr %15, align 8, !tbaa !13
  %169 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %169, ptr %17, align 4, !tbaa !9
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 0
  %172 = xor i1 %171, true
  %173 = zext i1 %172 to i32
  store i32 %173, ptr %17, align 4, !tbaa !9
  %174 = load i32, ptr %17, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %182

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

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

201:                                              ; preds = %182
  %202 = load i32, ptr %19, align 4, !tbaa !9
  br label %205

203:                                              ; preds = %182
  %204 = load i32, ptr %20, align 4, !tbaa !9
  br label %205

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

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

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

278:                                              ; preds = %231
  %279 = load double, ptr %25, align 8, !tbaa !13
  br label %282

280:                                              ; preds = %231
  %281 = load double, ptr %26, align 8, !tbaa !13
  br label %282

282:                                              ; preds = %280, %278
  %283 = phi double [ %279, %278 ], [ %281, %280 ]
  store double %283, ptr %25, align 8, !tbaa !13
  %284 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %284, ptr %26, align 8, !tbaa !13
  %285 = load double, ptr %16, align 8, !tbaa !13
  store double %285, ptr %27, align 8, !tbaa !13
  %286 = load double, ptr %27, align 8, !tbaa !13
  %287 = call double @wasm_fabs(double noundef %286)
  store double %287, ptr %27, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %28, align 8, !tbaa !13
  %288 = load double, ptr %27, align 8, !tbaa !13
  %289 = load double, ptr %28, align 8, !tbaa !13
  %290 = fcmp olt double %288, %289
  %291 = zext i1 %290 to i32
  store i32 %291, ptr %19, align 4, !tbaa !9
  %292 = load i32, ptr %19, align 4, !tbaa !9
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %296

294:                                              ; preds = %282
  %295 = load double, ptr %25, align 8, !tbaa !13
  br label %298

296:                                              ; preds = %282
  %297 = load double, ptr %26, align 8, !tbaa !13
  br label %298

298:                                              ; preds = %296, %294
  %299 = phi double [ %295, %294 ], [ %297, %296 ]
  store double %299, ptr %25, align 8, !tbaa !13
  %300 = load double, ptr %25, align 8, !tbaa !13
  store double %300, ptr %15, align 8, !tbaa !13
  %301 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %301, ptr %17, align 4, !tbaa !9
  %302 = load i32, ptr %17, align 4, !tbaa !9
  %303 = icmp ne i32 %302, 0
  %304 = xor i1 %303, true
  %305 = zext i1 %304 to i32
  store i32 %305, ptr %17, align 4, !tbaa !9
  %306 = load i32, ptr %17, align 4, !tbaa !9
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %314

308:                                              ; preds = %298
  %309 = load double, ptr %15, align 8, !tbaa !13
  store double %309, ptr %25, align 8, !tbaa !13
  %310 = load ptr, ptr %6, align 8, !tbaa !5
  %311 = load double, ptr %25, align 8, !tbaa !13
  %312 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AutcTime0x28double0x29(ptr noundef %310, double noundef %311)
  store double %312, ptr %25, align 8, !tbaa !13
  %313 = load double, ptr %25, align 8, !tbaa !13
  store double %313, ptr %15, align 8, !tbaa !13
  br label %314

314:                                              ; preds = %308, %298
  %315 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %315, ptr %25, align 8, !tbaa !13
  %316 = load double, ptr %15, align 8, !tbaa !13
  store double %316, ptr %26, align 8, !tbaa !13
  %317 = load double, ptr %26, align 8, !tbaa !13
  %318 = call double @wasm_trunc(double noundef %317)
  store double %318, ptr %26, align 8, !tbaa !13
  store double 0.000000e+00, ptr %27, align 8, !tbaa !13
  %319 = load double, ptr %27, align 8, !tbaa !13
  %320 = load double, ptr %26, align 8, !tbaa !13
  %321 = fadd double %320, %319
  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_fabs(double noundef %323)
  store double %324, ptr %27, align 8, !tbaa !13
  %325 = load double, ptr %27, align 8, !tbaa !13
  store double %325, ptr %15, align 8, !tbaa !13
  store double 8.640000e+15, ptr %28, align 8, !tbaa !13
  %326 = load double, ptr %27, align 8, !tbaa !13
  %327 = load double, ptr %28, align 8, !tbaa !13
  %328 = fcmp ogt double %326, %327
  %329 = zext i1 %328 to i32
  store i32 %329, ptr %19, align 4, !tbaa !9
  %330 = load i32, ptr %19, align 4, !tbaa !9
  %331 = icmp ne i32 %330, 0
  br i1 %331, label %332, label %334

332:                                              ; preds = %314
  %333 = load double, ptr %25, align 8, !tbaa !13
  br label %336

334:                                              ; preds = %314
  %335 = load double, ptr %26, align 8, !tbaa !13
  br label %336

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

354:                                              ; preds = %336
  %355 = load double, ptr %25, align 8, !tbaa !13
  br label %358

356:                                              ; preds = %336
  %357 = load double, ptr %26, align 8, !tbaa !13
  br label %358

358:                                              ; preds = %356, %354
  %359 = phi double [ %355, %354 ], [ %357, %356 ]
  store double %359, ptr %25, align 8, !tbaa !13
  %360 = load double, ptr %25, align 8, !tbaa !13
  store double %360, ptr %15, align 8, !tbaa !13
  %361 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %361, ptr %17, align 4, !tbaa !9
  %362 = load ptr, ptr %6, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.w2c_hermes, ptr %362, i32 0, i32 6
  %364 = load i32, ptr %17, align 4, !tbaa !9
  %365 = zext i32 %364 to i64
  %366 = call i32 @i32_load(ptr noundef %363, i64 noundef %365)
  store i32 %366, ptr %17, align 4, !tbaa !9
  %367 = load double, ptr %15, align 8, !tbaa !13
  store double %367, ptr %26, align 8, !tbaa !13
  %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 %17, align 4, !tbaa !9
  %371 = zext i32 %370 to i64
  %372 = add i64 %371, 24
  %373 = load double, ptr %26, align 8, !tbaa !13
  call void @f64_store(ptr noundef %369, i64 noundef %372, double noundef %373)
  %374 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %374, ptr %17, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %23, align 8, !tbaa !11
  %375 = load double, ptr %15, align 8, !tbaa !13
  store double %375, ptr %27, align 8, !tbaa !13
  %376 = load double, ptr %27, align 8, !tbaa !13
  %377 = call i64 @i64_reinterpret_f64(double noundef %376)
  store i64 %377, ptr %24, align 8, !tbaa !11
  %378 = load double, ptr %15, align 8, !tbaa !13
  store double %378, ptr %28, align 8, !tbaa !13
  %379 = load double, ptr %15, align 8, !tbaa !13
  store double %379, ptr %29, align 8, !tbaa !13
  %380 = load double, ptr %28, align 8, !tbaa !13
  %381 = load double, ptr %29, align 8, !tbaa !13
  %382 = fcmp une double %380, %381
  %383 = zext i1 %382 to i32
  store i32 %383, ptr %20, align 4, !tbaa !9
  %384 = load i32, ptr %20, align 4, !tbaa !9
  %385 = icmp ne i32 %384, 0
  br i1 %385, label %386, label %388

386:                                              ; preds = %358
  %387 = load i64, ptr %23, align 8, !tbaa !11
  br label %390

388:                                              ; preds = %358
  %389 = load i64, ptr %24, align 8, !tbaa !11
  br label %390

390:                                              ; preds = %388, %386
  %391 = phi i64 [ %387, %386 ], [ %389, %388 ]
  store i64 %391, ptr %23, align 8, !tbaa !11
  %392 = load ptr, ptr %6, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.w2c_hermes, ptr %392, i32 0, i32 6
  %394 = load i32, ptr %17, align 4, !tbaa !9
  %395 = zext i32 %394 to i64
  %396 = add i64 %395, 8
  %397 = load i64, ptr %23, align 8, !tbaa !11
  call void @i64_store(ptr noundef %393, i64 noundef %396, i64 noundef %397)
  %398 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %398, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %399 = load ptr, ptr %6, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.w2c_hermes, ptr %399, i32 0, i32 6
  %401 = load i32, ptr %17, align 4, !tbaa !9
  %402 = zext i32 %401 to i64
  %403 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %400, i64 noundef %402, i32 noundef %403)
  br label %404

404:                                              ; preds = %390, %224, %114
  %405 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %405, ptr %17, align 4, !tbaa !9
  store i32 48, ptr %18, align 4, !tbaa !9
  %406 = load i32, ptr %18, align 4, !tbaa !9
  %407 = load i32, ptr %17, align 4, !tbaa !9
  %408 = add i32 %407, %406
  store i32 %408, ptr %17, align 4, !tbaa !9
  %409 = load i32, ptr %17, align 4, !tbaa !9
  %410 = load ptr, ptr %6, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.w2c_hermes, ptr %410, i32 0, i32 3
  store i32 %409, ptr %411, 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 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 4, 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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #2

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

declare double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeDay0x28double0x2C0x20double0x2C0x20double0x29(ptr 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_hermes0x3A0x3Avm0x3A0x3AtimeWithinDay0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdatePrototypeSetDate_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 ]
  %.0208 = phi i32 [ %11, %15 ], [ 67200, %20 ]
  %.0207 = phi i1 [ false, %15 ], [ %22, %20 ]
  %24 = icmp eq i64 %.pre-phi, 0
  %.not211 = or i1 %.0207, %24
  br i1 %.not211, 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 32213)
  %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 %89

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)
  %.not212 = icmp eq i32 %43, 0
  %44 = select i1 %.not212, 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)
  %.not213 = icmp eq i32 %47, 0
  br i1 %.not213, 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 %89

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

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

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

89:                                               ; preds = %70, %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