//
// cocos2d::CCPointFromString from 0xad202c to 0xad2214 (488 bytes)
//
// 7 xrefs:
// > SpriteDescription::initDescription @ 0x572c78
// > SpriteDescription::initDescription @ 0x572ccc
// > SpriteDescription::initDescription @ 0x572d1c
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0xb19e08
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0xb19f84
// > DS_Dictionary::getVec2ForKey @ 0xb43a44
// > ??> @ 0xb93b8
//
// 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::CCPoint cocos2d::CCPointFromString(const char *a1)
{
cocos2d::CCPoint *v1; // x8
cocos2d::CCPoint *v3; // x22
double v6; // d8
float v7; // s1
float v8; // s0
float v9; // s0
float v10; // s1
const char **v11; // x19
__int64 *v12; // x23
const char *v13; // x1
char *v14; // x0
unsigned int *v15; // x1
int v16; // w2
const char **v17; // x19
const char *v18; // x1
char *v19; // x0
unsigned int *v20; // x1
int v21; // w2
cocos2d::CCPoint v22; // [xsp+58h] [xbp+58h] BYREF
const char **v23; // [xsp+60h] [xbp+60h] BYREF
void *p; // [xsp+68h] [xbp+68h]
__int64 v25; // [xsp+70h] [xbp+70h]
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v3 = v1;
cocos2d::CCPoint::CCPoint(v1, &stru_1245070);
v23 = nullptr;
p = nullptr;
v25 = 0;
if ( (unsigned __int8)sub_AD18EC((char *)a1, (__int64 **)&v23) )
{
v6 = atof(*v23);
v7 = atof(v23[1]);
v8 = v6;
cocos2d::CCPoint::CCPoint(&v22, v8, v7);
cocos2d::CCPoint::operator=(v3, v9, v10, (float *)&v22);
v11 = v23;
v12 = (__int64 *)p;
if ( v23 == p )
goto LABEL_12;
do
{
v13 = *v11;
v14 = (char *)(*v11 - 24);
if ( v14 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v15 = (unsigned int *)(v13 - 8);
do
v16 = __ldaxr(v15);
while ( __stlxr(v16 - 1, v15) );
}
else
{
v16 = *((_DWORD *)v13 - 2);
*((_DWORD *)v13 - 2) = v16 - 1;
}
if ( v16 <= 0 )
operator delete(v14);
}
++v11;
}
while ( v12 != (__int64 *)v11 );
goto LABEL_11;
}
v17 = v23;
v12 = (__int64 *)p;
if ( v23 != p )
{
do
{
v18 = *v17;
v19 = (char *)(*v17 - 24);
if ( v19 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v20 = (unsigned int *)(v18 - 8);
do
v21 = __ldaxr(v20);
while ( __stlxr(v21 - 1, v20) );
}
else
{
v21 = *((_DWORD *)v18 - 2);
*((_DWORD *)v18 - 2) = v21 - 1;
}
if ( v21 <= 0 )
operator delete(v19);
}
++v17;
}
while ( v12 != (__int64 *)v17 );
LABEL_11:
v12 = (__int64 *)v23;
}
LABEL_12:
if ( v12 )
operator delete(v12);
return result;
}