//
// GJBaseGameLayer::resetGradientLayers from 0x99fb4c to 0x99fbbc (112 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x79e488
// > GJBaseGameLayer::triggerGradientCommand @ 0x9ad5a0
// > GJBaseGameLayer::resetLevelVariables @ 0x9e7518
// > ??> @ 0xf4060
//
// 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:06 +0000
//
_QWORD *__fastcall GJBaseGameLayer::resetGradientLayers(GJBaseGameLayer *this)
{
_QWORD *result; // x0
_QWORD *i; // x20
__int64 *v3; // x19
__int64 v4; // x2
result = *((_QWORD **)this + 1550);
if ( result )
{
result = (_QWORD *)result[7];
if ( result )
{
for ( i = (_QWORD *)result[36]; ; i = (_QWORD *)i[36] )
{
v3 = (__int64 *)result[33];
(*(void (__fastcall **)(__int64 *, _QWORD))(*v3 + 528))(v3, 0);
v3[73] = 0;
v4 = *v3;
*((_BYTE *)v3 + 592) = 0;
(*(void (__fastcall **)(__int64 *, _QWORD))(v4 + 344))(v3, 0);
result = i;
if ( !i )
break;
}
}
}
return result;
}