//
// LevelSettingsLayer::onShowPicker from 0x14045abb0 to 0x14045ac1b (107 bytes)
//
// 7 xrefs:
// > LevelSettingsLayer::init @ 0x1404580da
// > LevelSettingsLayer::init @ 0x140458156
// > LevelSettingsLayer::init @ 0x1404581d3
// > LevelSettingsLayer::init @ 0x14045824f
// > LevelSettingsLayer::init @ 0x1404582cb
// > LevelSettingsLayer::init @ 0x140458347
// > ??> @ 0x140927c68
//
// 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 11:32:31 +0000
//
__int64 __fastcall LevelSettingsLayer::onShowPicker(__int64 a1, __int64 a2)
{
__int64 v3; // rbx
int v4; // eax
char *ColorAction; // rax
char *v6; // rax
__int64 v7; // rcx
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 816) + 320LL);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
ColorAction = GJEffectManager::getColorAction(v3, v4);
v6 = ColorSelectPopup::create(0, 0, (__int64)ColorAction);
v7 = a1 + 664;
if ( !a1 )
v7 = 0;
*((_QWORD *)v6 + 138) = v7;
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v6 + 1064LL))(v6);
}