//
// InfoAlertButton::~InfoAlertButton from 0x8e6090 to 0x8e61b8 (296 bytes)
//
// 2 xrefs:
// > ??> @ 0x90df8
// > ??> @ 0x11a1f10
//
// 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 InfoAlertButton::~InfoAlertButton(InfoAlertButton *this)
{
stl::StringData::Internal *m_data; // x1
char *v3; // x0
stl::StringData::Internal *v4; // x1
char *v5; // x0
unsigned int *v6; // x1
int v7; // w2
unsigned int *v8; // x1
int v9; // w2
m_data = this->m_description.m_data.m_data;
this->CCMenuItemSpriteExtra::cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (InfoAlertButton_vtbl *)&off_11A1F00;
this->CCMenuItemSpriteExtra::cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_11A2368;
v3 = (char *)m_data - 24;
if ( (__int64 *)((char *)m_data - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v6 = (unsigned int *)((char *)m_data - 8);
do
v7 = __ldaxr(v6);
while ( __stlxr(v7 - 1, v6) );
}
else
{
v7 = *((_DWORD *)m_data - 2);
*((_DWORD *)m_data - 2) = v7 - 1;
}
if ( v7 <= 0 )
operator delete(v3);
}
v4 = this->m_title.m_data.m_data;
v5 = (char *)v4 - 24;
if ( (__int64 *)((char *)v4 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v8 = (unsigned int *)((char *)v4 - 8);
do
v9 = __ldaxr(v8);
while ( __stlxr(v9 - 1, v8) );
}
else
{
v9 = *((_DWORD *)v4 - 2);
*((_DWORD *)v4 - 2) = v9 - 1;
}
if ( v9 <= 0 )
operator delete(v5);
}
CCMenuItemSpriteExtra::~CCMenuItemSpriteExtra(this);
operator delete(this);
}