All pastes #2075105 Raw Edit

Someone

public text v1 · immutable
#2075105 ·published 2011-06-05 15:37 UTC
rendered paste body
int __cdecl EQPlayer__ComputeSpecialHeights(signed int a1, int a2, int a3, int a4, int a5, char a6)
{
  int result; // eax@1
  double v7; // st7@10
  double v8; // st7@26
  double v9; // st7@34

  result = a1;
  if ( a1 <= 114 )
  {
    if ( a1 != 114 )
    {
      if ( a1 <= 72 )
      {
        if ( a1 == 72 )
        {
          *(float *)a3 = 1.0;
          *(float *)a4 = 0.1000000014901161;
          v7 = 2.0;
LABEL_37:
          result = a2;
          goto LABEL_38;
        }
        if ( a1 < 26 )
          return result;
        if ( a1 > 27 )
        {
          if ( a1 != 36 )
          {
            if ( a1 != 49 )
            {
              if ( a1 != 50 )
                return result;
              v7 = 5.0;
              goto LABEL_17;
            }
            goto LABEL_35;
          }
LABEL_16:
          *(float *)a5 = *(float *)a4 * 0.75;
          v7 = 3.0;
LABEL_17:
          result = a3;
LABEL_38:
          *(float *)result = v7;
          return result;
        }
LABEL_32:
        result = a3;
        v7 = *(float *)a3 * 0.75;
        goto LABEL_38;
      }
      if ( a1 != 73 )
      {
        if ( a1 != 91 )
        {
          if ( a1 != 108 )
            return result;
          *(float *)a3 = 3.0;
          *(float *)a4 = 3.0;
          v7 = 0.05000000074505806;
          goto LABEL_37;
        }
        goto LABEL_16;
      }
    }
    goto LABEL_33;
  }
  if ( a1 > 171 )
  {
    if ( a1 != 196 )
    {
      if ( a1 != 252 )
      {
        result = a1 - 330;
        if ( a1 != 330 )
          return result;
        goto LABEL_32;
      }
      goto LABEL_33;
    }
    goto LABEL_35;
  }
  if ( a1 == 171 || a1 == 120 )
  {
    result = a3;
    *(float *)a3 = 3.900000095367432;
    if ( !a6 )
      return result;
    v7 = 2.5;
    result = a4;
    goto LABEL_38;
  }
  if ( a1 == 141 )
  {
LABEL_33:
    v8 = 1.0;
    goto LABEL_34;
  }
  if ( a1 <= 141 )
    return result;
  if ( a1 <= 143 )
  {
    v8 = 6.0;
LABEL_34:
    *(float *)a3 = v8;
    v9 = 0.1000000014901161;
LABEL_36:
    *(float *)a4 = v9;
    v7 = 1.0;
    goto LABEL_37;
  }
  if ( a1 == 158 )
  {
LABEL_35:
    *(float *)a3 = 34.5;
    v9 = 20.0;
    goto LABEL_36;
  }
  return result;
}