//
// cocos2d::CCPointFromString from 0xd4466c to 0xd447bc (336 bytes)
//
// 7 xrefs:
// > SpriteDescription::initDescription @ 0x68e630
// > SpriteDescription::initDescription @ 0x68e680
// > SpriteDescription::initDescription @ 0x68e6d0
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0xd8b490
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0xd8b674
// > DS_Dictionary::getVec2ForKey @ 0xdb6a38
// > ??> @ 0xf1b58
//
// This function is hookable on this platform (idp: arm, 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 13:07:33 +0000
//
float *__usercall cocos2d::CCPointFromString@(float *__return_ptr a1@, cocos2d *this@)
{
const char *v5; // x0
float v6; // s8
const char *v7; // x0
float v8; // s1
char *v9; // x19
char *v10; // x0
char *v12; // x19
float v13; // [xsp+48h] [xbp+48h] BYREF
void *v14; // [xsp+50h] [xbp+50h] BYREF
char *v15; // [xsp+58h] [xbp+58h]
__int64 v16; // [xsp+60h] [xbp+60h]
cocos2d::CCPoint::CCPoint(a1, (const cocos2d::CCPoint *)&unk_1560010);
v14 = nullptr;
v15 = nullptr;
v16 = 0;
if ( !(unsigned __int8)sub_D44198((const char *)this, (__int64)&v14) )
{
v12 = (char *)v14;
if ( !v14 )
return a1;
v10 = v15;
if ( v14 != v15 )
{
do
{
v15 = v10 - 24;
std::string::~string((__int64)(v10 - 24));
v10 = v15;
}
while ( v12 != v15 );
v10 = (char *)v14;
}
goto LABEL_10;
}
v5 = (char *)v14 + 1;
if ( (*(_BYTE *)v14 & 1) != 0 )
v5 = *((const char **)v14 + 2);
v6 = atof(v5);
v7 = (char *)v14 + 25;
if ( (*((_BYTE *)v14 + 24) & 1) != 0 )
v7 = *((const char **)v14 + 5);
v8 = atof(v7);
cocos2d::CCPoint::CCPoint(&v13, v6, v8);
cocos2d::CCPoint::operator=(a1, &v13);
v9 = (char *)v14;
if ( v14 )
{
v10 = v15;
if ( v14 != v15 )
{
do
{
v15 = v10 - 24;
std::string::~string((__int64)(v10 - 24));
v10 = v15;
}
while ( v9 != v15 );
v10 = (char *)v14;
}
LABEL_10:
operator delete(v10);
}
return a1;
}