//
// GJBaseGameLayer::resetMoveOptimizedValue from 0x9a71f0 to 0x9a723c (76 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::recreateGroups @ 0x795fb4
// > ??> @ 0x4eee0
//
// 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:10 +0000
//
unsigned __int64 __fastcall GJBaseGameLayer::resetMoveOptimizedValue(GJBaseGameLayer *this)
{
unsigned __int64 result; // x0
unsigned int v2; // w1
unsigned __int64 i; // x3
__int64 v4; // x1
result = *((_QWORD *)this + 410);
if ( result )
{
result = *(_QWORD *)(result + 56);
v2 = *(_DWORD *)result;
if ( *(_DWORD *)result )
{
result = *(_QWORD *)(result + 16);
for ( i = result + 8LL * v2 - 8; i >= result; *(_BYTE *)(v4 + 1290) = *(_BYTE *)(v4 + 1289) )
{
v4 = *(_QWORD *)result;
if ( !*(_QWORD *)result )
break;
result += 8LL;
}
}
}
return result;
}