//
// cocos2d::CCString::isEqual from 0x180010860 to 0x18001091a (186 bytes)
//
// 6 xrefs:
// > ??> @ 0x1800ec6e0
// > ??> @ 0x18013b324
// > ??> @ 0x18013b338
// > ??> @ 0x18013b348
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8200
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:22 +0000
//
_BOOL8 __fastcall cocos2d::CCString::isEqual(cocos2d::CCString *this, const struct cocos2d::CCObject *a2)
{
_QWORD *v3; // rax
const void *v4; // rdx
char *v5; // rcx
size_t v6; // rdi
size_t v7; // 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];
v5 = (char *)this + 56;
if ( *((_QWORD *)this + 10) > 0xFu )
v5 = *((char **)this + 7);
v6 = v3[9];
v7 = *((_QWORD *)this + 9);
v8 = v7;
if ( v6 < v7 )
v8 = v3[9];
return !memcmp(v5, v4, v8) && v7 >= v6 && v7 <= v6;
}