// // GJBaseGameLayer::updateReplay from 0x9c2a40 to 0x9c2b80 (320 bytes) // // 2 xrefs: // > GJBaseGameLayer::processCommands @ 0x9c2c34 // > @ 0xc5080 // // 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::updateReplay(unsigned __int64 this) { unsigned __int64 v1; // x21 unsigned int *v2; // x4 __int64 v3; // x1 __int64 v4; // x19 _BYTE *v5; // x20 __int64 v6; // x6 __int64 v7; // x5 __int64 v8; // x2 __int64 v9; // x3 __int64 v10; // x0 v1 = this + 12288; if ( *(_BYTE *)(this + 12448) ) { v2 = *(unsigned int **)(this + 12920); v3 = *(_QWORD *)(this + 12928); v4 = this; v5 = (_BYTE *)(this + 12238); while ( (v3 - (__int64)v2) >> 4 ) { if ( *v5 ) { this = *v2; if ( (_DWORD)this == 99 ) { this = v2[2]; if ( *(_DWORD *)(v4 + 956) > (int)this ) { *(_BYTE *)(v1 + 362) = 1; return 1; } return this; } } if ( v2[2] != *(_DWORD *)(v4 + 956) ) return this; if ( *v2 - 98 <= 1 ) GJBaseGameLayer::processReplayCheckpoint((GJBaseGameLayer *)v4); else GJBaseGameLayer::handleButton((GJBaseGameLayer *)v4, *((_BYTE *)v2 + 4), *v2, *((_BYTE *)v2 + 5) ^ 1); v6 = *(_QWORD *)(v4 + 12920); v7 = *(_QWORD *)(v1 + 640); this = v6 + 16; if ( v6 + 16 == v7 ) { v2 = *(unsigned int **)(v4 + 12920); } else { do { v8 = *(_QWORD *)this; v9 = *(_QWORD *)(this + 8); this += 16LL; *(_QWORD *)(this - 32) = v8; *(_QWORD *)(this - 24) = v9; } while ( v7 != this ); v2 = *(unsigned int **)(v4 + 12920); v10 = v7 - (v6 + 32); v7 = *(_QWORD *)(v4 + 12928); this = (v10 & 0xFFFFFFFFFFFFFFF0LL) + 16; v6 += this; } if ( v6 == v7 ) { v3 = v6; } else { v3 = v7 + 16 * ~((unsigned __int64)(v7 - 16 - v6) >> 4); *(_QWORD *)(v4 + 12928) = v3; } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source