//
// SongInfoObject::create from 0x577578 to 0x577788 (528 bytes)
//
// 5 xrefs:
// > LevelTools::getSongObject @ 0x421746
// > SongInfoObject::create @ 0x577826
// > SongInfoObject::create @ 0x577b86
// > SongInfoObject::createWithCoder @ 0x57843c
// > MusicDownloadManager::parseMusicLibrary @ 0x578e5c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:43 +0000
//
int __fastcall SongInfoObject::create(
int a1,
int a2,
int a3,
int a4,
int a5,
int a6,
int a7,
int a8,
char a9,
int a10,
int a11)
{
int v15; // r4
int v16; // r7
int v17; // r3
int v18; // r0
int v20[3]; // [sp+2Ch] [bp-38h] BYREF
int v21[3]; // [sp+38h] [bp-2Ch] BYREF
int v22[3]; // [sp+44h] [bp-20h] BYREF
int v23[3]; // [sp+50h] [bp-14h] BYREF
v15 = operator new(0x1F0u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v15);
*(_DWORD *)(v15 + 308) = 0;
*(_DWORD *)v15 = &off_CB1150;
*(_DWORD *)(v15 + 332) = -1;
*(_DWORD *)(v15 + 264) = 0;
*(_DWORD *)(v15 + 268) = 0;
*(_DWORD *)(v15 + 272) = 0;
*(_DWORD *)(v15 + 276) = 0;
*(_DWORD *)(v15 + 280) = 0;
*(_DWORD *)(v15 + 284) = 0;
*(_DWORD *)(v15 + 288) = 0;
*(_DWORD *)(v15 + 292) = 0;
*(_DWORD *)(v15 + 296) = 0;
*(_DWORD *)(v15 + 300) = 0;
*(_DWORD *)(v15 + 304) = 0;
*(_DWORD *)(v15 + 312) = 0;
*(_DWORD *)(v15 + 316) = 0;
*(_DWORD *)(v15 + 320) = 0;
*(_DWORD *)(v15 + 324) = 0;
*(_BYTE *)(v15 + 328) = 0;
*(_BYTE *)(v15 + 329) = 0;
*(_BYTE *)(v15 + 330) = 0;
*(_DWORD *)(v15 + 336) = 0;
*(_DWORD *)(v15 + 340) = 0;
*(_BYTE *)(v15 + 344) = 0;
*(_DWORD *)(v15 + 348) = 0;
*(_DWORD *)(v15 + 352) = 0;
*(_DWORD *)(v15 + 356) = 0;
*(_DWORD *)(v15 + 360) = 0;
*(_DWORD *)(v15 + 364) = 0;
*(_DWORD *)(v15 + 368) = 0;
*(_DWORD *)(v15 + 372) = 0;
*(_DWORD *)(v15 + 376) = 0;
*(_DWORD *)(v15 + 380) = 0;
*(_DWORD *)(v15 + 384) = 1065353216;
*(_DWORD *)(v15 + 388) = 0;
*(_DWORD *)(v15 + 392) = 0;
*(_DWORD *)(v15 + 396) = 0;
*(_DWORD *)(v15 + 400) = 0;
*(_DWORD *)(v15 + 404) = 0;
*(_DWORD *)(v15 + 408) = 0;
*(_DWORD *)(v15 + 412) = 0;
*(_DWORD *)(v15 + 416) = 0;
*(_DWORD *)(v15 + 420) = 0;
*(_DWORD *)(v15 + 424) = 0;
*(_DWORD *)(v15 + 428) = 0;
*(_DWORD *)(v15 + 432) = 0;
*(_DWORD *)(v15 + 440) = 0;
*(_DWORD *)(v15 + 444) = 0;
*(_DWORD *)(v15 + 436) = v15 + 440;
*(_DWORD *)(v15 + 448) = 0;
*(_DWORD *)(v15 + 452) = 0;
*(_DWORD *)(v15 + 456) = 0;
*(_DWORD *)(v15 + 460) = 0;
*(_DWORD *)(v15 + 464) = 0;
*(_DWORD *)(v15 + 468) = 0;
*(_DWORD *)(v15 + 472) = 0;
*(_DWORD *)(v15 + 476) = 0;
*(_DWORD *)(v15 + 480) = 0;
*(_DWORD *)(v15 + 484) = 0;
*(_DWORD *)(v15 + 488) = 0;
*(_DWORD *)(v15 + 492) = 0;
std::string::basic_string(v20, a2);
std::string::basic_string(v21, a3);
std::string::basic_string(v22, a6);
std::string::basic_string(v23, a8);
v16 = SongInfoObject::init(
v15,
a1,
(unsigned __int8 *)v20,
(unsigned __int8 *)v21,
a4,
a5,
(unsigned __int8 *)v22,
a7,
(int)v23,
a9,
a10,
a11);
std::string::~string((int)v23);
std::string::~string((int)v22);
std::string::~string((int)v21);
std::string::~string((int)v20);
if ( v16 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v15);
}
else
{
v17 = *(_DWORD *)v15;
v18 = v15;
v15 = 0;
(*(void (__fastcall **)(int))(v17 + 8))(v18);
}
return v15;
}