{"type": "func", "start": 5369160704, "end": 5369160837, "name": "ObjectManager::instance", "pseudocode": "// \n// ObjectManager::instance from 0x14006e400 to 0x14006e485 (133 bytes)\n// \n// 10 xrefs:\n// > CCAnimatedSprite::initWithType @ 0x140040065\n// > CCAnimatedSprite::loadType @ 0x140040405\n// > SpriteAnimationManager::loadAnimations @ 0x14007266b\n// > SpriteAnimationManager::createAnimations @ 0x14007301a\n// > SpriteAnimationManager::createAnimations @ 0x1400730c1\n// > SpriteAnimationManager::createAnimations @ 0x14007316d\n// > GJRobotSprite::init @ 0x1402a680c\n// > LoadingLayer::loadAssets @ 0x14032f2ce\n// > AnimatedGameObject::init @ 0x1404a2b29\n// > <???> @ 0x1406c60fc\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\nObjectManager *ObjectManager::instance()\n{\n  ObjectManager *result; // rax\n  ObjectManager *v1; // [rsp+30h] [rbp+8h]\n\n  result = (ObjectManager *)qword_1406C2EA0;\n  if ( !qword_1406C2EA0 )\n  {\n    v1 = (ObjectManager *)operator new(0x150u);\n    cocos2d::CCNode::CCNode(v1);\n    v1->__vftable = (ObjectManager_vtbl *)&ObjectManager::`vftable';\n    v1->m_objectDefinitions = nullptr;\n    v1->m_loadedAnimations = nullptr;\n    qword_1406C2EA0 = (__int64)v1;\n    ObjectManager::init(v1);\n    return (ObjectManager *)qword_1406C2EA0;\n  }\n  return result;\n}", "assembly": "; \n; ObjectManager::instance from 0x14006e400 to 0x14006e485 (133 bytes)\n; \n; 10 xrefs:\n; > CCAnimatedSprite::initWithType @ 0x140040065\n; > CCAnimatedSprite::loadType @ 0x140040405\n; > SpriteAnimationManager::loadAnimations @ 0x14007266b\n; > SpriteAnimationManager::createAnimations @ 0x14007301a\n; > SpriteAnimationManager::createAnimations @ 0x1400730c1\n; > SpriteAnimationManager::createAnimations @ 0x14007316d\n; > GJRobotSprite::init @ 0x1402a680c\n; > LoadingLayer::loadAssets @ 0x14032f2ce\n; > AnimatedGameObject::init @ 0x1404a2b29\n; > <???> @ 0x1406c60fc\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, 0x14006e400\nsub     rsp, 20h                                                       ; +0x2, 0x14006e402\nmov     rax, cs:qword_1406C2EA0                                        ; +0x6, 0x14006e406\ntest    rax, rax                                                       ; +0xd, 0x14006e40d\njnz     short loc_14006E47F                                            ; +0x10, 0x14006e410\nmov     ecx, 150h; Size                                                ; +0x12, 0x14006e412\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x14006e417\nmov     rbx, rax                                                       ; +0x1c, 0x14006e41c\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x14006e41f\nmov     rcx, rax                                                       ; +0x24, 0x14006e424\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x27, 0x14006e427\nlea     rax, ??_7ObjectManager@@6B@; const ObjectManager::`vftable'    ; +0x2d, 0x14006e42d\nmov     [rbx], rax                                                     ; +0x34, 0x14006e434\nxor     eax, eax                                                       ; +0x37, 0x14006e437\nmov     [rbx+140h], rax                                                ; +0x39, 0x14006e439\nmov     [rbx+148h], rax                                                ; +0x40, 0x14006e440\nmov     cs:qword_1406C2EA0, rbx                                        ; +0x47, 0x14006e447\nmov     rax, cs:off_140535AA0                                          ; +0x4e, 0x14006e44e\nlea     rcx, ObjectManager__init                                       ; +0x55, 0x14006e455\ncmp     rax, rcx                                                       ; +0x5c, 0x14006e45c\nmov     rcx, rbx                                                       ; +0x5f, 0x14006e45f\njnz     short loc_14006E476                                            ; +0x62, 0x14006e462\ncall    ObjectManager__init                                            ; +0x64, 0x14006e464\nmov     rax, cs:qword_1406C2EA0                                        ; +0x69, 0x14006e469\nadd     rsp, 20h                                                       ; +0x70, 0x14006e470\npop     rbx                                                            ; +0x74, 0x14006e474\nretn                                                                   ; +0x75, 0x14006e475\ncall    rax ; ObjectManager__init                                      ; +0x76, 0x14006e476\nmov     rax, cs:qword_1406C2EA0                                        ; +0x78, 0x14006e478\nadd     rsp, 20h                                                       ; +0x7f, 0x14006e47f\npop     rbx                                                            ; +0x83, 0x14006e483\nretn                                                                   ; +0x84, 0x14006e484", "xrefs": ["CCAnimatedSprite::initWithType @ 0x140040065", "CCAnimatedSprite::loadType @ 0x140040405", "SpriteAnimationManager::loadAnimations @ 0x14007266b", "SpriteAnimationManager::createAnimations @ 0x14007301a", "SpriteAnimationManager::createAnimations @ 0x1400730c1", "SpriteAnimationManager::createAnimations @ 0x14007316d", "GJRobotSprite::init @ 0x1402a680c", "LoadingLayer::loadAssets @ 0x14032f2ce", "AnimatedGameObject::init @ 0x1404a2b29", "<???> @ 0x1406c60fc"], "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"}