//
// CustomizeObjectLayer::onEditColor from 0x1400a8480 to 0x1400a8527 (167 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::init @ 0x1400a6add
// > ??> @ 0x1406c77a0
// > ??> @ 0x1406c77ac
//
// 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
//
// Hidden C++ exception states: #wind=1
void CustomizeObjectLayer::onEditColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
int ActiveMode; // edi
__int64 v4; // rax
ColorAction *ColorAction; // rax
ColorSelectPopup *v6; // rax
ColorSelectDelegate *v7; // rcx
void *v8; // [rsp+30h] [rbp+8h]
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v8 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
ColorAction = GJEffectManager::getColorAction(
*(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v4 + 528) + 3504LL) + 320LL),
ActiveMode);
v6 = ColorSelectPopup::create(nullptr, nullptr, ColorAction);
v7 = &a1->ColorSelectDelegate;
if ( !a1 )
v7 = nullptr;
v6->m_delegate = v7;
v6->show(v6);
}