//
// cocos2d::CCString::CCString from 0x7c8bd0 to 0x7c8c10 (64 bytes)
//
// 4 xrefs:
// > cocos2d::CCString::create @ 0x7c8c22
// > cocos2d::CCDictMaker::endElement @ 0x7e7a00
// > cocos2d::CCDictMaker::textHandler @ 0x7e7bae
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x7f3e08
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:28 +0000
//
// Alternative name is '_ZN7cocos2d8CCStringC1ERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE'
_DWORD *__fastcall cocos2d::CCString::CCString(_DWORD *a1, int a2)
{
int v4; // r1
int v5; // r2
cocos2d::CCObject::CCObject(a1);
*a1 = &off_D05038;
a1[13] = 0;
a1[14] = 0;
a1[15] = 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
std::string::__init(a1 + 13, *(const void **)(a2 + 8), *(_DWORD *)(a2 + 4));
}
else
{
v4 = *(_DWORD *)(a2 + 4);
v5 = *(_DWORD *)(a2 + 8);
a1[13] = *(_DWORD *)a2;
a1[14] = v4;
a1[15] = v5;
}
return a1;
}