// // CustomSongLayer::onCreateLines from 0x1400c4120 to 0x1400c420a (234 bytes) // // 3 xrefs: // > CustomSongLayer::init @ 0x1400c31d7 // > @ 0x1406c807c // > @ 0x1406c8088 // // 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 // // Hidden C++ exception states: #wind=3 void CustomSongLayer::onCreateLines(CustomSongLayer *a1, cocos2d::CCObject *a2) { __int64 v3; // rbx CustomSongDelegate *m_songDelegate; // rdi CreateGuidelinesLayer *GuidelinesLayer; // rax cocos2d::CCObject *v6; // rbx FMODAudioEngine *v7; // [rsp+30h] [rbp+8h] CreateGuidelinesLayer *v8; // [rsp+30h] [rbp+8h] v3 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v7 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v3 = qword_1406C2E88; } if ( *(_QWORD *)(v3 + 552) ) FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v3 + 552)); sub_14005E0D0((_QWORD *)(v3 + 1064)); sub_14005E0D0((_QWORD *)(v3 + 1128)); sub_14005E0D0((_QWORD *)(v3 + 1192)); m_songDelegate = a1->m_songDelegate; v8 = (CreateGuidelinesLayer *)operator new(0x2E0u); GuidelinesLayer = CreateGuidelinesLayer::CreateGuidelinesLayer(v8); v6 = GuidelinesLayer; if ( GuidelinesLayer ) { if ( CreateGuidelinesLayer::init(GuidelinesLayer, m_songDelegate, GuidelineCreator) ) { cocos2d::CCObject::autorelease(v6); } else { ((void (__fastcall *)(cocos2d::CCObject *, __int64))v6->~CCObject)(v6, 1); v6 = nullptr; } } ((void (__fastcall *)(cocos2d::CCObject *))v6->__vftable[14].update)(v6); }