//
// SelectListIconLayer::onSelect from 0x100247dd0 to 0x100247eb0 (224 bytes)
//
// 2 xrefs:
// > SelectListIconLayer::init @ 0x100247d78
// > SelectListIconLayer::init @ 0x100247b78
//
// 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 __fastcall SelectListIconLayer::onSelect(SelectListIconLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // x20
__int64 v4; // x22
int m_currentDifficulty; // w25
_WORD v6[2]; // [xsp+Ch] [xbp-44h] BYREF
if ( a2 )
a1->m_currentDifficulty = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( (unsigned int)sub_10024A36C(a1->m_difficulties) )
{
v3 = 0;
do
{
v4 = sub_10024A388(a1->m_difficulties, v3);
m_currentDifficulty = a1->m_currentDifficulty;
if ( m_currentDifficulty == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) )
{
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v4 + 944LL))(v4, &unk_10063B130);
}
else
{
memset(v6, 125, 3);
(*(void (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v4 + 944LL))(v4, v6);
}
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_difficulties) );
}
}