//
// DialogObject::~DialogObject from 0x91620c to 0x91632c (288 bytes)
//
// 2 xrefs:
// > ??> @ 0x38460
// > ??> @ 0x11ab880
//
// 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 DialogObject::~DialogObject(DialogObject *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_character.m_data.m_data;
this->__vftable = (DialogObject_vtbl *)&off_11AB870;
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_text.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);
}
cocos2d::CCObject::~CCObject(this);
operator delete(this);
}