// // GJBaseGameLayer::sortStickyGroups from 0x9a39a4 to 0x9a3ad8 (308 bytes) // // 3 xrefs: // > LevelEditorLayer::init @ 0x7af2f8 // > GJBaseGameLayer::updateSpecialGroupData @ 0x9f3c80 // > @ 0xfc460 // // This function is hookable on this platform (idp: arm, 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:58:09 +0000 // __int64 __fastcall GJBaseGameLayer::sortStickyGroups(cocos2d::CCArray **this) { unsigned int v2; // w19 cocos2d::CCDictionary *v3; // x23 __int64 result; // x0 bool v5; // cf unsigned int v6; // w1 int *v7; // x20 __int64 v8; // x1 cocos2d::CCObject *v9; // x22 __int64 v10; // x1 __int64 v11; // x22 int v12; // w0 unsigned int v13; // w19 cocos2d::CCArray *i; // x20 unsigned int v15; // w1 v2 = 0; v3 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create((cocos2d::CCDictionary *)this); while ( 1 ) { result = cocos2d::CCArray::count(*(this + 410)); v5 = v2 >= (unsigned int)result; v6 = v2++; if ( v5 ) break; while ( 1 ) { v7 = (int *)cocos2d::CCArray::objectAtIndex(*(this + 410), v6); v8 = v7[218]; if ( (int)v8 <= 0 ) break; v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v3, v8); if ( !v9 ) { v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr); cocos2d::CCDictionary::setObject(v3, v9, v7[218]); } cocos2d::CCArray::addObject(v9, (cocos2d::CCObject *)v7); result = cocos2d::CCArray::count(*(this + 410)); v5 = v2 >= (unsigned int)result; v6 = v2++; if ( v5 ) goto LABEL_8; } } LABEL_8: *((_DWORD *)this + 972) = 0; if ( v3 ) { v10 = *((_QWORD *)v3 + 7); if ( v10 ) { v11 = *(_QWORD *)(v10 + 288); v12 = 0; while ( 1 ) { *((_DWORD *)this + 972) = v12 + 1; v13 = 0; for ( i = *(cocos2d::CCArray **)(v10 + 264); ; *(_DWORD *)(cocos2d::CCArray::objectAtIndex(i, v15) + 872) = *((_DWORD *)this + 972) ) { v5 = v13 >= (unsigned int)cocos2d::CCArray::count(i); v15 = v13++; if ( v5 ) break; } result = cocos2d::CCDictionary::setObject(*(this + 485), i, *((unsigned int *)this + 972)); if ( !v11 ) break; v10 = v11; v12 = *((_DWORD *)this + 972); v11 = *(_QWORD *)(v11 + 288); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source