//
// GJBaseGameLayer::resetRecordFull from 0x9a8c2c to 0x9a8cc8 (156 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::resetRecord @ 0x9dd9d8
// > ??> @ 0x41b60
//
// 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:11 +0000
//
__int64 __fastcall GJBaseGameLayer::resetRecordFull(GJBaseGameLayer *this)
{
__int64 v2; // x2
__int64 v3; // x1
__int64 result; // x0
__int64 v5; // x2
v2 = *((_QWORD *)this + 1606);
v3 = *((_QWORD *)this + 1607);
if ( v2 != v3 )
*((_QWORD *)this + 1607) = v3 + 16 * ~((unsigned __int64)(v3 - 16 - v2) >> 4);
result = *((_QWORD *)this + 1612);
if ( result )
{
sub_998E90(*((void ***)this + 1611));
*((_QWORD *)this + 1611) = 0;
v5 = *((_QWORD *)this + 1610);
result = 0;
if ( v5 )
{
do
*(_QWORD *)(*((_QWORD *)this + 1609) + 8 * result++) = 0;
while ( result != v5 );
}
*((_QWORD *)this + 1612) = 0;
*((_DWORD *)this + 3228) = 0;
*((_DWORD *)this + 3258) = 0;
*((_DWORD *)this + 3205) = 0;
}
else
{
*((_DWORD *)this + 3228) = 0;
*((_DWORD *)this + 3258) = 0;
*((_DWORD *)this + 3205) = 0;
}
return result;
}