// // GJEffectManager::playerButton from 0x5cf200 to 0x5cf30a (266 bytes) // // 1 xrefs: // > GJBaseGameLayer::handleButton @ 0x5a4d34 // // 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:54:03 +0000 // char **__fastcall GJEffectManager::playerButton(char **this, int a2, int a3) { int v3; // r11 char **v4; // r5 unsigned int i; // r6 char *v8; // r1 char *v9; // r10 int v10; // r2 bool isGroupEnabled; // r0 int v12; // r2 int v13; // r2 int v14; // [sp+Ch] [bp-18h] char *v15[3]; // [sp+10h] [bp-14h] BYREF v3 = a2 ^ 1; v4 = this; for ( i = 0; ; ++i ) { v8 = v4[82]; if ( i >= -1171354717 * ((v4[83] - v8) >> 2) ) break; v9 = &v8[44 * i]; if ( !*v9 && (!v9[28] || !a3) ) { v10 = *((_DWORD *)v9 + 4); if ( v10 ) { if ( v10 == 1 ) { if ( !a3 ) continue; } else if ( v10 != 2 || a3 ) { continue; } } if ( a2 || v9[8] ) { isGroupEnabled = GJEffectManager::isGroupEnabled((GJEffectManager *)v4, *((_DWORD *)v9 + 1)); v12 = *((_DWORD *)v9 + 3); if ( v9[8] ) { if ( v12 ) { if ( v12 == 1 ) v13 = a2; else v13 = v3; goto LABEL_20; } LABEL_25: v13 = !isGroupEnabled; } else { if ( !v12 ) goto LABEL_25; v13 = v12 == 1; } LABEL_20: if ( v4[66] ) { v14 = v13; std::vector::vector((int)v15, (const void **)v9 + 8); (**(void (__fastcall ***)(char *, _DWORD, int, char **, _DWORD, _DWORD))v4[66])( v4[66], *((_DWORD *)v9 + 1), v14, v15, *((_DWORD *)v9 + 5), *((_DWORD *)v9 + 6)); this = std::__vector_base::~__vector_base(v15); } else { GJEffectManager::toggleGroup((GJEffectManager *)v4, *((_DWORD *)v9 + 1), v13); } continue; } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source