//
// sub_18004DCF0 from 0x18004dcf0 to 0x18004dd59 (105 bytes)
//
// 3 xrefs:
// > cocos2d::CCLabelTTF::setFontName @ 0x18004e6d4
// > cocos2d::CCLabelTTF::setString @ 0x18004e809
// > ??> @ 0x1801b1c08
//
// 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
//
int __fastcall sub_18004DCF0(_QWORD *Buf1, _BYTE *a2)
{
unsigned __int64 v2; // rbx
_QWORD *v3; // rax
size_t v4; // rdi
size_t v5; // r8
int result; // eax
v2 = -1;
do
++v2;
while ( a2[v2] );
v3 = Buf1;
if ( Buf1[3] > 0xFu )
v3 = (_QWORD *)*Buf1;
v4 = Buf1[2];
v5 = v4;
if ( v2 < v4 )
v5 = v2;
result = memcmp(v3, a2, v5);
if ( !result )
{
if ( v4 >= v2 )
return v4 > v2;
else
return -1;
}
return result;
}