#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ coefs;

/* Variables and functions */
double log(int);
double pow(double, double);
double lsx_kaiser_beta(double att, double tr_bw) {
  if (att >= 60) {
    static const double coefs[][4] = {
        {-6.784957e-10, 1.02856e-05, 0.1087556, -0.8988365 + .001},
        {-6.897885e-10, 1.027433e-05, 0.10876, -0.8994658 + .002},
        {-1.000683e-09, 1.030092e-05, 0.1087677, -0.9007898 + .003},
        {-3.654474e-10, 1.040631e-05, 0.1087085, -0.8977766 + .006},
        {8.106988e-09, 6.983091e-06, 0.1091387, -0.9172048 + .015},
        {9.519571e-09, 7.272678e-06, 0.1090068, -0.9140768 + .025},
        {-5.626821e-09, 1.342186e-05, 0.1083999, -0.9065452 + .05},
        {-9.965946e-08, 5.073548e-05, 0.1040967, -0.7672778 + .085},
        {1.604808e-07, -5.856462e-05, 0.1185998, -1.34824 + .1},
        {-1.511964e-07, 6.363034e-05, 0.1064627, -0.9876665 + .18},
    };
    double realm = log(tr_bw / .0005) / log(2.);
    double const *c0 =
        coefs[((((((((int)realm) > (0)) ? ((int)realm) : (0))) <
                 ((int)(sizeof(coefs) / sizeof(coefs[0])) - 1))
                    ? (((((int)realm) > (0)) ? ((int)realm) : (0)))
                    : ((int)(sizeof(coefs) / sizeof(coefs[0])) - 1)))];
    double const *c1 =
        coefs[(((((((1 + (int)realm) > (0)) ? (1 + (int)realm) : (0))) <
                 ((int)(sizeof(coefs) / sizeof(coefs[0])) - 1))
                    ? ((((1 + (int)realm) > (0)) ? (1 + (int)realm) : (0)))
                    : ((int)(sizeof(coefs) / sizeof(coefs[0])) - 1)))];
    double b0 = ((c0[0] * att + c0[1]) * att + c0[2]) * att + c0[3];
    double b1 = ((c1[0] * att + c1[1]) * att + c1[2]) * att + c1[3];
    return b0 + (b1 - b0) * (realm - (int)realm);
  }
  if (att > 50)
    return .1102 * (att - 8.7);
  if (att > 20.96)
    return .58417 * pow(att - 20.96, .4) + .07886 * (att - 20.96);
  return 0;
}


x86 assembly (clang, -O0):
<lsx_kaiser_beta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xec1(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     136c <lsx_kaiser_beta+0x24c>
movsd  -0x18(%rbp),%xmm0
movsd  0xeea(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <log@plt>
movsd  %xmm0,-0x48(%rbp)
mov    $0x2,%edi
call   1030 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvttsd2si -0x20(%rbp),%eax
cmp    $0x0,%eax
jle    119e <lsx_kaiser_beta+0x7e>
cvttsd2si -0x20(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    11a8 <lsx_kaiser_beta+0x88>
xor    %eax,%eax
mov    %eax,-0x4c(%rbp)
jmp    11a8 <lsx_kaiser_beta+0x88>
mov    -0x4c(%rbp),%eax
cmp    $0x9,%eax
jge    11e4 <lsx_kaiser_beta+0xc4>
cvttsd2si -0x20(%rbp),%eax
cmp    $0x0,%eax
jle    11cf <lsx_kaiser_beta+0xaf>
cvttsd2si -0x20(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    11d9 <lsx_kaiser_beta+0xb9>
xor    %eax,%eax
mov    %eax,-0x50(%rbp)
jmp    11d9 <lsx_kaiser_beta+0xb9>
mov    -0x50(%rbp),%eax
mov    %eax,-0x54(%rbp)
jmp    11f1 <lsx_kaiser_beta+0xd1>
mov    $0x9,%eax
mov    %eax,-0x54(%rbp)
jmp    11f1 <lsx_kaiser_beta+0xd1>
mov    -0x54(%rbp),%eax
movslq %eax,%rcx
lea    0xe52(%rip),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
cvttsd2si -0x20(%rbp),%eax
add    $0x1,%eax
cmp    $0x0,%eax
jle    122a <lsx_kaiser_beta+0x10a>
cvttsd2si -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1234 <lsx_kaiser_beta+0x114>
xor    %eax,%eax
mov    %eax,-0x58(%rbp)
jmp    1234 <lsx_kaiser_beta+0x114>
mov    -0x58(%rbp),%eax
cmp    $0x9,%eax
jge    1276 <lsx_kaiser_beta+0x156>
cvttsd2si -0x20(%rbp),%eax
add    $0x1,%eax
cmp    $0x0,%eax
jle    1261 <lsx_kaiser_beta+0x141>
cvttsd2si -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    126b <lsx_kaiser_beta+0x14b>
xor    %eax,%eax
mov    %eax,-0x5c(%rbp)
jmp    126b <lsx_kaiser_beta+0x14b>
mov    -0x5c(%rbp),%eax
mov    %eax,-0x60(%rbp)
jmp    1283 <lsx_kaiser_beta+0x163>
mov    $0x9,%eax
mov    %eax,-0x60(%rbp)
jmp    1283 <lsx_kaiser_beta+0x163>
mov    -0x60(%rbp),%eax
movslq %eax,%rcx
lea    0xdc0(%rip),%rax
shl    $0x5,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x30(%rbp),%rax
movsd  0x18(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
cvttsd2si -0x20(%rbp),%eax
cvtsi2sd %eax,%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    141e <lsx_kaiser_beta+0x2fe>
movsd  -0x10(%rbp),%xmm0
movsd  0xc8f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    13aa <lsx_kaiser_beta+0x28a>
movsd  -0x10(%rbp),%xmm1
movsd  0xca8(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xc94(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    141e <lsx_kaiser_beta+0x2fe>
movsd  -0x10(%rbp),%xmm0
movsd  0xc59(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1416 <lsx_kaiser_beta+0x2f6>
movsd  -0x10(%rbp),%xmm0
movsd  0xc42(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xc4e(%rip),%xmm1
call   1040 <pow@plt>
movsd  -0x10(%rbp),%xmm2
movsd  0xc24(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  0xc28(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  0xc14(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    141e <lsx_kaiser_beta+0x2fe>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lsx_kaiser_beta>:
sub    $0x28,%rsp
movapd %xmm0,%xmm2
ucomisd 0xed0(%rip),%xmm0
jae    1159 <lsx_kaiser_beta+0x39>
ucomisd 0xed6(%rip),%xmm2
jbe    1230 <lsx_kaiser_beta+0x110>
addsd  0xef8(%rip),%xmm2
mulsd  0xef8(%rip),%xmm2
movapd %xmm2,%xmm0
add    $0x28,%rsp
ret
divsd  0xea7(%rip),%xmm1
cvttsd2si %xmm1,%edi
movapd %xmm2,(%rsp)
call   1030 <log@plt>
movapd %xmm0,0x10(%rsp)
mov    $0x2,%edi
call   1030 <log@plt>
movapd 0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%ecx
movapd %xmm1,%xmm0
xor    %eax,%eax
test   %ecx,%ecx
cmovns %ecx,%eax
mov    $0xffffffff,%edx
cmovns %ecx,%edx
cmp    $0x9,%eax
mov    $0x9,%esi
cmovae %esi,%eax
lea    0xe9e(%rip),%rcx
shl    $0x5,%rax
lea    0x1(%rdx),%edi
cmp    $0x8,%edx
cmovge %esi,%edi
shl    $0x5,%rdi
movsd  (%rdi,%rcx,1),%xmm4
movsd  0x8(%rdi,%rcx,1),%xmm1
movsd  0x10(%rdi,%rcx,1),%xmm2
movsd  0x18(%rdi,%rcx,1),%xmm3
movhpd (%rax,%rcx,1),%xmm4
movhpd 0x8(%rax,%rcx,1),%xmm1
movapd (%rsp),%xmm5
unpcklpd %xmm5,%xmm5
mulpd  %xmm5,%xmm4
movhpd 0x10(%rax,%rcx,1),%xmm2
addpd  %xmm1,%xmm4
mulpd  %xmm5,%xmm4
movhpd 0x18(%rax,%rcx,1),%xmm3
addpd  %xmm2,%xmm4
mulpd  %xmm5,%xmm4
addpd  %xmm3,%xmm4
movapd %xmm4,%xmm1
unpckhpd %xmm4,%xmm1
cvttpd2dq %xmm0,%xmm2
cvtdq2pd %xmm2,%xmm2
subsd  %xmm1,%xmm4
subsd  %xmm2,%xmm0
mulsd  %xmm4,%xmm0
jmp    1271 <lsx_kaiser_beta+0x151>
xorpd  %xmm0,%xmm0
ucomisd 0xddc(%rip),%xmm2
jbe    1275 <lsx_kaiser_beta+0x155>
addsd  0xdda(%rip),%xmm2
movapd %xmm2,(%rsp)
movsd  0xdd5(%rip),%xmm1
movapd %xmm2,%xmm0
call   1040 <pow@plt>
movapd (%rsp),%xmm1
mulsd  0xdc7(%rip),%xmm1
mulsd  0xdc7(%rip),%xmm0
addsd  %xmm1,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
@lsx_kaiser_beta.coefs = internal constant [10 x [4 x double]] [[4 x double] [double 0xBE07501C7DA8196C, double 1.028560e-05, double 0x3FBBD7683141C16B, double 0xBFECBB139C94F69D], [4 x double] [double 0xBE07B3719DA3E76D, double 0x3EE58BFD29AEF688, double 1.087600e-01, double 0xBFECB80A3288E948], [4 x double] [double 0xBE11310CE57FA5C8, double 0x3EE59A43AA232586, double 0x3FBBD833325C739E, double 0xBFECBAB1ACB5D610], [4 x double] [double 0xBDF91D04C6433DB4, double 0x3EE5D2D85B1C9A8E, double 0x3FBBD451FC4C1659, double 0xBFEC896F148AD180], [4 x double] [double 0x3E4168DD21165136, double 0x3EDD4A097025FA20, double 0x3FBBF0838B3A5B46, double 0xBFECDEDC99C96A42], [4 x double] [double 0x3E447170834440F0, double 0x3EDE80FA81AB2475, double 0x3FBBE7DEA10AA723, double 0xBFEC735130743C12], [4 x double] [double 0xBE382AC14F57930F, double 0x3EEC25CE645D3CE9, double 0x3FBBC0188963C170, double 0xBFEB68D17AB17706], [4 x double] [double 0xBE7AC08BC2EB8181, double 0x3F0A9999D19B3B4C, double 0x3FBAA614D21F1C25, double 0xBFE5D53840B92DB4], [4 x double] [double 0x3E858A140B8A4158, double 0xBF0EB46905548C1F, double 0x3FBE5C8E764FE876, double -1.248240e+00], [4 x double] [double 0xBE844B11995991C0, double 0x3F10AE28EAD65D4F, double 0x3FBB4123B6BE6D8E, double 0xBFE9D8676A7264A2]]
define double @lsx_kaiser_beta(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double*
%8 = alloca double*
%9 = alloca double
%10 = alloca double
store double %0, double* %4
store double %1, double* %5
%11 = load double, double* %4
%12 = fcmp oge double %11, 6.000000e+01
br i1 %12, label %13, label %122
13: ; preds = %2
%14 = load double, double* %5
%15 = fdiv double %14, 5.000000e-04
%16 = fptosi double %15 to i32
%17 = call double @log(i32 %16)
%18 = call double @log(i32 2)
%19 = fdiv double %17, %18
store double %19, double* %6
%20 = load double, double* %6
%21 = fptosi double %20 to i32
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %13
%24 = load double, double* %6
%25 = fptosi double %24 to i32
br label %27
26: ; preds = %13
br label %27
27: ; preds = %26, %23
%28 = phi i32 [ %25, %23 ], [ 0, %26 ]
%29 = icmp slt i32 %28, 9
br i1 %29, label %30, label %40
30: ; preds = %27
%31 = load double, double* %6
%32 = fptosi double %31 to i32
%33 = icmp sgt i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load double, double* %6
%36 = fptosi double %35 to i32
br label %38
37: ; preds = %30
br label %38
38: ; preds = %37, %34
%39 = phi i32 [ %36, %34 ], [ 0, %37 ]
br label %41
40: ; preds = %27
br label %41
41: ; preds = %40, %38
%42 = phi i32 [ %39, %38 ], [ 9, %40 ]
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %43
%45 = getelementptr inbounds [4 x double], [4 x double]* %44, i64 0, i64 0
store double* %45, double** %7
%46 = load double, double* %6
%47 = fptosi double %46 to i32
%48 = add nsw i32 1, %47
%49 = icmp sgt i32 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %41
%51 = load double, double* %6
%52 = fptosi double %51 to i32
%53 = add nsw i32 1, %52
br label %55
54: ; preds = %41
br label %55
55: ; preds = %54, %50
%56 = phi i32 [ %53, %50 ], [ 0, %54 ]
%57 = icmp slt i32 %56, 9
br i1 %57, label %58, label %70
58: ; preds = %55
%59 = load double, double* %6
%60 = fptosi double %59 to i32
%61 = add nsw i32 1, %60
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %67
63: ; preds = %58
%64 = load double, double* %6
%65 = fptosi double %64 to i32
%66 = add nsw i32 1, %65
br label %68
67: ; preds = %58
br label %68
68: ; preds = %67, %63
%69 = phi i32 [ %66, %63 ], [ 0, %67 ]
br label %71
70: ; preds = %55
br label %71
71: ; preds = %70, %68
%72 = phi i32 [ %69, %68 ], [ 9, %70 ]
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %73
%75 = getelementptr inbounds [4 x double], [4 x double]* %74, i64 0, i64 0
store double* %75, double** %8
%76 = load double*, double** %7
%77 = getelementptr inbounds double, double* %76, i64 0
%78 = load double, double* %77
%79 = load double, double* %4
%80 = load double*, double** %7
%81 = getelementptr inbounds double, double* %80, i64 1
%82 = load double, double* %81
%83 = call double @llvm.fmuladd.f64(double %78, double %79, double %82)
%84 = load double, double* %4
%85 = load double*, double** %7
%86 = getelementptr inbounds double, double* %85, i64 2
%87 = load double, double* %86
%88 = call double @llvm.fmuladd.f64(double %83, double %84, double %87)
%89 = load double, double* %4
%90 = load double*, double** %7
%91 = getelementptr inbounds double, double* %90, i64 3
%92 = load double, double* %91
%93 = call double @llvm.fmuladd.f64(double %88, double %89, double %92)
store double %93, double* %9
%94 = load double*, double** %8
%95 = getelementptr inbounds double, double* %94, i64 0
%96 = load double, double* %95
%97 = load double, double* %4
%98 = load double*, double** %8
%99 = getelementptr inbounds double, double* %98, i64 1
%100 = load double, double* %99
%101 = call double @llvm.fmuladd.f64(double %96, double %97, double %100)
%102 = load double, double* %4
%103 = load double*, double** %8
%104 = getelementptr inbounds double, double* %103, i64 2
%105 = load double, double* %104
%106 = call double @llvm.fmuladd.f64(double %101, double %102, double %105)
%107 = load double, double* %4
%108 = load double*, double** %8
%109 = getelementptr inbounds double, double* %108, i64 3
%110 = load double, double* %109
%111 = call double @llvm.fmuladd.f64(double %106, double %107, double %110)
store double %111, double* %10
%112 = load double, double* %9
%113 = load double, double* %10
%114 = load double, double* %9
%115 = fsub double %113, %114
%116 = load double, double* %6
%117 = load double, double* %6
%118 = fptosi double %117 to i32
%119 = sitofp i32 %118 to double
%120 = fsub double %116, %119
%121 = call double @llvm.fmuladd.f64(double %115, double %120, double %112)
store double %121, double* %3
br label %141
122: ; preds = %2
%123 = load double, double* %4
%124 = fcmp ogt double %123, 5.000000e+01
br i1 %124, label %125, label %129
125: ; preds = %122
%126 = load double, double* %4
%127 = fsub double %126, 0x4021666666666666
%128 = fmul double 1.102000e-01, %127
store double %128, double* %3
br label %141
129: ; preds = %122
%130 = load double, double* %4
%131 = fcmp ogt double %130, 2.096000e+01
br i1 %131, label %132, label %140
132: ; preds = %129
%133 = load double, double* %4
%134 = fsub double %133, 2.096000e+01
%135 = call double @pow(double %134, double 4.000000e-01)
%136 = load double, double* %4
%137 = fsub double %136, 2.096000e+01
%138 = fmul double 0x3FB4302B40F66A55, %137
%139 = call double @llvm.fmuladd.f64(double 5.841700e-01, double %135, double %138)
store double %139, double* %3
br label %141
140: ; preds = %129
store double 0.000000e+00, double* %3
br label %141
141: ; preds = %140, %132, %125, %71
%142 = load double, double* %3
ret double %142
}

LLVM IR (-O2):
@lsx_kaiser_beta.coefs = internal unnamed_addr constant [10 x [4 x double]] [[4 x double] [double 0xBE07501C7DA8196C, double 1.028560e-05, double 0x3FBBD7683141C16B, double 0xBFECBB139C94F69D], [4 x double] [double 0xBE07B3719DA3E76D, double 0x3EE58BFD29AEF688, double 1.087600e-01, double 0xBFECB80A3288E948], [4 x double] [double 0xBE11310CE57FA5C8, double 0x3EE59A43AA232586, double 0x3FBBD833325C739E, double 0xBFECBAB1ACB5D610], [4 x double] [double 0xBDF91D04C6433DB4, double 0x3EE5D2D85B1C9A8E, double 0x3FBBD451FC4C1659, double 0xBFEC896F148AD180], [4 x double] [double 0x3E4168DD21165136, double 0x3EDD4A097025FA20, double 0x3FBBF0838B3A5B46, double 0xBFECDEDC99C96A42], [4 x double] [double 0x3E447170834440F0, double 0x3EDE80FA81AB2475, double 0x3FBBE7DEA10AA723, double 0xBFEC735130743C12], [4 x double] [double 0xBE382AC14F57930F, double 0x3EEC25CE645D3CE9, double 0x3FBBC0188963C170, double 0xBFEB68D17AB17706], [4 x double] [double 0xBE7AC08BC2EB8181, double 0x3F0A9999D19B3B4C, double 0x3FBAA614D21F1C25, double 0xBFE5D53840B92DB4], [4 x double] [double 0x3E858A140B8A4158, double 0xBF0EB46905548C1F, double 0x3FBE5C8E764FE876, double -1.248240e+00], [4 x double] [double 0xBE844B11995991C0, double 0x3F10AE28EAD65D4F, double 0x3FBB4123B6BE6D8E, double 0xBFE9D8676A7264A2]]
define double @lsx_kaiser_beta(double %0, double %1) {
%3 = fcmp ult double %0, 6.000000e+01
br i1 %3, label %57, label %4
4: ; preds = %2
%5 = fdiv double %1, 5.000000e-04
%6 = fptosi double %5 to i32
%7 = tail call double @log(i32 %6)
%8 = tail call double @log(i32 2)
%9 = fdiv double %7, %8
%10 = fptosi double %9 to i32
%11 = icmp sgt i32 %10, 0
%12 = select i1 %11, i32 %10, i32 0
%13 = icmp ult i32 %12, 9
%14 = select i1 %13, i32 %12, i32 9
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %15, i64 0
%17 = icmp sgt i32 %10, -1
%18 = select i1 %17, i32 %10, i32 -1
%19 = icmp slt i32 %18, 8
%20 = add nsw i32 %18, 1
%21 = select i1 %19, i32 %20, i32 9
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %22, i64 0
%24 = load double, double* %16
%25 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %15, i64 1
%26 = load double, double* %25
%27 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %15, i64 2
%28 = load double, double* %27
%29 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %15, i64 3
%30 = load double, double* %29
%31 = load double, double* %23
%32 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %22, i64 1
%33 = load double, double* %32
%34 = insertelement <2 x double> poison, double %31, i64 0
%35 = insertelement <2 x double> %34, double %24, i64 1
%36 = insertelement <2 x double> poison, double %0, i64 0
%37 = shufflevector <2 x double> %36, <2 x double> poison, <2 x i32> zeroinitializer
%38 = insertelement <2 x double> poison, double %33, i64 0
%39 = insertelement <2 x double> %38, double %26, i64 1
%40 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %35, <2 x double> %37, <2 x double> %39)
%41 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %22, i64 2
%42 = load double, double* %41
%43 = insertelement <2 x double> poison, double %42, i64 0
%44 = insertelement <2 x double> %43, double %28, i64 1
%45 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %40, <2 x double> %37, <2 x double> %44)
%46 = getelementptr inbounds [10 x [4 x double]], [10 x [4 x double]]* @lsx_kaiser_beta.coefs, i64 0, i64 %22, i64 3
%47 = load double, double* %46
%48 = insertelement <2 x double> poison, double %47, i64 0
%49 = insertelement <2 x double> %48, double %30, i64 1
%50 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %37, <2 x double> %49)
%51 = extractelement <2 x double> %50, i64 0
%52 = extractelement <2 x double> %50, i64 1
%53 = fsub double %51, %52
%54 = sitofp i32 %10 to double
%55 = fsub double %9, %54
%56 = tail call double @llvm.fmuladd.f64(double %53, double %55, double %52)
br label %69
57: ; preds = %2
%58 = fcmp ogt double %0, 5.000000e+01
br i1 %58, label %59, label %62
59: ; preds = %57
%60 = fadd double %0, 0xC021666666666666
%61 = fmul double %60, 1.102000e-01
br label %69
62: ; preds = %57
%63 = fcmp ogt double %0, 2.096000e+01
br i1 %63, label %64, label %69
64: ; preds = %62
%65 = fadd double %0, -2.096000e+01
%66 = tail call double @pow(double %65, double 4.000000e-01)
%67 = fmul double %65, 0x3FB4302B40F66A55
%68 = tail call double @llvm.fmuladd.f64(double %66, double 5.841700e-01, double %67)
br label %69
69: ; preds = %62, %64, %59, %4
%70 = phi double [ %56, %4 ], [ %61, %59 ], [ %68, %64 ], [ 0.000000e+00, %62 ]
ret double %70
}