//
// GJBaseGameLayer::setupReplay from 0x9ded34 to 0x9dee0c (216 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::loadReplay @ 0x7e6268
// > ??> @ 0x58a08
//
// 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::setupReplay(__int64 a1, char *a2)
{
char v4; // w0
__int64 v5; // x0
__int64 v6; // x1
__int64 v8; // [xsp+30h] [xbp+30h] BYREF
__int64 v9; // [xsp+38h] [xbp+38h]
void *v10; // [xsp+40h] [xbp+40h]
if ( *(_BYTE *)(a1 + 12448) )
{
v4 = *a2;
v8 = 0;
v9 = 0;
v10 = nullptr;
if ( (v4 & 1) != 0 )
{
std::string::__init(&v8, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v5 = *(_QWORD *)a2;
v6 = *((_QWORD *)a2 + 1);
v10 = *((void **)a2 + 2);
v8 = v5;
v9 = v6;
}
GJBaseGameLayer::parseRecording(a1, (__int64)&v8, 0);
if ( (v8 & 1) != 0 )
operator delete(v10);
}
return _stack_chk_guard;
}