function telepad_slot_20() /* entry=111 class_id=0x01DB slot=0x20 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    mapNum, /* [BP+0Ah] type=0x69 */
    eggNum, /* [BP+0Ch] type=0x69 */
    newx, /* [BP-02h] type=0x69 */
    newy, /* [BP-04h] type=0x69 */
    newz, /* [BP-05h] type=0x62 */
    counter, /* [BP-07h] type=0x69 */
    floor, /* [BP-09h] type=0x24 */
    item, /* [BP-0Bh] type=0x24 */
    telebeam, /* [BP-0Dh] type=0x24 */
    y; /* [BP-0Fh] type=0x69 */

  entry:
    set_info(1, 0);
    /* global_address global_id=0x3C */
    if Intrinsic00C3() goto block_0515;

  block_050F:
    goto block_0A93;

  block_0515:
    /* global_address global_id=0x3C */
    /* global_address global_id=0x3C */
    spawn class_0A11_slot_24(pid);
    suspend;
    if (mapNum != 69) goto block_089B;

  block_055A:
    /* global_address global_id=0x3C */
    if (Item.getType() != mapNum) goto block_087B;

  block_056D:
    suspend;
    if (mapNum != 40) goto block_0778;

  block_059C:
    spawn class_0A0C_slot_23(pid, 0x00000000);
    suspend;
    spawn class_0A0C_slot_25(pid, 0x00000000);
    suspend;
    spawn class_0A0C_slot_32(pid, 10, 0x00000000);
    suspend;
    /* global_address global_id=0x3C */
    if (Item.getType() != 1) goto block_0672;

  block_0623:
    /* str_to_ptr  */
    /* free_stack_string value_u8=0x4 target=[SP+04h] */
    suspend;
    goto block_0767;

  block_0672:
    /* global_address global_id=0x3C */
    if (Item.getType() != 13) goto block_06D7;

  block_0688:
    /* str_to_ptr  */
    /* free_stack_string value_u8=0x4 target=[SP+04h] */
    suspend;
    goto block_0767;

  block_06D7:
    /* global_address global_id=0x3C */
    if (Item.getType() != 5) goto block_0767;

  block_06ED:
    /* str_to_ptr  */
    /* free_stack_string value_u8=0x4 target=[SP+04h] */
    suspend;
    /* str_to_ptr  */
    /* free_stack_string value_u8=0x4 target=[SP+04h] */
    suspend;
    goto block_0767;

  block_0767:
    goto block_0A93;

  block_0778:
    if (mapNum != 41) goto block_0834;

  block_0786:
    spawn class_0A0C_slot_32(pid, 10, 0x00000000);
    suspend;
    /* str_to_ptr  */
    /* free_stack_string value_u8=0x4 target=[SP+04h] */
    suspend;
    spawn class_0A0C_slot_32(pid, 10, 0x00000000);
    suspend;
    goto block_0A93;

  block_0834:
    if mapNum goto block_085E;

  block_083C:
    suspend;

  block_085E:
    suspend;
    goto block_089B;

  block_087B:
    suspend;

  block_089B:
    /* global_address global_id=0x3C */
    spawn class_0A11_slot_23(pid);
    suspend;
    if (eggNum != 69) goto block_0A7C;

  block_08C9:
    /* global_address global_id=0x3C */
    y = Item.legal_create();
    /* global_address global_id=0x3C */
    /* global_address global_id=0x3C */
    /* loopscr value_u8=0x24 */
    /* loopscr value_u8=0x3D */
    /* loopscr value_u8=0x40 */
    /* loopscr value_u8=0x25 */
    /* loop current_var=0xF7 string_bytes=0x6 loop_type=0x2 */

  block_093F:
    if condition goto block_0970;

  block_0942:
    newx = Intrinsic0013(floor);
    newy = Item.legal_create(floor);
    newz = Item.getZ(floor);
    /* loopnext  */
    goto block_093F;

  block_0970:
    /* loopscr value_u8=0x24 */
    /* loopscr value_u8=0x3D */
    /* loopscr value_u8=0x40 */
    /* loopscr value_u8=0x25 */
    /* loop current_var=0xF7 string_bytes=0x6 loop_type=0x2 */

  block_0990:
    if condition goto block_09A2;

  block_0993:
    /* loopnext  */
    goto block_0990;

  block_09A2:
    spawn class_0A0C_slot_32(pid, 5, 0x00000000);
    suspend;
    counter = 0;

  block_0A07:
    if (counter <= 40) goto block_0A6A;

  block_0A0F:
    spawn class_0A0C_slot_32(pid, 10, 0x00000000);
    suspend;
    if (counter != 10) goto block_0A5D;

  block_0A50:

  block_0A5D:
    counter = (1 + counter);
    goto block_0A07;

  block_0A6A:
    /* global_address global_id=0x3C */
    goto block_0A93;

  block_0A7C:
    /* global_address global_id=0x3C */

  block_0A93:
    return;

}
