function steambox_equip() /* entry=297 class_id=0x0500 slot=0x0A */
{
  set_info(0x0211, *(arg_06));
  process_exclude();
  if (arg_0A == 0) {
    /* loopscr value_u8=0x24 */
    /* loopscr value_u8=0x44 */
    /* loop current_var=0xFE string_bytes=0xA loop_type=0x2 */
    while (!condition) {
      if (Item.getQLo(local_02) == Item.getQLo(arg_06)) {
        if (!(Item.getStatus(local_02) & 0x1000)) {
        }
        else if ((Item.getShape(local_02) == 0x04FA) || (Item.getShape(local_02) != 0x04F9)) {
          spawn STEAMBOX.slot_21(0, local_02, arg_06);
        }
        else if ((Item.getShape(local_02) == 0x0511) || (Item.getShape(local_02) != 0x04FD)) {
          spawn STEAMBOX.slot_21(1, local_02, arg_06);
        }
      }
      /* loopnext  */
    }
    return;
  }
  else if (arg_0A == 1) {
    for local_02 in nearby_items(shape=0x03A9, origin=arg_06) {
      if (Item.getQLo(local_02) == Item.getQLo(arg_06)) {
        if (Item.getFrame(local_02) == 0) {
          spawn STEAMBOX.slot_20(0, local_04, arg_06);
        }
        else if (Item.getFrame(local_02) == 1) {
          spawn STEAMBOX.slot_20(1, local_04, arg_06);
        }
      }
      /* loopnext  */
    }
    return;
  }
  return;
}
