// // GJBaseGameLayer::processCommands from 0x9c2b80 to 0x9c2d24 (420 bytes) // // 2 xrefs: // > GJBaseGameLayer::update @ 0x9eda44 // > @ 0x97b58 // // 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:30 +0000 // unsigned __int64 __fastcall GJBaseGameLayer::processCommands( GJBaseGameLayer *this, float a2, char a3, unsigned __int8 a4) { int v5; // w4 int v6; // w0 unsigned int v7; // w1 char *v8; // x3 unsigned __int64 result; // x0 unsigned __int8 v10; // w1 __int64 v11; // x2 unsigned __int64 v12; // x0 int v13; // w1 float v14; // s0 int v15; // w1 int v16; // w1 int v17; // w3 int v18; // w3 __int64 v19; // x1 v5 = *((_DWORD *)this + 236); *((_DWORD *)this + 239) = v5; if ( a2 <= 0.0 ) { v8 = (char *)this + 12288; result = *((unsigned __int8 *)this + 12650); if ( (_DWORD)result ) goto LABEL_11; if ( a2 <= 0.0 ) { LABEL_5: v10 = a4; if ( !v8[1657] ) goto LABEL_6; goto LABEL_9; } if ( a3 ) { LABEL_4: ++*((_DWORD *)this + 238); goto LABEL_5; } *((_DWORD *)this + 238) += 2; } else { v6 = llroundf(*((float *)this + 204) * 1000.0); if ( a3 ) { v7 = *((_DWORD *)this + 241); v8 = (char *)this + 12288; *((_DWORD *)this + 236) = v5 + 1; *((_DWORD *)this + 241) = (unsigned int)(float)((float)v7 + (float)((float)v6 * 0.5)); result = *((unsigned __int8 *)this + 12650); if ( *((_BYTE *)this + 12650) ) goto LABEL_11; goto LABEL_4; } v15 = *((_DWORD *)this + 241); v8 = (char *)this + 12288; *((_DWORD *)this + 236) = v5 + 2; *((_DWORD *)this + 241) = v15 + v6; result = *((unsigned __int8 *)this + 12650); if ( *((_BYTE *)this + 12650) ) goto LABEL_11; *((_DWORD *)this + 238) += 2; } v10 = a4; if ( !v8[1657] ) { LABEL_6: if ( v8[1658] ) v10 = a4; else v10 = 1; } LABEL_9: GJBaseGameLayer::processQueuedButtons(this, a2, v10); v11 = *((_QWORD *)this + 1606); v12 = *((int *)this + 3258); if ( v12 < (*((_QWORD *)this + 1607) - v11) >> 4 ) { v16 = *((_DWORD *)this + 239); v17 = *((_DWORD *)this + 3205); *((_DWORD *)this + 3205) = v16; v18 = v16 - v17; do { *(_DWORD *)(v11 + 16 * v12 + 8) = v18; v18 = 0; v11 = *((_QWORD *)this + 1606); v19 = *((_QWORD *)this + 1607); LODWORD(v12) = *((_DWORD *)this + 3258) + 1; *((_DWORD *)this + 3258) = v12; v12 = (int)v12; } while ( (int)v12 < (unsigned __int64)((v19 - v11) >> 4) ); } result = GJBaseGameLayer::updateReplay((unsigned __int64)this); LABEL_11: v13 = *((_DWORD *)this + 481); if ( v13 > 0 ) { result = (unsigned int)(*((_DWORD *)this + 482) - 1); *((_DWORD *)this + 482) = result; if ( (result & 0x80000000) != 0 ) { v14 = *((float *)this + 3278); *((_DWORD *)this + 481) = v13 - 1; result = (unsigned int)(int)(float)(v14 * 120.0); *((_DWORD *)this + 482) = result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source