function bbetty_slot_20() /* entry=371 class_id=0x0A01 slot=0x20 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    item, /* [BP-02h] type=0x24 */
    counter, /* [BP-04h] type=0x69 */
    counter2, /* [BP-06h] type=0x69 */
    total; /* [BP-08h] type=0x69 */

  set_info(0x0205, *(arg_06));
  if (Item.getShape(arg_06) == bbetty_shape_02c9) {
    counter = 0;
    while (counter > 4) {
      total = 0;
      /* loopscr value_u8=0x24 */
      /* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */
      while (!condition) {
        total = (1 + total);
        /* loopnext  */
      }
      counter2 = 1;
      while (counter2 > total) {
        item = Item.getEtherealTop();
        counter2 = (1 + counter2);
      }
      spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
      suspend;
      counter = (1 + counter);
    }
  }
  spawn BBETTY.slot_21(arg_06);
  return;
}
