//
// CustomSongWidget::create from 0x1006f7190 to 0x1006f7369 (473 bytes)
//
// 6 xrefs:
// > CustomSongLayer::init @ 0x1001f8ddc
// > SongSelectNode::init @ 0x1001fc7c4
// > CustomSongCell::loadFromObject @ 0x100229994
// > CustomMusicCell::loadFromObject @ 0x100229bd2
// > LevelInfoLayer::init @ 0x1002abbde
// > AudioAssetsPopup::init @ 0x1008b39ad
//
// 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:35:54 +0000
//
char *__fastcall CustomSongWidget::create(
int a1,
int a2,
unsigned __int8 a3,
unsigned __int8 a4,
unsigned __int8 a5,
char a6,
char a7,
char a8,
int a9,
char a10,
char a11)
{
char *v14; // rbx
v14 = (char *)operator new(0x290u);
cocos2d::CCNode::CCNode((__int64)v14);
*(_QWORD *)v14 = off_100B95A38;
*((_QWORD *)v14 + 40) = off_100B95E20;
*((_QWORD *)v14 + 41) = &off_100B95E90;
*((_QWORD *)v14 + 42) = 0;
*((_QWORD *)v14 + 48) = 0;
*((_QWORD *)v14 + 50) = 0;
*((_QWORD *)v14 + 52) = 0;
*((_QWORD *)v14 + 54) = 0;
*((_QWORD *)v14 + 65) = 0;
*((_WORD *)v14 + 264) = 0;
*((_QWORD *)v14 + 67) = 0;
*((_WORD *)v14 + 272) = 0;
*((_OWORD *)v14 + 35) = 0;
*((_OWORD *)v14 + 22) = 0;
*((_QWORD *)v14 + 46) = 0;
*((_OWORD *)v14 + 28) = 0;
*((_OWORD *)v14 + 29) = 0;
*((_OWORD *)v14 + 30) = 0;
*(_QWORD *)(v14 + 495) = 0;
v14[512] = 0;
*((_QWORD *)v14 + 63) = 0;
*((_QWORD *)v14 + 69) = v14 + 560;
*(_OWORD *)(v14 + 584) = 0;
*((_QWORD *)v14 + 72) = v14 + 584;
*((_OWORD *)v14 + 40) = 0;
*(_OWORD *)(v14 + 600) = 0;
*(_OWORD *)(v14 + 616) = 0;
*((_QWORD *)v14 + 79) = v14 + 640;
if ( (unsigned __int8)CustomSongWidget::init((_DWORD)v14, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) )
{
cocos2d::CCObject::autorelease((__int64)v14);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v14 + 16LL))(v14);
return nullptr;
}
return v14;
}