// // GJBaseGameLayer::rotateAreaObjects from 0x59e838 to 0x59eaa4 (620 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaRotateGroupAction @ 0x59ec34 // // 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:15 +0000 // int __fastcall GJBaseGameLayer::rotateAreaObjects( GJBaseGameLayer *this, GameObject *a2, cocos2d::CCArray *a3, float a4, bool a5) { _DWORD *v10; // r3 int **v11; // r6 int **v12; // r11 int *v13; // r5 int *v14; // t1 int v15; // r0 int v16; // r3 int v17; // [sp+4h] [bp-90h] void (__fastcall *v18)(int, _BYTE *); // [sp+8h] [bp-8Ch] int v19; // [sp+10h] [bp-84h] _DWORD v20[7]; // [sp+18h] [bp-7Ch] BYREF _BYTE v21[8]; // [sp+34h] [bp-60h] BYREF float v22[2]; // [sp+3Ch] [bp-58h] BYREF _DWORD v23[6]; // [sp+44h] [bp-50h] BYREF _BYTE v24[16]; // [sp+5Ch] [bp-38h] BYREF float v25; // [sp+6Ch] [bp-28h] float v26; // [sp+70h] [bp-24h] _BYTE v27[24]; // [sp+74h] [bp-20h] BYREF if ( GJBaseGameLayer::resetAreaObjectValues(this, a2, 1) ) (*(void (__fastcall **)(GJBaseGameLayer *, GameObject *))(*(_DWORD *)this + 684))(this, a2); (*(void (__fastcall **)(_BYTE *, GameObject *))(*(_DWORD *)a2 + 680))(v21, a2); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 367) + 92))(*((_DWORD *)this + 367), v21); (*(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, _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 + 367) + 180))(*((_DWORD *)this + 367), LODWORD(a4)); GJBaseGameLayer::prepareTransformParent((cocos2d::CCObject **)this, 0); (*(void (__fastcall **)(_DWORD *))(**((_DWORD **)this + 367) + 412))(v20); v23[0] = v20[0]; v23[1] = v20[1]; v23[2] = v20[2]; v23[3] = v20[3]; v23[4] = v20[4]; v23[5] = v20[5]; (*(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); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22); if ( a3 ) { v10 = *((_DWORD **)a3 + 13); if ( *v10 ) { v11 = (int **)v10[3]; v12 = &(&v11[*v10])[-1]; while ( v11 <= v12 ) { v14 = *v11++; v13 = v14; if ( !v14 ) break; if ( !*((_BYTE *)v13 + 1124) ) { v15 = GJBaseGameLayer::resetAreaObjectValues(this, (GameObject *)v13, 1); v16 = *v13; *((_BYTE *)v13 + 708) = 1; v17 = v15; (*(void (__fastcall **)(_BYTE *, int *))(v16 + 680))(v27, v13); cocos2d::CCPoint::operator=(v22, v27); v19 = *((_DWORD *)this + 371); v18 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::operator-(v27, v22, v21); v18(v19, v27); (*(void (__fastcall **)(_BYTE *))(**((_DWORD **)this + 371) + 400))(v27); cocos2d::CCAffineTransformConcat(v24, v27, v23); GJBaseGameLayer::moveAreaObject(this, (GameObject *)v13, v25 - v22[0], v26 - v22[1]); if ( a4 != 0.0 && *((_BYTE *)v13 + 736) ) { *((float *)v13 + 144) = *((float *)v13 + 144) + a4; *((float *)v13 + 145) = *((float *)v13 + 145) + a4; *((float *)v13 + 146) = *((float *)v13 + 146) + a4; *((float *)v13 + 147) = *((float *)v13 + 147) + a4; if ( a5 ) (*(void (__fastcall **)(int *, _DWORD))(*v13 + 740))(v13, 0); if ( v13[196] != 7 && !*((_BYTE *)v13 + 636) ) GameObject::calculateOrientedBox((GameObject *)v13); } if ( v17 ) (*(void (__fastcall **)(GJBaseGameLayer *, int *))(*(_DWORD *)this + 684))(this, v13); } } } } return (*(int (__fastcall **)(GJBaseGameLayer *, cocos2d::CCArray *))(*(_DWORD *)this + 688))(this, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source