//
// GJBaseGameLayer::resetMoveOptimizedValue from 0x595118 to 0x595146 (46 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::recreateGroups @ 0x467f9c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:08 +0000
//
int __fastcall GJBaseGameLayer::resetMoveOptimizedValue(int this)
{
int v1; // r3
_DWORD *v2; // r2
int v3; // r3
int *v4; // r2
int *v5; // r3
int v6; // r1
int v7; // t1
v1 = *(_DWORD *)(this + 2088);
if ( v1 )
{
v2 = *(_DWORD **)(v1 + 52);
if ( *v2 )
{
v3 = *v2 + 0x40000000;
v4 = (int *)v2[3];
v5 = &v4[v3 - 1];
while ( v4 <= v5 )
{
v7 = *v4++;
v6 = v7;
if ( !v7 )
break;
this = *(unsigned __int8 *)(v6 + 1109);
*(_BYTE *)(v6 + 1110) = this;
}
}
}
return this;
}