//
// CustomSongWidget::create from 0x140169060 to 0x1401692d1 (625 bytes)
//
// 7 xrefs:
// > AudioAssetsPopup::init @ 0x1400be19a
// > CustomSongCell::loadFromObject @ 0x1401503de
// > CustomMusicCell::loadFromObject @ 0x140150e91
// > CustomSongLayer::init @ 0x14016487a
// > SongSelectNode::init @ 0x140168638
// > LevelInfoLayer::init @ 0x14041e157
// > ??> @ 0x140918068
//
// 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 11:27:28 +0000
//
// Hidden C++ exception states: #wind=5
cocos2d::CCNode *__fastcall CustomSongWidget::create(
int a1,
int a2,
unsigned __int8 a3,
char a4,
char a5,
char a6,
char a7,
char a8,
int a9,
char a10,
char a11)
{
cocos2d::CCNode *v15; // r15
_QWORD *v16; // rax
_QWORD *v17; // rax
_QWORD *v18; // rax
v15 = (cocos2d::CCNode *)operator new(0x278u);
cocos2d::CCNode::CCNode(v15);
*(_QWORD *)v15 = &CustomSongWidget::`vftable';
*((_QWORD *)v15 + 40) = &CustomSongWidget::`vftable';
*((_QWORD *)v15 + 41) = &CustomSongWidget::`vftable';
*((_QWORD *)v15 + 42) = 0;
*((_QWORD *)v15 + 44) = 0;
*((_QWORD *)v15 + 45) = 0;
*((_QWORD *)v15 + 46) = 0;
*((_QWORD *)v15 + 48) = 0;
*((_QWORD *)v15 + 50) = 0;
*((_QWORD *)v15 + 52) = 0;
*((_QWORD *)v15 + 54) = 0;
*((_QWORD *)v15 + 56) = 0;
*((_QWORD *)v15 + 57) = 0;
*((_QWORD *)v15 + 58) = 0;
*((_QWORD *)v15 + 59) = 0;
*((_QWORD *)v15 + 60) = 0;
*((_QWORD *)v15 + 61) = 0;
*((_DWORD *)v15 + 124) = 0;
*((_WORD *)v15 + 250) = 0;
*((_BYTE *)v15 + 502) = 0;
*((_QWORD *)v15 + 63) = 0;
*((_BYTE *)v15 + 512) = 0;
*((_QWORD *)v15 + 65) = 0;
*((_WORD *)v15 + 264) = 0;
*((_QWORD *)v15 + 67) = 0;
*((_WORD *)v15 + 272) = 0;
*((_QWORD *)v15 + 69) = 0;
*((_QWORD *)v15 + 70) = 0;
v16 = operator new(0x28u);
*v16 = v16;
v16[1] = v16;
v16[2] = v16;
*((_WORD *)v16 + 12) = 257;
*((_QWORD *)v15 + 69) = v16;
*((_QWORD *)v15 + 71) = 0;
*((_QWORD *)v15 + 72) = 0;
v17 = operator new(0x28u);
*v17 = v17;
v17[1] = v17;
v17[2] = v17;
*((_WORD *)v17 + 12) = 257;
*((_QWORD *)v15 + 71) = v17;
*((_QWORD *)v15 + 73) = 0;
*((_QWORD *)v15 + 74) = 0;
*((_QWORD *)v15 + 75) = 0;
*((_QWORD *)v15 + 76) = 0;
*((_QWORD *)v15 + 77) = 0;
*((_QWORD *)v15 + 78) = 0;
v18 = operator new(0x20u);
*v18 = v18;
v18[1] = v18;
v18[2] = v18;
*((_WORD *)v18 + 12) = 257;
*((_QWORD *)v15 + 77) = v18;
if ( (unsigned __int8)CustomSongWidget::init((_DWORD)v15, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) )
{
cocos2d::CCObject::autorelease(v15);
return v15;
}
else
{
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v15 + 8LL))(v15, 1);
return nullptr;
}
}