//
// SFXBrowser::onSorting from 0x1404802c0 to 0x1404803f4 (308 bytes)
//
// 2 xrefs:
// > SFXBrowser::init @ 0x14047f054
// > ??> @ 0x1406db9cc
//
// 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
//
// Hidden C++ exception states: #wind=1
void SFXBrowser::onSorting(SFXBrowser *a1, cocos2d::CCObject *a2)
{
AudioSortType m_sortType; // ebx
SelectSFXSortLayer *v4; // rdi
void (*show)(FLAlertLayer *); // rdx
if ( a1->m_searchResult )
{
m_sortType = a1->m_sortType;
v4 = (SelectSFXSortLayer *)operator new(0x288u);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SelectSFXSortLayer_vtbl *)&SelectSFXSortLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SelectSFXSortLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SelectSFXSortLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SelectSFXSortLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SelectSFXSortLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SelectSFXSortLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SelectSFXSortLayer::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SelectSFXSortLayer::`vftable';
v4->m_sortType = NameAscending;
v4->m_delegate = nullptr;
if ( SelectSFXSortLayer::init(v4, m_sortType) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(SelectSFXSortLayer *, __int64))v4->~SelectSFXSortLayer)(v4, 1);
v4 = nullptr;
}
v4->m_delegate = &a1->SelectSFXSortDelegate;
show = (void (*)(FLAlertLayer *))v4->show;
if ( show == FLAlertLayer::show )
FLAlertLayer::show(v4);
else
show(v4);
}
}