//
// GJBaseGameLayer::resetGradientLayers from 0x100116cb0 to 0x100116d16 (102 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x1000ad1ed
//
// This function is hookable on this platform (idp: pc, 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:24:34 +0000
//
__int64 __fastcall GJBaseGameLayer::resetGradientLayers(__int64 a1)
{
__int64 result; // rax
__int64 i; // r14
__int64 v3; // rbx
result = *(_QWORD *)(a1 + 12400);
if ( result )
{
for ( i = *(_QWORD *)(result + 56);
i;
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0) )
{
v3 = *(_QWORD *)(i + 264);
i = *(_QWORD *)(i + 288);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 528LL))(v3, 0);
*(_QWORD *)(v3 + 584) = 0;
*(_BYTE *)(v3 + 592) = 0;
}
}
return result;
}