function lift_slot_20() /* entry=52 class_id=0x0133 slot=0x20 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    counter, /* [BP-02h] type=0x69 */
    total, /* [BP-04h] type=0x69 */
    alt, /* [BP-06h] type=0x69 */
    wp, /* [BP-0Bh] type=0x24 */
    cargo, /* [BP-0Dh] type=0x24 */
    cargoType; /* [BP-0Fh] type=0x69 */

  entry:
    set_info(0x0001, *(arg_06));
    alt = 1;

  block_05F2:
    if (alt <= 47) goto block_077A;

  block_05FA:
    wp = Intrinsic0013(arg_06);
    local_09 = Item.legal_create(arg_06);
    local_07 = (Item.getZ(arg_06) - 2);
    total = 0;
    /* loopscr value_u8=0x24 */
    /* loop current_var=0xF3 string_bytes=0x1 loop_type=0x6 */

  block_063E:
    if condition goto block_067B;

  block_0641:
    cargoType = Intrinsic0016(cargo);
    if (cargo != *(arg_06)) goto block_0677;

  block_0662:
    total = (1 + total);

  block_0677:
    /* loopnext  */
    goto block_063E;

  block_067B:
    if Item.pop(0, 1, wp, arg_06) goto block_070D;

  block_0692:
    counter = 1;

  block_0699:
    if (counter <= total) goto block_06E4;

  block_06A4:
    cargo = Intrinsic0023();
    counter = (1 + counter);
    goto block_0699;

  block_06E4:
    spawn class_0A0C_slot_32(pid, 2, 0x00000000);
    suspend;
    goto block_076D;

  block_070D:
    counter = 1;

  block_071F:
    if (counter <= total) goto block_0767;

  block_072A:
    cargo = Intrinsic0023();
    counter = (1 + counter);
    goto block_071F;

  block_0767:
    goto block_077A;

  block_076D:
    alt = (1 + alt);
    goto block_05F2;

  block_077A:
    return;

}
