function item_slot_27() /* entry=400 class_id=0x0A1E slot=0x27 */
{
  var
    referent, /* [BP+00h] type=0x69 */
    damageRef, /* [BP+0Ah] type=0x69 */
    vel, /* [BP+0Ch] type=0x69 */
    maxHits, /* [BP+0Eh] type=0x69 */
    damagePoints, /* [BP-02h] type=0x69 */
    currentHits, /* [BP-04h] type=0x69 */
    newHits; /* [BP-06h] type=0x69 */

  set_info(1, *(arg_06));
  if (damageRef == 0x4000) {
    /* word_to_dword  */
    /* pop_result  */
    return;
  }
  else {
    damagePoints = (vel & 0x00FF);
    currentHits = Item.getNPCNum(arg_06);
    newHits = (currentHits + damagePoints);
    if (newHits < maxHits) {
      /* word_to_dword  */
      /* pop_result  */
      return;
    }
    else {
      /* word_to_dword  */
      /* pop_result  */
      return;
    }
  }
  return;
}
