function door2_slot_35() /* entry=377 class_id=0x0A07 slot=0x35 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    item, /* [BP-02h] type=0x24 */
    item2, /* [BP-04h] type=0x24 */
    item3, /* [BP-06h] type=0x24 */
    prisDoor, /* [BP-08h] type=0x24 */
    counter, /* [BP-0Ah] type=0x69 */
    maxFrame, /* [BP-0Ch] type=0x69 */
    cox, /* [BP-0Eh] type=0x69 */
    coy, /* [BP-10h] type=0x69 */
    coz, /* [BP-12h] type=0x69 */
    x1, /* [BP-14h] type=0x69 */
    y1, /* [BP-16h] type=0x69 */
    x2, /* [BP-18h] type=0x69 */
    y2, /* [BP-1Ah] type=0x69 */
    z1, /* [BP-1Ch] type=0x69 */
    z2, /* [BP-1Eh] type=0x69 */
    link; /* [BP-20h] type=0x69 */

  set_info(0x0207, *(arg_06));
  set_info(1, 0);
  maxFrame = 7;
  prisDoor = *(arg_06);
  cox = Item.getX(arg_06);
  coy = Item.getY(arg_06);
  coz = Item.getZ(arg_06);
  /* loopscr value_u8=0x24 */
  /* loopscr value_u8=0x3D */
  /* loopscr value_u8=0x40 */
  /* loopscr value_u8=0x25 */
  /* loop current_var=0xFE string_bytes=0x6 loop_type=0x6 */
  while (!condition) {
    if (Item.getFrame(item) == 0) {
      x1 = Item.getX(item);
      y1 = Item.getY(item);
      z1 = Item.getZ(item);
    }
    else {
      x2 = Item.getX(item);
      y2 = Item.getY(item);
      z2 = Item.getZ(item);
    }
    /* loopnext  */
  }
  link = Item.getQLo(arg_06);
  if (Item.legalCreateAtCoords((coz - 80), coy, cox, 7, 0x01EE, item2) == 1) {
    spawn class_0A0C_slot_32(pid, 5, 0x00000000);
    suspend;
    counter = 1;
    while (counter > maxFrame) {
      spawn class_0A0C_slot_32(pid, 5, 0x00000000);
      suspend;
      counter = (1 + counter);
    }
    /* word_to_dword  */
    /* pop_result  */
    return;
  }
  else {
    /* word_to_dword  */
    /* pop_result  */
    return;
  }
  return;
}
