//
// OptionsScrollLayer::create from 0x14047e380 to 0x14047e51e (414 bytes)
//
// 3 xrefs:
// > MusicBrowser::onTagFilters @ 0x14047d9b1
// > MusicBrowser::onArtistFilters @ 0x14047dc03
// > ??> @ 0x140928790
//
// 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:43 +0000
//
// Hidden C++ exception states: #wind=2
_QWORD *__fastcall OptionsScrollLayer::create(int a1, unsigned __int8 a2, __int64 a3, __int64 a4)
{
_QWORD *v8; // r14
int v9; // eax
_BYTE v11[32]; // [rsp+38h] [rbp-60h] BYREF
__int64 v12; // [rsp+58h] [rbp-40h]
v12 = a3;
v8 = operator new(0x300u);
FLAlertLayer::FLAlertLayer((__int64)v8);
*v8 = &OptionsScrollLayer::`vftable';
v8[40] = &OptionsScrollLayer::`vftable';
v8[41] = &OptionsScrollLayer::`vftable';
v8[42] = &OptionsScrollLayer::`vftable';
v8[43] = &OptionsScrollLayer::`vftable';
v8[44] = &OptionsScrollLayer::`vftable';
v8[51] = &OptionsScrollLayer::`vftable';
v8[54] = &OptionsScrollLayer::`vftable';
v8[68] = &OptionsScrollLayer::`vftable';
v8[83] = &OptionsScrollLayer::`vftable';
v8[84] = 0;
v8[85] = 0;
*((_BYTE *)v8 + 688) = 0;
v8[87] = 0;
v8[88] = 0;
v8[89] = 0;
*((_OWORD *)v8 + 45) = 0;
v8[92] = 0;
v8[93] = 15;
*((_BYTE *)v8 + 720) = 0;
v8[94] = 0;
v8[95] = 0;
v9 = sub_14003F4F0((__int64)v11, a3);
if ( (unsigned __int8)OptionsScrollLayer::init((_DWORD)v8, a1, a2, v9, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v8 + 8LL))(v8, 1);
v8 = nullptr;
}
sub_14003D310(a3);
return v8;
}