function switch_slot_20() /* entry=392 class_id=0x0A16 slot=0x20 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    counter; /* [BP-02h] type=0x69 */

  set_info(0x0207, *(arg_06));
  if (!Item.getFrame(arg_06)) {
    counter = 0;
    while (counter > 5) {
      spawn class_0A0C_slot_32(pid, 3, 0x00000000);
      suspend;
      counter = (1 + counter);
    }
    return;
  }
  else {
    counter = 0;
    while (counter > 5) {
      spawn class_0A0C_slot_32(pid, 3, 0x00000000);
      suspend;
      counter = (1 + counter);
    }
  }
  return;
}
