//
// SelectSFXSortLayer::create from 0xa5ffec to 0xa60100 (276 bytes)
//
// 2 xrefs:
// > SFXBrowser::onSorting @ 0xa60120
// > ??> @ 0x80418
//
// 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
//
SelectSFXSortLayer *SelectSFXSortLayer::create(AudioSortType a1)
{
__int64 v2; // x19
v2 = operator new(0x288u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v2);
*(_DWORD *)(v2 + 616) = -1;
*(_DWORD *)(v2 + 624) = -1;
*(_QWORD *)(v2 + 544) = 0;
*(_QWORD *)(v2 + 552) = 0;
*(_QWORD *)(v2 + 560) = 0;
*(_BYTE *)(v2 + 568) = 0;
*(_QWORD *)(v2 + 576) = 0;
*(_DWORD *)(v2 + 584) = 0;
*(_BYTE *)(v2 + 588) = 0;
*(_QWORD *)(v2 + 592) = 0;
*(_QWORD *)(v2 + 600) = 0;
*(_QWORD *)(v2 + 608) = 0;
*(_BYTE *)(v2 + 620) = 0;
*(_BYTE *)(v2 + 621) = 0;
*(_BYTE *)(v2 + 628) = 0;
*(_DWORD *)(v2 + 632) = 0;
*(_QWORD *)v2 = &off_11EC610;
*(_QWORD *)(v2 + 320) = off_11ECB30;
*(_QWORD *)(v2 + 328) = &off_11ECBA0;
*(_QWORD *)(v2 + 336) = &off_11ECBB8;
*(_QWORD *)(v2 + 344) = &off_11ECBD8;
*(_QWORD *)(v2 + 352) = off_11ECBF8;
*(_QWORD *)(v2 + 408) = &off_11ECC20;
*(_QWORD *)(v2 + 432) = &off_11ECCA0;
*(_QWORD *)(v2 + 640) = 0;
if ( SelectSFXSortLayer::init((SelectSFXSortLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (SelectSFXSortLayer *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}