//
// CustomizeObjectLayer::onEditColor from 0x840f34 to 0x840f90 (92 bytes)
//
// 3 xrefs:
// > ??> @ 0x667f8
// > CustomizeObjectLayer::init @ 0x842ef8
// > ??> @ 0x122b4f8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void CustomizeObjectLayer::onEditColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
ColorSelectPopup *ColorAction; // x0
ColorAction *v5; // x1
__int64 v6; // x2
ColorAction *v7; // x3
__int64 *v8; // x0
__int64 v9; // x2
int ActiveMode; // [xsp+28h] [xbp+28h]
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);
v3 = GameManager::sharedState();
ColorAction = (ColorSelectPopup *)GJEffectManager::getColorAction(
v3->m_levelEditorLayer->m_levelSettings->m_effectManager,
ActiveMode);
v8 = (__int64 *)ColorSelectPopup::create(ColorAction, v5, v6, v7);
v9 = *v8;
v8[134] = (__int64)&a1->ColorSelectDelegate;
(*(void (**)(void))(v9 + 1288))();
}