//
// SetupGradientPopup::onZLayer from 0xb30894 to 0xb30914 (128 bytes)
//
// 3 xrefs:
// > ??> @ 0xb75b0
// > SetupGradientPopup::init @ 0xb315f4
// > ??> @ 0x1545490
//
// 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 13:01:43 +0000
//
__int64 __fastcall SetupGradientPopup::onZLayer(SetupGradientPopup *this, cocos2d::CCObject *a2)
{
int v3; // w0
__int64 v4; // x1
unsigned int v5; // w20
bool v6; // cf
unsigned int v7; // w1
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
*((_DWORD *)this + 260) = v3;
v4 = *((_QWORD *)this + 85);
if ( v4 )
{
*(_DWORD *)(v4 + 1840) = v3;
return SetupGradientPopup::updateZLayerButtons((cocos2d::CCArray **)this);
}
else
{
v5 = 0;
while ( 1 )
{
v6 = v5 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 86));
v7 = v5++;
if ( v6 )
break;
*(_DWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v7) + 1840) = *((_DWORD *)this + 260);
}
return SetupGradientPopup::updateZLayerButtons((cocos2d::CCArray **)this);
}
}