#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 */

/* Variables and functions */
float init_newtonf(float, float, float, float, float);
float sqrtf(float);
float babl_pow_1_24f(float x) {
  float y =
      init_newtonf(x, -1.f / 12, 0.9976800269f, 0.9885126933f, 0.5908575383f);
  int i;
  float z;
  x = sqrtf(x);
  z = (1.f / 6.f) * x;
  for (i = 0; i < 3; i++)
    y = (7.f / 6.f) * y - z * ((y * y) * (y * y) * (y * y * y));
  return x * y;
}


x86 assembly (clang, -O0):
<babl_pow_1_24f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xeca(%rip),%xmm1
movss  0xec6(%rip),%xmm2
movss  0xec2(%rip),%xmm3
movss  0xebe(%rip),%xmm4
call   1040 <init_newtonf@plt>
movss  %xmm0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <sqrtf@plt>
movss  %xmm0,-0x4(%rbp)
movss  0xe8d(%rip),%xmm0
mulss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    11f7 <babl_pow_1_24f+0xd7>
movss  -0x8(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x8(%rbp),%xmm2
mulss  -0x8(%rbp),%xmm2
movss  -0x8(%rbp),%xmm3
mulss  -0x8(%rbp),%xmm3
mulss  %xmm3,%xmm2
movss  -0x8(%rbp),%xmm3
mulss  -0x8(%rbp),%xmm3
mulss  -0x8(%rbp),%xmm3
mulss  %xmm3,%xmm2
mulss  %xmm2,%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
movss  0xe38(%rip),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1184 <babl_pow_1_24f+0x64>
movss  -0x4(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<babl_pow_1_24f>:
push   %rax
movss  %xmm0,0x4(%rsp)
movss  0xed1(%rip),%xmm1
movss  0xecd(%rip),%xmm2
movss  0xec9(%rip),%xmm3
movss  0xec5(%rip),%xmm4
call   1040 <init_newtonf@plt>
movaps %xmm0,%xmm5
xorps  %xmm0,%xmm0
movss  0x4(%rsp),%xmm1
ucomiss %xmm0,%xmm1
movaps %xmm1,%xmm0
jb     1166 <babl_pow_1_24f+0x46>
sqrtss %xmm0,%xmm0
jmp    1177 <babl_pow_1_24f+0x57>
movss  %xmm5,0x4(%rsp)
call   1030 <sqrtf@plt>
movss  0x4(%rsp),%xmm5
movss  0xe91(%rip),%xmm1
mulss  %xmm0,%xmm1
movaps %xmm5,%xmm2
mulss  %xmm5,%xmm2
movaps %xmm5,%xmm3
mulss  %xmm2,%xmm3
mulss  %xmm2,%xmm2
mulss  %xmm3,%xmm2
mulss  %xmm1,%xmm2
movss  0xe6f(%rip),%xmm3
mulss  %xmm3,%xmm5
addss  %xmm2,%xmm5
movaps %xmm5,%xmm2
mulss  %xmm5,%xmm2
movaps %xmm5,%xmm4
mulss  %xmm2,%xmm4
mulss  %xmm2,%xmm2
mulss  %xmm4,%xmm2
mulss  %xmm1,%xmm2
mulss  %xmm3,%xmm5
addss  %xmm2,%xmm5
movaps %xmm5,%xmm2
mulss  %xmm5,%xmm2
movaps %xmm5,%xmm4
mulss  %xmm2,%xmm4
mulss  %xmm2,%xmm2
mulss  %xmm4,%xmm2
mulss  %xmm1,%xmm2
mulss  %xmm3,%xmm5
addss  %xmm2,%xmm5
mulss  %xmm0,%xmm5
movaps %xmm5,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @babl_pow_1_24f(float %0) {
%2 = alloca float
%3 = alloca float
%4 = alloca i32
%5 = alloca float
store float %0, float* %2
%6 = load float, float* %2
%7 = call float @init_newtonf(float %6, float 0xBFB5555560000000, float 0x3FEFECFEA0000000, float 0x3FEFA1E560000000, float 0x3FE2E84E20000000)
store float %7, float* %3
%8 = load float, float* %2
%9 = call float @sqrtf(float %8)
store float %9, float* %2
%10 = load float, float* %2
%11 = fmul float 0x3FC5555560000000, %10
store float %11, float* %5
store i32 0, i32* %4
br label %12
12: ; preds = %34, %1
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 3
br i1 %14, label %15, label %37
15: ; preds = %12
%16 = load float, float* %3
%17 = load float, float* %5
%18 = load float, float* %3
%19 = load float, float* %3
%20 = fmul float %18, %19
%21 = load float, float* %3
%22 = load float, float* %3
%23 = fmul float %21, %22
%24 = fmul float %20, %23
%25 = load float, float* %3
%26 = load float, float* %3
%27 = fmul float %25, %26
%28 = load float, float* %3
%29 = fmul float %27, %28
%30 = fmul float %24, %29
%31 = fmul float %17, %30
%32 = fneg float %31
%33 = call float @llvm.fmuladd.f32(float 0x3FF2AAAAA0000000, float %16, float %32)
store float %33, float* %3
br label %34
34: ; preds = %15
%35 = load i32, i32* %4
%36 = add nsw i32 %35, 1
store i32 %36, i32* %4
br label %12
37: ; preds = %12
%38 = load float, float* %2
%39 = load float, float* %3
%40 = fmul float %38, %39
ret float %40
}

LLVM IR (-O2):
define float @babl_pow_1_24f(float %0) {
%2 = tail call float @init_newtonf(float %0, float 0xBFB5555560000000, float 0x3FEFECFEA0000000, float 0x3FEFA1E560000000, float 0x3FE2E84E20000000)
%3 = tail call float @sqrtf(float %0)
%4 = fmul float %3, 0xBFC5555560000000
%5 = fmul float %2, %2
%6 = fmul float %5, %5
%7 = fmul float %2, %5
%8 = fmul float %6, %7
%9 = fmul float %4, %8
%10 = tail call float @llvm.fmuladd.f32(float %2, float 0x3FF2AAAAA0000000, float %9)
%11 = fmul float %10, %10
%12 = fmul float %11, %11
%13 = fmul float %10, %11
%14 = fmul float %12, %13
%15 = fmul float %4, %14
%16 = tail call float @llvm.fmuladd.f32(float %10, float 0x3FF2AAAAA0000000, float %15)
%17 = fmul float %16, %16
%18 = fmul float %17, %17
%19 = fmul float %16, %17
%20 = fmul float %18, %19
%21 = fmul float %4, %20
%22 = tail call float @llvm.fmuladd.f32(float %16, float 0x3FF2AAAAA0000000, float %21)
%23 = fmul float %3, %22
ret float %23
}