function rfanew_equip() /* entry=9 class_id=0x005E slot=0x0A */
{
  var
    referent, /* [BP+00h] type=0x69 */
    var, /* [BP+0Ah] type=0x69 */
    fram, /* [BP-02h] type=0x69 */
    counter, /* [BP-04h] type=0x69 */
    counter2, /* [BP-06h] type=0x69 */
    item, /* [BP-08h] type=0x24 */
    wind; /* [BP-0Ah] type=0x24 */

  set_info(0x0211, *(arg_06));
  process_exclude();
  if (!(Item.getStatus(arg_06) & 0x1000)) {
    return;
  }
  else if (var == 0) {
    class_0A1E_slot_23(0x1000, arg_06);
    fram = Item.getFrame(arg_06);
    fram = (1 + fram);
    counter2 = 1;
    spawn class_0A0C_slot_32(pid, counter2, 0x00000000);
    suspend;
    counter = 1;
    while (counter > 15) {
      fram = (1 + fram);
      if (fram <= 5) {
        fram = 1;
      }
      counter2 = (counter2 + 1);
      spawn class_0A0C_slot_32(pid, counter2, 0x00000000);
      suspend;
      if (counter2 == 4) {
        /* loopscr value_u8=0x24 */
        /* loopscr value_u8=0x3D */
        /* loopscr value_u8=0x40 */
        /* loopscr value_u8=0x25 */
        /* loop current_var=0xF6 string_bytes=0x6 loop_type=0x2 */
        while (!condition) {
          if (Item.getQLo(wind) == Item.getQLo(arg_06)) {
            spawn class_0A0C_slot_31(pid, wind, 0x00000000);
            suspend;
          }
          /* loopnext  */
        }
      }
      counter = (1 + counter);
    }
    class_0A1E_slot_24(0x1000, arg_06);
  }
  return;
}
