//
// GJColorSetupLayer::onColor from 0x5c1636 to 0x5c168e (88 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:50 +0000
//
int __fastcall GJColorSetupLayer::onColor(GJColorSetupLayer *this, cocos2d::CCObject *a2)
{
int v3; // r5
int v4; // r1
ColorSelectPopup *ColorAction; // r0
ColorAction *v7; // r1
int v8; // r2
ColorAction *v9; // r3
int *v10; // r0
int v11; // r3
v3 = *((_DWORD *)this + 137) * *((_DWORD *)this + 138);
v4 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) + v3;
if ( *((_BYTE *)this + 568) )
{
*((_DWORD *)this + 144) = v4;
return GJColorSetupLayer::onClose(this, nullptr);
}
else
{
ColorAction = (ColorSelectPopup *)GJEffectManager::getColorAction(
*(GJEffectManager **)(*((_DWORD *)this + 132) + 264),
v4);
v10 = ColorSelectPopup::create(ColorAction, v7, v8, v9);
v11 = *v10;
v10[191] = (int)this + 520;
v10[116] = 106;
return (*(int (**)(void))(v11 + 656))();
}
}