//
// GJBaseGameLayer::resetMoveOptimizedValue from 0x1002969b8 to 0x1002969f8 (64 bytes)
//
// 1 xrefs:
// > sub_100403764 @ 0x10040377c
//
// 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 11:02:06 +0000
//
__int64 __fastcall GJBaseGameLayer::resetMoveOptimizedValue(__int64 result)
{
__int64 v1; // x8
unsigned int *v2; // x8
__int64 v3; // x9
unsigned __int64 v4; // x8
unsigned __int64 v5; // x9
v1 = *(_QWORD *)(result + 3280);
if ( v1 )
{
v2 = *(unsigned int **)(v1 + 56);
v3 = *v2;
if ( (_DWORD)v3 )
{
v4 = *((_QWORD *)v2 + 2);
v5 = v4 + 8 * v3 - 8;
do
{
if ( !*(_QWORD *)v4 )
break;
*(_BYTE *)(*(_QWORD *)v4 + 1290LL) = *(_BYTE *)(*(_QWORD *)v4 + 1289LL);
v4 += 8LL;
}
while ( v4 <= v5 );
}
}
return result;
}