//
// CustomizeObjectLayer::onEditColor from 0x9836b0 to 0x98370c (92 bytes)
//
// 3 xrefs:
// > ??> @ 0x8b2b8
// > CustomizeObjectLayer::init @ 0x9860e0
// > ??> @ 0x1543a98
//
// 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:57:52 +0000
//
__int64 __fastcall CustomizeObjectLayer::onEditColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
GameManager *ActiveMode; // x0
__int64 v4; // x0
ColorSelectPopup *ColorAction; // x0
ColorAction *v6; // x1
__int64 v7; // x2
ColorAction *v8; // x3
__int64 *v9; // x0
__int64 v10; // x2
int v12; // [xsp+28h] [xbp+28h]
ActiveMode = (GameManager *)CustomizeObjectLayer::getActiveMode(this, 1u);
v12 = (int)ActiveMode;
v4 = GameManager::sharedState(ActiveMode);
ColorAction = (ColorSelectPopup *)GJEffectManager::getColorAction(
*(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v4 + 552) + 3272LL) + 320LL),
v12);
v9 = (__int64 *)ColorSelectPopup::create(ColorAction, v6, v7, v8);
v10 = *v9;
v9[140] = (__int64)this + 672;
return (*(__int64 (**)(void))(v10 + 1312))();
}