// // GJBaseGameLayer::restoreRecording from 0x9dee0c to 0x9def6c (352 bytes) // // 2 xrefs: // > PlayLayer::loadPersistentCheckpoint @ 0x6f6ac0 // > @ 0x95b18 // // 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:54 +0000 // __int64 __fastcall GJBaseGameLayer::restoreRecording(__int64 a1, char *a2) { __int64 v3; // x22 char v5; // w0 __int64 v6; // x0 __int64 v7; // x1 __int64 v8; // x0 __int64 v9; // x2 int *v10; // x0 unsigned __int64 v11; // x1 int i; // w3 int v13; // w19 __int64 v15; // [xsp+30h] [xbp+30h] BYREF __int64 v16; // [xsp+38h] [xbp+38h] void *v17; // [xsp+40h] [xbp+40h] v3 = a1 + 12288; if ( *(_BYTE *)(a1 + 12744) ) { v5 = *a2; v15 = 0; v16 = 0; v17 = nullptr; if ( (v5 & 1) != 0 ) { std::string::__init(&v15, *((void **)a2 + 2), *((_QWORD *)a2 + 1)); } else { v6 = *(_QWORD *)a2; v7 = *((_QWORD *)a2 + 1); v17 = *((void **)a2 + 2); v15 = v6; v16 = v7; } GJBaseGameLayer::parseRecording(a1, (__int64)&v15, 1u); if ( (v15 & 1) != 0 ) operator delete(v17); v8 = *(_QWORD *)(a1 + 12848); v9 = (*(_QWORD *)(a1 + 12856) - v8) >> 4; if ( v9 ) { v10 = (int *)(v8 + 8); v11 = 0; for ( i = 0; ; i = v13 ) { v13 = *v10; if ( (unsigned int)(*(v10 - 2) - 98) > 1 ) v13 += i; if ( v13 > *(_DWORD *)(a1 + 956) ) break; ++v11; v10 += 4; if ( v11 == v9 ) goto LABEL_14; } v13 = i; std::vector::resize(v3 + 560, v11); v9 = (__int64)(*(_QWORD *)(a1 + 12856) - *(_QWORD *)(a1 + 12848)) >> 4; } else { v13 = 0; } LABEL_14: *(_DWORD *)(a1 + 13032) = v9; *(_DWORD *)(a1 + 12820) = v13; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source