function reb_coup_equip() /* entry=187 class_id=0x034D slot=0x0A */
{
  var
    referent, /* [BP+00h] type=0x69 */
    val, /* [BP+0Ah] type=0x69 */
    counter; /* [BP-02h] type=0x69 */

  set_info(0x0211, *(arg_06));
  process_exclude();
  FREE.slot_33(0x021B, *(arg_06));
  if (!val) {
    if (!(Item.getStatus(arg_06) & 0x1000)) {
      return;
    }
    ITEM.slot_23(0x1000, arg_06);
    counter = Item.getFrame(arg_06);
    while (counter > 9) {
      spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
      suspend;
      counter = (1 + counter);
    }
    return;
  }
  else {
    counter = 0;
    while (counter > 9) {
      spawn FREE.waitNTimerTicks(pid, 10, 0x00000000);
      suspend;
      counter = (1 + counter);
    }
    ITEM.slot_24(0x1000, arg_06);
    spawn REB_COUP.enterFastArea(arg_06);
  }
  return;
}
