// // GJBaseGameLayer::processFollowActions from 0x9a6f48 to 0x9a71f0 (680 bytes) // // 2 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x9ebb88 // > @ 0xe22e8 // // 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:10 +0000 // __int64 __fastcall GJBaseGameLayer::processFollowActions(GJBaseGameLayer *this) { __int64 result; // x0 _QWORD *v3; // x27 _QWORD *i; // x22 __int64 v5; // x28 int v6; // w0 cocos2d::CCObject *Group; // x23 __int64 v8; // x19 float v9; // s1 float v10; // s0 double v11; // d0 double v12; // d2 _BOOL4 v13; // w24 double v14; // d0 _BOOL4 v15; // w25 __int64 v16; // x0 double v17; // d0 GJEffectManager *v18; // x19 int v19; // w0 unsigned int *v20; // x0 __int64 *v21; // x21 __int64 *v22; // x26 __int64 v23; // x19 __int64 v24; // x0 float v25; // s1 float v26; // s0 GJEffectManager *v27; // x19 int v28; // w0 result = *((_QWORD *)this + 269); v3 = *(_QWORD **)(result + 1536); for ( i = *(_QWORD **)(result + 1528); v3 != i; result = (*(__int64 (__fastcall **)(GJBaseGameLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 1376LL))( this, Group) ) { while ( 1 ) { v5 = *i; v6 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*i + 64LL))(*i); Group = GJBaseGameLayer::getGroup(this, v6); result = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, *(_DWORD *)(v5 + 116)); v8 = result; if ( result ) { if ( *(_DWORD *)(result + 1236) != *((_DWORD *)this + 236) ) { v9 = *(double *)(result + 944); v10 = *(double *)(result + 952); *(float *)(result + 1224) = v9; *(float *)(result + 1228) = v10; *(_DWORD *)(result + 1236) = *((_DWORD *)this + 236); GameObject::dirtifyObjectRect(result); } v11 = *(double *)(v5 + 136); v12 = (*(double *)(v8 + 944) - *(float *)(v8 + 1224)) * *(double *)(v5 + 128); *(double *)(v5 + 56) = v12; v13 = v12 != 0.0; v14 = (*(double *)(v8 + 952) - *(float *)(v8 + 1228)) * v11; *(double *)(v5 + 64) = v14; v15 = v14 != 0.0; if ( v15 || v13 ) break; if ( *(_BYTE *)(v5 + 120) ) break; result = *(unsigned __int8 *)(v8 + 1291); if ( *(_BYTE *)(v8 + 1291) ) { v27 = *((GJEffectManager **)this + 269); v28 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5); result = (unsigned __int8)GJEffectManager::wasFollowing(v27, v28, *(_DWORD *)(v5 + 116)); if ( (_BYTE)result ) break; } } if ( v3 == ++i ) return result; } v16 = *(_QWORD *)(v5 + 200); if ( v16 ) { v17 = *(double *)(v16 + 56); *(double *)(v16 + 48) = *(double *)(v16 + 48) + *(double *)(v5 + 56); *(double *)(v16 + 56) = v17 + *(double *)(v5 + 64); } v18 = *((GJEffectManager **)this + 269); v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5); GJEffectManager::setFollowing(v18, v19, *(_DWORD *)(v5 + 116), v15 || v13); *((_DWORD *)this + 3438) += cocos2d::CCArray::count(Group); if ( Group ) { v20 = *((unsigned int **)Group + 7); if ( *v20 ) { v21 = *((__int64 **)v20 + 2); v22 = &v21[*v20 - 1]; while ( v22 >= v21 ) { v23 = *v21; if ( !*v21 ) break; if ( !*(_BYTE *)(v23 + 1290) && *(_DWORD *)(v23 + 1236) != *((_DWORD *)this + 236) ) { v24 = *v21; v25 = *(double *)(v23 + 944); v26 = *(double *)(v23 + 952); *(float *)(v23 + 1224) = v25; *(float *)(v23 + 1228) = v26; *(_DWORD *)(v23 + 1236) = *((_DWORD *)this + 236); GameObject::dirtifyObjectRect(v24); } if ( v15 ) *(double *)(v23 + 952) = *(double *)(v23 + 952) + *(double *)(v5 + 64); GameObject::dirtifyObjectPos(v23); if ( v13 && !*(_BYTE *)(v23 + 708) ) *(double *)(v23 + 944) = *(double *)(v23 + 944) + *(double *)(v5 + 56); ++v21; (*(void (__fastcall **)(GJBaseGameLayer *, __int64))(*(_QWORD *)this + 1368LL))(this, v23); } } } ++i; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source