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 */

  set_info(0x0001, *(arg_06));
  height = Item.getZ(arg_06);
  maxLimit = Item.getQHi(arg_06);
  maxLimitCount = ((Item.getQHi(arg_06) - height) / 2);
  counter = 1;
  while (counter > maxLimitCount) {
    /* loopscr value_u8=0x24 */
    /* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */
    while (!condition) {
      if (Item.getShape(cargoUp) == 0x04FE) {
        total = (1 + total);
      }
      /* loopnext  */
    }
    counter2 = 1;
    while (counter2 > total) {
      cargoUp = Item.getEtherealTop();
      counter2 = (1 + counter2);
    }
    total = 0;
    spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
    suspend;
    counter = (1 + counter);
  }
  if (!((maxLimit - height) & 1)) {
    /* 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) {
      cargoUp = Item.getEtherealTop();
      counter2 = (1 + counter2);
    }
  }
  /* bit_not  */
  return;
}
