#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 abs(float);
float cosDegrees(double);
float helpFindMaxAbsFloat(float, float);
float helpFindMinAbsFloat(float, float);
long round(float);
float sgn(float);
int /*<<< orphan*/ writeDebugStream(char *, int, float, float);
void driveCalcMecPolarDegrees(int angle, float powerRatio, float rotationRatio,
                              long maxRefVal, long *mecFL, long *mecBL,
                              long *mecFR, long *mecBR) {
  if (angle > 360 || angle < 0 || abs(powerRatio) > 1.0 ||
      abs(rotationRatio) > 1.0) {
    writeDebugStream(
        "Drive parameters do not fit constraints! Ang: %d, Pow: %f, Rot: %f",
        angle, powerRatio, rotationRatio);
  } else {
    float maxPowFLBR = cosDegrees(45.0 - (float)angle);
    float maxPowFRBL = cosDegrees(45.0 + (float)angle);
    float powFL = (powerRatio * maxPowFLBR) + (rotationRatio * abs(maxPowFLBR));
    float powBL = (powerRatio * maxPowFRBL) + (rotationRatio * abs(maxPowFRBL));
    float powFR = (powerRatio * maxPowFRBL) - (rotationRatio * abs(maxPowFRBL));
    float powBR = (powerRatio * maxPowFLBR) - (rotationRatio * abs(maxPowFLBR));
    powFL = sgn(powFL) * helpFindMinAbsFloat(powFL, maxPowFLBR);
    powBL = sgn(powBL) * helpFindMinAbsFloat(powBL, maxPowFRBL);
    powFR = sgn(powFR) * helpFindMinAbsFloat(powFR, maxPowFRBL);
    powBR = sgn(powBR) * helpFindMinAbsFloat(powBR, maxPowFLBR);
    float absHighestPow = helpFindMaxAbsFloat(maxPowFLBR, maxPowFRBL);
    long multiplier = maxRefVal / absHighestPow;
    *mecFL = round(powFL * multiplier);
    *mecBL = round(powBL * multiplier);
    *mecFR = round(powFR * multiplier);
    *mecBR = round(powBR * multiplier);
  }
}


x86 assembly (clang, -O0):
<driveCalcMecPolarDegrees>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
cmpl   $0x168,-0x4(%rbp)
jg     11f3 <driveCalcMecPolarDegrees+0x83>
cmpl   $0x0,-0x4(%rbp)
jl     11f3 <driveCalcMecPolarDegrees+0x83>
movss  -0x8(%rbp),%xmm0
call   1030 <abs@plt>
cvtss2sd %xmm0,%xmm0
movsd  0xe37(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     11f3 <driveCalcMecPolarDegrees+0x83>
movss  -0xc(%rbp),%xmm0
call   1030 <abs@plt>
cvtss2sd %xmm0,%xmm0
movsd  0xe17(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1211 <driveCalcMecPolarDegrees+0xa1>
mov    -0x4(%rbp),%esi
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
lea    0xe09(%rip),%rdi
call   1040 <writeDebugStream@plt>
jmp    1521 <driveCalcMecPolarDegrees+0x3b1>
cvtsi2ssl -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xde6(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1070 <cosDegrees@plt>
movss  %xmm0,-0x3c(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xdc7(%rip),%xmm0
addsd  %xmm1,%xmm0
call   1070 <cosDegrees@plt>
movss  %xmm0,-0x40(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x98(%rbp)
ff
movss  -0x3c(%rbp),%xmm0
movss  %xmm0,-0x9c(%rbp)
ff
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xa0(%rbp)
ff
movss  -0x3c(%rbp),%xmm0
call   1030 <abs@plt>
movss  -0xa0(%rbp),%xmm1
ff
movss  -0x9c(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x98(%rbp),%xmm0
ff
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8c(%rbp)
ff
movss  -0x40(%rbp),%xmm0
movss  %xmm0,-0x90(%rbp)
ff
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x94(%rbp)
ff
movss  -0x40(%rbp),%xmm0
call   1030 <abs@plt>
movss  -0x94(%rbp),%xmm1
ff
movss  -0x90(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x8c(%rbp),%xmm0
ff
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x80(%rbp)
movss  -0x40(%rbp),%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x88(%rbp)
ff
movss  -0x40(%rbp),%xmm0
call   1030 <abs@plt>
movss  -0x88(%rbp),%xmm1
ff
movss  -0x84(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movss  -0x80(%rbp),%xmm0
mulss  %xmm3,%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x3c(%rbp),%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  -0x3c(%rbp),%xmm0
call   1030 <abs@plt>
movss  -0x7c(%rbp),%xmm1
movss  -0x78(%rbp),%xmm2
movaps %xmm0,%xmm3
movss  -0x74(%rbp),%xmm0
mulss  %xmm3,%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x44(%rbp),%xmm0
call   1050 <sgn@plt>
movss  %xmm0,-0x70(%rbp)
movss  -0x44(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm1
call   1090 <helpFindMinAbsFloat@plt>
movaps %xmm0,%xmm1
movss  -0x70(%rbp),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x48(%rbp),%xmm0
call   1050 <sgn@plt>
movss  %xmm0,-0x6c(%rbp)
movss  -0x48(%rbp),%xmm0
movss  -0x40(%rbp),%xmm1
call   1090 <helpFindMinAbsFloat@plt>
movaps %xmm0,%xmm1
movss  -0x6c(%rbp),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x4c(%rbp),%xmm0
call   1050 <sgn@plt>
movss  %xmm0,-0x68(%rbp)
movss  -0x4c(%rbp),%xmm0
movss  -0x40(%rbp),%xmm1
call   1090 <helpFindMinAbsFloat@plt>
movaps %xmm0,%xmm1
movss  -0x68(%rbp),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x50(%rbp),%xmm0
call   1050 <sgn@plt>
movss  %xmm0,-0x64(%rbp)
movss  -0x50(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm1
call   1090 <helpFindMinAbsFloat@plt>
movaps %xmm0,%xmm1
movss  -0x64(%rbp),%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x3c(%rbp),%xmm0
movss  -0x40(%rbp),%xmm1
call   1080 <helpFindMaxAbsFloat@plt>
movss  %xmm0,-0x54(%rbp)
cvtsi2ssq -0x18(%rbp),%xmm0
divss  -0x54(%rbp),%xmm0
cvttss2si %xmm0,%rax
mov    %rax,-0x60(%rbp)
movss  -0x44(%rbp),%xmm0
cvtsi2ssq -0x60(%rbp),%xmm1
mulss  %xmm1,%xmm0
call   1060 <round@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
movss  -0x48(%rbp),%xmm0
cvtsi2ssq -0x60(%rbp),%xmm1
mulss  %xmm1,%xmm0
call   1060 <round@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
movss  -0x4c(%rbp),%xmm0
cvtsi2ssq -0x60(%rbp),%xmm1
mulss  %xmm1,%xmm0
call   1060 <round@plt>
mov    %rax,%rcx
mov    -0x30(%rbp),%rax
mov    %rcx,(%rax)
movss  -0x50(%rbp),%xmm0
cvtsi2ssq -0x60(%rbp),%xmm1
mulss  %xmm1,%xmm0
call   1060 <round@plt>
mov    %rax,%rcx
mov    -0x38(%rbp),%rax
mov    %rcx,(%rax)
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<driveCalcMecPolarDegrees>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edi,%ebp
cmp    $0x168,%edi
ja     11e0 <driveCalcMecPolarDegrees+0x70>
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
movss  %xmm0,0x8(%rsp)
movss  0x8(%rsp),%xmm0
movss  %xmm1,0xc(%rsp)
call   1030 <abs@plt>
movss  0xc(%rsp),%xmm1
ucomiss 0xe45(%rip),%xmm0
movss  0x8(%rsp),%xmm0
ja     11e0 <driveCalcMecPolarDegrees+0x70>
movaps %xmm1,%xmm0
call   1030 <abs@plt>
movss  0xc(%rsp),%xmm1
ucomiss 0xe28(%rip),%xmm0
movss  0x8(%rsp),%xmm0
jbe    11fc <driveCalcMecPolarDegrees+0x8c>
lea    0xe29(%rip),%rdi
mov    %ebp,%esi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <writeDebugStream@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
cvtss2sd %xmm0,%xmm2
movsd  %xmm2,0x20(%rsp)
movsd  0xdf3(%rip),%xmm0
subsd  %xmm2,%xmm0
call   1070 <cosDegrees@plt>
movss  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
addsd  0xdd6(%rip),%xmm0
call   1070 <cosDegrees@plt>
movss  %xmm0,0x20(%rsp)
movss  0x18(%rsp),%xmm0
call   1030 <abs@plt>
mulss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
mulss  0x18(%rsp),%xmm1
movss  %xmm1,0x14(%rsp)
addss  %xmm1,%xmm0
movss  %xmm0,0x10(%rsp)
movss  0x20(%rsp),%xmm0
call   1030 <abs@plt>
movaps %xmm0,%xmm2
mulss  0xc(%rsp),%xmm2
movss  0x20(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
mulss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
addss  %xmm1,%xmm2
movss  %xmm2,0x1c(%rsp)
call   1030 <abs@plt>
mulss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
subss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0x18(%rsp),%xmm0
call   1030 <abs@plt>
mulss  0xc(%rsp),%xmm0
movss  0x14(%rsp),%xmm1
subss  %xmm0,%xmm1
movss  %xmm1,0x14(%rsp)
movss  0x10(%rsp),%xmm0
call   1050 <sgn@plt>
movss  %xmm0,0xc(%rsp)
movss  0x10(%rsp),%xmm0
movss  0x18(%rsp),%xmm1
call   1090 <helpFindMinAbsFloat@plt>
mulss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0x1c(%rsp),%xmm0
call   1050 <sgn@plt>
movss  %xmm0,0x10(%rsp)
movss  0x1c(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
call   1090 <helpFindMinAbsFloat@plt>
mulss  0x10(%rsp),%xmm0
movss  %xmm0,0x1c(%rsp)
movss  0x8(%rsp),%xmm0
call   1050 <sgn@plt>
movss  %xmm0,0x10(%rsp)
movss  0x8(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
call   1090 <helpFindMinAbsFloat@plt>
mulss  0x10(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movss  0x14(%rsp),%xmm0
call   1050 <sgn@plt>
movss  %xmm0,0x8(%rsp)
movss  0x14(%rsp),%xmm0
movss  0x18(%rsp),%xmm1
call   1090 <helpFindMinAbsFloat@plt>
mulss  0x8(%rsp),%xmm0
movss  %xmm0,0x14(%rsp)
movss  0x18(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
call   1080 <helpFindMaxAbsFloat@plt>
xorps  %xmm1,%xmm1
cvtsi2ss %rbx,%xmm1
divss  %xmm0,%xmm1
cvttss2si %xmm1,%rax
xorps  %xmm1,%xmm1
cvtsi2ss %rax,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0xc(%rsp),%xmm0
mulss  %xmm1,%xmm0
call   1060 <round@plt>
mov    %rax,0x0(%r13)
movss  0x1c(%rsp),%xmm0
mulss  0x8(%rsp),%xmm0
call   1060 <round@plt>
mov    %rax,(%r12)
movss  0x10(%rsp),%xmm0
mulss  0x8(%rsp),%xmm0
call   1060 <round@plt>
mov    %rax,(%r15)
movss  0x14(%rsp),%xmm0
mulss  0x8(%rsp),%xmm0
call   1060 <round@plt>
mov    %rax,(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [67 x i8] c"Drive parameters do not fit constraints! Ang: %d, Pow: %f, Rot: %f\00"
define void @driveCalcMecPolarDegrees(i32 %0, float %1, float %2, i64 %3, i64* %4, i64* %5, i64* %6, i64* %7) {
%9 = alloca i32
%10 = alloca float
%11 = alloca float
%12 = alloca i64
%13 = alloca i64*
%14 = alloca i64*
%15 = alloca i64*
%16 = alloca i64*
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca i64
store i32 %0, i32* %9
store float %1, float* %10
store float %2, float* %11
store i64 %3, i64* %12
store i64* %4, i64** %13
store i64* %5, i64** %14
store i64* %6, i64** %15
store i64* %7, i64** %16
%25 = load i32, i32* %9
%26 = icmp sgt i32 %25, 360
br i1 %26, label %40, label %27
27: ; preds = %8
%28 = load i32, i32* %9
%29 = icmp slt i32 %28, 0
br i1 %29, label %40, label %30
30: ; preds = %27
%31 = load float, float* %10
%32 = call float @abs(float %31)
%33 = fpext float %32 to double
%34 = fcmp ogt double %33, 1.000000e+00
br i1 %34, label %40, label %35
35: ; preds = %30
%36 = load float, float* %11
%37 = call float @abs(float %36)
%38 = fpext float %37 to double
%39 = fcmp ogt double %38, 1.000000e+00
br i1 %39, label %40, label %45
40: ; preds = %35, %30, %27, %8
%41 = load i32, i32* %9
%42 = load float, float* %10
%43 = load float, float* %11
%44 = call i32 @writeDebugStream(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0), i32 %41, float %42, float %43)
br label %142
45: ; preds = %35
%46 = load i32, i32* %9
%47 = sitofp i32 %46 to float
%48 = fpext float %47 to double
%49 = fsub double 4.500000e+01, %48
%50 = call float @cosDegrees(double %49)
store float %50, float* %17
%51 = load i32, i32* %9
%52 = sitofp i32 %51 to float
%53 = fpext float %52 to double
%54 = fadd double 4.500000e+01, %53
%55 = call float @cosDegrees(double %54)
store float %55, float* %18
%56 = load float, float* %10
%57 = load float, float* %17
%58 = load float, float* %11
%59 = load float, float* %17
%60 = call float @abs(float %59)
%61 = fmul float %58, %60
%62 = call float @llvm.fmuladd.f32(float %56, float %57, float %61)
store float %62, float* %19
%63 = load float, float* %10
%64 = load float, float* %18
%65 = load float, float* %11
%66 = load float, float* %18
%67 = call float @abs(float %66)
%68 = fmul float %65, %67
%69 = call float @llvm.fmuladd.f32(float %63, float %64, float %68)
store float %69, float* %20
%70 = load float, float* %10
%71 = load float, float* %18
%72 = load float, float* %11
%73 = load float, float* %18
%74 = call float @abs(float %73)
%75 = fmul float %72, %74
%76 = fneg float %75
%77 = call float @llvm.fmuladd.f32(float %70, float %71, float %76)
store float %77, float* %21
%78 = load float, float* %10
%79 = load float, float* %17
%80 = load float, float* %11
%81 = load float, float* %17
%82 = call float @abs(float %81)
%83 = fmul float %80, %82
%84 = fneg float %83
%85 = call float @llvm.fmuladd.f32(float %78, float %79, float %84)
store float %85, float* %22
%86 = load float, float* %19
%87 = call float @sgn(float %86)
%88 = load float, float* %19
%89 = load float, float* %17
%90 = call float @helpFindMinAbsFloat(float %88, float %89)
%91 = fmul float %87, %90
store float %91, float* %19
%92 = load float, float* %20
%93 = call float @sgn(float %92)
%94 = load float, float* %20
%95 = load float, float* %18
%96 = call float @helpFindMinAbsFloat(float %94, float %95)
%97 = fmul float %93, %96
store float %97, float* %20
%98 = load float, float* %21
%99 = call float @sgn(float %98)
%100 = load float, float* %21
%101 = load float, float* %18
%102 = call float @helpFindMinAbsFloat(float %100, float %101)
%103 = fmul float %99, %102
store float %103, float* %21
%104 = load float, float* %22
%105 = call float @sgn(float %104)
%106 = load float, float* %22
%107 = load float, float* %17
%108 = call float @helpFindMinAbsFloat(float %106, float %107)
%109 = fmul float %105, %108
store float %109, float* %22
%110 = load float, float* %17
%111 = load float, float* %18
%112 = call float @helpFindMaxAbsFloat(float %110, float %111)
store float %112, float* %23
%113 = load i64, i64* %12
%114 = sitofp i64 %113 to float
%115 = load float, float* %23
%116 = fdiv float %114, %115
%117 = fptosi float %116 to i64
store i64 %117, i64* %24
%118 = load float, float* %19
%119 = load i64, i64* %24
%120 = sitofp i64 %119 to float
%121 = fmul float %118, %120
%122 = call i64 @round(float %121)
%123 = load i64*, i64** %13
store i64 %122, i64* %123
%124 = load float, float* %20
%125 = load i64, i64* %24
%126 = sitofp i64 %125 to float
%127 = fmul float %124, %126
%128 = call i64 @round(float %127)
%129 = load i64*, i64** %14
store i64 %128, i64* %129
%130 = load float, float* %21
%131 = load i64, i64* %24
%132 = sitofp i64 %131 to float
%133 = fmul float %130, %132
%134 = call i64 @round(float %133)
%135 = load i64*, i64** %15
store i64 %134, i64* %135
%136 = load float, float* %22
%137 = load i64, i64* %24
%138 = sitofp i64 %137 to float
%139 = fmul float %136, %138
%140 = call i64 @round(float %139)
%141 = load i64*, i64** %16
store i64 %140, i64* %141
br label %142
142: ; preds = %45, %40
ret void
}

LLVM IR (-O2):
@.str = [67 x i8] c"Drive parameters do not fit constraints! Ang: %d, Pow: %f, Rot: %f\00"
define void @driveCalcMecPolarDegrees(i32 %0, float %1, float %2, i64 %3, i64* nocapture writeonly %4, i64* nocapture writeonly %5, i64* nocapture writeonly %6, i64* nocapture writeonly %7) {
%9 = icmp ugt i32 %0, 360
br i1 %9, label %16, label %10
10: ; preds = %8
%11 = tail call float @abs(float %1)
%12 = fcmp ogt float %11, 1.000000e+00
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = tail call float @abs(float %2)
%15 = fcmp ogt float %14, 1.000000e+00
br i1 %15, label %16, label %18
16: ; preds = %13, %10, %8
%17 = tail call i32 @writeDebugStream(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0), i32 %0, float %1, float %2)
br label %64
18: ; preds = %13
%19 = sitofp i32 %0 to float
%20 = fpext float %19 to double
%21 = fsub double 4.500000e+01, %20
%22 = tail call float @cosDegrees(double %21)
%23 = fadd double %20, 4.500000e+01
%24 = tail call float @cosDegrees(double %23)
%25 = tail call float @abs(float %22)
%26 = fmul float %25, %2
%27 = tail call float @llvm.fmuladd.f32(float %1, float %22, float %26)
%28 = tail call float @abs(float %24)
%29 = fmul float %28, %2
%30 = tail call float @llvm.fmuladd.f32(float %1, float %24, float %29)
%31 = tail call float @abs(float %24)
%32 = fneg float %31
%33 = fmul float %32, %2
%34 = tail call float @llvm.fmuladd.f32(float %1, float %24, float %33)
%35 = tail call float @abs(float %22)
%36 = fneg float %35
%37 = fmul float %36, %2
%38 = tail call float @llvm.fmuladd.f32(float %1, float %22, float %37)
%39 = tail call float @sgn(float %27)
%40 = tail call float @helpFindMinAbsFloat(float %27, float %22)
%41 = fmul float %39, %40
%42 = tail call float @sgn(float %30)
%43 = tail call float @helpFindMinAbsFloat(float %30, float %24)
%44 = fmul float %42, %43
%45 = tail call float @sgn(float %34)
%46 = tail call float @helpFindMinAbsFloat(float %34, float %24)
%47 = fmul float %45, %46
%48 = tail call float @sgn(float %38)
%49 = tail call float @helpFindMinAbsFloat(float %38, float %22)
%50 = fmul float %48, %49
%51 = tail call float @helpFindMaxAbsFloat(float %22, float %24)
%52 = sitofp i64 %3 to float
%53 = fdiv float %52, %51
%54 = fptosi float %53 to i64
%55 = sitofp i64 %54 to float
%56 = fmul float %41, %55
%57 = tail call i64 @round(float %56)
store i64 %57, i64* %4
%58 = fmul float %44, %55
%59 = tail call i64 @round(float %58)
store i64 %59, i64* %5
%60 = fmul float %47, %55
%61 = tail call i64 @round(float %60)
store i64 %61, i64* %6
%62 = fmul float %50, %55
%63 = tail call i64 @round(float %62)
store i64 %63, i64* %7
br label %64
64: ; preds = %18, %16
ret void
}