//
// cocos2d::CCString::isEqual from 0x1007ab2c0 to 0x1007ab354 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x100991bf8
//
// 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)
{
bool v2; // bl
_QWORD *v3; // rax
unsigned int v4; // r8d
size_t v5; // rdx
const void *v6; // rsi
unsigned int sizex2; // ecx
std::size_t size; // rcx
std::array *longStorage; // rdi
char *v10; // rax
bool v11; // zf
if ( !a2 )
return 0;
v2 = 0;
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 )
{
v4 = *((unsigned __int8 *)v3 + 56);
v5 = v3[8];
v6 = (const void *)v3[9];
sizex2 = a1->m_sString.m_data.m_short.sizex2;
if ( (sizex2 & 1) != 0 )
{
size = a1->m_sString.m_data.m_long.size;
longStorage = (std::array *)a1->m_sString.m_data.m_long.longStorage;
}
else
{
size = sizex2 >> 1;
longStorage = &a1->m_sString.m_data.m_short.shortStorage;
}
v10 = (char *)v3 + 57;
if ( (v4 & 1) == 0 )
{
v5 = v4 >> 1;
v6 = v10;
}
v11 = v5 == size;
if ( v5 >= size )
v5 = size;
return v11 & (memcmp(longStorage, v6, v5) == 0);
}
return v2;
}