//
// cocos2d::CCString::isEqual from 0xad3310 to 0xad33d4 (196 bytes)
//
// 2 xrefs:
// > ??> @ 0xb7cf0
// > ??> @ 0x1200b88
//
// 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
//
bool cocos2d::CCString::isEqual(cocos2d::CCString *a1, const cocos2d::CCObject *a2)
{
_QWORD *v3; // x0
_QWORD *v4; // x2
unsigned __int64 v5; // x20
stl::StringData::Internal *m_data; // x0
unsigned __int64 v7; // x19
const void *v8; // x1
size_t v9; // x2
unsigned __int64 v10; // x19
bool result; // w0
if ( !a2 )
return 0;
v3 = _dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0);
result = v3
&& ((v4 = (_QWORD *)v3[7],
v5 = *(v4 - 3),
m_data = a1->m_sString.m_data.m_data,
v7 = *((_QWORD *)m_data - 3),
v8 = v4,
v5 > v7)
? (v9 = *((_QWORD *)m_data - 3))
: (v9 = *(v4 - 3)),
!memcmp(m_data, v8, v9) && (v10 = v7 - v5, v10 + 0x80000000 <= 0xFFFFFFFF))
&& (_DWORD)v10 == 0;
return result;
}