//
// CustomSongWidget::create from 0x86c150 to 0x86c324 (468 bytes)
//
// 7 xrefs:
// > CustomSongCell::loadFromObject @ 0x7381ec
// > CustomMusicCell::loadFromObject @ 0x738928
// > LevelInfoLayer::init @ 0x7ebb7c
// > SongSelectNode::init @ 0x980390
// > CustomSongLayer::init @ 0x9811cc
// > AudioAssetsPopup::init @ 0xc8e4d4
// > ??> @ 0x50aa0
//
// This function is hookable on this platform (idp: arm, 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:55:43 +0000
//
__int64 __fastcall CustomSongWidget::create(
CustomSongWidget *this,
SongInfoObject *a2,
CustomSongDelegate *a3,
char a4,
char a5,
char a6,
unsigned __int8 a7,
bool a8,
int a9,
bool a10,
bool a11,
bool a12)
{
char v15; // w25
__int64 v20; // x19
__int64 v22; // x1
__int64 v23; // x0
v15 = (char)a3;
v20 = operator new(0x290u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v20);
*(_QWORD *)(v20 + 336) = 0;
*(_QWORD *)v20 = &off_1442B00;
*(_QWORD *)(v20 + 320) = &off_1442EE8;
*(_QWORD *)(v20 + 328) = &off_1442F58;
*(_DWORD *)(v20 + 508) = 0;
*(_QWORD *)(v20 + 352) = 0;
*(_QWORD *)(v20 + 360) = 0;
*(_QWORD *)(v20 + 368) = 0;
*(_QWORD *)(v20 + 384) = 0;
*(_QWORD *)(v20 + 400) = 0;
*(_QWORD *)(v20 + 416) = 0;
*(_QWORD *)(v20 + 432) = 0;
*(_QWORD *)(v20 + 448) = 0;
*(_QWORD *)(v20 + 456) = 0;
*(_QWORD *)(v20 + 464) = 0;
*(_QWORD *)(v20 + 472) = 0;
*(_QWORD *)(v20 + 480) = 0;
*(_QWORD *)(v20 + 488) = 0;
*(_BYTE *)(v20 + 496) = 0;
*(_BYTE *)(v20 + 497) = 0;
*(_BYTE *)(v20 + 498) = 0;
*(_BYTE *)(v20 + 499) = 0;
*(_BYTE *)(v20 + 500) = 0;
*(_BYTE *)(v20 + 501) = 0;
*(_BYTE *)(v20 + 502) = 0;
*(_DWORD *)(v20 + 504) = 0;
*(_BYTE *)(v20 + 512) = 0;
*(_QWORD *)(v20 + 520) = 0;
*(_BYTE *)(v20 + 528) = 0;
*(_BYTE *)(v20 + 529) = 0;
*(_QWORD *)(v20 + 536) = 0;
*(_BYTE *)(v20 + 544) = 0;
*(_BYTE *)(v20 + 545) = 0;
*(_QWORD *)(v20 + 632) = v20 + 640;
*(_QWORD *)(v20 + 560) = 0;
*(_QWORD *)(v20 + 568) = 0;
*(_QWORD *)(v20 + 552) = v20 + 560;
*(_QWORD *)(v20 + 584) = 0;
*(_QWORD *)(v20 + 592) = 0;
*(_QWORD *)(v20 + 576) = v20 + 584;
*(_QWORD *)(v20 + 600) = 0;
*(_QWORD *)(v20 + 608) = 0;
*(_QWORD *)(v20 + 616) = 0;
*(_DWORD *)(v20 + 624) = 0;
*(_DWORD *)(v20 + 628) = 0;
*(_QWORD *)(v20 + 640) = 0;
*(_QWORD *)(v20 + 648) = 0;
if ( (unsigned __int8)CustomSongWidget::init((CustomSongWidget *)v20, this, a2, v15, a4, a5, a6, a7, a8, a9, a10, a11) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v20);
}
else
{
v22 = *(_QWORD *)v20;
v23 = v20;
v20 = 0;
(*(void (__fastcall **)(__int64))(v22 + 16))(v23);
}
return v20;
}