//
// cocos2d::CCString::createWithData from 0x5c1c00 to 0x5c1c66 (102 bytes)
//
// 1 xrefs:
// > cocos2d::CCString::createWithContentsOfFile @ 0x5c1cf8
//
// 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
//
cocos2d::CCString *cocos2d::CCString::createWithData(const unsigned __int8 *a1, unsigned int a2)
{
cocos2d::CCString *v4; // r7
char *v5; // r0
char *v6; // r6
_BYTE v8[4]; // [sp+8h] [bp-Ch] BYREF
if ( !a1 )
return nullptr;
v5 = (char *)malloc(a2 + 1);
v6 = v5;
if ( !v5 )
return nullptr;
v5[a2] = 0;
if ( a2 )
memcpy(v5, a1, a2);
sub_776584((int)v8, v6);
v4 = (cocos2d::CCString *)cocos2d::CCString::create();
sub_774008(v8);
free(v6);
return v4;
}