// // GJBaseGameLayer::triggerDynamicRotateCommand from 0x5a2328 to 0x5a250e (486 bytes) // // 1 xrefs: // > GJBaseGameLayer::triggerRotateCommand @ 0x5a25f6 // // 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:17 +0000 // void __fastcall GJBaseGameLayer::triggerDynamicRotateCommand(GJBaseGameLayer *this, EnhancedTriggerObject *a2) { int Object; // r10 int v5; // r9 int v6; // r8 int v7; // r0 unsigned int v8; // r2 unsigned int v9; // r7 int v10; // r11 int v11; // r7 int v12; // r1 int v13; // r3 int v14; // r0 int v15; // r0 unsigned int v16; // r1 int v17; // r2 unsigned int v18; // r0 int v19; // r3 int v20; // lr int v21; // r1 int v22; // r2 int v23; // r0 int v24; // [sp+Ch] [bp-28h] BYREF int v25; // [sp+10h] [bp-24h] BYREF int v26; // [sp+14h] [bp-20h] BYREF void *v27[2]; // [sp+18h] [bp-1Ch] BYREF int v28; // [sp+20h] [bp-14h] GJBaseGameLayer::getRotateCommandTargets((cocos2d::CCDictionary **)this, (int)a2, &v25, &v26, &v24); if ( v25 && v24 && v26 ) { Object = GJBaseGameLayer::tryGetObject((cocos2d::CCDictionary **)this, *((_DWORD *)a2 + 412)); v5 = GJBaseGameLayer::tryGetObject((cocos2d::CCDictionary **)this, *((_DWORD *)a2 + 413)); v6 = GJBaseGameLayer::tryGetObject((cocos2d::CCDictionary **)this, *((_DWORD *)a2 + 414)); v7 = GJBaseGameLayer::tryGetObject((cocos2d::CCDictionary **)this, *((_DWORD *)a2 + 415)); v8 = *((_DWORD *)this + 318); v9 = *((_DWORD *)this + 319); v10 = v7; if ( v8 >= v9 ) { v15 = *((_DWORD *)this + 317); v16 = 71582788; v17 = -286331153 * ((int)(v8 - v15) >> 2); if ( (unsigned int)(v17 + 1) > 0x4444444 ) sub_388B48(); v18 = -286331153 * ((int)(v9 - v15) >> 2); if ( v18 <= 0x2222221 ) { v16 = 2 * v18; if ( 2 * v18 < v17 + 1 ) v16 = v17 + 1; } std::__split_buffer::__split_buffer(v27, v16, v17, (int)this + 1276); v19 = v28; v20 = v25; v21 = v24; v22 = v26; if ( v28 ) { *(_DWORD *)(v28 + 4) = 0; *(_DWORD *)(v19 + 8) = 0; *(_DWORD *)(v19 + 12) = 0; *(_DWORD *)(v19 + 16) = 0; *(_DWORD *)(v19 + 20) = 0; *(_DWORD *)(v19 + 24) = 0; *(_DWORD *)(v19 + 28) = 0; *(_DWORD *)(v19 + 32) = 0; *(_DWORD *)(v19 + 36) = 0; *(_DWORD *)(v19 + 40) = 0; *(_DWORD *)(v19 + 48) = 0; *(_DWORD *)(v19 + 52) = 0; *(_DWORD *)(v19 + 56) = 0; *(_BYTE *)(v19 + 44) = 1; *(_BYTE *)(v19 + 45) = 0; *(_BYTE *)(v19 + 46) = 0; *(_BYTE *)(v19 + 47) = 0; *(_DWORD *)v19 = a2; *(_DWORD *)(v19 + 48) = *((_DWORD *)a2 + 373); *(_DWORD *)(v19 + 52) = *((_DWORD *)a2 + 321); v23 = *((_DWORD *)a2 + 322); *(_DWORD *)(v19 + 4) = v20; *(_DWORD *)(v19 + 8) = v21; *(_DWORD *)(v19 + 56) = v23; *(_DWORD *)(v19 + 12) = v22; *(_DWORD *)(v19 + 16) = Object; *(_DWORD *)(v19 + 20) = v5; *(_DWORD *)(v19 + 24) = v6; *(_DWORD *)(v19 + 28) = v10; } v28 += 60; std::vector::__swap_out_circular_buffer((int *)this + 317, v27); v28 -= 60 * ((787410671 * ((v28 - (unsigned int)v27[1]) >> 2)) & 0x3FFFFFFF); if ( v27[0] ) operator delete(v27[0]); } else { v11 = v25; v12 = v24; v13 = v26; if ( v8 ) { *(_DWORD *)(v8 + 4) = 0; *(_DWORD *)(v8 + 8) = 0; *(_DWORD *)(v8 + 12) = 0; *(_DWORD *)(v8 + 16) = 0; *(_DWORD *)(v8 + 20) = 0; *(_DWORD *)(v8 + 24) = 0; *(_DWORD *)(v8 + 28) = 0; *(_DWORD *)(v8 + 32) = 0; *(_DWORD *)(v8 + 36) = 0; *(_DWORD *)(v8 + 40) = 0; *(_DWORD *)(v8 + 48) = 0; *(_DWORD *)(v8 + 52) = 0; *(_DWORD *)(v8 + 56) = 0; *(_BYTE *)(v8 + 44) = 1; *(_BYTE *)(v8 + 45) = 0; *(_BYTE *)(v8 + 46) = 0; *(_BYTE *)(v8 + 47) = 0; *(_DWORD *)v8 = a2; *(_DWORD *)(v8 + 48) = *((_DWORD *)a2 + 373); *(_DWORD *)(v8 + 52) = *((_DWORD *)a2 + 321); v14 = *((_DWORD *)a2 + 322); *(_DWORD *)(v8 + 4) = v11; *(_DWORD *)(v8 + 8) = v12; *(_DWORD *)(v8 + 56) = v14; *(_DWORD *)(v8 + 12) = v13; *(_DWORD *)(v8 + 16) = Object; *(_DWORD *)(v8 + 20) = v5; *(_DWORD *)(v8 + 24) = v6; *(_DWORD *)(v8 + 28) = v10; } *((_DWORD *)this + 318) += 60; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source