//
// TriggerControlGameObject::~TriggerControlGameObject from 0x751a58 to 0x751b28 (208 bytes)
//
// 2 xrefs:
// > ??> @ 0x7d808
// > ??> @ 0x1175660
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall TriggerControlGameObject::~TriggerControlGameObject(TriggerControlGameObject *this)
{
stl::StringData::Internal *m_data; // x2
char *v3; // x0
unsigned int *v4; // x2
int v5; // w1
m_data = this->m_triggerControlFrame.m_data.m_data;
this->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (TriggerControlGameObject_vtbl *)&off_1175650;
this->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_1175D98;
this->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_1175E18;
v3 = (char *)m_data - 24;
if ( (__int64 *)((char *)m_data - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v4 = (unsigned int *)((char *)m_data - 8);
do
v5 = __ldaxr(v4);
while ( __stlxr(v5 - 1, v4) );
}
else
{
v5 = *((_DWORD *)m_data - 2);
*((_DWORD *)m_data - 2) = v5 - 1;
}
if ( v5 <= 0 )
operator delete(v3);
}
EffectGameObject::~EffectGameObject(this);
operator delete(this);
}