// // GJBaseGameLayer::restoreRecording from 0x100136430 to 0x100136523 (243 bytes) // // 1 xrefs: // > PlayLayer::loadPersistentCheckpoint @ 0x10008bfe0 // // This function is hookable on this platform (idp: pc, 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:24:50 +0000 // void __fastcall GJBaseGameLayer::restoreRecording(__int64 a1, __int128 *a2) { __int64 v3; // rcx __int64 v4; // rax int v5; // edi __int64 v6; // rsi __int64 v7; // r8 int v8; // edx int v9; // r10d __int128 v10; // [rsp+0h] [rbp-20h] BYREF void *__p; // [rsp+10h] [rbp-10h] if ( *(_BYTE *)(a1 + 12744) == 1 ) { if ( (*(_BYTE *)a2 & 1) != 0 ) { sub_10001AD30(&v10, *((const void **)a2 + 2), *((_QWORD *)a2 + 1)); } else { __p = *((void **)a2 + 2); v10 = *a2; } GJBaseGameLayer::parseRecording(a1, (__int64)&v10, 1); if ( (v10 & 1) != 0 ) operator delete(__p); v3 = *(_QWORD *)(a1 + 12848); v4 = *(_QWORD *)(a1 + 12856) - v3; if ( v4 ) { v5 = *(_DWORD *)(a1 + 956); v6 = (v4 >> 4 == 0) + (v4 >> 4); v7 = 0; v8 = 0; v9 = 0; while ( 1 ) { if ( (*(_DWORD *)(v3 + v7) & 0xFFFFFFFE) == 0x62 ) v9 = 0; v9 += *(_DWORD *)(v3 + v7 + 8); if ( v9 > v5 ) break; v7 += 16; v8 = v9; if ( !--v6 ) { v8 = v9; goto LABEL_16; } } *(_QWORD *)(a1 + 12856) = v7 + v3; v4 = v7; } else { v8 = 0; } LABEL_16: *(_DWORD *)(a1 + 13032) = (unsigned __int64)v4 >> 4; *(_DWORD *)(a1 + 12820) = v8; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source