{"type": "func", "start": 6443198784, "end": 6443198857, "name": "cocos2d::CCScriptEngineManager::purgeSharedManager", "pseudocode": "// \n// cocos2d::CCScriptEngineManager::purgeSharedManager from 0x1800b6940 to 0x1800b6989 (73 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8b98\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\nvoid __fastcall cocos2d::CCScriptEngineManager::purgeSharedManager()\n{\n  _QWORD *v0; // rbx\n\n  v0 = qword_1801A9B00;\n  if ( qword_1801A9B00 )\n  {\n    if ( *(_QWORD *)qword_1801A9B00 )\n    {\n      (***(void (__fastcall ****)(_QWORD, __int64))qword_1801A9B00)(*(_QWORD *)qword_1801A9B00, 1);\n      *v0 = 0;\n    }\n    j_j_free_0(v0);\n    qword_1801A9B00 = nullptr;\n  }\n}", "assembly": "; \n; cocos2d::CCScriptEngineManager::purgeSharedManager from 0x1800b6940 to 0x1800b6989 (73 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8b98\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\npush    rbx                                                            ; +0x0, 0x1800b6940\nsub     rsp, 20h                                                       ; +0x2, 0x1800b6942\nmov     rbx, cs:qword_1801A9B00                                        ; +0x6, 0x1800b6946\ntest    rbx, rbx                                                       ; +0xd, 0x1800b694d\njz      short loc_1800B6983                                            ; +0x10, 0x1800b6950\nmov     rcx, [rbx]                                                     ; +0x12, 0x1800b6952\ntest    rcx, rcx                                                       ; +0x15, 0x1800b6955\njz      short loc_1800B696B                                            ; +0x18, 0x1800b6958\nmov     rax, [rcx]                                                     ; +0x1a, 0x1800b695a\nmov     edx, 1                                                         ; +0x1d, 0x1800b695d\ncall    qword ptr [rax]                                                ; +0x22, 0x1800b6962\nmov     qword ptr [rbx], 0                                             ; +0x24, 0x1800b6964\nmov     edx, 8                                                         ; +0x2b, 0x1800b696b\nmov     rcx, rbx; Block                                                ; +0x30, 0x1800b6970\ncall    j_j_free_0                                                     ; +0x33, 0x1800b6973\nmov     cs:qword_1801A9B00, 0                                          ; +0x38, 0x1800b6978\nadd     rsp, 20h                                                       ; +0x43, 0x1800b6983\npop     rbx                                                            ; +0x47, 0x1800b6987\nretn                                                                   ; +0x48, 0x1800b6988", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b8b98"], "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"}