//
// SetupGradientPopup::onZLayer from 0x1405b73e0 to 0x1405b7470 (144 bytes)
//
// 2 xrefs:
// > SetupGradientPopup::init @ 0x1405b6f6a
// > ??> @ 0x14092dd28
//
// 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 11:34:44 +0000
//
__int64 __fastcall SetupGradientPopup::onZLayer(__int64 a1, __int64 a2)
{
int v3; // eax
__int64 v4; // rcx
unsigned int i; // edi
struct cocos2d::CCObject *v7; // rax
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = *(_QWORD *)(a1 + 680);
*(_DWORD *)(a1 + 1024) = v3;
if ( v4 )
{
*(_DWORD *)(v4 + 1856) = v3;
return SetupGradientPopup::updateZLayerButtons(a1);
}
else
{
for ( i = 0;
i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688));
*((_DWORD *)v7 + 464) = *(_DWORD *)(a1 + 1024) )
{
v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), i++);
}
return SetupGradientPopup::updateZLayerButtons(a1);
}
}