function free_slot_31() /* entry=382 class_id=0x0A0C slot=0x31 */
{
  var
    ref, /* [BP+06h] type=0x69 */
    item, /* [BP-02h] type=0x24 */
    phold, /* [BP-04h] type=0x24 */
    a, /* [BP-06h] type=0x69 */
    b, /* [BP-08h] type=0x69 */
    c; /* [BP-0Ah] type=0x69 */

  set_info(1, 0);
  item = ref;
  if (!item) {
    c = Item.getFrame(item);
    b = Item.getShape(item);
    a = (b & 0x00FF);
    b = (b & 0x0700);
    b = (b / 8);
    b = (b + c);
    suspend;
    /* bit_not  */
    /* word_to_dword  */
    /* pop_result  */
    return;
  }
  return;
}
