//
// GJBaseGameLayer::setupReplay from 0x100135140 to 0x1001351a3 (99 bytes)
//
// 1 xrefs:
// > sub_1002B10F0 @ 0x1002b1141
//
// 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::setupReplay(__int64 a1, __int128 *a2)
{
__int128 v2; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( *(_BYTE *)(a1 + 12448) == 1 )
{
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v2, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
__p = *((void **)a2 + 2);
v2 = *a2;
}
GJBaseGameLayer::parseRecording(a1, &v2, 0);
if ( (v2 & 1) != 0 )
operator delete(__p);
}
}