{"type": "func", "start": 5369971648, "end": 5369971844, "name": "CreateGuidelinesLayer::onStop", "pseudocode": "// \n// CreateGuidelinesLayer::onStop from 0x1401343c0 to 0x140134484 (196 bytes)\n// \n// 2 xrefs:\n// > CreateGuidelinesLayer::init @ 0x140133b7a\n// > <???> @ 0x140917000\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:04 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall CreateGuidelinesLayer::onStop(cocos2d::CCNode *a1)\n{\n  _QWORD *v2; // rbx\n  __int64 v3; // rcx\n  __int64 v4; // rdx\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  v2 = (_QWORD *)qword_14090BF60;\n  if ( !qword_14090BF60 )\n  {\n    v5 = operator new(0x8A8u);\n    qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n    v2 = (_QWORD *)qword_14090BF60;\n  }\n  v3 = v2[69];\n  if ( v3 )\n    FMOD::ChannelControl::stop(v3);\n  sub_14003EB60(v2 + 137);\n  sub_14003EB60(v2 + 145);\n  sub_14003EB60(v2 + 153);\n  CreateGuidelinesLayer::toggleItems(a1, 0);\n  LOBYTE(v4) = 1;\n  (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)a1 + 85) + 920LL))(*((_QWORD *)a1 + 85), v4);\n  (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 1120LL))(a1);\n  *((_BYTE *)a1 + 724) = 0;\n  cocos2d::CCNode::unscheduleUpdate(a1);\n}", "assembly": "; \n; CreateGuidelinesLayer::onStop from 0x1401343c0 to 0x140134484 (196 bytes)\n; \n; 2 xrefs:\n; > CreateGuidelinesLayer::init @ 0x140133b7a\n; > <???> @ 0x140917000\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:04 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401343c0\npush    rdi                                                            ; +0x5, 0x1401343c5\nsub     rsp, 20h                                                       ; +0x6, 0x1401343c6\nmov     rdi, rcx                                                       ; +0xa, 0x1401343ca\nmov     rbx, cs:qword_14090BF60                                        ; +0xd, 0x1401343cd\ntest    rbx, rbx                                                       ; +0x14, 0x1401343d4\njnz     short loc_14013440B                                            ; +0x17, 0x1401343d7\nmov     ecx, 8A8h; Size                                                ; +0x19, 0x1401343d9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1401343de\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x1401343e3\nmov     rcx, rax                                                       ; +0x28, 0x1401343e8\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2b, 0x1401343eb\nnop                                                                    ; +0x30, 0x1401343f0\nmov     cs:qword_14090BF60, rax                                        ; +0x31, 0x1401343f1\nmov     rcx, [rax]                                                     ; +0x38, 0x1401343f8\nmov     rdx, [rcx+48h]                                                 ; +0x3b, 0x1401343fb\nmov     rcx, rax                                                       ; +0x3f, 0x1401343ff\ncall    rdx                                                            ; +0x42, 0x140134402\nmov     rbx, cs:qword_14090BF60                                        ; +0x44, 0x140134404\nmov     rcx, [rbx+228h]                                                ; +0x4b, 0x14013440b\ntest    rcx, rcx                                                       ; +0x52, 0x140134412\njz      short loc_14013441D                                            ; +0x55, 0x140134415\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x57, 0x140134417\nlea     rcx, [rbx+448h]                                                ; +0x5d, 0x14013441d\ncall    sub_14003EB60                                                  ; +0x64, 0x140134424\nlea     rcx, [rbx+488h]                                                ; +0x69, 0x140134429\ncall    sub_14003EB60                                                  ; +0x70, 0x140134430\nlea     rcx, [rbx+4C8h]                                                ; +0x75, 0x140134435\ncall    sub_14003EB60                                                  ; +0x7c, 0x14013443c\nxor     edx, edx                                                       ; +0x81, 0x140134441\nmov     rcx, rdi                                                       ; +0x83, 0x140134443\ncall    CreateGuidelinesLayer__toggleItems                             ; +0x86, 0x140134446\nmov     rcx, [rdi+2A8h]                                                ; +0x8b, 0x14013444b\nmov     rax, [rcx]                                                     ; +0x92, 0x140134452\nmov     dl, 1                                                          ; +0x95, 0x140134455\ncall    qword ptr [rax+398h]                                           ; +0x97, 0x140134457\nmov     rax, [rdi]                                                     ; +0x9d, 0x14013445d\nmov     rcx, rdi                                                       ; +0xa0, 0x140134460\ncall    qword ptr [rax+460h]                                           ; +0xa3, 0x140134463\nmov     byte ptr [rdi+2D4h], 0                                         ; +0xa9, 0x140134469\nmov     rcx, rdi                                                       ; +0xb0, 0x140134470\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb3, 0x140134473\nadd     rsp, 20h                                                       ; +0xb8, 0x140134478\npop     rdi                                                            ; +0xbc, 0x14013447c\njmp     cs:?unscheduleUpdate@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleUpdate(void) ; +0xbd, 0x14013447d", "xrefs": ["CreateGuidelinesLayer::init @ 0x140133b7a", "<???> @ 0x140917000"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}