//
// CustomSongWidget::create from 0x746838 to 0x746a04 (460 bytes)
//
// 6 xrefs:
// > CustomSongCell::loadFromObject @ 0x615600
// > CustomMusicCell::loadFromObject @ 0x615c08
// > LevelInfoLayer::init @ 0x6dc490
// > CustomSongLayer::init @ 0x83cc5c
// > SongSelectNode::init @ 0x83f504
// > ??> @ 0xafe90
//
// 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
//
CustomSongWidget *CustomSongWidget::create(
SongInfoObject *a1,
CustomSongDelegate *a2,
bool a3,
bool a4,
bool a5,
bool a6,
bool a7,
bool a8,
int a9)
{
__int64 v17; // x19
__int64 v19; // x1
__int64 v20; // x0
v17 = operator new(0x2C0u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v17);
*(_QWORD *)(v17 + 336) = 0;
*(_DWORD *)(v17 + 500) = 0;
*(_QWORD *)(v17 + 352) = 0;
*(_QWORD *)(v17 + 360) = 0;
*(_QWORD *)(v17 + 368) = 0;
*(_QWORD *)v17 = &off_1161590;
*(_QWORD *)(v17 + 320) = &off_1161968;
*(_QWORD *)(v17 + 328) = &off_11619C8;
*(_QWORD *)(v17 + 384) = 0;
*(_QWORD *)(v17 + 400) = 0;
*(_QWORD *)(v17 + 416) = 0;
*(_QWORD *)(v17 + 432) = 0;
*(_QWORD *)(v17 + 448) = 0;
*(_QWORD *)(v17 + 456) = 0;
*(_QWORD *)(v17 + 464) = 0;
*(_QWORD *)(v17 + 472) = 0;
*(_QWORD *)(v17 + 480) = 0;
*(_BYTE *)(v17 + 488) = 0;
*(_BYTE *)(v17 + 489) = 0;
*(_BYTE *)(v17 + 490) = 0;
*(_BYTE *)(v17 + 491) = 0;
*(_BYTE *)(v17 + 492) = 0;
*(_BYTE *)(v17 + 493) = 0;
*(_DWORD *)(v17 + 496) = 0;
*(_BYTE *)(v17 + 504) = 0;
*(_QWORD *)(v17 + 512) = 0;
*(_BYTE *)(v17 + 520) = 0;
*(_BYTE *)(v17 + 521) = 0;
*(_BYTE *)(v17 + 522) = 0;
*(_DWORD *)(v17 + 536) = 0;
*(_QWORD *)(v17 + 544) = 0;
*(_QWORD *)(v17 + 568) = 0;
*(_QWORD *)(v17 + 552) = v17 + 536;
*(_QWORD *)(v17 + 560) = v17 + 536;
*(_DWORD *)(v17 + 584) = 0;
*(_QWORD *)(v17 + 592) = 0;
*(_QWORD *)(v17 + 616) = 0;
*(_QWORD *)(v17 + 600) = v17 + 584;
*(_QWORD *)(v17 + 608) = v17 + 584;
*(_QWORD *)(v17 + 624) = 0;
*(_QWORD *)(v17 + 632) = 0;
*(_QWORD *)(v17 + 640) = 0;
*(_DWORD *)(v17 + 648) = 0;
*(_DWORD *)(v17 + 664) = 0;
*(_QWORD *)(v17 + 672) = 0;
*(_QWORD *)(v17 + 696) = 0;
*(_QWORD *)(v17 + 680) = v17 + 664;
*(_QWORD *)(v17 + 688) = v17 + 664;
if ( CustomSongWidget::init((CustomSongWidget *)v17, a1, a2, a3, a4, a5, a6, a7, a8, a9) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v17);
}
else
{
v19 = *(_QWORD *)v17;
v20 = v17;
v17 = 0;
(*(void (__fastcall **)(__int64))(v19 + 16))(v20);
}
return (CustomSongWidget *)v17;
}