//
// CreateGuidelinesLayer::onStop from 0x1401343c0 to 0x140134484 (196 bytes)
//
// 2 xrefs:
// > CreateGuidelinesLayer::init @ 0x140133b7a
// > ??> @ 0x140917000
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:27:04 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall CreateGuidelinesLayer::onStop(cocos2d::CCNode *a1)
{
_QWORD *v2; // rbx
__int64 v3; // rcx
__int64 v4; // rdx
void *v5; // [rsp+30h] [rbp+8h]
v2 = (_QWORD *)qword_14090BF60;
if ( !qword_14090BF60 )
{
v5 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v2 = (_QWORD *)qword_14090BF60;
}
v3 = v2[69];
if ( v3 )
FMOD::ChannelControl::stop(v3);
sub_14003EB60(v2 + 137);
sub_14003EB60(v2 + 145);
sub_14003EB60(v2 + 153);
CreateGuidelinesLayer::toggleItems(a1, 0);
LOBYTE(v4) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)a1 + 85) + 920LL))(*((_QWORD *)a1 + 85), v4);
(*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 1120LL))(a1);
*((_BYTE *)a1 + 724) = 0;
cocos2d::CCNode::unscheduleUpdate(a1);
}