; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef %0, double noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %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 double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store double %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %19 = load double, ptr %4, align 8, !tbaa !9
  store double %19, ptr %14, align 8, !tbaa !9
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = load double, ptr %14, align 8, !tbaa !9
  %22 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef %20, double noundef %21)
  store double %22, ptr %14, align 8, !tbaa !9
  %23 = load double, ptr %14, align 8, !tbaa !9
  store double %23, ptr %7, align 8, !tbaa !9
  %24 = load double, ptr %4, align 8, !tbaa !9
  store double %24, ptr %14, align 8, !tbaa !9
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = load double, ptr %14, align 8, !tbaa !9
  %27 = call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef %25, double noundef %26)
  store double %27, ptr %14, align 8, !tbaa !9
  %28 = load double, ptr %14, align 8, !tbaa !9
  store double %28, ptr %8, align 8, !tbaa !9
  store double 4.000000e+00, ptr %15, align 8, !tbaa !9
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = load double, ptr %14, align 8, !tbaa !9
  %31 = load double, ptr %15, align 8, !tbaa !9
  %32 = call double @w2c_hermes_fmod(ptr noundef %29, double noundef %30, double noundef %31)
  store double %32, ptr %14, align 8, !tbaa !9
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  %33 = load double, ptr %14, align 8, !tbaa !9
  %34 = load double, ptr %15, align 8, !tbaa !9
  %35 = fcmp une double %33, %34
  %36 = zext i1 %35 to i32
  store i32 %36, ptr %9, align 4, !tbaa !11
  %37 = load i32, ptr %9, align 4, !tbaa !11
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %44

39:                                               ; preds = %2
  %40 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %40, ptr %9, align 4, !tbaa !11
  store i32 235632, ptr %10, align 4, !tbaa !11
  %41 = load i32, ptr %10, align 4, !tbaa !11
  %42 = load i32, ptr %9, align 4, !tbaa !11
  %43 = add i32 %42, %41
  store i32 %43, ptr %9, align 4, !tbaa !11
  br label %88

44:                                               ; preds = %2
  store i32 0, ptr %9, align 4, !tbaa !11
  store i32 235664, ptr %10, align 4, !tbaa !11
  %45 = load i32, ptr %10, align 4, !tbaa !11
  %46 = load i32, ptr %9, align 4, !tbaa !11
  %47 = add i32 %46, %45
  store i32 %47, ptr %9, align 4, !tbaa !11
  %48 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %48, ptr %6, align 4, !tbaa !11
  %49 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %49, ptr %10, align 4, !tbaa !11
  %50 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %50, ptr %11, align 4, !tbaa !11
  store i32 235632, ptr %12, align 4, !tbaa !11
  %51 = load i32, ptr %12, align 4, !tbaa !11
  %52 = load i32, ptr %11, align 4, !tbaa !11
  %53 = add i32 %52, %51
  store i32 %53, ptr %11, align 4, !tbaa !11
  %54 = load double, ptr %8, align 8, !tbaa !9
  store double %54, ptr %17, align 8, !tbaa !9
  store double 4.000000e+02, ptr %18, align 8, !tbaa !9
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = load double, ptr %17, align 8, !tbaa !9
  %57 = load double, ptr %18, align 8, !tbaa !9
  %58 = call double @w2c_hermes_fmod(ptr noundef %55, double noundef %56, double noundef %57)
  store double %58, ptr %17, align 8, !tbaa !9
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  %59 = load double, ptr %17, align 8, !tbaa !9
  %60 = load double, ptr %18, align 8, !tbaa !9
  %61 = fcmp oeq double %59, %60
  %62 = zext i1 %61 to i32
  store i32 %62, ptr %12, align 4, !tbaa !11
  %63 = load i32, ptr %12, align 4, !tbaa !11
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %44
  %66 = load i32, ptr %10, align 4, !tbaa !11
  br label %69

67:                                               ; preds = %44
  %68 = load i32, ptr %11, align 4, !tbaa !11
  br label %69

69:                                               ; preds = %67, %65
  %70 = phi i32 [ %66, %65 ], [ %68, %67 ]
  store i32 %70, ptr %10, align 4, !tbaa !11
  %71 = load double, ptr %8, align 8, !tbaa !9
  store double %71, ptr %16, align 8, !tbaa !9
  store double 1.000000e+02, ptr %17, align 8, !tbaa !9
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = load double, ptr %16, align 8, !tbaa !9
  %74 = load double, ptr %17, align 8, !tbaa !9
  %75 = call double @w2c_hermes_fmod(ptr noundef %72, double noundef %73, double noundef %74)
  store double %75, ptr %16, align 8, !tbaa !9
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  %76 = load double, ptr %16, align 8, !tbaa !9
  %77 = load double, ptr %17, align 8, !tbaa !9
  %78 = fcmp une double %76, %77
  %79 = zext i1 %78 to i32
  store i32 %79, ptr %11, align 4, !tbaa !11
  %80 = load i32, ptr %11, align 4, !tbaa !11
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %84

82:                                               ; preds = %69
  %83 = load i32, ptr %9, align 4, !tbaa !11
  br label %86

84:                                               ; preds = %69
  %85 = load i32, ptr %10, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %84, %82
  %87 = phi i32 [ %83, %82 ], [ %85, %84 ]
  store i32 %87, ptr %9, align 4, !tbaa !11
  br label %88

88:                                               ; preds = %86, %39
  %89 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %89, ptr %5, align 4, !tbaa !11
  %90 = load double, ptr %4, align 8, !tbaa !9
  store double %90, ptr %14, align 8, !tbaa !9
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = load double, ptr %14, align 8, !tbaa !9
  %93 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef %91, double noundef %92)
  store i32 %93, ptr %9, align 4, !tbaa !11
  %94 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %94, ptr %6, align 4, !tbaa !11
  store i32 12, ptr %10, align 4, !tbaa !11
  %95 = load i32, ptr %9, align 4, !tbaa !11
  %96 = load i32, ptr %10, align 4, !tbaa !11
  %97 = icmp uge i32 %95, %96
  %98 = zext i1 %97 to i32
  store i32 %98, ptr %9, align 4, !tbaa !11
  %99 = load i32, ptr %9, align 4, !tbaa !11
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %119

101:                                              ; preds = %88
  store i32 0, ptr %9, align 4, !tbaa !11
  %102 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %102, ptr %5, align 4, !tbaa !11
  store i32 160715, ptr %10, align 4, !tbaa !11
  %103 = load i32, ptr %10, align 4, !tbaa !11
  %104 = load i32, ptr %9, align 4, !tbaa !11
  %105 = add i32 %104, %103
  store i32 %105, ptr %9, align 4, !tbaa !11
  %106 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %106, ptr %10, align 4, !tbaa !11
  store i32 59417, ptr %11, align 4, !tbaa !11
  %107 = load i32, ptr %11, align 4, !tbaa !11
  %108 = load i32, ptr %10, align 4, !tbaa !11
  %109 = add i32 %108, %107
  store i32 %109, ptr %10, align 4, !tbaa !11
  store i32 194, ptr %11, align 4, !tbaa !11
  %110 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %110, ptr %12, align 4, !tbaa !11
  store i32 75359, ptr %13, align 4, !tbaa !11
  %111 = load i32, ptr %13, align 4, !tbaa !11
  %112 = load i32, ptr %12, align 4, !tbaa !11
  %113 = add i32 %112, %111
  store i32 %113, ptr %12, align 4, !tbaa !11
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = load i32, ptr %9, align 4, !tbaa !11
  %116 = load i32, ptr %10, align 4, !tbaa !11
  %117 = load i32, ptr %11, align 4, !tbaa !11
  %118 = load i32, ptr %12, align 4, !tbaa !11
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %114, i32 noundef %115, i32 noundef %116, i32 noundef %117, i32 noundef %118)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

119:                                              ; preds = %88
  %120 = load double, ptr %4, align 8, !tbaa !9
  store double %120, ptr %14, align 8, !tbaa !9
  store double 8.640000e+07, ptr %15, align 8, !tbaa !9
  %121 = load double, ptr %15, align 8, !tbaa !9
  %122 = load double, ptr %14, align 8, !tbaa !9
  %123 = fdiv double %122, %121
  store double %123, ptr %14, align 8, !tbaa !9
  %124 = load double, ptr %14, align 8, !tbaa !9
  %125 = call double @wasm_floor(double noundef %124)
  store double %125, ptr %14, align 8, !tbaa !9
  %126 = load double, ptr %7, align 8, !tbaa !9
  store double %126, ptr %15, align 8, !tbaa !9
  store double -1.601000e+03, ptr %16, align 8, !tbaa !9
  %127 = load double, ptr %16, align 8, !tbaa !9
  %128 = load double, ptr %15, align 8, !tbaa !9
  %129 = fadd double %128, %127
  store double %129, ptr %15, align 8, !tbaa !9
  store double 4.000000e+02, ptr %16, align 8, !tbaa !9
  %130 = load double, ptr %16, align 8, !tbaa !9
  %131 = load double, ptr %15, align 8, !tbaa !9
  %132 = fdiv double %131, %130
  store double %132, ptr %15, align 8, !tbaa !9
  %133 = load double, ptr %15, align 8, !tbaa !9
  %134 = call double @wasm_floor(double noundef %133)
  store double %134, ptr %15, align 8, !tbaa !9
  %135 = load double, ptr %7, align 8, !tbaa !9
  store double %135, ptr %16, align 8, !tbaa !9
  store double -1.970000e+03, ptr %17, align 8, !tbaa !9
  %136 = load double, ptr %17, align 8, !tbaa !9
  %137 = load double, ptr %16, align 8, !tbaa !9
  %138 = fadd double %137, %136
  store double %138, ptr %16, align 8, !tbaa !9
  store double 3.650000e+02, ptr %17, align 8, !tbaa !9
  %139 = load double, ptr %17, align 8, !tbaa !9
  %140 = load double, ptr %16, align 8, !tbaa !9
  %141 = fmul double %140, %139
  store double %141, ptr %16, align 8, !tbaa !9
  %142 = load double, ptr %7, align 8, !tbaa !9
  store double %142, ptr %17, align 8, !tbaa !9
  store double -1.969000e+03, ptr %18, align 8, !tbaa !9
  %143 = load double, ptr %18, align 8, !tbaa !9
  %144 = load double, ptr %17, align 8, !tbaa !9
  %145 = fadd double %144, %143
  store double %145, ptr %17, align 8, !tbaa !9
  store double 2.500000e-01, ptr %18, align 8, !tbaa !9
  %146 = load double, ptr %18, align 8, !tbaa !9
  %147 = load double, ptr %17, align 8, !tbaa !9
  %148 = fmul double %147, %146
  store double %148, ptr %17, align 8, !tbaa !9
  %149 = load double, ptr %17, align 8, !tbaa !9
  %150 = call double @wasm_floor(double noundef %149)
  store double %150, ptr %17, align 8, !tbaa !9
  %151 = load double, ptr %17, align 8, !tbaa !9
  %152 = load double, ptr %16, align 8, !tbaa !9
  %153 = fadd double %152, %151
  store double %153, ptr %16, align 8, !tbaa !9
  %154 = load double, ptr %7, align 8, !tbaa !9
  store double %154, ptr %17, align 8, !tbaa !9
  store double -1.901000e+03, ptr %18, align 8, !tbaa !9
  %155 = load double, ptr %18, align 8, !tbaa !9
  %156 = load double, ptr %17, align 8, !tbaa !9
  %157 = fadd double %156, %155
  store double %157, ptr %17, align 8, !tbaa !9
  store double 1.000000e+02, ptr %18, align 8, !tbaa !9
  %158 = load double, ptr %18, align 8, !tbaa !9
  %159 = load double, ptr %17, align 8, !tbaa !9
  %160 = fdiv double %159, %158
  store double %160, ptr %17, align 8, !tbaa !9
  %161 = load double, ptr %17, align 8, !tbaa !9
  %162 = call double @wasm_floor(double noundef %161)
  store double %162, ptr %17, align 8, !tbaa !9
  %163 = load double, ptr %17, align 8, !tbaa !9
  %164 = load double, ptr %16, align 8, !tbaa !9
  %165 = fsub double %164, %163
  store double %165, ptr %16, align 8, !tbaa !9
  %166 = load double, ptr %16, align 8, !tbaa !9
  %167 = load double, ptr %15, align 8, !tbaa !9
  %168 = fadd double %167, %166
  store double %168, ptr %15, align 8, !tbaa !9
  %169 = load double, ptr %15, align 8, !tbaa !9
  %170 = load double, ptr %14, align 8, !tbaa !9
  %171 = fsub double %170, %169
  store double %171, ptr %14, align 8, !tbaa !9
  %172 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %172, ptr %10, align 4, !tbaa !11
  %173 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %173, ptr %11, align 4, !tbaa !11
  store i32 1, ptr %12, align 4, !tbaa !11
  %174 = load i32, ptr %12, align 4, !tbaa !11
  %175 = and i32 %174, 31
  %176 = load i32, ptr %11, align 4, !tbaa !11
  %177 = shl i32 %176, %175
  store i32 %177, ptr %11, align 4, !tbaa !11
  %178 = load i32, ptr %11, align 4, !tbaa !11
  %179 = load i32, ptr %10, align 4, !tbaa !11
  %180 = add i32 %179, %178
  store i32 %180, ptr %10, align 4, !tbaa !11
  %181 = load ptr, ptr %3, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.w2c_hermes, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %10, align 4, !tbaa !11
  %184 = zext i32 %183 to i64
  %185 = call i32 @i32_load16_u(ptr noundef %182, i64 noundef %184)
  store i32 %185, ptr %10, align 4, !tbaa !11
  %186 = load i32, ptr %10, align 4, !tbaa !11
  %187 = uitofp i32 %186 to double
  store double %187, ptr %15, align 8, !tbaa !9
  %188 = load double, ptr %15, align 8, !tbaa !9
  %189 = load double, ptr %14, align 8, !tbaa !9
  %190 = fsub double %189, %188
  store double %190, ptr %14, align 8, !tbaa !9
  store double 1.000000e+00, ptr %15, align 8, !tbaa !9
  %191 = load double, ptr %15, align 8, !tbaa !9
  %192 = load double, ptr %14, align 8, !tbaa !9
  %193 = fadd double %192, %191
  store double %193, ptr %14, align 8, !tbaa !9
  %194 = load double, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret double %194
}

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

declare double @w2c_hermes_fmod(ptr noundef, double noundef, double noundef) #2

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

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

!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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}


; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AdateFromTime0x28double0x29(ptr noundef %0, double noundef %1) local_unnamed_addr #3 {
  %3 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef %0, double noundef %1) #4
  %4 = tail call double @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AyearFromTime0x28double0x29(ptr noundef %0, double noundef %1) #4
  %5 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %4, double noundef 4.000000e+00) #4
  %6 = fcmp une double %5, 0.000000e+00
  br i1 %6, label %14, label %7

7:                                                ; preds = %2
  %8 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %4, double noundef 4.000000e+02) #4
  %9 = fcmp oeq double %8, 0.000000e+00
  %10 = tail call double @w2c_hermes_fmod(ptr noundef %0, double noundef %4, double noundef 1.000000e+02) #4
  %11 = fcmp une double %10, 0.000000e+00
  %12 = select i1 %11, i1 true, i1 %9
  %13 = select i1 %12, i32 235664, i32 235632
  br label %14

14:                                               ; preds = %2, %7
  %.0 = phi i32 [ %13, %7 ], [ 235632, %2 ]
  %15 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmonthFromTime0x28double0x29(ptr noundef %0, double noundef %1) #4
  %16 = icmp ugt i32 %15, 11
  br i1 %16, label %17, label %18

17:                                               ; preds = %14
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 160715, i32 noundef 59417, i32 noundef 194, i32 noundef 75359) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

18:                                               ; preds = %14
  %19 = fdiv double %1, 8.640000e+07
  %20 = tail call double @wasm_floor(double noundef %19)
  %21 = fadd double %3, -1.601000e+03
  %22 = fdiv double %21, 4.000000e+02
  %23 = tail call double @wasm_floor(double noundef %22)
  %24 = fadd double %3, -1.970000e+03
  %25 = fmul double %24, 3.650000e+02
  %26 = fadd double %3, -1.969000e+03
  %27 = fmul double %26, 2.500000e-01
  %28 = tail call double @wasm_floor(double noundef %27)
  %29 = fadd double %25, %28
  %30 = fadd double %3, -1.901000e+03
  %31 = fdiv double %30, 1.000000e+02
  %32 = tail call double @wasm_floor(double noundef %31)
  %33 = fsub double %29, %32
  %34 = fadd double %23, %33
  %35 = fsub double %20, %34
  %36 = shl nuw nsw i32 %15, 1
  %37 = add nuw nsw i32 %36, %.0
  %38 = getelementptr inbounds i8, ptr %0, i64 40
  %39 = zext nneg i32 %37 to i64
  %40 = tail call i32 @i32_load16_u(ptr noundef nonnull %38, i64 noundef %39)
  %41 = uitofp i32 %40 to double
  %42 = fsub double %35, %41
  %43 = fadd double %42, 1.000000e+00
  ret double %43
}

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

declare double @w2c_hermes_fmod(ptr noundef, double noundef, double noundef) local_unnamed_addr #1

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

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass