; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_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"

; 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: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_0x5F_tan(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 0, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store double 0.000000e+00, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  %38 = load double, ptr %6, align 8, !tbaa !9
  store double %38, ptr %26, align 8, !tbaa !9
  %39 = load double, ptr %26, align 8, !tbaa !9
  %40 = call i64 @i64_reinterpret_f64(double noundef %39)
  store i64 %40, ptr %21, align 8, !tbaa !13
  %41 = load i64, ptr %21, align 8, !tbaa !13
  store i64 %41, ptr %12, align 8, !tbaa !13
  store i64 32, ptr %22, align 8, !tbaa !13
  %42 = load i64, ptr %22, align 8, !tbaa !13
  %43 = and i64 %42, 63
  %44 = load i64, ptr %21, align 8, !tbaa !13
  %45 = lshr i64 %44, %43
  store i64 %45, ptr %21, align 8, !tbaa !13
  %46 = load i64, ptr %21, align 8, !tbaa !13
  %47 = trunc i64 %46 to i32
  store i32 %47, ptr %16, align 4, !tbaa !11
  %48 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %48, ptr %9, align 4, !tbaa !11
  store i32 2147483640, ptr %17, align 4, !tbaa !11
  %49 = load i32, ptr %17, align 4, !tbaa !11
  %50 = load i32, ptr %16, align 4, !tbaa !11
  %51 = and i32 %50, %49
  store i32 %51, ptr %16, align 4, !tbaa !11
  store i32 1072010280, ptr %17, align 4, !tbaa !11
  %52 = load i32, ptr %16, align 4, !tbaa !11
  %53 = load i32, ptr %17, align 4, !tbaa !11
  %54 = icmp ult i32 %52, %53
  %55 = zext i1 %54 to i32
  store i32 %55, ptr %16, align 4, !tbaa !11
  %56 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %56, ptr %10, align 4, !tbaa !11
  %57 = load i32, ptr %16, align 4, !tbaa !11
  %58 = icmp ne i32 %57, 0
  %59 = xor i1 %58, true
  %60 = zext i1 %59 to i32
  store i32 %60, ptr %16, align 4, !tbaa !11
  %61 = load i32, ptr %16, align 4, !tbaa !11
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %114

63:                                               ; preds = %4
  store double 0x3FE921FB54442D18, ptr %26, align 8, !tbaa !9
  %64 = load double, ptr %6, align 8, !tbaa !9
  store double %64, ptr %27, align 8, !tbaa !9
  %65 = load double, ptr %6, align 8, !tbaa !9
  store double %65, ptr %28, align 8, !tbaa !9
  %66 = load double, ptr %28, align 8, !tbaa !9
  %67 = fneg double %66
  store double %67, ptr %28, align 8, !tbaa !9
  %68 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %68, ptr %24, align 8, !tbaa !13
  store i64 0, ptr %25, align 8, !tbaa !13
  %69 = load i64, ptr %24, align 8, !tbaa !13
  %70 = load i64, ptr %25, align 8, !tbaa !13
  %71 = icmp sge i64 %69, %70
  %72 = zext i1 %71 to i32
  %73 = sext i32 %72 to i64
  %74 = trunc i64 %73 to i32
  store i32 %74, ptr %19, align 4, !tbaa !11
  %75 = load i32, ptr %19, align 4, !tbaa !11
  store i32 %75, ptr %11, align 4, !tbaa !11
  %76 = load i32, ptr %19, align 4, !tbaa !11
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %63
  %79 = load double, ptr %27, align 8, !tbaa !9
  br label %82

80:                                               ; preds = %63
  %81 = load double, ptr %28, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %80, %78
  %83 = phi double [ %79, %78 ], [ %81, %80 ]
  store double %83, ptr %27, align 8, !tbaa !9
  %84 = load double, ptr %27, align 8, !tbaa !9
  %85 = load double, ptr %26, align 8, !tbaa !9
  %86 = fsub double %85, %84
  store double %86, ptr %26, align 8, !tbaa !9
  store double 0x3C81A62633145C07, ptr %27, align 8, !tbaa !9
  %87 = load double, ptr %7, align 8, !tbaa !9
  store double %87, ptr %28, align 8, !tbaa !9
  %88 = load double, ptr %7, align 8, !tbaa !9
  store double %88, ptr %29, align 8, !tbaa !9
  %89 = load double, ptr %29, align 8, !tbaa !9
  %90 = fneg double %89
  store double %90, ptr %29, align 8, !tbaa !9
  %91 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %91, ptr %20, align 4, !tbaa !11
  %92 = load i32, ptr %20, align 4, !tbaa !11
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %96

94:                                               ; preds = %82
  %95 = load double, ptr %28, align 8, !tbaa !9
  br label %98

96:                                               ; preds = %82
  %97 = load double, ptr %29, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %96, %94
  %99 = phi double [ %95, %94 ], [ %97, %96 ]
  store double %99, ptr %28, align 8, !tbaa !9
  %100 = load double, ptr %28, align 8, !tbaa !9
  %101 = load double, ptr %27, align 8, !tbaa !9
  %102 = fsub double %101, %100
  store double %102, ptr %27, align 8, !tbaa !9
  %103 = load double, ptr %27, align 8, !tbaa !9
  %104 = load double, ptr %26, align 8, !tbaa !9
  %105 = fadd double %104, %103
  store double %105, ptr %26, align 8, !tbaa !9
  %106 = load double, ptr %26, align 8, !tbaa !9
  store double %106, ptr %6, align 8, !tbaa !9
  %107 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %107, ptr %16, align 4, !tbaa !11
  store i32 31, ptr %17, align 4, !tbaa !11
  %108 = load i32, ptr %17, align 4, !tbaa !11
  %109 = and i32 %108, 31
  %110 = load i32, ptr %16, align 4, !tbaa !11
  %111 = lshr i32 %110, %109
  store i32 %111, ptr %16, align 4, !tbaa !11
  %112 = load i32, ptr %16, align 4, !tbaa !11
  store i32 %112, ptr %9, align 4, !tbaa !11
  store double 0.000000e+00, ptr %26, align 8, !tbaa !9
  %113 = load double, ptr %26, align 8, !tbaa !9
  store double %113, ptr %7, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %98, %4
  %115 = load double, ptr %6, align 8, !tbaa !9
  store double %115, ptr %26, align 8, !tbaa !9
  %116 = load double, ptr %6, align 8, !tbaa !9
  store double %116, ptr %27, align 8, !tbaa !9
  %117 = load double, ptr %6, align 8, !tbaa !9
  store double %117, ptr %28, align 8, !tbaa !9
  %118 = load double, ptr %6, align 8, !tbaa !9
  store double %118, ptr %29, align 8, !tbaa !9
  %119 = load double, ptr %29, align 8, !tbaa !9
  %120 = load double, ptr %28, align 8, !tbaa !9
  %121 = fmul double %120, %119
  store double %121, ptr %28, align 8, !tbaa !9
  %122 = load double, ptr %28, align 8, !tbaa !9
  store double %122, ptr %14, align 8, !tbaa !9
  %123 = load double, ptr %28, align 8, !tbaa !9
  %124 = load double, ptr %27, align 8, !tbaa !9
  %125 = fmul double %124, %123
  store double %125, ptr %27, align 8, !tbaa !9
  %126 = load double, ptr %27, align 8, !tbaa !9
  store double %126, ptr %15, align 8, !tbaa !9
  store double 0x3FD5555555555563, ptr %28, align 8, !tbaa !9
  %127 = load double, ptr %28, align 8, !tbaa !9
  %128 = load double, ptr %27, align 8, !tbaa !9
  %129 = fmul double %128, %127
  store double %129, ptr %27, align 8, !tbaa !9
  %130 = load double, ptr %14, align 8, !tbaa !9
  store double %130, ptr %28, align 8, !tbaa !9
  %131 = load double, ptr %15, align 8, !tbaa !9
  store double %131, ptr %29, align 8, !tbaa !9
  %132 = load double, ptr %14, align 8, !tbaa !9
  store double %132, ptr %30, align 8, !tbaa !9
  %133 = load double, ptr %14, align 8, !tbaa !9
  store double %133, ptr %31, align 8, !tbaa !9
  %134 = load double, ptr %31, align 8, !tbaa !9
  %135 = load double, ptr %30, align 8, !tbaa !9
  %136 = fmul double %135, %134
  store double %136, ptr %30, align 8, !tbaa !9
  %137 = load double, ptr %30, align 8, !tbaa !9
  store double %137, ptr %13, align 8, !tbaa !9
  %138 = load double, ptr %13, align 8, !tbaa !9
  store double %138, ptr %31, align 8, !tbaa !9
  %139 = load double, ptr %13, align 8, !tbaa !9
  store double %139, ptr %32, align 8, !tbaa !9
  %140 = load double, ptr %13, align 8, !tbaa !9
  store double %140, ptr %33, align 8, !tbaa !9
  %141 = load double, ptr %13, align 8, !tbaa !9
  store double %141, ptr %34, align 8, !tbaa !9
  store double 0xBEF375CBDB605373, ptr %35, align 8, !tbaa !9
  %142 = load double, ptr %35, align 8, !tbaa !9
  %143 = load double, ptr %34, align 8, !tbaa !9
  %144 = fmul double %143, %142
  store double %144, ptr %34, align 8, !tbaa !9
  store double 0x3F147E88A03792A6, ptr %35, align 8, !tbaa !9
  %145 = load double, ptr %35, align 8, !tbaa !9
  %146 = load double, ptr %34, align 8, !tbaa !9
  %147 = fadd double %146, %145
  store double %147, ptr %34, align 8, !tbaa !9
  %148 = load double, ptr %34, align 8, !tbaa !9
  %149 = load double, ptr %33, align 8, !tbaa !9
  %150 = fmul double %149, %148
  store double %150, ptr %33, align 8, !tbaa !9
  store double 0x3F4344D8F2F26501, ptr %34, align 8, !tbaa !9
  %151 = load double, ptr %34, align 8, !tbaa !9
  %152 = load double, ptr %33, align 8, !tbaa !9
  %153 = fadd double %152, %151
  store double %153, ptr %33, align 8, !tbaa !9
  %154 = load double, ptr %33, align 8, !tbaa !9
  %155 = load double, ptr %32, align 8, !tbaa !9
  %156 = fmul double %155, %154
  store double %156, ptr %32, align 8, !tbaa !9
  store double 0x3F6D6D22C9560328, ptr %33, align 8, !tbaa !9
  %157 = load double, ptr %33, align 8, !tbaa !9
  %158 = load double, ptr %32, align 8, !tbaa !9
  %159 = fadd double %158, %157
  store double %159, ptr %32, align 8, !tbaa !9
  %160 = load double, ptr %32, align 8, !tbaa !9
  %161 = load double, ptr %31, align 8, !tbaa !9
  %162 = fmul double %161, %160
  store double %162, ptr %31, align 8, !tbaa !9
  store double 0x3F9664F48406D637, ptr %32, align 8, !tbaa !9
  %163 = load double, ptr %32, align 8, !tbaa !9
  %164 = load double, ptr %31, align 8, !tbaa !9
  %165 = fadd double %164, %163
  store double %165, ptr %31, align 8, !tbaa !9
  %166 = load double, ptr %31, align 8, !tbaa !9
  %167 = load double, ptr %30, align 8, !tbaa !9
  %168 = fmul double %167, %166
  store double %168, ptr %30, align 8, !tbaa !9
  store double 0x3FC111111110FE7A, ptr %31, align 8, !tbaa !9
  %169 = load double, ptr %31, align 8, !tbaa !9
  %170 = load double, ptr %30, align 8, !tbaa !9
  %171 = fadd double %170, %169
  store double %171, ptr %30, align 8, !tbaa !9
  %172 = load double, ptr %14, align 8, !tbaa !9
  store double %172, ptr %31, align 8, !tbaa !9
  %173 = load double, ptr %13, align 8, !tbaa !9
  store double %173, ptr %32, align 8, !tbaa !9
  %174 = load double, ptr %13, align 8, !tbaa !9
  store double %174, ptr %33, align 8, !tbaa !9
  %175 = load double, ptr %13, align 8, !tbaa !9
  store double %175, ptr %34, align 8, !tbaa !9
  %176 = load double, ptr %13, align 8, !tbaa !9
  store double %176, ptr %35, align 8, !tbaa !9
  %177 = load double, ptr %13, align 8, !tbaa !9
  store double %177, ptr %36, align 8, !tbaa !9
  store double 0x3EFB2A7074BF7AD4, ptr %37, align 8, !tbaa !9
  %178 = load double, ptr %37, align 8, !tbaa !9
  %179 = load double, ptr %36, align 8, !tbaa !9
  %180 = fmul double %179, %178
  store double %180, ptr %36, align 8, !tbaa !9
  store double 0x3F12B80F32F0A7E9, ptr %37, align 8, !tbaa !9
  %181 = load double, ptr %37, align 8, !tbaa !9
  %182 = load double, ptr %36, align 8, !tbaa !9
  %183 = fadd double %182, %181
  store double %183, ptr %36, align 8, !tbaa !9
  %184 = load double, ptr %36, align 8, !tbaa !9
  %185 = load double, ptr %35, align 8, !tbaa !9
  %186 = fmul double %185, %184
  store double %186, ptr %35, align 8, !tbaa !9
  store double 0x3F3026F71A8D1068, ptr %36, align 8, !tbaa !9
  %187 = load double, ptr %36, align 8, !tbaa !9
  %188 = load double, ptr %35, align 8, !tbaa !9
  %189 = fadd double %188, %187
  store double %189, ptr %35, align 8, !tbaa !9
  %190 = load double, ptr %35, align 8, !tbaa !9
  %191 = load double, ptr %34, align 8, !tbaa !9
  %192 = fmul double %191, %190
  store double %192, ptr %34, align 8, !tbaa !9
  store double 0x3F57DBC8FEE08315, ptr %35, align 8, !tbaa !9
  %193 = load double, ptr %35, align 8, !tbaa !9
  %194 = load double, ptr %34, align 8, !tbaa !9
  %195 = fadd double %194, %193
  store double %195, ptr %34, align 8, !tbaa !9
  %196 = load double, ptr %34, align 8, !tbaa !9
  %197 = load double, ptr %33, align 8, !tbaa !9
  %198 = fmul double %197, %196
  store double %198, ptr %33, align 8, !tbaa !9
  store double 0x3F8226E3E96E8493, ptr %34, align 8, !tbaa !9
  %199 = load double, ptr %34, align 8, !tbaa !9
  %200 = load double, ptr %33, align 8, !tbaa !9
  %201 = fadd double %200, %199
  store double %201, ptr %33, align 8, !tbaa !9
  %202 = load double, ptr %33, align 8, !tbaa !9
  %203 = load double, ptr %32, align 8, !tbaa !9
  %204 = fmul double %203, %202
  store double %204, ptr %32, align 8, !tbaa !9
  store double 0x3FABA1BA1BB341FE, ptr %33, align 8, !tbaa !9
  %205 = load double, ptr %33, align 8, !tbaa !9
  %206 = load double, ptr %32, align 8, !tbaa !9
  %207 = fadd double %206, %205
  store double %207, ptr %32, align 8, !tbaa !9
  %208 = load double, ptr %32, align 8, !tbaa !9
  %209 = load double, ptr %31, align 8, !tbaa !9
  %210 = fmul double %209, %208
  store double %210, ptr %31, align 8, !tbaa !9
  %211 = load double, ptr %31, align 8, !tbaa !9
  %212 = load double, ptr %30, align 8, !tbaa !9
  %213 = fadd double %212, %211
  store double %213, ptr %30, align 8, !tbaa !9
  %214 = load double, ptr %30, align 8, !tbaa !9
  %215 = load double, ptr %29, align 8, !tbaa !9
  %216 = fmul double %215, %214
  store double %216, ptr %29, align 8, !tbaa !9
  %217 = load double, ptr %7, align 8, !tbaa !9
  store double %217, ptr %30, align 8, !tbaa !9
  %218 = load double, ptr %30, align 8, !tbaa !9
  %219 = load double, ptr %29, align 8, !tbaa !9
  %220 = fadd double %219, %218
  store double %220, ptr %29, align 8, !tbaa !9
  %221 = load double, ptr %29, align 8, !tbaa !9
  %222 = load double, ptr %28, align 8, !tbaa !9
  %223 = fmul double %222, %221
  store double %223, ptr %28, align 8, !tbaa !9
  %224 = load double, ptr %7, align 8, !tbaa !9
  store double %224, ptr %29, align 8, !tbaa !9
  %225 = load double, ptr %29, align 8, !tbaa !9
  %226 = load double, ptr %28, align 8, !tbaa !9
  %227 = fadd double %226, %225
  store double %227, ptr %28, align 8, !tbaa !9
  %228 = load double, ptr %28, align 8, !tbaa !9
  %229 = load double, ptr %27, align 8, !tbaa !9
  %230 = fadd double %229, %228
  store double %230, ptr %27, align 8, !tbaa !9
  %231 = load double, ptr %27, align 8, !tbaa !9
  store double %231, ptr %14, align 8, !tbaa !9
  %232 = load double, ptr %27, align 8, !tbaa !9
  %233 = load double, ptr %26, align 8, !tbaa !9
  %234 = fadd double %233, %232
  store double %234, ptr %26, align 8, !tbaa !9
  %235 = load double, ptr %26, align 8, !tbaa !9
  store double %235, ptr %13, align 8, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %236, ptr %16, align 4, !tbaa !11
  %237 = load i32, ptr %16, align 4, !tbaa !11
  %238 = icmp ne i32 %237, 0
  %239 = xor i1 %238, true
  %240 = zext i1 %239 to i32
  store i32 %240, ptr %16, align 4, !tbaa !11
  %241 = load i32, ptr %16, align 4, !tbaa !11
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %297

243:                                              ; preds = %114
  store i32 1, ptr %16, align 4, !tbaa !11
  %244 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %244, ptr %17, align 4, !tbaa !11
  store i32 1, ptr %18, align 4, !tbaa !11
  %245 = load i32, ptr %18, align 4, !tbaa !11
  %246 = and i32 %245, 31
  %247 = load i32, ptr %17, align 4, !tbaa !11
  %248 = shl i32 %247, %246
  store i32 %248, ptr %17, align 4, !tbaa !11
  %249 = load i32, ptr %17, align 4, !tbaa !11
  %250 = load i32, ptr %16, align 4, !tbaa !11
  %251 = sub i32 %250, %249
  store i32 %251, ptr %16, align 4, !tbaa !11
  %252 = load i32, ptr %16, align 4, !tbaa !11
  %253 = sitofp i32 %252 to double
  store double %253, ptr %26, align 8, !tbaa !9
  %254 = load double, ptr %26, align 8, !tbaa !9
  store double %254, ptr %7, align 8, !tbaa !9
  %255 = load double, ptr %6, align 8, !tbaa !9
  store double %255, ptr %27, align 8, !tbaa !9
  %256 = load double, ptr %14, align 8, !tbaa !9
  store double %256, ptr %28, align 8, !tbaa !9
  %257 = load double, ptr %13, align 8, !tbaa !9
  store double %257, ptr %29, align 8, !tbaa !9
  %258 = load double, ptr %13, align 8, !tbaa !9
  store double %258, ptr %30, align 8, !tbaa !9
  %259 = load double, ptr %30, align 8, !tbaa !9
  %260 = load double, ptr %29, align 8, !tbaa !9
  %261 = fmul double %260, %259
  store double %261, ptr %29, align 8, !tbaa !9
  %262 = load double, ptr %13, align 8, !tbaa !9
  store double %262, ptr %30, align 8, !tbaa !9
  %263 = load double, ptr %7, align 8, !tbaa !9
  store double %263, ptr %31, align 8, !tbaa !9
  %264 = load double, ptr %31, align 8, !tbaa !9
  %265 = load double, ptr %30, align 8, !tbaa !9
  %266 = fadd double %265, %264
  store double %266, ptr %30, align 8, !tbaa !9
  %267 = load double, ptr %30, align 8, !tbaa !9
  %268 = load double, ptr %29, align 8, !tbaa !9
  %269 = fdiv double %268, %267
  store double %269, ptr %29, align 8, !tbaa !9
  %270 = load double, ptr %29, align 8, !tbaa !9
  %271 = load double, ptr %28, align 8, !tbaa !9
  %272 = fsub double %271, %270
  store double %272, ptr %28, align 8, !tbaa !9
  %273 = load double, ptr %28, align 8, !tbaa !9
  %274 = load double, ptr %27, align 8, !tbaa !9
  %275 = fadd double %274, %273
  store double %275, ptr %27, align 8, !tbaa !9
  %276 = load double, ptr %27, align 8, !tbaa !9
  store double %276, ptr %13, align 8, !tbaa !9
  %277 = load double, ptr %13, align 8, !tbaa !9
  store double %277, ptr %28, align 8, !tbaa !9
  %278 = load double, ptr %28, align 8, !tbaa !9
  %279 = load double, ptr %27, align 8, !tbaa !9
  %280 = fadd double %279, %278
  store double %280, ptr %27, align 8, !tbaa !9
  %281 = load double, ptr %27, align 8, !tbaa !9
  %282 = load double, ptr %26, align 8, !tbaa !9
  %283 = fsub double %282, %281
  store double %283, ptr %26, align 8, !tbaa !9
  %284 = load double, ptr %26, align 8, !tbaa !9
  store double %284, ptr %13, align 8, !tbaa !9
  %285 = load double, ptr %26, align 8, !tbaa !9
  %286 = fneg double %285
  store double %286, ptr %26, align 8, !tbaa !9
  %287 = load double, ptr %13, align 8, !tbaa !9
  store double %287, ptr %27, align 8, !tbaa !9
  %288 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %288, ptr %18, align 4, !tbaa !11
  %289 = load i32, ptr %18, align 4, !tbaa !11
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %291, label %293

291:                                              ; preds = %243
  %292 = load double, ptr %26, align 8, !tbaa !9
  br label %295

293:                                              ; preds = %243
  %294 = load double, ptr %27, align 8, !tbaa !9
  br label %295

295:                                              ; preds = %293, %291
  %296 = phi double [ %292, %291 ], [ %294, %293 ]
  store double %296, ptr %26, align 8, !tbaa !9
  br label %357

297:                                              ; preds = %114
  %298 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %298, ptr %16, align 4, !tbaa !11
  %299 = load i32, ptr %16, align 4, !tbaa !11
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %301, label %355

301:                                              ; preds = %297
  store double -1.000000e+00, ptr %26, align 8, !tbaa !9
  %302 = load double, ptr %13, align 8, !tbaa !9
  store double %302, ptr %27, align 8, !tbaa !9
  %303 = load double, ptr %27, align 8, !tbaa !9
  %304 = load double, ptr %26, align 8, !tbaa !9
  %305 = fdiv double %304, %303
  store double %305, ptr %26, align 8, !tbaa !9
  %306 = load double, ptr %26, align 8, !tbaa !9
  store double %306, ptr %7, align 8, !tbaa !9
  %307 = load double, ptr %7, align 8, !tbaa !9
  store double %307, ptr %27, align 8, !tbaa !9
  %308 = load double, ptr %27, align 8, !tbaa !9
  %309 = call i64 @i64_reinterpret_f64(double noundef %308)
  store i64 %309, ptr %22, align 8, !tbaa !13
  store i64 -4294967296, ptr %23, align 8, !tbaa !13
  %310 = load i64, ptr %23, align 8, !tbaa !13
  %311 = load i64, ptr %22, align 8, !tbaa !13
  %312 = and i64 %311, %310
  store i64 %312, ptr %22, align 8, !tbaa !13
  %313 = load i64, ptr %22, align 8, !tbaa !13
  %314 = call double @f64_reinterpret_i64(i64 noundef %313)
  store double %314, ptr %27, align 8, !tbaa !9
  %315 = load double, ptr %27, align 8, !tbaa !9
  store double %315, ptr %7, align 8, !tbaa !9
  %316 = load double, ptr %14, align 8, !tbaa !9
  store double %316, ptr %28, align 8, !tbaa !9
  %317 = load double, ptr %13, align 8, !tbaa !9
  store double %317, ptr %29, align 8, !tbaa !9
  %318 = load double, ptr %29, align 8, !tbaa !9
  %319 = call i64 @i64_reinterpret_f64(double noundef %318)
  store i64 %319, ptr %24, align 8, !tbaa !13
  store i64 -4294967296, ptr %25, align 8, !tbaa !13
  %320 = load i64, ptr %25, align 8, !tbaa !13
  %321 = load i64, ptr %24, align 8, !tbaa !13
  %322 = and i64 %321, %320
  store i64 %322, ptr %24, align 8, !tbaa !13
  %323 = load i64, ptr %24, align 8, !tbaa !13
  %324 = call double @f64_reinterpret_i64(i64 noundef %323)
  store double %324, ptr %29, align 8, !tbaa !9
  %325 = load double, ptr %29, align 8, !tbaa !9
  store double %325, ptr %13, align 8, !tbaa !9
  %326 = load double, ptr %6, align 8, !tbaa !9
  store double %326, ptr %30, align 8, !tbaa !9
  %327 = load double, ptr %30, align 8, !tbaa !9
  %328 = load double, ptr %29, align 8, !tbaa !9
  %329 = fsub double %328, %327
  store double %329, ptr %29, align 8, !tbaa !9
  %330 = load double, ptr %29, align 8, !tbaa !9
  %331 = load double, ptr %28, align 8, !tbaa !9
  %332 = fsub double %331, %330
  store double %332, ptr %28, align 8, !tbaa !9
  %333 = load double, ptr %28, align 8, !tbaa !9
  %334 = load double, ptr %27, align 8, !tbaa !9
  %335 = fmul double %334, %333
  store double %335, ptr %27, align 8, !tbaa !9
  %336 = load double, ptr %7, align 8, !tbaa !9
  store double %336, ptr %28, align 8, !tbaa !9
  %337 = load double, ptr %13, align 8, !tbaa !9
  store double %337, ptr %29, align 8, !tbaa !9
  %338 = load double, ptr %29, align 8, !tbaa !9
  %339 = load double, ptr %28, align 8, !tbaa !9
  %340 = fmul double %339, %338
  store double %340, ptr %28, align 8, !tbaa !9
  store double 1.000000e+00, ptr %29, align 8, !tbaa !9
  %341 = load double, ptr %29, align 8, !tbaa !9
  %342 = load double, ptr %28, align 8, !tbaa !9
  %343 = fadd double %342, %341
  store double %343, ptr %28, align 8, !tbaa !9
  %344 = load double, ptr %28, align 8, !tbaa !9
  %345 = load double, ptr %27, align 8, !tbaa !9
  %346 = fadd double %345, %344
  store double %346, ptr %27, align 8, !tbaa !9
  %347 = load double, ptr %27, align 8, !tbaa !9
  %348 = load double, ptr %26, align 8, !tbaa !9
  %349 = fmul double %348, %347
  store double %349, ptr %26, align 8, !tbaa !9
  %350 = load double, ptr %7, align 8, !tbaa !9
  store double %350, ptr %27, align 8, !tbaa !9
  %351 = load double, ptr %27, align 8, !tbaa !9
  %352 = load double, ptr %26, align 8, !tbaa !9
  %353 = fadd double %352, %351
  store double %353, ptr %26, align 8, !tbaa !9
  %354 = load double, ptr %26, align 8, !tbaa !9
  store double %354, ptr %13, align 8, !tbaa !9
  br label %355

355:                                              ; preds = %301, %297
  %356 = load double, ptr %13, align 8, !tbaa !9
  store double %356, ptr %26, align 8, !tbaa !9
  br label %357

357:                                              ; preds = %355, %295
  %358 = load double, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  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 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret double %358
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !14, i64 0}
!14 = !{!"long", !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: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local double @w2c_hermes_0x5F_tan(ptr nocapture noundef readnone %0, double noundef %1, double noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = tail call i64 @i64_reinterpret_f64(double noundef %1)
  %6 = lshr i64 %5, 32
  %7 = trunc nuw i64 %6 to i32
  %8 = and i32 %7, 2147483640
  %9 = icmp ugt i32 %8, 1072010279
  br i1 %9, label %10, label %22

10:                                               ; preds = %4
  %11 = insertelement <2 x double> poison, double %1, i64 0
  %12 = insertelement <2 x double> %11, double %2, i64 1
  %13 = fneg <2 x double> %12
  %14 = icmp sgt i64 %5, -1
  %15 = insertelement <2 x i1> poison, i1 %14, i64 0
  %16 = shufflevector <2 x i1> %15, <2 x i1> poison, <2 x i32> zeroinitializer
  %17 = select <2 x i1> %16, <2 x double> %12, <2 x double> %13
  %18 = fsub <2 x double> <double 0x3FE921FB54442D18, double 0x3C81A62633145C07>, %17
  %shift = shufflevector <2 x double> %18, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %19 = fadd <2 x double> %18, %shift
  %20 = extractelement <2 x double> %19, i64 0
  %21 = lshr i32 %7, 31
  br label %22

22:                                               ; preds = %10, %4
  %.0213 = phi i32 [ %21, %10 ], [ %7, %4 ]
  %.0212 = phi double [ 0.000000e+00, %10 ], [ %2, %4 ]
  %.0 = phi double [ %20, %10 ], [ %1, %4 ]
  %23 = fmul double %.0, %.0
  %24 = fmul double %.0, %23
  %25 = fmul double %24, 0x3FD5555555555563
  %26 = fmul double %23, %23
  %27 = fmul double %26, 0x3EF375CBDB605373
  %28 = fsub double 0x3F147E88A03792A6, %27
  %29 = fmul double %26, %28
  %30 = fadd double %29, 0x3F4344D8F2F26501
  %31 = fmul double %26, %30
  %32 = fadd double %31, 0x3F6D6D22C9560328
  %33 = fmul double %26, %32
  %34 = fadd double %33, 0x3F9664F48406D637
  %35 = fmul double %26, %34
  %36 = fadd double %35, 0x3FC111111110FE7A
  %37 = fmul double %26, 0x3EFB2A7074BF7AD4
  %38 = fadd double %37, 0x3F12B80F32F0A7E9
  %39 = fmul double %26, %38
  %40 = fadd double %39, 0x3F3026F71A8D1068
  %41 = fmul double %26, %40
  %42 = fadd double %41, 0x3F57DBC8FEE08315
  %43 = fmul double %26, %42
  %44 = fadd double %43, 0x3F8226E3E96E8493
  %45 = fmul double %26, %44
  %46 = fadd double %45, 0x3FABA1BA1BB341FE
  %47 = fmul double %23, %46
  %48 = fadd double %36, %47
  %49 = fmul double %24, %48
  %50 = fadd double %.0212, %49
  %51 = fmul double %23, %50
  %52 = fadd double %.0212, %51
  %53 = fadd double %25, %52
  %54 = fadd double %.0, %53
  br i1 %9, label %55, label %68

55:                                               ; preds = %22
  %56 = shl i32 %3, 1
  %57 = sub i32 1, %56
  %58 = sitofp i32 %57 to double
  %59 = fmul double %54, %54
  %60 = fadd double %54, %58
  %61 = fdiv double %59, %60
  %62 = fsub double %53, %61
  %63 = fadd double %.0, %62
  %64 = fadd double %63, %63
  %65 = fsub double %58, %64
  %66 = fneg double %65
  %.not216 = icmp eq i32 %.0213, 0
  %67 = select i1 %.not216, double %65, double %66
  br label %85

68:                                               ; preds = %22
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %85, label %69

69:                                               ; preds = %68
  %70 = fdiv double -1.000000e+00, %54
  %71 = tail call i64 @i64_reinterpret_f64(double noundef %70)
  %72 = and i64 %71, -4294967296
  %73 = tail call double @f64_reinterpret_i64(i64 noundef %72)
  %74 = tail call i64 @i64_reinterpret_f64(double noundef %54)
  %75 = and i64 %74, -4294967296
  %76 = tail call double @f64_reinterpret_i64(i64 noundef %75)
  %77 = fsub double %76, %.0
  %78 = fsub double %53, %77
  %79 = fmul double %73, %78
  %80 = fmul double %73, %76
  %81 = fadd double %80, 1.000000e+00
  %82 = fadd double %81, %79
  %83 = fmul double %70, %82
  %84 = fadd double %73, %83
  br label %85

85:                                               ; preds = %68, %69, %55
  %.0214 = phi double [ %67, %55 ], [ %84, %69 ], [ %54, %68 ]
  ret double %.0214
}

attributes #0 = { 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 #1 = { 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)"}


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