// // cocos2d::CCPointFromString from 0x1005675e0 to 0x1005676c6 (230 bytes) // // 6 xrefs: // > DS_Dictionary::getVec2ForKey @ 0x10017df63 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x10031c954 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x10031cbe9 // > SpriteDescription::initDescription @ 0x10056ce7f // > SpriteDescription::initDescription @ 0x10056ced1 // > SpriteDescription::initDescription @ 0x10056cf1e // // 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 __fastcall cocos2d::CCPointFromString(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 double 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::CCPoint result; // 0:xmm0_8.8 sub_10028CC60(a1, &dbl_1009A2928); *(double *)&result = 0.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); sub_10028CBE0((float *)&v12, v15, v8); *(double *)&result = sub_10028CC90(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; }
GD Web Decomp Icon

GD Web Decomp

Raw Source