//
// cocos2d::CCSizeFromString from 0x5c118c to 0x5c1210 (132 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x5e9376
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x5e93d0
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x5e9420
//
// 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::CCSize *cocos2d::CCSizeFromString(cocos2d::CCSize *__return_ptr retstr, const char *a2)
{
double v4; // d8
float v5; // s15
float v6; // s14
cocos2d::CCSize v8; // [sp+0h] [bp-1Ch] BYREF
void *v9[3]; // [sp+8h] [bp-14h] BYREF
cocos2d::CCSize::CCSize(retstr, &stru_AC8920);
memset(v9, 0, sizeof(v9));
if ( sub_5C0FE8((char *)a2, v9) )
{
v4 = atof((const char *)*(_DWORD *)v9[0]);
v5 = atof((const char *)*(_DWORD *)((char *)v9[0] + (unsigned int)byte_4));
v6 = v4;
cocos2d::CCSize::CCSize(&v8, v6, v5);
cocos2d::CCSize::operator=(retstr, &v8.width);
}
std::vector::~vector(v9);
return retstr;
}