// // cocos2d::CCSizeFromString from 0x18000de10 to 0x18000e01a (522 bytes) // // 5 xrefs: // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180090e4e // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180090ee2 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x180091160 // > @ 0x1801438a8 // > @ 0x1801adf18 // // 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 *__fastcall cocos2d::CCSizeFromString(cocos2d *this, const char *a2) { char *v4; // rdi _QWORD *v5; // rbx _QWORD *j; // rsi unsigned __int64 v7; // rdx _QWORD *v8; // rcx char *v9; // rax const char *v11; // rcx _QWORD *v12; // rbx float v13; // xmm6_4 const char *v14; // rcx float v15; // xmm2_4 float *v16; // rax _QWORD *i; // rsi unsigned __int64 v18; // rdx _QWORD *v19; // rcx char *v20; // rax void *Block[2]; // [rsp+20h] [rbp-48h] BYREF __int64 v22; // [rsp+30h] [rbp-38h] float v23; // [rsp+80h] [rbp+18h] BYREF cocos2d::cc_timeval::operator=(this, dword_1801A8320); *(_OWORD *)Block = 0; v22 = 0; if ( (unsigned __int8)sub_18000E400(a2, Block) ) { v4 = (char *)Block[0]; v11 = (const char *)Block[0]; v12 = Block[0]; if ( *((_QWORD *)Block[0] + 3) > 0xFu ) v11 = *(const char **)Block[0]; v13 = atof(v11); v14 = v4 + 32; if ( *((_QWORD *)v4 + 7) > 0xFu ) v14 = *(const char **)v14; v15 = atof(v14); v16 = kmVec2Fill(&v23, v13, v15); cocos2d::CCSize::operator=(this, v16); for ( i = Block[1]; v12 != i; v12 += 4 ) { v18 = v12[3]; if ( v18 > 0xF ) { v19 = (_QWORD *)*v12; if ( v18 + 1 >= 0x1000 ) { if ( (unsigned __int64)v19 - *(v19 - 1) - 8 > 0x1F ) goto LABEL_27; v19 = (_QWORD *)*(v19 - 1); } j_j_free_0(v19); } v12[2] = 0; v12[3] = 15; *(_BYTE *)v12 = 0; } v20 = v4; if ( ((v22 - (_QWORD)v4) & 0xFFFFFFFFFFFFFFE0uLL) < 0x1000 ) goto LABEL_12; v4 = *((char **)v4 - 1); if ( (unsigned __int64)(v20 - v4 - 8) <= 0x1F ) goto LABEL_12; goto LABEL_27; } v4 = (char *)Block[0]; if ( Block[0] ) { v5 = Block[0]; for ( j = Block[1]; v5 != j; v5 += 4 ) { v7 = v5[3]; if ( v7 > 0xF ) { v8 = (_QWORD *)*v5; if ( v7 + 1 >= 0x1000 ) { if ( (unsigned __int64)v8 - *(v8 - 1) - 8 > 0x1F ) goto LABEL_27; v8 = (_QWORD *)*(v8 - 1); } j_j_free_0(v8); } v5[2] = 0; v5[3] = 15; *(_BYTE *)v5 = 0; } v9 = v4; if ( ((v22 - (_QWORD)v4) & 0xFFFFFFFFFFFFFFE0uLL) < 0x1000 || (v4 = *((char **)v4 - 1), (unsigned __int64)(v9 - v4 - 8) <= 0x1F) ) { LABEL_12: j_j_free_0(v4); return this; } LABEL_27: invalid_parameter_noinfo_noreturn(); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source