//
// MusicBrowser::create from 0x14047a140 to 0x14047a33c (508 bytes)
//
// 3 xrefs:
// > CustomSongLayer::onMusicBrowser @ 0x140164fbc
// > NCSInfoLayer::onLibrary @ 0x140167bf8
// > ??> @ 0x1409285bc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:32:42 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall MusicBrowser::create(unsigned int a1, unsigned int a2)
{
_QWORD *v4; // rsi
v4 = operator new(0x398u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*v4 = &MusicBrowser::`vftable';
v4[40] = &MusicBrowser::`vftable';
v4[41] = &MusicBrowser::`vftable';
v4[42] = &MusicBrowser::`vftable';
v4[43] = &MusicBrowser::`vftable';
v4[44] = &MusicBrowser::`vftable';
v4[51] = &MusicBrowser::`vftable';
v4[54] = &MusicBrowser::`vftable';
v4[68] = &MusicBrowser::`vftable';
v4[83] = &MusicBrowser::`vftable';
v4[84] = &MusicBrowser::`vftable';
v4[85] = &MusicBrowser::`vftable';
v4[86] = &MusicBrowser::`vftable';
v4[87] = &MusicBrowser::`vftable';
*((_DWORD *)v4 + 176) = -1;
v4[89] = 0;
v4[90] = 0;
v4[91] = 0;
v4[92] = 0;
v4[93] = 0;
v4[94] = 0;
v4[95] = 0;
v4[96] = 0;
v4[97] = 0;
v4[98] = 0;
v4[99] = 0;
*((_BYTE *)v4 + 800) = 0;
v4[101] = 0;
v4[102] = 0;
v4[103] = 0;
v4[104] = 0;
v4[105] = 0;
v4[106] = 0;
v4[107] = 0;
*((_DWORD *)v4 + 217) = 0;
*((_WORD *)v4 + 436) = 0;
v4[110] = 0;
v4[111] = 0;
v4[112] = 0;
v4[113] = 0;
*((_BYTE *)v4 + 912) = 0;
if ( (unsigned __int8)MusicBrowser::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);
return nullptr;
}
}