// // GJBaseGameLayer::moveObjectToStaticGroup from 0x140339f10 to 0x14033a087 (375 bytes) // // 5 xrefs: // > GJBaseGameLayer::optimizeMoveGroups @ 0x140339d5b // > GJBaseGameLayer::optimizeMoveGroups @ 0x140339e53 // > @ 0x1408b70e4 // > @ 0x1408b7128 // > @ 0x14091fac0 // // This function is hookable on this platform (idp: pc, 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 11:30:36 +0000 // void __fastcall GJBaseGameLayer::moveObjectToStaticGroup(__int64 a1, __int64 a2) { int v4; // r13d __int64 v5; // r12 unsigned __int64 i; // r15 __int64 v7; // rax __int64 v8; // rbx int v9; // eax __int64 v10; // r14 struct cocos2d::CCObject *v11; // rsi __int64 v12; // r14 struct cocos2d::CCObject *v13; // rbx if ( *(_BYTE *)(a2 + 1298) ) { v4 = 0; *(_BYTE *)(a2 + 1298) = 0; if ( *(__int16 *)(a2 + 1176) > 0 ) { v5 = 0; for ( i = 0; i <= 9; ++i ) { v7 = *(_QWORD *)(a2 + 1168); if ( !v7 ) break; v8 = (unsigned int)*(__int16 *)(v5 + v7); if ( (int)v8 > 9999 ) v8 = 9999; if ( (int)v8 >= 0 ) goto LABEL_11; v9 = 0; LABEL_12: v10 = v9; v11 = *(struct cocos2d::CCObject **)(*(_QWORD *)(a1 + 3920) + 8LL * v9); if ( !v11 ) { v11 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(0); cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 3880), v11, v10); *(_QWORD *)(*(_QWORD *)(a1 + 3920) + 8 * v10) = v11; } if ( (int)v8 < 0 ) v8 = 0; v12 = (unsigned int)v8; v13 = *(struct cocos2d::CCObject **)(*(_QWORD *)(a1 + 3944) + 8 * v8); if ( !v13 ) { v13 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(0); cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 3888), v13, (unsigned int)v12); *(_QWORD *)(*(_QWORD *)(a1 + 3944) + 8 * v12) = v13; } if ( !cocos2d::CCArray::containsObject(v11, (struct cocos2d::CCObject *)a2) ) cocos2d::CCArray::addObject(v11, (struct cocos2d::CCObject *)a2); cocos2d::CCArray::removeObject(v13, (struct cocos2d::CCObject *)a2, 1); ++v4; v5 += 2; if ( v4 >= *(__int16 *)(a2 + 1176) ) return; } v8 = 0; LABEL_11: v9 = v8; goto LABEL_12; } } }