; 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 dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef, double noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdatePrototypeSetYear_RJS0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca 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
  %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 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store double 0.000000e+00, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 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
  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 %17, align 4, !tbaa !9
  store i32 48, ptr %18, align 4, !tbaa !9
  %34 = load i32, ptr %18, align 4, !tbaa !9
  %35 = load i32, ptr %17, align 4, !tbaa !9
  %36 = sub i32 %35, %34
  store i32 %36, ptr %17, align 4, !tbaa !9
  %37 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %37, ptr %11, align 4, !tbaa !9
  %38 = load i32, ptr %17, 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 %17, 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 %17, 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 %17, align 4, !tbaa !9
  %47 = load i32, ptr %17, 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 %17, 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 %22, align 8, !tbaa !11
  %53 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %53, ptr %13, align 8, !tbaa !11
  store i64 -844424930131968, ptr %23, align 8, !tbaa !11
  %54 = load i64, ptr %22, align 8, !tbaa !11
  %55 = load i64, ptr %23, align 8, !tbaa !11
  %56 = icmp uge i64 %54, %55
  %57 = zext i1 %56 to i32
  store i32 %57, ptr %17, align 4, !tbaa !9
  %58 = load i32, ptr %17, 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 %17, align 4, !tbaa !9
  %62 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %62, ptr %8, align 4, !tbaa !9
  %63 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %63, ptr %22, align 8, !tbaa !11
  %64 = load i64, ptr %22, align 8, !tbaa !11
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %17, 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 %17, 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 %17, align 4, !tbaa !9
  store i32 24, ptr %18, align 4, !tbaa !9
  %72 = load i32, ptr %18, align 4, !tbaa !9
  %73 = and i32 %72, 31
  %74 = load i32, ptr %17, align 4, !tbaa !9
  %75 = shl i32 %74, %73
  store i32 %75, ptr %17, align 4, !tbaa !9
  store i32 1023410176, ptr %18, align 4, !tbaa !9
  %76 = load i32, ptr %17, align 4, !tbaa !9
  %77 = load i32, ptr %18, align 4, !tbaa !9
  %78 = icmp eq i32 %76, %77
  %79 = zext i1 %78 to i32
  store i32 %79, ptr %17, align 4, !tbaa !9
  %80 = load i32, ptr %17, 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 %17, align 4, !tbaa !9
  %85 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %85, ptr %8, 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 %17, 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 %22, align 8, !tbaa !11
  %91 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %91, ptr %13, align 8, !tbaa !11
  br label %92

92:                                               ; preds = %84, %82
  %93 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %93, ptr %22, align 8, !tbaa !11
  store i64 4294967295, ptr %23, align 8, !tbaa !11
  %94 = load i64, ptr %23, align 8, !tbaa !11
  %95 = load i64, ptr %22, align 8, !tbaa !11
  %96 = and i64 %95, %94
  store i64 %96, ptr %22, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !11
  %97 = load i64, ptr %22, align 8, !tbaa !11
  %98 = load i64, ptr %23, align 8, !tbaa !11
  %99 = icmp ne i64 %97, %98
  %100 = zext i1 %99 to i32
  store i32 %100, ptr %17, align 4, !tbaa !9
  %101 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %101, ptr %23, align 8, !tbaa !11
  store i64 -844424930131968, ptr %24, align 8, !tbaa !11
  %102 = load i64, ptr %23, align 8, !tbaa !11
  %103 = load i64, ptr %24, align 8, !tbaa !11
  %104 = icmp uge i64 %102, %103
  %105 = zext i1 %104 to i32
  store i32 %105, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %18, align 4, !tbaa !9
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = and i32 %107, %106
  store i32 %108, ptr %17, align 4, !tbaa !9
  %109 = load i32, ptr %17, 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 %17, align 4, !tbaa !9
  %113 = load i32, ptr %17, 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 %17, align 4, !tbaa !9
  store i32 0, ptr %18, 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 %17, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 40
  %122 = load i32, ptr %18, 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 %17, align 4, !tbaa !9
  store i64 214748364801, ptr %23, 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 %17, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 32
  %129 = load i64, ptr %23, 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 %17, align 4, !tbaa !9
  store i32 3, ptr %18, 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 %17, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 16
  %136 = load i32, ptr %18, 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 %17, align 4, !tbaa !9
  store i32 32003, ptr %18, 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 %17, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = add i64 %141, 8
  %143 = load i32, ptr %18, 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 %17, align 4, !tbaa !9
  %145 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %145, ptr %18, align 4, !tbaa !9
  %146 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %146, ptr %19, align 4, !tbaa !9
  store i32 8, ptr %20, align 4, !tbaa !9
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = load i32, ptr %19, align 4, !tbaa !9
  %149 = add i32 %148, %147
  store i32 %149, ptr %19, align 4, !tbaa !9
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %150, i32 noundef %151, i32 noundef %152)
  store i32 %153, ptr %18, 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 %17, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %155, i64 noundef %157, i32 noundef %158)
  br label %465

159:                                              ; preds = %92
  %160 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %160, ptr %22, align 8, !tbaa !11
  %161 = load i64, ptr %22, align 8, !tbaa !11
  %162 = trunc i64 %161 to i32
  store i32 %162, ptr %17, 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 %17, 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 %25, align 8, !tbaa !13
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = load double, ptr %25, align 8, !tbaa !13
  %171 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AlocalTime0x28double0x29(ptr noundef %169, double noundef %170)
  store double %171, ptr %25, align 8, !tbaa !13
  %172 = load double, ptr %25, align 8, !tbaa !13
  store double %172, ptr %15, align 8, !tbaa !13
  %173 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %173, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %174 = load i32, ptr %18, align 4, !tbaa !9
  %175 = load i32, ptr %17, align 4, !tbaa !9
  %176 = add i32 %175, %174
  store i32 %176, ptr %17, align 4, !tbaa !9
  %177 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %177, ptr %18, align 4, !tbaa !9
  %178 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %178, ptr %19, align 4, !tbaa !9
  store i32 8, ptr %20, align 4, !tbaa !9
  %179 = load i32, ptr %20, align 4, !tbaa !9
  %180 = load i32, ptr %19, align 4, !tbaa !9
  %181 = sub i32 %180, %179
  store i32 %181, ptr %19, align 4, !tbaa !9
  store i32 67208, ptr %20, align 4, !tbaa !9
  %182 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %182, ptr %21, align 4, !tbaa !9
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %21, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = add i64 %186, 4
  %188 = call i32 @i32_load(ptr noundef %184, i64 noundef %187)
  store i32 %188, ptr %21, align 4, !tbaa !9
  %189 = load i32, ptr %21, align 4, !tbaa !9
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %193

191:                                              ; preds = %159
  %192 = load i32, ptr %19, align 4, !tbaa !9
  br label %195

193:                                              ; preds = %159
  %194 = load i32, ptr %20, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %193, %191
  %196 = phi i32 [ %192, %191 ], [ %194, %193 ]
  store i32 %196, ptr %19, align 4, !tbaa !9
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = load i32, ptr %17, align 4, !tbaa !9
  %199 = load i32, ptr %18, align 4, !tbaa !9
  %200 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %197, i32 noundef %198, i32 noundef %199, i32 noundef %200)
  %201 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %201, ptr %17, align 4, !tbaa !9
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %17, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = add i64 %205, 8
  %207 = call i32 @i32_load(ptr noundef %203, i64 noundef %206)
  store i32 %207, ptr %17, align 4, !tbaa !9
  %208 = load i32, ptr %17, align 4, !tbaa !9
  %209 = icmp ne i32 %208, 0
  %210 = xor i1 %209, true
  %211 = zext i1 %210 to i32
  store i32 %211, ptr %17, align 4, !tbaa !9
  %212 = load i32, ptr %17, align 4, !tbaa !9
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %221

214:                                              ; preds = %195
  %215 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %215, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.w2c_hermes, ptr %216, i32 0, i32 6
  %218 = load i32, ptr %17, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %217, i64 noundef %219, i32 noundef %220)
  br label %465

221:                                              ; preds = %195
  %222 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %222, ptr %17, align 4, !tbaa !9
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.w2c_hermes, ptr %223, i32 0, i32 6
  %225 = load i32, ptr %17, align 4, !tbaa !9
  %226 = zext i32 %225 to i64
  %227 = add i64 %226, 16
  %228 = call double @f64_load(ptr noundef %224, i64 noundef %227)
  store double %228, ptr %25, align 8, !tbaa !13
  %229 = load double, ptr %25, align 8, !tbaa !13
  store double %229, ptr %14, align 8, !tbaa !13
  %230 = load double, ptr %14, align 8, !tbaa !13
  store double %230, ptr %26, align 8, !tbaa !13
  %231 = load double, ptr %25, align 8, !tbaa !13
  %232 = load double, ptr %26, align 8, !tbaa !13
  %233 = fcmp une double %231, %232
  %234 = zext i1 %233 to i32
  store i32 %234, ptr %17, align 4, !tbaa !9
  %235 = load i32, ptr %17, align 4, !tbaa !9
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %263

237:                                              ; preds = %221
  %238 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %238, ptr %17, align 4, !tbaa !9
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.w2c_hermes, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %17, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = call i32 @i32_load(ptr noundef %240, i64 noundef %242)
  store i32 %243, ptr %17, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %23, align 8, !tbaa !11
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.w2c_hermes, ptr %244, i32 0, i32 6
  %246 = load i32, ptr %17, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = add i64 %247, 24
  %249 = load i64, ptr %23, align 8, !tbaa !11
  call void @i64_store(ptr noundef %245, i64 noundef %248, i64 noundef %249)
  %250 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %250, ptr %17, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %23, align 8, !tbaa !11
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.w2c_hermes, ptr %251, i32 0, i32 6
  %253 = load i32, ptr %17, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = add i64 %254, 8
  %256 = load i64, ptr %23, align 8, !tbaa !11
  call void @i64_store(ptr noundef %252, i64 noundef %255, i64 noundef %256)
  %257 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %257, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %258 = load ptr, ptr %6, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.w2c_hermes, ptr %258, i32 0, i32 6
  %260 = load i32, ptr %17, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %259, i64 noundef %261, i32 noundef %262)
  br label %465

263:                                              ; preds = %221
  %264 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %264, ptr %25, align 8, !tbaa !13
  %265 = load double, ptr %14, align 8, !tbaa !13
  store double %265, ptr %26, align 8, !tbaa !13
  %266 = load double, ptr %26, align 8, !tbaa !13
  %267 = call double @wasm_trunc(double noundef %266)
  store double %267, ptr %26, align 8, !tbaa !13
  %268 = load double, ptr %26, align 8, !tbaa !13
  store double %268, ptr %16, align 8, !tbaa !13
  store double 1.900000e+03, ptr %27, align 8, !tbaa !13
  %269 = load double, ptr %27, align 8, !tbaa !13
  %270 = load double, ptr %26, align 8, !tbaa !13
  %271 = fadd double %270, %269
  store double %271, ptr %26, align 8, !tbaa !13
  %272 = load double, ptr %14, align 8, !tbaa !13
  store double %272, ptr %27, align 8, !tbaa !13
  %273 = load double, ptr %16, align 8, !tbaa !13
  store double %273, ptr %28, align 8, !tbaa !13
  store double 9.900000e+01, ptr %29, align 8, !tbaa !13
  %274 = load double, ptr %28, align 8, !tbaa !13
  %275 = load double, ptr %29, align 8, !tbaa !13
  %276 = fcmp ole double %274, %275
  %277 = zext i1 %276 to i32
  store i32 %277, ptr %20, align 4, !tbaa !9
  %278 = load i32, ptr %20, align 4, !tbaa !9
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %282

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

282:                                              ; preds = %263
  %283 = load double, ptr %27, align 8, !tbaa !13
  br label %284

284:                                              ; preds = %282, %280
  %285 = phi double [ %281, %280 ], [ %283, %282 ]
  store double %285, ptr %26, align 8, !tbaa !13
  %286 = load double, ptr %14, align 8, !tbaa !13
  store double %286, ptr %27, align 8, !tbaa !13
  %287 = load double, ptr %16, align 8, !tbaa !13
  store double %287, ptr %28, align 8, !tbaa !13
  store double 0.000000e+00, ptr %29, align 8, !tbaa !13
  %288 = load double, ptr %28, align 8, !tbaa !13
  %289 = load double, ptr %29, align 8, !tbaa !13
  %290 = fcmp oge double %288, %289
  %291 = zext i1 %290 to i32
  store i32 %291, ptr %20, align 4, !tbaa !9
  %292 = load i32, ptr %20, align 4, !tbaa !9
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %296

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

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

298:                                              ; preds = %296, %294
  %299 = phi double [ %295, %294 ], [ %297, %296 ]
  store double %299, ptr %26, align 8, !tbaa !13
  %300 = load double, ptr %15, align 8, !tbaa !13
  store double %300, ptr %27, align 8, !tbaa !13
  store double 0.000000e+00, ptr %28, align 8, !tbaa !13
  %301 = load double, ptr %15, align 8, !tbaa !13
  store double %301, ptr %29, align 8, !tbaa !13
  %302 = load double, ptr %15, align 8, !tbaa !13
  store double %302, ptr %30, align 8, !tbaa !13
  %303 = load double, ptr %29, align 8, !tbaa !13
  %304 = load double, ptr %30, align 8, !tbaa !13
  %305 = fcmp oeq double %303, %304
  %306 = zext i1 %305 to i32
  store i32 %306, ptr %21, align 4, !tbaa !9
  %307 = load i32, ptr %21, align 4, !tbaa !9
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %311

309:                                              ; preds = %298
  %310 = load double, ptr %27, align 8, !tbaa !13
  br label %313

311:                                              ; preds = %298
  %312 = load double, ptr %28, align 8, !tbaa !13
  br label %313

313:                                              ; preds = %311, %309
  %314 = phi double [ %310, %309 ], [ %312, %311 ]
  store double %314, ptr %27, align 8, !tbaa !13
  %315 = load double, ptr %27, align 8, !tbaa !13
  store double %315, ptr %14, align 8, !tbaa !13
  %316 = load ptr, ptr %6, align 8, !tbaa !5
  %317 = load double, ptr %27, align 8, !tbaa !13
  %318 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef %316, double noundef %317)
  store i32 %318, ptr %19, align 4, !tbaa !9
  %319 = load i32, ptr %19, align 4, !tbaa !9
  %320 = uitofp i32 %319 to double
  store double %320, ptr %27, align 8, !tbaa !13
  %321 = load double, ptr %14, align 8, !tbaa !13
  store double %321, ptr %28, align 8, !tbaa !13
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = load double, ptr %28, align 8, !tbaa !13
  %324 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef %322, double noundef %323)
  store double %324, ptr %28, align 8, !tbaa !13
  %325 = load ptr, ptr %6, align 8, !tbaa !5
  %326 = load double, ptr %26, align 8, !tbaa !13
  %327 = load double, ptr %27, align 8, !tbaa !13
  %328 = load double, ptr %28, align 8, !tbaa !13
  %329 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeDay0x28double0x2C0x20double0x2C0x20double0x29(ptr noundef %325, double noundef %326, double noundef %327, double noundef %328)
  store double %329, ptr %26, align 8, !tbaa !13
  %330 = load double, ptr %26, align 8, !tbaa !13
  store double %330, ptr %15, align 8, !tbaa !13
  store double 8.640000e+07, ptr %27, align 8, !tbaa !13
  %331 = load double, ptr %27, align 8, !tbaa !13
  %332 = load double, ptr %26, align 8, !tbaa !13
  %333 = fmul double %332, %331
  store double %333, ptr %26, align 8, !tbaa !13
  %334 = load double, ptr %14, align 8, !tbaa !13
  store double %334, ptr %27, align 8, !tbaa !13
  %335 = load ptr, ptr %6, align 8, !tbaa !5
  %336 = load double, ptr %27, align 8, !tbaa !13
  %337 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtimeWithinDay0x28double0x29(ptr noundef %335, double noundef %336)
  store double %337, ptr %27, align 8, !tbaa !13
  %338 = load double, ptr %27, align 8, !tbaa !13
  store double %338, ptr %14, align 8, !tbaa !13
  %339 = load double, ptr %27, align 8, !tbaa !13
  %340 = load double, ptr %26, align 8, !tbaa !13
  %341 = fadd double %340, %339
  store double %341, ptr %26, align 8, !tbaa !13
  %342 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %342, ptr %27, align 8, !tbaa !13
  %343 = load double, ptr %14, align 8, !tbaa !13
  store double %343, ptr %28, align 8, !tbaa !13
  %344 = load double, ptr %28, align 8, !tbaa !13
  %345 = call double @wasm_fabs(double noundef %344)
  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 i32, ptr %20, align 4, !tbaa !9
  %351 = icmp ne i32 %350, 0
  br i1 %351, label %352, label %354

352:                                              ; preds = %313
  %353 = load double, ptr %26, align 8, !tbaa !13
  br label %356

354:                                              ; preds = %313
  %355 = load double, ptr %27, align 8, !tbaa !13
  br label %356

356:                                              ; preds = %354, %352
  %357 = phi double [ %353, %352 ], [ %355, %354 ]
  store double %357, ptr %26, align 8, !tbaa !13
  %358 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %358, ptr %27, align 8, !tbaa !13
  %359 = load double, ptr %15, align 8, !tbaa !13
  store double %359, ptr %28, align 8, !tbaa !13
  %360 = load double, ptr %28, align 8, !tbaa !13
  %361 = call double @wasm_fabs(double noundef %360)
  store double %361, ptr %28, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %29, align 8, !tbaa !13
  %362 = load double, ptr %28, align 8, !tbaa !13
  %363 = load double, ptr %29, align 8, !tbaa !13
  %364 = fcmp olt double %362, %363
  %365 = zext i1 %364 to i32
  store i32 %365, ptr %20, align 4, !tbaa !9
  %366 = load i32, ptr %20, align 4, !tbaa !9
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %370

368:                                              ; preds = %356
  %369 = load double, ptr %26, align 8, !tbaa !13
  br label %372

370:                                              ; preds = %356
  %371 = load double, ptr %27, align 8, !tbaa !13
  br label %372

372:                                              ; preds = %370, %368
  %373 = phi double [ %369, %368 ], [ %371, %370 ]
  store double %373, ptr %26, align 8, !tbaa !13
  %374 = load ptr, ptr %6, align 8, !tbaa !5
  %375 = load double, ptr %26, align 8, !tbaa !13
  %376 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AutcTime0x28double0x29(ptr noundef %374, double noundef %375)
  store double %376, ptr %26, align 8, !tbaa !13
  %377 = load double, ptr %26, align 8, !tbaa !13
  store double %377, ptr %14, align 8, !tbaa !13
  %378 = load double, ptr %26, align 8, !tbaa !13
  %379 = call double @wasm_trunc(double noundef %378)
  store double %379, ptr %26, align 8, !tbaa !13
  store double 0.000000e+00, ptr %27, align 8, !tbaa !13
  %380 = load double, ptr %27, align 8, !tbaa !13
  %381 = load double, ptr %26, align 8, !tbaa !13
  %382 = fadd double %381, %380
  store double %382, ptr %26, align 8, !tbaa !13
  %383 = load double, ptr %14, align 8, !tbaa !13
  store double %383, ptr %27, align 8, !tbaa !13
  %384 = load double, ptr %27, align 8, !tbaa !13
  %385 = call double @wasm_fabs(double noundef %384)
  store double %385, ptr %27, align 8, !tbaa !13
  %386 = load double, ptr %27, align 8, !tbaa !13
  store double %386, ptr %14, align 8, !tbaa !13
  store double 8.640000e+15, ptr %28, align 8, !tbaa !13
  %387 = load double, ptr %27, align 8, !tbaa !13
  %388 = load double, ptr %28, align 8, !tbaa !13
  %389 = fcmp ogt double %387, %388
  %390 = zext i1 %389 to i32
  store i32 %390, ptr %19, align 4, !tbaa !9
  %391 = load i32, ptr %19, align 4, !tbaa !9
  %392 = icmp ne i32 %391, 0
  br i1 %392, label %393, label %395

393:                                              ; preds = %372
  %394 = load double, ptr %25, align 8, !tbaa !13
  br label %397

395:                                              ; preds = %372
  %396 = load double, ptr %26, align 8, !tbaa !13
  br label %397

397:                                              ; preds = %395, %393
  %398 = phi double [ %394, %393 ], [ %396, %395 ]
  store double %398, ptr %25, align 8, !tbaa !13
  %399 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %399, ptr %26, align 8, !tbaa !13
  %400 = load double, ptr %14, align 8, !tbaa !13
  store double %400, ptr %27, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %28, align 8, !tbaa !13
  %401 = load double, ptr %27, align 8, !tbaa !13
  %402 = load double, ptr %28, align 8, !tbaa !13
  %403 = fcmp olt double %401, %402
  %404 = zext i1 %403 to i32
  store i32 %404, ptr %19, align 4, !tbaa !9
  %405 = load double, ptr %14, align 8, !tbaa !13
  store double %405, ptr %28, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %29, align 8, !tbaa !13
  %406 = load double, ptr %28, align 8, !tbaa !13
  %407 = load double, ptr %29, align 8, !tbaa !13
  %408 = fcmp ogt double %406, %407
  %409 = zext i1 %408 to i32
  store i32 %409, ptr %20, align 4, !tbaa !9
  %410 = load i32, ptr %20, align 4, !tbaa !9
  %411 = load i32, ptr %19, align 4, !tbaa !9
  %412 = or i32 %411, %410
  store i32 %412, ptr %19, align 4, !tbaa !9
  %413 = load i32, ptr %19, align 4, !tbaa !9
  %414 = icmp ne i32 %413, 0
  br i1 %414, label %415, label %417

415:                                              ; preds = %397
  %416 = load double, ptr %25, align 8, !tbaa !13
  br label %419

417:                                              ; preds = %397
  %418 = load double, ptr %26, align 8, !tbaa !13
  br label %419

419:                                              ; preds = %417, %415
  %420 = phi double [ %416, %415 ], [ %418, %417 ]
  store double %420, ptr %25, align 8, !tbaa !13
  %421 = load double, ptr %25, align 8, !tbaa !13
  store double %421, ptr %14, align 8, !tbaa !13
  %422 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %422, ptr %17, align 4, !tbaa !9
  %423 = load ptr, ptr %6, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.w2c_hermes, ptr %423, i32 0, i32 6
  %425 = load i32, ptr %17, align 4, !tbaa !9
  %426 = zext i32 %425 to i64
  %427 = call i32 @i32_load(ptr noundef %424, i64 noundef %426)
  store i32 %427, ptr %17, align 4, !tbaa !9
  %428 = load double, ptr %14, align 8, !tbaa !13
  store double %428, ptr %26, align 8, !tbaa !13
  %429 = load ptr, ptr %6, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.w2c_hermes, ptr %429, i32 0, i32 6
  %431 = load i32, ptr %17, align 4, !tbaa !9
  %432 = zext i32 %431 to i64
  %433 = add i64 %432, 24
  %434 = load double, ptr %26, align 8, !tbaa !13
  call void @f64_store(ptr noundef %430, i64 noundef %433, double noundef %434)
  %435 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %435, ptr %17, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %23, align 8, !tbaa !11
  %436 = load double, ptr %14, align 8, !tbaa !13
  store double %436, ptr %27, align 8, !tbaa !13
  %437 = load double, ptr %27, align 8, !tbaa !13
  %438 = call i64 @i64_reinterpret_f64(double noundef %437)
  store i64 %438, ptr %24, align 8, !tbaa !11
  %439 = load double, ptr %14, align 8, !tbaa !13
  store double %439, ptr %28, align 8, !tbaa !13
  %440 = load double, ptr %14, align 8, !tbaa !13
  store double %440, ptr %29, align 8, !tbaa !13
  %441 = load double, ptr %28, align 8, !tbaa !13
  %442 = load double, ptr %29, align 8, !tbaa !13
  %443 = fcmp une double %441, %442
  %444 = zext i1 %443 to i32
  store i32 %444, ptr %20, align 4, !tbaa !9
  %445 = load i32, ptr %20, align 4, !tbaa !9
  %446 = icmp ne i32 %445, 0
  br i1 %446, label %447, label %449

447:                                              ; preds = %419
  %448 = load i64, ptr %23, align 8, !tbaa !11
  br label %451

449:                                              ; preds = %419
  %450 = load i64, ptr %24, align 8, !tbaa !11
  br label %451

451:                                              ; preds = %449, %447
  %452 = phi i64 [ %448, %447 ], [ %450, %449 ]
  store i64 %452, ptr %23, align 8, !tbaa !11
  %453 = load ptr, ptr %6, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.w2c_hermes, ptr %453, i32 0, i32 6
  %455 = load i32, ptr %17, align 4, !tbaa !9
  %456 = zext i32 %455 to i64
  %457 = add i64 %456, 8
  %458 = load i64, ptr %23, align 8, !tbaa !11
  call void @i64_store(ptr noundef %454, i64 noundef %457, i64 noundef %458)
  %459 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %459, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %460 = load ptr, ptr %6, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.w2c_hermes, ptr %460, i32 0, i32 6
  %462 = load i32, ptr %17, align 4, !tbaa !9
  %463 = zext i32 %462 to i64
  %464 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %461, i64 noundef %463, i32 noundef %464)
  br label %465

465:                                              ; preds = %451, %237, %214, %115
  %466 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %466, ptr %17, align 4, !tbaa !9
  store i32 48, ptr %18, align 4, !tbaa !9
  %467 = load i32, ptr %18, align 4, !tbaa !9
  %468 = load i32, ptr %17, align 4, !tbaa !9
  %469 = add i32 %468, %467
  store i32 %469, ptr %17, align 4, !tbaa !9
  %470 = load i32, ptr %17, align 4, !tbaa !9
  %471 = load ptr, ptr %6, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.w2c_hermes, ptr %471, i32 0, i32 3
  store i32 %470, ptr %472, 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 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 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void
}

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

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

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 dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdatePrototypeSetYear_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 ]
  %.0240 = phi i1 [ false, %15 ], [ %22, %20 ]
  %.0 = phi i32 [ %11, %15 ], [ 67200, %20 ]
  %24 = icmp eq i64 %.pre-phi, 0
  %.not243 = or i1 %.0240, %24
  br i1 %.not243, 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 32003)
  %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 %102

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

46:                                               ; preds = %34
  %47 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %47, i32 noundef 0)
  br label %102

48:                                               ; preds = %34
  %49 = add nuw nsw i64 %43, 16
  %50 = tail call double @f64_load(ptr noundef nonnull %9, i64 noundef %49)
  %51 = fcmp uno double %50, 0.000000e+00
  br i1 %51, label %52, label %59

52:                                               ; preds = %48
  %53 = zext i32 %.0 to i64
  %54 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %53)
  %55 = zext i32 %54 to i64
  %56 = add nuw nsw i64 %55, 24
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %56, i64 noundef 9221120237041090560)
  %57 = zext i32 %1 to i64
  %58 = add nuw nsw i64 %57, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %58, i64 noundef 9221120237041090560)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %57, i32 noundef 1)
  br label %102

59:                                               ; preds = %48
  %60 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %61 = tail call double @wasm_trunc(double noundef %50)
  %62 = fadd double %61, 1.900000e+03
  %63 = fcmp ole double %61, 9.900000e+01
  %64 = fcmp oge double %61, 0.000000e+00
  %65 = and i1 %64, %63
  %66 = select i1 %65, double %62, double %50
  %67 = fcmp ord double %37, 0.000000e+00
  %68 = select i1 %67, double %37, double 0.000000e+00
  %69 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef nonnull %0, double noundef %68) #3
  %70 = uitofp i32 %69 to double
  %71 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef nonnull %0, double noundef %68)
  %72 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmakeDay0x28double0x2C0x20double0x2C0x20double0x29(ptr noundef nonnull %0, double noundef %66, double noundef %70, double noundef %71) #3
  %73 = fmul double %72, 8.640000e+07
  %74 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtimeWithinDay0x28double0x29(ptr noundef nonnull %0, double noundef %68) #3
  %75 = fadd double %73, %74
  %76 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %77 = tail call double @wasm_fabs(double noundef %74)
  %78 = fcmp one double %77, 0x7FF0000000000000
  %79 = select i1 %78, double %75, double %76
  %80 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %81 = tail call double @wasm_fabs(double noundef %72)
  %82 = fcmp one double %81, 0x7FF0000000000000
  %83 = select i1 %82, double %79, double %80
  %84 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AutcTime0x28double0x29(ptr noundef nonnull %0, double noundef %83) #3
  %85 = tail call double @wasm_trunc(double noundef %84)
  %86 = fadd double %85, 0.000000e+00
  %87 = tail call double @wasm_fabs(double noundef %84)
  %88 = fcmp ogt double %87, 8.640000e+15
  %89 = select i1 %88, double %60, double %86
  %90 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %91 = fcmp one double %87, 0x7FF0000000000000
  %92 = select i1 %91, double %89, double %90
  %93 = zext i32 %.0 to i64
  %94 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %93)
  %95 = zext i32 %94 to i64
  %96 = add nuw nsw i64 %95, 24
  tail call void @f64_store(ptr noundef nonnull %9, i64 noundef %96, double noundef %92)
  %97 = tail call i64 @i64_reinterpret_f64(double noundef %92)
  %98 = fcmp uno double %92, 0.000000e+00
  %99 = select i1 %98, i64 9221120237041090560, i64 %97
  %100 = zext i32 %1 to i64
  %101 = add nuw nsw i64 %100, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %101, i64 noundef %99)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %100, i32 noundef 1)
  br label %102

102:                                              ; preds = %59, %52, %46, %25
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

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

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