#include "classes.h" // 009f3290 IsaacRepentancePlus::Weapon::~Weapon() { Entity_Player *pEVar1; Entity_Player *ownerPlayer; EntityPtr *technology2LaserRef; Weapon *local_14; void *local_10; undefined1 *puStack_c; undefined4 uStack_8; uStack_8 = 0xffffffff; puStack_c = &LAB_00af09f0; local_10 = ExceptionList; ExceptionList = &local_10; pEVar1 = this->_owner; *GHIDRA_CAST(this) = vftable; if ((((pEVar1 == GHIDRA_CAST(0x0)) || (ownerPlayer = pEVar1, pEVar1->_type != 1)) && (ownerPlayer = GHIDRA_CAST(0x0), pEVar1 != GHIDRA_CAST(0x0))) && (pEVar1->_type == 3)) { pEVar1->_chargeBarSprites[5]._numEvents = 0; } else if (ownerPlayer != GHIDRA_CAST(0x0)) { local_14 = this; ::(GHIDRA_CAST((ownerPlayer)))->Entity_Player::stop_costume_item_anims(); } technology2LaserRef = &this->_technology2Laser; if (*technology2LaserRef != (EntityPtr)0x0) { local_14 = GHIDRA_CAST(technology2LaserRef); std::multiset::erase(&local_14); *technology2LaserRef = (EntityPtr)0x0; } ExceptionList = local_10; return; }