// // GameLevelManager::pageFromCommentKey from 0x6f896c to 0x6f8a80 (276 bytes) // // 2 xrefs: // > GameLevelManager::onDeleteCommentCompleted @ 0x6f9c58 // > @ 0x5f700 // // 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 // int GameLevelManager::pageFromCommentKey(GameLevelManager *a1, const char *a2) { cocos2d::CCArray *v2; // x20 void *v3; // x0 bool v4; // cc int result; // w0 cocos2d::CCString *v6; // x0 const char *CString; // x0 unsigned int *v8; // x2 int v9; // w1 __int64 v10; // [xsp+30h] [xbp+30h] BYREF sub_D153B8((int)&v10, (char *)a2); v2 = sub_6F004C(&v10, "_"); v3 = (void *)(v10 - 24); if ( (__int64 *)(v10 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v10 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(_DWORD *)(v10 - 8); *(_DWORD *)(v10 - 8) = v9 - 1; } if ( v9 <= 0 ) operator delete(v3); } v4 = (unsigned int)cocos2d::CCArray::count(v2) > 2; result = 0; if ( v4 ) { v6 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v2, 2u); CString = cocos2d::CCString::getCString(v6); return atoi(CString); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source