//
// SelectSFXSortLayer::onSelect from 0x1404816b0 to 0x1404816fe (78 bytes)
//
// 3 xrefs:
// > SelectSFXSortLayer::init @ 0x14048153f
// > ??> @ 0x1406dbae0
// > ??> @ 0x1406dbaec
//
// 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 SelectSFXSortLayer::onSelect(SelectSFXSortLayer *a1, cocos2d::CCObject *a2)
{
AudioSortType v3; // eax
SelectSFXSortDelegate *m_delegate; // rcx
_BOOL8 v5; // rdx
v3 = a2->getTag(a2);
m_delegate = a1->m_delegate;
a1->m_sortType = v3;
if ( m_delegate )
m_delegate->sortSelectClosed(m_delegate, a1);
a1->setKeypadEnabled(a1, 0);
LOBYTE(v5) = 1;
a1->removeFromParentAndCleanup(a1, v5);
}