//
// SelectListIconLayer::onSelect from 0xa72524 to 0xa7262c (264 bytes)
//
// 4 xrefs:
// > SelectListIconLayer::init @ 0xa790ec
// > ??> @ 0x44bc8
// > SelectListIconLayer::init @ 0xa78f18
// > ??> @ 0x122a328
//
// 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 SelectListIconLayer::onSelect(SelectListIconLayer *a1, cocos2d::CCObject *a2)
{
unsigned int v3; // w19
__int64 v4; // x0
int m_currentDifficulty; // w23
__int64 *v6; // x20
bool v7; // zf
__int64 v8; // x2
void (__fastcall *v9)(__int64 *, _BYTE *); // x2
_BYTE v10[8]; // [xsp+50h] [xbp+50h] BYREF
if ( a2 )
a1->m_currentDifficulty = a2->getTag(a2);
v3 = 0;
while ( v3 < (unsigned int)cocos2d::CCArray::count(a1->m_difficulties) )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_difficulties, v3);
m_currentDifficulty = a1->m_currentDifficulty;
v6 = (__int64 *)v4;
v7 = m_currentDifficulty == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4);
v8 = *v6;
if ( v7 )
{
++v3;
(*(void (__fastcall **)(__int64 *, _UNKNOWN **))(v8 + 944))(v6, &off_F14AF8);
}
else
{
v9 = *(void (__fastcall **)(__int64 *, _BYTE *))(v8 + 944);
memset(v10, 125, 3);
++v3;
v9(v6, v10);
}
}
}