//
// CreateGuidelinesLayer::create from 0x5c18e4 to 0x5c1a30 (332 bytes)
//
// 2 xrefs:
// > CustomSongLayer::onCreateLines @ 0x83ad7c
// > ??> @ 0x9a308
//
// 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
//
CreateGuidelinesLayer *CreateGuidelinesLayer::create(CustomSongDelegate *a1, AudioGuidelinesType a2)
{
__int64 v4; // x19
v4 = operator new(0x2C8u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v4);
*(_DWORD *)(v4 + 616) = -1;
*(_DWORD *)(v4 + 624) = -1;
*(_QWORD *)(v4 + 544) = 0;
*(_QWORD *)(v4 + 552) = 0;
*(_QWORD *)(v4 + 560) = 0;
*(_BYTE *)(v4 + 568) = 0;
*(_QWORD *)(v4 + 576) = 0;
*(_DWORD *)(v4 + 584) = 0;
*(_BYTE *)(v4 + 588) = 0;
*(_QWORD *)(v4 + 592) = 0;
*(_QWORD *)(v4 + 600) = 0;
*(_QWORD *)(v4 + 608) = 0;
*(_BYTE *)(v4 + 620) = 0;
*(_BYTE *)(v4 + 621) = 0;
*(_BYTE *)(v4 + 628) = 0;
*(_QWORD *)(v4 + 640) = 0;
*(_QWORD *)v4 = &off_1145E80;
*(_QWORD *)(v4 + 320) = off_11463E0;
*(_QWORD *)(v4 + 328) = &off_1146450;
*(_QWORD *)(v4 + 336) = &off_1146468;
*(_QWORD *)(v4 + 344) = off_1146488;
*(_QWORD *)(v4 + 352) = off_11464A8;
*(_QWORD *)(v4 + 632) = &off_1146570;
*(_QWORD *)(v4 + 408) = &off_11464D0;
*(_QWORD *)(v4 + 432) = &off_1146550;
*(_BYTE *)(v4 + 692) = 0;
*(_BYTE *)(v4 + 693) = 0;
*(_DWORD *)(v4 + 688) = 0;
*(_QWORD *)(v4 + 704) = &byte_124B6C8;
if ( CreateGuidelinesLayer::init((CreateGuidelinesLayer *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return (CreateGuidelinesLayer *)v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
}