//
// GJColorSetupLayer::onColor from 0x9f733c to 0x9f73c4 (136 bytes)
//
// 3 xrefs:
// > ??> @ 0xa8400
// > GJColorSetupLayer::init @ 0x9f79c0
// > ??> @ 0x1544bd8
//
// 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 12:59:14 +0000
//
__int64 __fastcall GJColorSetupLayer::onColor(GJColorSetupLayer *this, cocos2d::CCObject *a2)
{
int v3; // w20
int v4; // w1
ColorSelectPopup *ColorAction; // x0
ColorAction *v6; // x1
__int64 v7; // x2
ColorAction *v8; // x3
__int64 v9; // x0
__int64 v10; // x2
v3 = *((_DWORD *)this + 180) * *((_DWORD *)this + 181);
v4 = v3 + (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( *((_BYTE *)this + 752) )
{
*((_DWORD *)this + 192) = v4;
return GJColorSetupLayer::onClose(this, nullptr);
}
else
{
ColorAction = (ColorSelectPopup *)GJEffectManager::getColorAction(
*(GJEffectManager **)(*((_QWORD *)this + 85) + 320LL),
v4);
v9 = ColorSelectPopup::create(ColorAction, v6, v7, v8);
v10 = *(_QWORD *)v9;
*(_QWORD *)(v9 + 1120) = (char *)this + 664;
*(_DWORD *)(v9 + 592) = 106;
return (*(__int64 (**)(void))(v10 + 1312))();
}
}