#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 expf(float);
void emphasis_stage_roots(float gain, float normalized_frequency, float *zero,
                          float *pole) {
  float gk = 1 - gain / 20;
  float f1 = normalized_frequency * gk;
  float f2 = normalized_frequency / gk;
  *zero = expf(-f1 * 3.141592653589793f);
  *pole = expf(-f2 * 3.141592653589793f);
}


x86 assembly (clang, -O0):
<emphasis_stage_roots>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movss  -0x4(%rbp),%xmm1
movss  0xed1(%rip),%xmm0
divss  %xmm0,%xmm1
movss  0xec1(%rip),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm0
mulss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x8(%rbp),%xmm0
divss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x20(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  0xe7c(%rip),%xmm1
mulss  %xmm1,%xmm0
call   1030 <expf@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x24(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  0xe51(%rip),%xmm1
mulss  %xmm1,%xmm0
call   1030 <expf@plt>
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<emphasis_stage_roots>:
push   %r14
push   %rbx
sub    $0x28,%rsp
divss  0xee1(%rip),%xmm0
mov    %rsi,%r14
mov    %rdi,%rbx
movaps %xmm1,(%rsp)
addss  0xed3(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
xorps  0xed3(%rip),%xmm0
mulss  %xmm1,%xmm0
mulss  0xebf(%rip),%xmm0
call   1030 <expf@plt>
movss  %xmm0,(%rbx)
movaps (%rsp),%xmm0
xorps  0xeb3(%rip),%xmm0
divss  0x10(%rsp),%xmm0
mulss  0xe9d(%rip),%xmm0
call   1030 <expf@plt>
movss  %xmm0,(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @emphasis_stage_roots(float %0, float %1, float* %2, float* %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float*
%8 = alloca float*
%9 = alloca float
%10 = alloca float
%11 = alloca float
store float %0, float* %5
store float %1, float* %6
store float* %2, float** %7
store float* %3, float** %8
%12 = load float, float* %5
%13 = fdiv float %12, 2.000000e+01
%14 = fsub float 1.000000e+00, %13
store float %14, float* %9
%15 = load float, float* %6
%16 = load float, float* %9
%17 = fmul float %15, %16
store float %17, float* %10
%18 = load float, float* %6
%19 = load float, float* %9
%20 = fdiv float %18, %19
store float %20, float* %11
%21 = load float, float* %10
%22 = fneg float %21
%23 = fmul float %22, 0x400921FB60000000
%24 = call float @expf(float %23)
%25 = load float*, float** %7
store float %24, float* %25
%26 = load float, float* %11
%27 = fneg float %26
%28 = fmul float %27, 0x400921FB60000000
%29 = call float @expf(float %28)
%30 = load float*, float** %8
store float %29, float* %30
ret void
}

LLVM IR (-O2):
define void @emphasis_stage_roots(float %0, float %1, float* nocapture writeonly %2, float* nocapture writeonly %3) {
%5 = fdiv float %0, 2.000000e+01
%6 = fsub float 1.000000e+00, %5
%7 = fneg float %6
%8 = fmul float %7, %1
%9 = fmul float %8, 0x400921FB60000000
%10 = tail call float @expf(float %9)
store float %10, float* %2
%11 = fneg float %1
%12 = fdiv float %11, %6
%13 = fmul float %12, 0x400921FB60000000
%14 = tail call float @expf(float %13)
store float %14, float* %3
ret void
}