function elevat_slot_23() /* entry=379 class_id=0x0A09 slot=0x23 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    cargoUp, /* [BP-02h] type=0x24 */
    existCargo, /* [BP-03h] type=0x62 */
    counter, /* [BP-05h] type=0x69 */
    height, /* [BP-06h] type=0x62 */
    maxLimit, /* [BP-08h] type=0x69 */
    maxLimitCount, /* [BP-0Ah] type=0x69 */
    counter2, /* [BP-0Ch] type=0x69 */
    total; /* [BP-0Eh] type=0x69 */

  entry:
    set_info(0x0001, *(arg_06));
    height = Item.getZ(arg_06);
    maxLimit = Intrinsic009C(arg_06);
    maxLimitCount = ((Intrinsic009C(arg_06) - height) / 2);
    counter = 1;

  block_0295:
    if (counter <= maxLimitCount) goto block_03A1;

  block_02A0:
    /* loopscr value_u8=0x24 */
    /* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */

  block_02B0:
    if condition goto block_02DF;

  block_02B3:
    if (Intrinsic0016(cargoUp) != 0x04FE) goto block_02DB;

  block_02C6:
    total = (1 + total);

  block_02DB:
    /* loopnext  */
    goto block_02B0;

  block_02DF:
    counter2 = 1;

  block_02E8:
    if (counter2 <= total) goto block_0333;

  block_02F3:
    cargoUp = Intrinsic0023();
    counter2 = (1 + counter2);
    goto block_02E8;

  block_0333:
    total = 0;
    spawn class_0A0C_slot_32(pid, 1, 0x00000000);
    suspend;
    counter = (1 + counter);
    goto block_0295;

  block_03A1:
    if ((maxLimit - height) & 1) goto block_0463;

  block_03AF:
    /* loopscr value_u8=0x24 */
    /* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */

  block_03BF:
    if condition goto block_03DB;

  block_03C2:
    total = (1 + total);
    /* loopnext  */
    goto block_03BF;

  block_03DB:
    counter2 = 1;

  block_03E4:
    if (counter2 <= total) goto block_042F;

  block_03EF:
    cargoUp = Intrinsic0023();
    counter2 = (1 + counter2);
    goto block_03E4;

  block_042F:

  block_0463:
    /* bit_not  */
    return;

}
