//
// EditorPauseLayer::onSong from 0x1400dd510 to 0x1400dd5b1 (161 bytes)
//
// 3 xrefs:
// > EditorPauseLayer::customSetup @ 0x1400da8f3
// > EditorPauseLayer::customSetup @ 0x1400da91b
// > ??> @ 0x1406c8a0c
//
// 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
//
void EditorPauseLayer::onSong(EditorPauseLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rdx
__int64 v4; // rbx
void *v5; // [rsp+40h] [rbp+18h]
void *v6; // [rsp+40h] [rbp+18h]
v3 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
v4 = v3;
if ( !v3 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = qword_1406C2ED8;
}
*(_BYTE *)(v3 + 913) = *(_BYTE *)(v4 + 913) == 0;
EditorPauseLayer::updateSongButton(a1);
}