//
// OptionsObject::create from 0x4b11a4 to 0x4b1244 (160 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::getAllMusicTags @ 0x458622
// > MusicDownloadManager::getAllMusicArtists @ 0x4586f2
//
// 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
//
int __fastcall OptionsObject::create(int a1, char a2, int a3, int a4)
{
int v7; // r4
int v8; // r6
int v9; // r3
int v10; // r0
_DWORD v12[2]; // [sp+8h] [bp-8h] BYREF
v12[0] = a3;
v12[1] = a4;
v7 = operator new(0x48u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v7);
*(_DWORD *)(v7 + 52) = 0;
*(_DWORD *)v7 = &off_A6FA20;
*(_BYTE *)(v7 + 56) = 0;
*(_DWORD *)(v7 + 64) = 0;
*(_DWORD *)(v7 + 68) = 0;
*(_DWORD *)(v7 + 60) = &unk_ACDDA8;
sub_775C20(v12);
v8 = OptionsObject::init(v7, a1, a2, (int)v12, a4);
sub_774008(v12);
if ( v8 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
}
else
{
v9 = *(_DWORD *)v7;
v10 = v7;
v7 = 0;
(*(void (__fastcall **)(int))(v9 + 8))(v10);
}
return v7;
}