//
// FindBPMLayer::create from 0x5c1b84 to 0x5c1cd0 (332 bytes)
//
// 2 xrefs:
// > SongInfoLayer::onBPM @ 0x7de058
// > ??> @ 0x52a10
//
// 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
//
FindBPMLayer *FindBPMLayer::create(int a1)
{
__int64 v2; // x19
v2 = operator new(0x2E8u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v2);
*(_QWORD *)(v2 + 544) = 0;
*(_QWORD *)(v2 + 552) = 0;
*(_DWORD *)(v2 + 616) = -1;
*(_DWORD *)(v2 + 624) = -1;
*(_QWORD *)(v2 + 560) = 0;
*(_BYTE *)(v2 + 568) = 0;
*(_QWORD *)(v2 + 576) = 0;
*(_DWORD *)(v2 + 584) = 0;
*(_BYTE *)(v2 + 588) = 0;
*(_QWORD *)(v2 + 592) = 0;
*(_QWORD *)(v2 + 600) = 0;
*(_QWORD *)(v2 + 608) = 0;
*(_BYTE *)(v2 + 620) = 0;
*(_BYTE *)(v2 + 621) = 0;
*(_BYTE *)(v2 + 628) = 0;
*(_QWORD *)(v2 + 640) = 0;
*(_BYTE *)(v2 + 692) = 0;
*(_BYTE *)(v2 + 693) = 0;
*(_DWORD *)(v2 + 688) = 0;
*(_QWORD *)(v2 + 704) = &byte_124B6C8;
*(_DWORD *)(v2 + 712) = 0;
*(_QWORD *)v2 = &off_1146590;
*(_QWORD *)(v2 + 320) = off_1146AF0;
*(_QWORD *)(v2 + 328) = &off_1146B60;
*(_QWORD *)(v2 + 336) = &off_1146B78;
*(_QWORD *)(v2 + 344) = off_1146B98;
*(_QWORD *)(v2 + 352) = off_1146BB8;
*(_QWORD *)(v2 + 408) = &off_1146BE0;
*(_QWORD *)(v2 + 432) = &off_1146C60;
*(_QWORD *)(v2 + 632) = &off_1146C80;
*(_QWORD *)(v2 + 720) = 0;
*(_DWORD *)(v2 + 728) = 0;
*(_DWORD *)(v2 + 732) = 0;
*(_DWORD *)(v2 + 736) = 0;
if ( FindBPMLayer::init((FindBPMLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (FindBPMLayer *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}