{"type": "func", "start": 6442481808, "end": 6442481915, "name": "cocos2d::CCPoolManager::sharedPoolManager", "pseudocode": "// \n// cocos2d::CCPoolManager::sharedPoolManager from 0x180007890 to 0x1800078fb (107 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCObject::~CCObject @ 0x18000e92d\n// > cocos2d::CCObject::autorelease @ 0x18000ea49\n// > cocos2d::CCDirector::~CCDirector @ 0x1800bde61\n// > cocos2d::CCDirector::init @ 0x1800bea3a\n// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800beb0b\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801adaf8\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\nstruct cocos2d::CCPoolManager *__fastcall cocos2d::CCPoolManager::sharedPoolManager()\n{\n  struct cocos2d::CCPoolManager *result; // rax\n  cocos2d::CCPoolManager *v1; // rbx\n  cocos2d::CCArray *v2; // rax\n\n  result = Block;\n  if ( !Block )\n  {\n    v1 = (cocos2d::CCPoolManager *)operator new(0x10u);\n    if ( v1 )\n    {\n      v2 = (cocos2d::CCArray *)operator new(0x40u);\n      if ( v2 )\n        v2 = cocos2d::CCArray::CCArray(v2);\n      v1->m_pReleasePoolStack = v2;\n      cocos2d::CCArray::init(v2);\n      v1->m_pCurReleasePool = nullptr;\n    }\n    else\n    {\n      v1 = nullptr;\n    }\n    Block = v1;\n    return v1;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCPoolManager::sharedPoolManager from 0x180007890 to 0x1800078fb (107 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCObject::~CCObject @ 0x18000e92d\n; > cocos2d::CCObject::autorelease @ 0x18000ea49\n; > cocos2d::CCDirector::~CCDirector @ 0x1800bde61\n; > cocos2d::CCDirector::init @ 0x1800bea3a\n; > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800beb0b\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801adaf8\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, 0x180007890\nsub     rsp, 20h                                                       ; +0x2, 0x180007892\nmov     rax, cs:Block                                                  ; +0x6, 0x180007896\ntest    rax, rax                                                       ; +0xd, 0x18000789d\njnz     short loc_1800078F5                                            ; +0x10, 0x1800078a0\nlea     ecx, [rax+10h]; Size                                           ; +0x12, 0x1800078a2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x1800078a5\nmov     rbx, rax                                                       ; +0x1a, 0x1800078aa\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x1800078ad\ntest    rax, rax                                                       ; +0x22, 0x1800078b2\njz      short loc_1800078E9                                            ; +0x25, 0x1800078b5\nmov     ecx, 40h ; '@'; Size                                           ; +0x27, 0x1800078b7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2c, 0x1800078bc\nmov     [rsp+28h+arg_8], rax                                           ; +0x31, 0x1800078c1\ntest    rax, rax                                                       ; +0x36, 0x1800078c6\njz      short loc_1800078D4                                            ; +0x39, 0x1800078c9\nmov     rcx, rax; this                                                 ; +0x3b, 0x1800078cb\ncall    ??0CCArray@cocos2d@@QEAA@XZ; cocos2d::CCArray::CCArray(void)   ; +0x3e, 0x1800078ce\nnop                                                                    ; +0x43, 0x1800078d3\nmov     [rbx], rax                                                     ; +0x44, 0x1800078d4\nmov     rcx, rax; this                                                 ; +0x47, 0x1800078d7\ncall    ?init@CCArray@cocos2d@@QEAA_NXZ; cocos2d::CCArray::init(void)  ; +0x4a, 0x1800078da\nmov     qword ptr [rbx+8], 0                                           ; +0x4f, 0x1800078df\njmp     short loc_1800078EB                                            ; +0x57, 0x1800078e7\nxor     ebx, ebx                                                       ; +0x59, 0x1800078e9\nmov     cs:Block, rbx                                                  ; +0x5b, 0x1800078eb\nmov     rax, rbx                                                       ; +0x62, 0x1800078f2\nadd     rsp, 20h                                                       ; +0x65, 0x1800078f5\npop     rbx                                                            ; +0x69, 0x1800078f9\nretn                                                                   ; +0x6a, 0x1800078fa", "xrefs": ["cocos2d::CCObject::~CCObject @ 0x18000e92d", "cocos2d::CCObject::autorelease @ 0x18000ea49", "cocos2d::CCDirector::~CCDirector @ 0x1800bde61", "cocos2d::CCDirector::init @ 0x1800bea3a", "cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800beb0b", "<???> @ 0x1801438a8", "<???> @ 0x1801adaf8"], "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"}