//
// CustomizeObjectLayer::onEditColor from 0x1001da1b0 to 0x1001da20f (95 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::init @ 0x1001d8726
//
// This function is hookable on this platform (idp: pc, 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:26:25 +0000
//
__int64 __fastcall CustomizeObjectLayer::onEditColor(__int64 a1)
{
unsigned int ActiveMode; // r14d
__int64 v2; // rdx
double v3; // xmm0_8
__int64 v4; // rax
__int64 ColorAction; // rax
_QWORD *v6; // rax
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);
*(_QWORD *)&v3 = GameManager::sharedState(a1, 1, v2).u64[0];
ColorAction = GJEffectManager::getColorAction(
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v4 + 552) + 3272LL) + 320LL),
ActiveMode);
v6 = (_QWORD *)ColorSelectPopup::create_3(ColorAction, v3);
v6[140] = a1 + 672;
return (*(__int64 (__fastcall **)(_QWORD *))(*v6 + 1312LL))(v6);
}