; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_compiled_0)

; 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
define dso_local double @w2c_hermes_cos(ptr noundef %0, double noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = 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) #3
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.w2c_hermes, ptr %14, i32 0, i32 3
  %16 = load i32, ptr %15, align 8, !tbaa !13
  store i32 %16, ptr %7, align 4, !tbaa !11
  store i32 16, ptr %8, align 4, !tbaa !11
  %17 = load i32, ptr %8, align 4, !tbaa !11
  %18 = load i32, ptr %7, align 4, !tbaa !11
  %19 = sub i32 %18, %17
  store i32 %19, ptr %7, align 4, !tbaa !11
  %20 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %20, ptr %5, align 4, !tbaa !11
  %21 = load i32, ptr %7, align 4, !tbaa !11
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 3
  store i32 %21, ptr %23, align 8, !tbaa !13
  %24 = load double, ptr %4, align 8, !tbaa !9
  store double %24, ptr %12, align 8, !tbaa !9
  %25 = load double, ptr %12, align 8, !tbaa !9
  %26 = call i64 @i64_reinterpret_f64(double noundef %25)
  store i64 %26, ptr %10, align 8, !tbaa !19
  store i64 32, ptr %11, align 8, !tbaa !19
  %27 = load i64, ptr %11, align 8, !tbaa !19
  %28 = and i64 %27, 63
  %29 = load i64, ptr %10, align 8, !tbaa !19
  %30 = lshr i64 %29, %28
  store i64 %30, ptr %10, align 8, !tbaa !19
  %31 = load i64, ptr %10, align 8, !tbaa !19
  %32 = trunc i64 %31 to i32
  store i32 %32, ptr %7, align 4, !tbaa !11
  store i32 2147483647, ptr %8, align 4, !tbaa !11
  %33 = load i32, ptr %8, align 4, !tbaa !11
  %34 = load i32, ptr %7, align 4, !tbaa !11
  %35 = and i32 %34, %33
  store i32 %35, ptr %7, align 4, !tbaa !11
  %36 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %36, ptr %6, align 4, !tbaa !11
  store i32 1072243195, ptr %8, align 4, !tbaa !11
  %37 = load i32, ptr %7, align 4, !tbaa !11
  %38 = load i32, ptr %8, align 4, !tbaa !11
  %39 = icmp ule i32 %37, %38
  %40 = zext i1 %39 to i32
  store i32 %40, ptr %7, align 4, !tbaa !11
  %41 = load i32, ptr %7, align 4, !tbaa !11
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %58

43:                                               ; preds = %2
  store double 1.000000e+00, ptr %12, align 8, !tbaa !9
  %44 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %44, ptr %8, align 4, !tbaa !11
  store i32 1044816030, ptr %9, align 4, !tbaa !11
  %45 = load i32, ptr %8, align 4, !tbaa !11
  %46 = load i32, ptr %9, align 4, !tbaa !11
  %47 = icmp ult i32 %45, %46
  %48 = zext i1 %47 to i32
  store i32 %48, ptr %8, align 4, !tbaa !11
  %49 = load i32, ptr %8, align 4, !tbaa !11
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %43
  br label %165

52:                                               ; preds = %43
  %53 = load double, ptr %4, align 8, !tbaa !9
  store double %53, ptr %12, align 8, !tbaa !9
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = load double, ptr %12, align 8, !tbaa !9
  %56 = load double, ptr %13, align 8, !tbaa !9
  %57 = call double @w2c_hermes_0x5F_cos(ptr noundef %54, double noundef %55, double noundef %56)
  store double %57, ptr %12, align 8, !tbaa !9
  br label %165

58:                                               ; preds = %2
  %59 = load double, ptr %4, align 8, !tbaa !9
  store double %59, ptr %12, align 8, !tbaa !9
  %60 = load double, ptr %4, align 8, !tbaa !9
  store double %60, ptr %13, align 8, !tbaa !9
  %61 = load double, ptr %13, align 8, !tbaa !9
  %62 = load double, ptr %12, align 8, !tbaa !9
  %63 = fsub double %62, %61
  store double %63, ptr %12, align 8, !tbaa !9
  %64 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %64, ptr %8, align 4, !tbaa !11
  store i32 2146435072, ptr %9, align 4, !tbaa !11
  %65 = load i32, ptr %8, align 4, !tbaa !11
  %66 = load i32, ptr %9, align 4, !tbaa !11
  %67 = icmp uge i32 %65, %66
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %8, align 4, !tbaa !11
  %69 = load i32, ptr %8, align 4, !tbaa !11
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %58
  br label %165

72:                                               ; preds = %58
  %73 = load double, ptr %4, align 8, !tbaa !9
  store double %73, ptr %12, align 8, !tbaa !9
  %74 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %74, ptr %8, align 4, !tbaa !11
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = load double, ptr %12, align 8, !tbaa !9
  %77 = load i32, ptr %8, align 4, !tbaa !11
  %78 = call i32 @w2c_hermes_0x5F_rem_pio2(ptr noundef %75, double noundef %76, i32 noundef %77)
  store i32 %78, ptr %7, align 4, !tbaa !11
  store i32 3, ptr %8, align 4, !tbaa !11
  %79 = load i32, ptr %8, align 4, !tbaa !11
  %80 = load i32, ptr %7, align 4, !tbaa !11
  %81 = and i32 %80, %79
  store i32 %81, ptr %7, align 4, !tbaa !11
  %82 = load i32, ptr %7, align 4, !tbaa !11
  switch i32 %82, label %86 [
    i32 0, label %83
    i32 1, label %84
    i32 2, label %85
  ]

83:                                               ; preds = %72
  br label %87

84:                                               ; preds = %72
  br label %105

85:                                               ; preds = %72
  br label %126

86:                                               ; preds = %72
  br label %146

87:                                               ; preds = %83
  %88 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %88, ptr %7, align 4, !tbaa !11
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %7, align 4, !tbaa !11
  %92 = zext i32 %91 to i64
  %93 = call double @f64_load(ptr noundef %90, i64 noundef %92)
  store double %93, ptr %12, align 8, !tbaa !9
  %94 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %94, ptr %8, align 4, !tbaa !11
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %8, align 4, !tbaa !11
  %98 = zext i32 %97 to i64
  %99 = add i64 %98, 8
  %100 = call double @f64_load(ptr noundef %96, i64 noundef %99)
  store double %100, ptr %13, align 8, !tbaa !9
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = load double, ptr %12, align 8, !tbaa !9
  %103 = load double, ptr %13, align 8, !tbaa !9
  %104 = call double @w2c_hermes_0x5F_cos(ptr noundef %101, double noundef %102, double noundef %103)
  store double %104, ptr %12, align 8, !tbaa !9
  br label %165

105:                                              ; preds = %84
  %106 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %106, ptr %7, align 4, !tbaa !11
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %7, align 4, !tbaa !11
  %110 = zext i32 %109 to i64
  %111 = call double @f64_load(ptr noundef %108, i64 noundef %110)
  store double %111, ptr %12, align 8, !tbaa !9
  %112 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %112, ptr %8, align 4, !tbaa !11
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.w2c_hermes, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %8, align 4, !tbaa !11
  %116 = zext i32 %115 to i64
  %117 = add i64 %116, 8
  %118 = call double @f64_load(ptr noundef %114, i64 noundef %117)
  store double %118, ptr %13, align 8, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !11
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = load double, ptr %12, align 8, !tbaa !9
  %121 = load double, ptr %13, align 8, !tbaa !9
  %122 = load i32, ptr %9, align 4, !tbaa !11
  %123 = call double @w2c_hermes_0x5F_sin(ptr noundef %119, double noundef %120, double noundef %121, i32 noundef %122)
  store double %123, ptr %12, align 8, !tbaa !9
  %124 = load double, ptr %12, align 8, !tbaa !9
  %125 = fneg double %124
  store double %125, ptr %12, align 8, !tbaa !9
  br label %165

126:                                              ; preds = %85
  %127 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %127, ptr %7, align 4, !tbaa !11
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %7, align 4, !tbaa !11
  %131 = zext i32 %130 to i64
  %132 = call double @f64_load(ptr noundef %129, i64 noundef %131)
  store double %132, ptr %12, align 8, !tbaa !9
  %133 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %133, ptr %8, align 4, !tbaa !11
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.w2c_hermes, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %8, align 4, !tbaa !11
  %137 = zext i32 %136 to i64
  %138 = add i64 %137, 8
  %139 = call double @f64_load(ptr noundef %135, i64 noundef %138)
  store double %139, ptr %13, align 8, !tbaa !9
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = load double, ptr %12, align 8, !tbaa !9
  %142 = load double, ptr %13, align 8, !tbaa !9
  %143 = call double @w2c_hermes_0x5F_cos(ptr noundef %140, double noundef %141, double noundef %142)
  store double %143, ptr %12, align 8, !tbaa !9
  %144 = load double, ptr %12, align 8, !tbaa !9
  %145 = fneg double %144
  store double %145, ptr %12, align 8, !tbaa !9
  br label %165

146:                                              ; preds = %86
  %147 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %147, ptr %7, align 4, !tbaa !11
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %7, align 4, !tbaa !11
  %151 = zext i32 %150 to i64
  %152 = call double @f64_load(ptr noundef %149, i64 noundef %151)
  store double %152, ptr %12, align 8, !tbaa !9
  %153 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %153, ptr %8, align 4, !tbaa !11
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.w2c_hermes, ptr %154, i32 0, i32 6
  %156 = load i32, ptr %8, align 4, !tbaa !11
  %157 = zext i32 %156 to i64
  %158 = add i64 %157, 8
  %159 = call double @f64_load(ptr noundef %155, i64 noundef %158)
  store double %159, ptr %13, align 8, !tbaa !9
  store i32 1, ptr %9, align 4, !tbaa !11
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = load double, ptr %12, align 8, !tbaa !9
  %162 = load double, ptr %13, align 8, !tbaa !9
  %163 = load i32, ptr %9, align 4, !tbaa !11
  %164 = call double @w2c_hermes_0x5F_sin(ptr noundef %160, double noundef %161, double noundef %162, i32 noundef %163)
  store double %164, ptr %12, align 8, !tbaa !9
  br label %165

165:                                              ; preds = %146, %126, %105, %87, %71, %52, %51
  %166 = load double, ptr %12, align 8, !tbaa !9
  store double %166, ptr %4, align 8, !tbaa !9
  %167 = load i32, ptr %5, align 4, !tbaa !11
  store i32 %167, ptr %7, align 4, !tbaa !11
  store i32 16, ptr %8, align 4, !tbaa !11
  %168 = load i32, ptr %8, align 4, !tbaa !11
  %169 = load i32, ptr %7, align 4, !tbaa !11
  %170 = add i32 %169, %168
  store i32 %170, ptr %7, align 4, !tbaa !11
  %171 = load i32, ptr %7, align 4, !tbaa !11
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.w2c_hermes, ptr %172, i32 0, i32 3
  store i32 %171, ptr %173, align 8, !tbaa !13
  %174 = load double, ptr %4, align 8, !tbaa !9
  store double %174, ptr %12, align 8, !tbaa !9
  %175 = load double, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret double %175
}

; 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 i64 @i64_reinterpret_f64(double noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_0x5F_sin(ptr noundef, double noundef, double noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_0x5F_cos(ptr noundef, double noundef, double noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_0x5F_rem_pio2(ptr noundef, double noundef, i32 noundef) #0

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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !15, i64 40, !18, i64 80}
!15 = !{!"", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !17, i64 32}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"", !6, i64 0, !12, i64 8, !12, i64 12}
!19 = !{!16, !16, 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: nounwind uwtable
define dso_local double @w2c_hermes_cos(ptr noundef %0, double noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -16
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %7 = lshr i64 %6, 32
  %8 = trunc nuw i64 %7 to i32
  %9 = and i32 %8, 2147483647
  %10 = icmp ult i32 %9, 1072243196
  br i1 %10, label %11, label %15

11:                                               ; preds = %2
  %12 = icmp ult i32 %9, 1044816030
  br i1 %12, label %36, label %13

13:                                               ; preds = %11
  %14 = tail call double @w2c_hermes_0x5F_cos(ptr noundef nonnull %0, double noundef %1, double noundef 0.000000e+00)
  br label %36

15:                                               ; preds = %2
  %16 = fsub double %1, %1
  %17 = icmp ugt i32 %9, 2146435071
  br i1 %17, label %36, label %18

18:                                               ; preds = %15
  %19 = tail call i32 @w2c_hermes_0x5F_rem_pio2(ptr noundef nonnull %0, double noundef %1, i32 noundef %5)
  %20 = and i32 %19, 3
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = zext i32 %5 to i64
  %23 = tail call double @f64_load(ptr noundef nonnull %21, i64 noundef %22)
  %24 = add nuw nsw i64 %22, 8
  %25 = tail call double @f64_load(ptr noundef nonnull %21, i64 noundef %24)
  switch i32 %20, label %default.unreachable [
    i32 0, label %26
    i32 1, label %28
    i32 2, label %31
    i32 3, label %34
  ]

26:                                               ; preds = %18
  %27 = tail call double @w2c_hermes_0x5F_cos(ptr noundef nonnull %0, double noundef %23, double noundef %25)
  br label %36

28:                                               ; preds = %18
  %29 = tail call double @w2c_hermes_0x5F_sin(ptr noundef nonnull %0, double noundef %23, double noundef %25, i32 noundef 1)
  %30 = fneg double %29
  br label %36

31:                                               ; preds = %18
  %32 = tail call double @w2c_hermes_0x5F_cos(ptr noundef nonnull %0, double noundef %23, double noundef %25)
  %33 = fneg double %32
  br label %36

default.unreachable:                              ; preds = %18
  unreachable

34:                                               ; preds = %18
  %35 = tail call double @w2c_hermes_0x5F_sin(ptr noundef nonnull %0, double noundef %23, double noundef %25, i32 noundef 1)
  br label %36

36:                                               ; preds = %15, %11, %34, %31, %28, %26, %13
  %.0 = phi double [ 1.000000e+00, %11 ], [ %14, %13 ], [ %16, %15 ], [ %35, %34 ], [ %33, %31 ], [ %30, %28 ], [ %27, %26 ]
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret double %.0
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_0x5F_sin(ptr noundef, double noundef, double noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @w2c_hermes_0x5F_cos(ptr noundef, double noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_0x5F_rem_pio2(ptr noundef, double noundef, i32 noundef) local_unnamed_addr #0

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" }

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