{"type": "func", "start": 5369343328, "end": 5369343526, "name": "CreateGuidelinesLayer::onStop", "pseudocode": "// \n// CreateGuidelinesLayer::onStop from 0x14009ad60 to 0x14009ae26 (198 bytes)\n// \n// 2 xrefs:\n// > CreateGuidelinesLayer::init @ 0x14009a58e\n// > <???> @ 0x1406c7440\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nvoid CreateGuidelinesLayer::onStop(CreateGuidelinesLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rbx\n  _BOOL8 v4; // rdx\n  FMODAudioEngine *v5; // [rsp+30h] [rbp+8h]\n\n  v3 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v5 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = qword_1406C2E88;\n  }\n  if ( *(_QWORD *)(v3 + 552) )\n    FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v3 + 552));\n  sub_14005E0D0((_QWORD *)(v3 + 1064));\n  sub_14005E0D0((_QWORD *)(v3 + 1128));\n  sub_14005E0D0((_QWORD *)(v3 + 1192));\n  CreateGuidelinesLayer::toggleItems(a1, 0);\n  LOBYTE(v4) = 1;\n  a1->m_offsetInput->setTouchEnabled(a1->m_offsetInput, v4);\n  a1->recordingDidStop(a1);\n  a1->m_recording = 0;\n  cocos2d::CCNode::unscheduleUpdate(a1);\n}", "assembly": "; \n; CreateGuidelinesLayer::onStop from 0x14009ad60 to 0x14009ae26 (198 bytes)\n; \n; 2 xrefs:\n; > CreateGuidelinesLayer::init @ 0x14009a58e\n; > <???> @ 0x1406c7440\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14009ad60\npush    rdi                                                            ; +0x5, 0x14009ad65\nsub     rsp, 20h                                                       ; +0x6, 0x14009ad66\nmov     rdi, rcx                                                       ; +0xa, 0x14009ad6a\nmov     rbx, cs:qword_1406C2E88                                        ; +0xd, 0x14009ad6d\ntest    rbx, rbx                                                       ; +0x14, 0x14009ad74\njnz     short loc_14009ADA8                                            ; +0x17, 0x14009ad77\nmov     ecx, 888h; Size                                                ; +0x19, 0x14009ad79\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x14009ad7e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x14009ad83\nmov     rcx, rax                                                       ; +0x28, 0x14009ad88\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2b, 0x14009ad8b\nnop                                                                    ; +0x30, 0x14009ad90\nmov     cs:qword_1406C2E88, rax                                        ; +0x31, 0x14009ad91\nmov     rdx, [rax]                                                     ; +0x38, 0x14009ad98\nmov     rcx, rax                                                       ; +0x3b, 0x14009ad9b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x14009ad9e\nmov     rbx, cs:qword_1406C2E88                                        ; +0x41, 0x14009ada1\ncmp     qword ptr [rbx+228h], 0                                        ; +0x48, 0x14009ada8\njz      short loc_14009ADBF                                            ; +0x50, 0x14009adb0\nmov     rcx, [rbx+228h]                                                ; +0x52, 0x14009adb2\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x59, 0x14009adb9\nlea     rcx, [rbx+428h]                                                ; +0x5f, 0x14009adbf\ncall    sub_14005E0D0                                                  ; +0x66, 0x14009adc6\nlea     rcx, [rbx+468h]                                                ; +0x6b, 0x14009adcb\ncall    sub_14005E0D0                                                  ; +0x72, 0x14009add2\nlea     rcx, [rbx+4A8h]                                                ; +0x77, 0x14009add7\ncall    sub_14005E0D0                                                  ; +0x7e, 0x14009adde\nxor     edx, edx                                                       ; +0x83, 0x14009ade3\nmov     rcx, rdi                                                       ; +0x85, 0x14009ade5\ncall    CreateGuidelinesLayer__toggleItems                             ; +0x88, 0x14009ade8\nmov     rcx, [rdi+288h]                                                ; +0x8d, 0x14009aded\nmov     rax, [rcx]                                                     ; +0x94, 0x14009adf4\nmov     dl, 1                                                          ; +0x97, 0x14009adf7\ncall    qword ptr [rax+388h]                                           ; +0x99, 0x14009adf9\nmov     rax, [rdi]                                                     ; +0x9f, 0x14009adff\nmov     rcx, rdi                                                       ; +0xa2, 0x14009ae02\ncall    qword ptr [rax+440h]                                           ; +0xa5, 0x14009ae05\nmov     byte ptr [rdi+2B4h], 0                                         ; +0xab, 0x14009ae0b\nmov     rcx, rdi                                                       ; +0xb2, 0x14009ae12\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb5, 0x14009ae15\nadd     rsp, 20h                                                       ; +0xba, 0x14009ae1a\npop     rdi                                                            ; +0xbe, 0x14009ae1e\njmp     cs:?unscheduleUpdate@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleUpdate(void) ; +0xbf, 0x14009ae1f", "xrefs": ["CreateGuidelinesLayer::init @ 0x14009a58e", "<???> @ 0x1406c7440"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}