// // GJBaseGameLayer::controlAdvancedFollowCommand from 0x58fe1a to 0x58fe5e (68 bytes) // // 2 xrefs: // > GJBaseGameLayer::controlTriggersWithControlID @ 0x5a1aba // > GJBaseGameLayer::controlTriggersInGroup @ 0x5b1e3e // // 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:04 +0000 // int __fastcall GJBaseGameLayer::controlAdvancedFollowCommand(int a1, int a2, int a3, int a4) { int v4; // r5 int result; // r0 bool v6; // zf v4 = *(_DWORD *)(a1 + 1248); for ( result = *(_DWORD *)(a1 + 1244); result != v4; result += 28 ) { if ( a3 == -1 ) v6 = *(_DWORD *)result == a2; else v6 = *(_DWORD *)(result + 12) == a3; if ( v6 ) { if ( a4 ) { if ( a4 == 1 ) { *(_BYTE *)(result + 24) = 1; *(_BYTE *)(result + 25) = 1; } else if ( a4 == 2 ) { *(_BYTE *)(result + 24) = 0; *(_BYTE *)(result + 25) = 0; } } else { *(_BYTE *)(result + 24) = 0; *(_BYTE *)(result + 25) = 0; *(_BYTE *)(result + 26) = 1; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source