//
// OptionsObject::create from 0x10029d960 to 0x10029da2c (204 bytes)
//
// 4 xrefs:
// > StartPosBrowser::setupList @ 0x1003c3d7c
// > StartPosBrowser::setupList @ 0x1003c4004
// > MusicDownloadManager::getAllMusicTags @ 0x10065e631
// > MusicDownloadManager::getAllMusicArtists @ 0x10065e78b
//
// 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 12:27:53 +0000
//
char *__fastcall OptionsObject::create(int a1, char a2, std::string *a3, __int64 a4)
{
char *v5; // rbx
std::string __str; // [rsp+10h] [rbp-40h] BYREF
v5 = (char *)operator new(0x70u);
cocos2d::CCObject::CCObject(v5);
*(_QWORD *)v5 = off_100B03C08;
*((_DWORD *)v5 + 14) = 0;
v5[60] = 0;
*((_OWORD *)v5 + 4) = 0;
*((_OWORD *)v5 + 5) = 0;
*((_OWORD *)v5 + 6) = 0;
if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 )
sub_10001AD30(&__str, a3->__r_.__value_.__l.__data_, a3->__r_.__value_.__l.__size_);
else
__str = *a3;
*((_DWORD *)v5 + 14) = a1;
v5[60] = a2;
std::string::operator=((std::string *)(v5 + 64), &__str);
*((_QWORD *)v5 + 11) = a4;
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease(v5);
return v5;
}