//
// OptionsObject::create from 0x1403a99e0 to 0x1403a9aec (268 bytes)
//
// 5 xrefs:
// > MusicSearchResult::createTagFilterObjects @ 0x140497aea
// > MusicSearchResult::createArtistFilterObjects @ 0x140497c71
// > StartPosBrowser::setupList @ 0x1404dbecb
// > StartPosBrowser::setupList @ 0x1404dbff2
// > ??> @ 0x140923978
//
// 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:31:20 +0000
//
// Hidden C++ exception states: #wind=3
void **__fastcall OptionsObject::create(int a1, char a2, __int64 a3, void *a4)
{
void **v8; // r14
__int64 v9; // rax
__int64 v10; // rsi
void *v11; // rdx
char v13[32]; // [rsp+28h] [rbp-60h] BYREF
__int64 v14; // [rsp+48h] [rbp-40h]
v14 = a3;
v8 = (void **)operator new(0x78u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v8);
*v8 = &OptionsObject::`vftable';
*((_DWORD *)v8 + 14) = 0;
*((_BYTE *)v8 + 60) = 0;
*((_OWORD *)v8 + 4) = 0;
v8[10] = nullptr;
v8[11] = (void *)15;
*((_BYTE *)v8 + 64) = 0;
v8[12] = nullptr;
v8[13] = nullptr;
v8[14] = nullptr;
v9 = sub_14003F4F0((__int64)v13, a3);
v10 = v9;
*((_DWORD *)v8 + 14) = a1;
*((_BYTE *)v8 + 60) = a2;
if ( v8 + 8 != (void **)v9 )
{
v11 = (void *)v9;
if ( *(_QWORD *)(v9 + 24) > 0xFu )
v11 = *(void **)v9;
sub_1400405A0(v8 + 8, v11, *(_QWORD *)(v9 + 16));
}
v8[12] = a4;
sub_14003D310(v10);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
sub_14003D310(a3);
return v8;
}