//
// SelectListIconLayer::onSelect from 0x1003618d0 to 0x100361984 (180 bytes)
//
// 1 xrefs:
// > SelectListIconLayer::init @ 0x10036168f
//
// 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 v2; // rax
unsigned int v4; // r14d
__int64 v5; // rax
__int64 v6; // rdi
_DWORD *v7; // rsi
__int64 v8; // r13
int m_currentDifficulty; // r15d
_DWORD v10[11]; // [rsp+0h] [rbp-2Ch] BYREF
v10[0] = HIDWORD(v2);
if ( a2 )
a1->m_currentDifficulty = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( (unsigned int)sub_100720070(a1->m_difficulties) )
{
v4 = 0;
do
{
v8 = sub_1007200C0(a1->m_difficulties, v4);
m_currentDifficulty = a1->m_currentDifficulty;
if ( m_currentDifficulty == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v8 + 64LL))(v8) )
{
v5 = *(_QWORD *)v8;
v6 = v8;
v7 = &unk_100819D28;
}
else
{
memset(v10, 125, 3);
v5 = *(_QWORD *)v8;
v6 = v8;
v7 = v10;
}
(*(void (__fastcall **)(__int64, _DWORD *))(v5 + 944))(v6, v7);
++v4;
}
while ( v4 < (unsigned int)sub_100720070(a1->m_difficulties) );
}
}