//
// cocos2d::CCPointFromString from 0x1005943f0 to 0x1005944d6 (230 bytes)
//
// 6 xrefs:
// > DS_Dictionary::getVec2ForKey @ 0x10015d353
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x100307c04
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x100307e99
// > SpriteDescription::initDescription @ 0x100599f3f
// > SpriteDescription::initDescription @ 0x100599f91
// > SpriteDescription::initDescription @ 0x100599fde
//
// This function is hookable on this platform (idp: pc, 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 12:32:28 +0000
//
_QWORD *__fastcall cocos2d::CCPointFromString(_QWORD *a1, const char *a2)
{
char *v3; // r14
const char *v4; // rdi
float v5; // xmm0_4
const char *v6; // r14
float v7; // xmm1_4
void **v8; // r14
void **v9; // r15
void *v10; // rdi
__int64 v12; // [rsp+8h] [rbp-48h] BYREF
void *__p[2]; // [rsp+10h] [rbp-40h] BYREF
__int64 v14; // [rsp+20h] [rbp-30h]
float v15; // [rsp+34h] [rbp-1Ch]
sub_1002782D0(a1, &qword_100BE55E0);
*(_OWORD *)__p = 0;
v14 = 0;
if ( (unsigned __int8)sub_100593D40(a2, __p) )
{
v3 = (char *)__p[0];
if ( (*(_BYTE *)__p[0] & 1) != 0 )
v4 = *((const char **)__p[0] + 2);
else
v4 = (char *)__p[0] + 1;
v5 = atof(v4);
v15 = v5;
if ( (v3[24] & 1) != 0 )
v6 = *((const char **)v3 + 5);
else
v6 = v3 + 25;
v7 = atof(v6);
sub_100278250((float *)&v12, v15, v7);
sub_100278300(a1, &v12);
}
v8 = (void **)__p[0];
if ( __p[0] )
{
v9 = (void **)__p[1];
v10 = __p[0];
if ( __p[1] != __p[0] )
{
do
{
if ( (*(_BYTE *)(v9 - 3) & 1) != 0 )
operator delete(*(v9 - 1));
v9 -= 3;
}
while ( v9 != v8 );
v10 = __p[0];
}
__p[1] = v8;
operator delete(v10);
}
return a1;
}