//
// GJBaseGameLayer::resetGradientLayers from 0x10028b6fc to 0x10028b764 (104 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::triggerGradientCommand @ 0x10028b434
// > GJBaseGameLayer::resetLevelVariables @ 0x10029f228
// > sub_1003F823C @ 0x1003f86f0
//
// 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:00 +0000
//
__int64 __fastcall GJBaseGameLayer::resetGradientLayers(__int64 result)
{
__int64 v1; // x8
__int64 v2; // x8
__int64 v3; // x20
__int64 v4; // x19
v1 = *(_QWORD *)(result + 12400);
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 56);
if ( v2 )
{
do
{
v3 = *(_QWORD *)(v2 + 288);
v4 = *(_QWORD *)(v2 + 264);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 528LL))(v4, 0);
*(_QWORD *)(v4 + 584) = 0;
*(_BYTE *)(v4 + 592) = 0;
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0);
v2 = v3;
}
while ( v3 );
}
}
return result;
}