//
// cocos2d::CCString::isEqual from 0x100268db0 to 0x100268e48 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007d26e0
//
// 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 __fastcall cocos2d::CCString::isEqual(cocos2d::CCString *a1, const cocos2d::CCObject *a2)
{
_QWORD *v3; // x0
char *v4; // x0
const void *v5; // x9
const void *v6; // t1
std::size_t v7; // x10
std::size_t size; // x11
const void *capacitym1; // x8
int v10; // w13
const void *v11; // x1
size_t v12; // x2
bool v13; // w19
if ( a2 )
{
v3 = __dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCString,
0);
if ( v3 )
{
v6 = (const void *)v3[7];
v4 = (char *)(v3 + 7);
v5 = v6;
v7 = (unsigned __int8)v4[23];
size = a1->m_sString.m_data.m_short.shortStorage.__elems_[22];
if ( (size & 0x8000000000000000LL) != 0 )
{
capacitym1 = (const void *)a1->m_sString.m_data.m_long.capacitym1;
size = a1->m_sString.m_data.m_long.size;
}
else
{
capacitym1 = &a1->m_sString;
}
v10 = (char)v7;
if ( (v7 & 0x80u) != 0LL )
v7 = *((_QWORD *)v4 + 1);
if ( v10 >= 0 )
v11 = v4;
else
v11 = v5;
if ( v7 >= size )
v12 = size;
else
v12 = v7;
v13 = v7 == size;
LOBYTE(v3) = !memcmp(capacitym1, v11, v12) && v13;
}
}
else
{
LOBYTE(v3) = 0;
}
return (char)v3;
}