// // GJBaseGameLayer::processRotationActions from 0x5a3194 to 0x5a36ae (1306 bytes) // // 1 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x5bc878 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:18 +0000 // int __fastcall GJBaseGameLayer::processRotationActions(GJBaseGameLayer *this) { const cocos2d::CCPoint *v2; // r0 _DWORD *i; // r5 int *v4; // r3 int *v5; // r2 int v6; // t1 int v7; // r3 int *v8; // r10 int v9; // r5 int v10; // t1 int v11; // r8 int MainObject; // r11 cocos2d::CCObject *OptimizedGroup; // r6 cocos2d::CCObject *Group; // r0 float v16; // s14 float v17; // s15 int v18; // r3 int v19; // r1 int v20; // r2 _DWORD *v21; // r2 int *v22; // r5 int v23; // r11 int v24; // t1 _DWORD *v25; // r3 int v26; // r6 int *v27; // r3 unsigned int v28; // r5 int *v29; // r8 int v30; // r6 int v31; // t1 float v32; // s14 int v33; // r2 float v34; // s14 float v35; // s14 float v36; // s12 float v37; // s13 float v38; // s15 float v39; // s12 double v40; // d5 float v41; // s15 float v42; // r1 float v43; // r1 int v44; // r3 cocos2d::CCObject *StaticGroup; // [sp+14h] [bp-80h] char v46; // [sp+14h] [bp-80h] int v47; // [sp+18h] [bp-7Ch] int v48; // [sp+1Ch] [bp-78h] int *v49; // [sp+20h] [bp-74h] int *v50; // [sp+24h] [bp-70h] float v51; // [sp+34h] [bp-60h] BYREF float v52; // [sp+38h] [bp-5Ch] BYREF _BYTE v53[8]; // [sp+3Ch] [bp-58h] BYREF float v54[2]; // [sp+44h] [bp-50h] BYREF float v55[2]; // [sp+4Ch] [bp-48h] BYREF _BYTE v56[8]; // [sp+54h] [bp-40h] BYREF _BYTE v57[24]; // [sp+5Ch] [bp-38h] BYREF float v58[6]; // [sp+74h] [bp-20h] BYREF v47 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 68))(*((_DWORD *)this + 609)); v48 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 76))(*((_DWORD *)this + 609)); v2 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 96))(*((_DWORD *)this + 609)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, v2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 609) + 80))(*((_DWORD *)this + 609), 1065353216); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 609) + 92))(*((_DWORD *)this + 609), &unk_D2C400); for ( i = *(_DWORD **)(*((_DWORD *)this + 381) + 772); i; i = (_DWORD *)*i ) { v4 = (int *)i[3]; v5 = (int *)i[4]; while ( v4 != v5 ) { v6 = *v4++; *(_DWORD *)(v6 + 480) = *((_DWORD *)this + 202); } } v7 = *((_DWORD *)this + 381); v8 = *(int **)(v7 + 752); v49 = *(int **)(v7 + 756); while ( v8 != v49 ) { v10 = *v8++; v9 = v10; if ( *(_DWORD *)(v10 + 480) == *((_DWORD *)this + 202) ) { v11 = *(unsigned __int8 *)(v9 + 424); if ( !*(_BYTE *)(v9 + 424) ) { MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, *(_DWORD *)(v9 + 44)); StaticGroup = GJBaseGameLayer::getStaticGroup(this, *(_DWORD *)(v9 + 40)); OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(this, *(_DWORD *)(v9 + 40)); if ( cocos2d::CCArray::count(StaticGroup) ) { Group = GJBaseGameLayer::getGroup(this, *(_DWORD *)(v9 + 40)); v16 = *(double *)(v9 + 160) - *(double *)(v9 + 272); v51 = v16; OptimizedGroup = Group; } else { v11 = 1; v32 = *(double *)(v9 + 168) - *(double *)(v9 + 280); v51 = v32; } v17 = v51; v18 = *(unsigned __int8 *)(v9 + 184); v46 = *(_BYTE *)(v9 + 114); if ( v51 != 0.0 || *(_BYTE *)(v9 + 114) ) { *(_BYTE *)(v9 + 424) = 1; if ( v18 ) v17 = 0.0; v19 = *(_DWORD *)(v9 + 40); v20 = *(_DWORD *)(v9 + 44); v52 = v17; GJBaseGameLayer::claimRotationAction(this, v19, v20, &v51, &v52, v11, 1); if ( MainObject ) { GameObject::getUnmodifiedPosition((GameObject *)v54, MainObject); GJBaseGameLayer::claimMoveAction((GJBaseGameLayer *)v55, (int)this, *(_DWORD *)(v9 + 40), v11); (*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 367) + 92))(*((_DWORD *)this + 367), v54); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 367) + 64))(*((_DWORD *)this + 367), 1065353216); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 367) + 72))(*((_DWORD *)this + 367), 1065353216); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 369) + 64))(*((_DWORD *)this + 369), 1065353216); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 369) + 72))(*((_DWORD *)this + 369), 1065353216); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 367) + 132))(*((_DWORD *)this + 367), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 367) + 140))(*((_DWORD *)this + 367), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 368) + 132))(*((_DWORD *)this + 368), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 368) + 140))(*((_DWORD *)this + 368), 0); (*(void (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 367) + 180))( *((_DWORD *)this + 367), COERCE_FLOAT(LODWORD(v51))); GJBaseGameLayer::prepareTransformParent((cocos2d::CCObject **)this, 0); (*(void (__fastcall **)(_BYTE *))(**((_DWORD **)this + 367) + 412))(v57); (*(void (__fastcall **)(float *))(**((_DWORD **)this + 368) + 412))(v58); (*(void (__fastcall **)(float *))(**((_DWORD **)this + 369) + 412))(v58); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 371) + 64))(*((_DWORD *)this + 371), 1065353216); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 371) + 72))(*((_DWORD *)this + 371), 1065353216); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 371) + 132))(*((_DWORD *)this + 371), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 371) + 140))(*((_DWORD *)this + 371), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 371) + 180))(*((_DWORD *)this + 371), 0); *((_DWORD *)this + 2878) += cocos2d::CCArray::count(OptimizedGroup); if ( OptimizedGroup ) { v21 = *((_DWORD **)OptimizedGroup + 13); if ( *v21 ) { v22 = (int *)v21[3]; v50 = &v22[*v21 - 1]; while ( v22 <= v50 ) { v24 = *v22++; v23 = v24; if ( !v24 ) break; v33 = *(unsigned __int8 *)(v23 + 1110); *(_BYTE *)(v23 + 1111) = v46; if ( !v33 && *(_DWORD *)(v23 + 1072) != *((_DWORD *)this + 202) ) { v34 = *(double *)(v23 + 808); *(float *)(v23 + 1060) = v34; v35 = *(double *)(v23 + 816); *(float *)(v23 + 1064) = v35; *(_DWORD *)(v23 + 1072) = *((_DWORD *)this + 202); GameObject::dirtifyObjectRect(v23); } v36 = *(float *)(v23 + 568); *(_BYTE *)(v23 + 708) = 1; *(_BYTE *)(v23 + 710) = 1; v37 = *(double *)(v23 + 808) - v36 - v54[0]; v38 = *(double *)(v23 + 816) - *(float *)(v23 + 572) - v54[1]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, v37, v38); cocos2d::__CCPointApplyAffineTransform(v58, v56, v57); v39 = v55[1]; v40 = *(double *)(v23 + 816); *(double *)(v23 + 808) = *(double *)(v23 + 808) + (float)(v58[0] + v55[0]) - *(double *)(v23 + 808) + *(float *)(v23 + 568); *(double *)(v23 + 816) = v40 + (float)(v58[1] + v39) - v40 + *(float *)(v23 + 572); v41 = v52; if ( v52 != 0.0 ) { if ( *(_BYTE *)(v23 + 736) ) { v42 = v52; *(float *)(v23 + 576) = *(float *)(v23 + 576) + v52; *(float *)(v23 + 584) = *(float *)(v23 + 584) + v41; GameObject::addRotation((GameObject *)v23, v42); if ( *(_DWORD *)(v23 + 784) != 7 && !*(_BYTE *)(v23 + 636) ) GameObject::calculateOrientedBox((GameObject *)v23); } } (*(void (__fastcall **)(GJBaseGameLayer *, int))(*(_DWORD *)this + 684))(this, v23); } } } (*(void (__fastcall **)(GJBaseGameLayer *, cocos2d::CCObject *))(*(_DWORD *)this + 688))( this, OptimizedGroup); } else if ( v52 != 0.0 ) { if ( OptimizedGroup ) { v25 = *((_DWORD **)OptimizedGroup + 13); if ( *v25 ) { v26 = *v25 + 0x40000000; v27 = (int *)v25[3]; v28 = (unsigned int)&v27[v26 - 1]; v29 = v27; while ( (unsigned int)v29 <= v28 ) { v31 = *v29++; v30 = v31; if ( !v31 ) break; if ( *(_BYTE *)(v30 + 736) ) { v43 = v52; *(float *)(v30 + 576) = *(float *)(v30 + 576) + v52; *(float *)(v30 + 584) = *(float *)(v30 + 584) + v43; GameObject::addRotation((GameObject *)v30, v43); if ( *(_DWORD *)(v30 + 784) != 7 ) { v44 = *(unsigned __int8 *)(v30 + 636); *(_BYTE *)(v30 + 732) = 1; *(_BYTE *)(v30 + 733) = 1; if ( !v44 ) GameObject::calculateOrientedBox((GameObject *)v30); } } } } } } } } } } (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 609) + 64))(*((_DWORD *)this + 609), v47); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 609) + 72))(*((_DWORD *)this + 609), v48); return (*(int (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 609) + 92))(*((_DWORD *)this + 609), v53); }
GD Web Decomp Icon

GD Web Decomp

Raw Source