{"type": "func", "start": 5372590256, "end": 5372590409, "name": "PlayLayer::toggleGlitter", "pseudocode": "// \n// PlayLayer::toggleGlitter from 0x1403b38b0 to 0x1403b3949 (153 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405c9bf0\n// > <???> @ 0x1406d6eb4\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=1\nvoid PlayLayer::toggleGlitter(PlayLayer *a1, bool a2)\n{\n  __int64 v4; // rax\n  void *v5; // [rsp+40h] [rbp+18h]\n\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v5 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  if ( !*(_BYTE *)(v4 + 917) )\n  {\n    a1->m_glitterEnabled = a2;\n    if ( a1->m_bgEffectDisabled || !a2 )\n      cocos2d::CCParticleSystem::stopSystem(a1->m_glitterParticles);\n    else\n      cocos2d::CCParticleSystem::resumeSystem(a1->m_glitterParticles);\n  }\n}", "assembly": "; \n; PlayLayer::toggleGlitter from 0x1403b38b0 to 0x1403b3949 (153 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405c9bf0\n; > <???> @ 0x1406d6eb4\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_0], rbx                                               ; +0x0, 0x1403b38b0\npush    rdi                                                            ; +0x5, 0x1403b38b5\nsub     rsp, 20h                                                       ; +0x6, 0x1403b38b6\nmovzx   edi, dl                                                        ; +0xa, 0x1403b38ba\nmov     rbx, rcx                                                       ; +0xd, 0x1403b38bd\nmov     rax, cs:qword_1406C2ED8                                        ; +0x10, 0x1403b38c0\ntest    rax, rax                                                       ; +0x17, 0x1403b38c7\njnz     short loc_1403B38FB                                            ; +0x1a, 0x1403b38ca\nmov     ecx, 668h; Size                                                ; +0x1c, 0x1403b38cc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x1403b38d1\nmov     [rsp+28h+arg_10], rax                                          ; +0x26, 0x1403b38d6\nmov     rcx, rax                                                       ; +0x2b, 0x1403b38db\ncall    sub_14017AB00                                                  ; +0x2e, 0x1403b38de\nnop                                                                    ; +0x33, 0x1403b38e3\nmov     cs:qword_1406C2ED8, rax                                        ; +0x34, 0x1403b38e4\nmov     rdx, [rax]                                                     ; +0x3b, 0x1403b38eb\nmov     rcx, rax                                                       ; +0x3e, 0x1403b38ee\ncall    qword ptr [rdx+48h]                                            ; +0x41, 0x1403b38f1\nmov     rax, cs:qword_1406C2ED8                                        ; +0x44, 0x1403b38f4\ncmp     byte ptr [rax+395h], 0                                         ; +0x4b, 0x1403b38fb\njnz     short loc_1403B393E                                            ; +0x52, 0x1403b3902\nmov     [rbx+39ECh], dil                                               ; +0x54, 0x1403b3904\ncmp     byte ptr [rbx+39EDh], 0                                        ; +0x5b, 0x1403b390b\njnz     short loc_1403B3931                                            ; +0x62, 0x1403b3912\ntest    dil, dil                                                       ; +0x64, 0x1403b3914\njz      short loc_1403B3931                                            ; +0x67, 0x1403b3917\nmov     rcx, [rbx+3240h]                                               ; +0x69, 0x1403b3919\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x70, 0x1403b3920\nadd     rsp, 20h                                                       ; +0x75, 0x1403b3925\npop     rdi                                                            ; +0x79, 0x1403b3929\njmp     cs:?resumeSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::resumeSystem(void) ; +0x7a, 0x1403b392a\nmov     rcx, [rbx+3240h]                                               ; +0x81, 0x1403b3931\ncall    cs:?stopSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::stopSystem(void) ; +0x88, 0x1403b3938\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x1403b393e\nadd     rsp, 20h                                                       ; +0x93, 0x1403b3943\npop     rdi                                                            ; +0x97, 0x1403b3947\nretn                                                                   ; +0x98, 0x1403b3948", "xrefs": ["<???> @ 0x1405c9bf0", "<???> @ 0x1406d6eb4"], "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"}