{"type": "func", "start": 5369216704, "end": 5369216837, "name": "ObjectManager::instance", "pseudocode": "// \n// ObjectManager::instance from 0x14007bec0 to 0x14007bf45 (133 bytes)\n// \n// 10 xrefs:\n// > CCAnimatedSprite::initWithType @ 0x140043a9c\n// > CCAnimatedSprite::loadType @ 0x140043e96\n// > SpriteAnimationManager::loadAnimations @ 0x14008547f\n// > SpriteAnimationManager::createAnimations @ 0x140085f00\n// > SpriteAnimationManager::createAnimations @ 0x140085fb6\n// > SpriteAnimationManager::createAnimations @ 0x140086076\n// > GJRobotSprite::init @ 0x1403ac8c4\n// > LoadingLayer::loadAssets @ 0x140469ebf\n// > AnimatedGameObject::init @ 0x1406447f9\n// > <???> @ 0x140911de0\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:25:53 +0000\n// \n\n__int64 ObjectManager::instance()\n{\n  __int64 result; // rax\n  cocos2d::CCNode *v1; // [rsp+30h] [rbp+8h]\n\n  result = qword_14090BF78;\n  if ( !qword_14090BF78 )\n  {\n    v1 = (cocos2d::CCNode *)operator new(0x150u);\n    cocos2d::CCNode::CCNode(v1);\n    *(_QWORD *)v1 = &ObjectManager::`vftable';\n    *((_QWORD *)v1 + 40) = 0;\n    *((_QWORD *)v1 + 41) = 0;\n    qword_14090BF78 = (__int64)v1;\n    ObjectManager::init(v1);\n    return qword_14090BF78;\n  }\n  return result;\n}", "assembly": "; \n; ObjectManager::instance from 0x14007bec0 to 0x14007bf45 (133 bytes)\n; \n; 10 xrefs:\n; > CCAnimatedSprite::initWithType @ 0x140043a9c\n; > CCAnimatedSprite::loadType @ 0x140043e96\n; > SpriteAnimationManager::loadAnimations @ 0x14008547f\n; > SpriteAnimationManager::createAnimations @ 0x140085f00\n; > SpriteAnimationManager::createAnimations @ 0x140085fb6\n; > SpriteAnimationManager::createAnimations @ 0x140086076\n; > GJRobotSprite::init @ 0x1403ac8c4\n; > LoadingLayer::loadAssets @ 0x140469ebf\n; > AnimatedGameObject::init @ 0x1406447f9\n; > <???> @ 0x140911de0\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:25:53 +0000\n; \npush    rbx                                                            ; +0x0, 0x14007bec0\nsub     rsp, 20h                                                       ; +0x2, 0x14007bec2\nmov     rax, cs:qword_14090BF78                                        ; +0x6, 0x14007bec6\ntest    rax, rax                                                       ; +0xd, 0x14007becd\njnz     short loc_14007BF3F                                            ; +0x10, 0x14007bed0\nmov     ecx, 150h; Size                                                ; +0x12, 0x14007bed2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x14007bed7\nmov     rbx, rax                                                       ; +0x1c, 0x14007bedc\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x14007bedf\nmov     rcx, rax                                                       ; +0x24, 0x14007bee4\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x27, 0x14007bee7\nlea     rax, ??_7ObjectManager@@6B@; const ObjectManager::`vftable'    ; +0x2d, 0x14007beed\nmov     [rbx], rax                                                     ; +0x34, 0x14007bef4\nxor     eax, eax                                                       ; +0x37, 0x14007bef7\nmov     [rbx+140h], rax                                                ; +0x39, 0x14007bef9\nmov     [rbx+148h], rax                                                ; +0x40, 0x14007bf00\nmov     cs:qword_14090BF78, rbx                                        ; +0x47, 0x14007bf07\nmov     rax, cs:off_140711108                                          ; +0x4e, 0x14007bf0e\nlea     rcx, ObjectManager__init                                       ; +0x55, 0x14007bf15\ncmp     rax, rcx                                                       ; +0x5c, 0x14007bf1c\nmov     rcx, rbx                                                       ; +0x5f, 0x14007bf1f\njnz     short loc_14007BF36                                            ; +0x62, 0x14007bf22\ncall    ObjectManager__init                                            ; +0x64, 0x14007bf24\nmov     rax, cs:qword_14090BF78                                        ; +0x69, 0x14007bf29\nadd     rsp, 20h                                                       ; +0x70, 0x14007bf30\npop     rbx                                                            ; +0x74, 0x14007bf34\nretn                                                                   ; +0x75, 0x14007bf35\ncall    rax ; ObjectManager__init                                      ; +0x76, 0x14007bf36\nmov     rax, cs:qword_14090BF78                                        ; +0x78, 0x14007bf38\nadd     rsp, 20h                                                       ; +0x7f, 0x14007bf3f\npop     rbx                                                            ; +0x83, 0x14007bf43\nretn                                                                   ; +0x84, 0x14007bf44", "xrefs": ["CCAnimatedSprite::initWithType @ 0x140043a9c", "CCAnimatedSprite::loadType @ 0x140043e96", "SpriteAnimationManager::loadAnimations @ 0x14008547f", "SpriteAnimationManager::createAnimations @ 0x140085f00", "SpriteAnimationManager::createAnimations @ 0x140085fb6", "SpriteAnimationManager::createAnimations @ 0x140086076", "GJRobotSprite::init @ 0x1403ac8c4", "LoadingLayer::loadAssets @ 0x140469ebf", "AnimatedGameObject::init @ 0x1406447f9", "<???> @ 0x140911de0"], "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"}