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

  entry:
    set_info(1, 0);
    item = ref;
    if item goto block_12B3;

  block_117D:
    c = Item.getFrame(item);
    b = Intrinsic0016(item);
    a = (b & 0x00FF);
    b = (b & 0x0700);
    b = (b / 8);
    b = (b + c);
    suspend;
    /* bit_not  */
    /* word_to_dword  */
    /* pop_result  */
    goto block_12B3;

  block_12B3:
    return;

}
