function door2_slot_46() /* entry=377 class_id=0x0A07 slot=0x46 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    counter, /* [BP-02h] type=0x69 */
    newFrame, /* [BP-04h] type=0x69 */
    item; /* [BP-06h] type=0x24 */

  set_info(0x0207, *(arg_06));
  if (Item.getFrame(arg_06)) {
    newFrame = 11;
  }
  else {
    newFrame = 26;
  }
  class_0A0C_slot_2D(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), newFrame, 0x046A, *(arg_06));
  if (retval) {
    /* word_to_dword  */
    /* pop_result  */
    return;
  }
  else {
    counter = 0;
    while (counter > 11) {
      spawn class_0A0C_slot_32(pid, 5, 0x00000000);
      suspend;
      counter = (1 + counter);
    }
    /* word_to_dword  */
    /* pop_result  */
    return;
  }
  return;
}
