//
// CreateGuidelinesLayer::onStop from 0x14009ad60 to 0x14009ae26 (198 bytes)
//
// 2 xrefs:
// > CreateGuidelinesLayer::init @ 0x14009a58e
// > ??> @ 0x1406c7440
//
// 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=2
void CreateGuidelinesLayer::onStop(CreateGuidelinesLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rbx
_BOOL8 v4; // rdx
FMODAudioEngine *v5; // [rsp+30h] [rbp+8h]
v3 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v5 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);
(*(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));
CreateGuidelinesLayer::toggleItems(a1, 0);
LOBYTE(v4) = 1;
a1->m_offsetInput->setTouchEnabled(a1->m_offsetInput, v4);
a1->recordingDidStop(a1);
a1->m_recording = 0;
cocos2d::CCNode::unscheduleUpdate(a1);
}