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

  entry:
    set_info(0x0207, *(arg_06));
    if Item.getFrame(arg_06) goto block_0168;

  block_0105:
    counter = 0;

  block_011A:
    if (counter <= 5) goto block_0165;

  block_0122:
    spawn class_0A0C_slot_32(pid, 3, 0x00000000);
    suspend;
    counter = (1 + counter);
    goto block_011A;

  block_0165:
    goto block_01C5;

  block_0168:
    counter = 0;

  block_017D:
    if (counter <= 5) goto block_01C5;

  block_0185:
    spawn class_0A0C_slot_32(pid, 3, 0x00000000);
    suspend;
    counter = (1 + counter);
    goto block_017D;

  block_01C5:
    return;

}
