//
// cocos2d::CCSizeFromString from 0x1005676e0 to 0x1005677c6 (230 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x10031c902
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x10031c99c
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x10031cc3a
//
// 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 __fastcall cocos2d::CCSizeFromString(const char *a1)
{
const char *v1; // rsi
char *v4; // r14
const char *v5; // rdi
float v6; // xmm0_4
const char *v7; // r14
float v8; // xmm1_4
void **v9; // r14
void **v10; // r15
void *v11; // 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]
cocos2d::CCSize result; // 0:xmm0_8.8
sub_10028CFC0(a1, &qword_1009A2930);
result = 0;
*(_OWORD *)__p = 0;
v14 = 0;
if ( (unsigned __int8)sub_100566F30(v1, __p, 0.0) )
{
v4 = (char *)__p[0];
if ( (*(_BYTE *)__p[0] & 1) != 0 )
v5 = *((const char **)__p[0] + 2);
else
v5 = (char *)__p[0] + 1;
v6 = atof(v5);
v15 = v6;
if ( (v4[24] & 1) != 0 )
v7 = *((const char **)v4 + 5);
else
v7 = v4 + 25;
v8 = atof(v7);
result = (cocos2d::CCSize)LODWORD(v15);
sub_10028CBF0((float *)&v12, v15, v8);
sub_10028CFF0(a1, &v12);
}
v9 = (void **)__p[0];
if ( __p[0] )
{
v10 = (void **)__p[1];
v11 = __p[0];
if ( __p[1] != __p[0] )
{
do
{
if ( (*(_BYTE *)(v10 - 3) & 1) != 0 )
operator delete(*(v10 - 1));
v10 -= 3;
}
while ( v10 != v9 );
v11 = __p[0];
}
__p[1] = v9;
operator delete(v11);
}
return result;
}