//
// cocos2d::CCString::isEqual from 0x1800106a0 to 0x18001075a (186 bytes)
//
// 6 xrefs:
// > ??> @ 0x1800e6698
// > ??> @ 0x1801323f8
// > ??> @ 0x18013240c
// > ??> @ 0x18013241c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae14c
//
// 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
//
_BOOL8 __fastcall cocos2d::CCString::isEqual(cocos2d::CCString *this, const struct cocos2d::CCObject *a2)
{
_QWORD *v3; // rax
const void *v4; // rdx
std::string *p_m_sString; // rcx
std::size_t v6; // rdi
std::size_t m_size; // rbx
size_t v8; // r8
v3 = (_QWORD *)_RTDynamicCast(
a2,
0,
&cocos2d::CCObject `RTTI Type Descriptor',
&cocos2d::CCString `RTTI Type Descriptor',
0);
if ( !v3 )
return 0;
v4 = v3 + 7;
if ( v3[10] > 0xFu )
v4 = (const void *)v3[7];
p_m_sString = &this->m_sString;
if ( this->m_sString.m_data.m_capacity > 0xF )
p_m_sString = (std::string *)this->m_sString.m_data.m_bigStorage;
v6 = v3[9];
m_size = this->m_sString.m_data.m_size;
v8 = m_size;
if ( v6 < m_size )
v8 = v3[9];
return !memcmp(p_m_sString, v4, v8) && m_size >= v6 && m_size <= v6;
}