// // GJBaseGameLayer::processRotationActions from 0x9bfc7c to 0x9c03ac (1840 bytes) // // 2 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x9ebb50 // > @ 0xf4a38 // // 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:29 +0000 // __int64 __fastcall GJBaseGameLayer::processRotationActions(GJBaseGameLayer *this) { float v2; // s8 float v3; // s9 const cocos2d::CCPoint *v4; // x0 _QWORD *v5; // x0 _QWORD *v6; // x4 __int64 *v7; // x3 __int64 *i; // x0 __int64 v9; // t1 __int64 *v10; // x21 __int64 *v11; // x27 __int64 v12; // x26 GameObject *MainObject; // x20 cocos2d::CCObject *StaticGroup; // x19 cocos2d::CCObject *OptimizedGroup; // x23 char v16; // w19 float v17; // s0 int v18; // w0 char v19; // w25 int v20; // w1 int v21; // w2 unsigned int *v22; // x1 __int64 *v23; // x19 __int64 j; // x26 int v25; // w0 float v26; // s1 float v27; // s0 float v28; // s2 float v29; // s5 float v30; // s0 float v31; // s1 float v32; // s6 double v33; // d2 float v34; // s0 double v35; // d4 float v37; // s1 unsigned int *v38; // x1 __int64 *v39; // x23 __int64 *v40; // x25 __int64 v41; // x20 float v42; // s0 float v43; // s1 int v44; // w0 __int64 *v45; // [xsp+88h] [xbp+88h] float v46; // [xsp+A0h] [xbp+A0h] BYREF float v47; // [xsp+A4h] [xbp+A4h] BYREF _BYTE v48[8]; // [xsp+A8h] [xbp+A8h] BYREF float v49[2]; // [xsp+B0h] [xbp+B0h] BYREF float v50[2]; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v51[8]; // [xsp+C0h] [xbp+C0h] BYREF _BYTE v52[24]; // [xsp+C8h] [xbp+C8h] BYREF float v53[6]; // [xsp+E0h] [xbp+E0h] BYREF v2 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 136LL))(*((_QWORD *)this + 490)); v3 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 152LL))(*((_QWORD *)this + 490)); v4 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 192LL))(*((_QWORD *)this + 490)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, v4); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 490) + 160LL))(*((_QWORD *)this + 490), 1.0); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 490) + 184LL))(*((_QWORD *)this + 490), &unk_155D2C8); v5 = *((_QWORD **)this + 269); v6 = (_QWORD *)v5[167]; if ( v6 ) { do { v7 = (__int64 *)v6[4]; for ( i = (__int64 *)v6[3]; v7 != i; *(_DWORD *)(v9 + 516) = *((_DWORD *)this + 236) ) v9 = *i++; v6 = (_QWORD *)*v6; } while ( v6 ); v5 = *((_QWORD **)this + 269); } v10 = (__int64 *)v5[163]; v11 = (__int64 *)v5[162]; if ( v11 != v10 ) { while ( 1 ) { v12 = *v11; if ( *(_DWORD *)(*v11 + 516) != *((_DWORD *)this + 236) || *(_BYTE *)(v12 + 424) ) goto LABEL_8; MainObject = (GameObject *)GJBaseGameLayer::tryGetMainObject( (cocos2d::CCDictionary **)this, *(_DWORD *)(v12 + 44)); StaticGroup = GJBaseGameLayer::getStaticGroup(this, *(_DWORD *)(v12 + 40)); OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(this, *(_DWORD *)(v12 + 40)); if ( (unsigned int)cocos2d::CCArray::count(StaticGroup) ) { v16 = 0; OptimizedGroup = GJBaseGameLayer::getGroup(this, *(_DWORD *)(v12 + 40)); v17 = *(double *)(v12 + 160) - *(double *)(v12 + 272); } else { v16 = 1; v17 = *(double *)(v12 + 168) - *(double *)(v12 + 280); } v46 = v17; v18 = *(unsigned __int8 *)(v12 + 184); v19 = *(_BYTE *)(v12 + 114); if ( v17 == 0.0 && !*(_BYTE *)(v12 + 114) ) goto LABEL_8; *(_BYTE *)(v12 + 424) = 1; if ( v18 ) v17 = 0.0; v20 = *(_DWORD *)(v12 + 40); v21 = *(_DWORD *)(v12 + 44); v47 = v17; GJBaseGameLayer::claimRotationAction(this, v20, v21, &v46, &v47, v16); if ( MainObject ) { GameObject::getUnmodifiedPosition(MainObject, (cocos2d::CCPoint *)v49); GJBaseGameLayer::claimMoveAction(this, *(_DWORD *)(v12 + 40), v16, (cocos2d::CCPoint *)v50); (*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 255) + 184LL))(*((_QWORD *)this + 255), v49); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 255) + 128LL))(*((_QWORD *)this + 255), 1.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 255) + 144LL))(*((_QWORD *)this + 255), 1.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 257) + 128LL))(*((_QWORD *)this + 257), 1.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 257) + 144LL))(*((_QWORD *)this + 257), 1.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 255) + 264LL))(*((_QWORD *)this + 255), 0.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 255) + 280LL))(*((_QWORD *)this + 255), 0.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 256) + 264LL))(*((_QWORD *)this + 256), 0.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 256) + 280LL))(*((_QWORD *)this + 256), 0.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 255) + 360LL))(*((_QWORD *)this + 255), v46); GJBaseGameLayer::prepareTransformParent((cocos2d::CCObject **)this, 0); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 255) + 824LL))(*((_QWORD *)this + 255)); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 256) + 824LL))(*((_QWORD *)this + 256)); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 257) + 824LL))(*((_QWORD *)this + 257)); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 259) + 128LL))(*((_QWORD *)this + 259), 1.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 259) + 144LL))(*((_QWORD *)this + 259), 1.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 259) + 264LL))(*((_QWORD *)this + 259), 0.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 259) + 280LL))(*((_QWORD *)this + 259), 0.0); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 259) + 360LL))(*((_QWORD *)this + 259), 0.0); *((_DWORD *)this + 3437) += cocos2d::CCArray::count(OptimizedGroup); if ( OptimizedGroup ) { v22 = *((unsigned int **)OptimizedGroup + 7); if ( *v22 ) { v23 = *((__int64 **)v22 + 2); v45 = &v23[*v22 - 1]; if ( v23 <= v45 ) { for ( j = *v23; *v23; j = *v23 ) { v25 = *(unsigned __int8 *)(j + 1290); *(_BYTE *)(j + 1291) = v19; if ( !v25 && *(_DWORD *)(j + 1236) != *((_DWORD *)this + 236) ) { v26 = *(double *)(j + 944); v27 = *(double *)(j + 952); *(float *)(j + 1224) = v26; *(float *)(j + 1228) = v27; *(_DWORD *)(j + 1236) = *((_DWORD *)this + 236); GameObject::dirtifyObjectRect(j); } v28 = *(float *)(j + 672); v29 = *(float *)(j + 668); *(_BYTE *)(j + 840) = 1; *(_BYTE *)(j + 842) = 1; v30 = *(double *)(j + 944) - v29 - v49[0]; v31 = *(double *)(j + 952) - v28 - v49[1]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v51, v30, v31); cocos2d::__CCPointApplyAffineTransform(v53, v51, v52); v32 = v50[1]; v33 = *(double *)(j + 952); v34 = v47; v35 = *(float *)(j + 672); *(double *)(j + 944) = *(double *)(j + 944) + (float)(v53[0] + v50[0]) - *(double *)(j + 944) + *(float *)(j + 668); *(double *)(j + 952) = v33 + (float)(v53[1] + v32) - v33 + v35; if ( v34 != 0.0 ) { if ( *(_BYTE *)(j + 868) ) { v37 = *(float *)(j + 684) + v34; *(float *)(j + 676) = *(float *)(j + 676) + v34; *(float *)(j + 684) = v37; GameObject::addRotation((GameObject *)j, v34); if ( *(_DWORD *)(j + 920) != 7 && !*(_BYTE *)(j + 744) ) GameObject::calculateOrientedBox((GameObject *)j); } } ++v23; (*(void (__fastcall **)(GJBaseGameLayer *, __int64))(*(_QWORD *)this + 1368LL))(this, j); if ( v45 < v23 ) break; } } } } ++v11; (*(void (__fastcall **)(GJBaseGameLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 1376LL))( this, OptimizedGroup); if ( v10 == v11 ) break; } else { if ( OptimizedGroup ) { if ( v47 != 0.0 ) { v38 = *((unsigned int **)OptimizedGroup + 7); if ( *v38 ) { v39 = *((__int64 **)v38 + 2); v40 = &v39[*v38 - 1]; if ( v39 <= v40 ) { v41 = *v39; if ( *v39 ) { if ( *(_BYTE *)(v41 + 868) ) goto LABEL_44; while ( v40 >= ++v39 ) { v41 = *v39; if ( !*v39 ) break; if ( *(_BYTE *)(v41 + 868) ) { LABEL_44: v42 = v47; v43 = *(float *)(v41 + 684) + v47; *(float *)(v41 + 676) = *(float *)(v41 + 676) + v47; *(float *)(v41 + 684) = v43; GameObject::addRotation((GameObject *)v41, v42); if ( *(_DWORD *)(v41 + 920) != 7 ) { v44 = *(unsigned __int8 *)(v41 + 744); *(_BYTE *)(v41 + 864) = 1; *(_BYTE *)(v41 + 865) = 1; if ( !v44 ) GameObject::calculateOrientedBox((GameObject *)v41); } } } } } } } } LABEL_8: if ( v10 == ++v11 ) break; } } } (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 490) + 128LL))(*((_QWORD *)this + 490), v2); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 490) + 144LL))(*((_QWORD *)this + 490), v3); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 490) + 184LL))(*((_QWORD *)this + 490), v48); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source