{"type": "func", "start": 5369165984, "end": 5369166160, "name": "ObjectManager::getDefinition", "pseudocode": "// \n// ObjectManager::getDefinition from 0x14006f8a0 to 0x14006f950 (176 bytes)\n// \n// 7 xrefs:\n// > CCAnimatedSprite::initWithType @ 0x140040070\n// > CCAnimatedSprite::loadType @ 0x140040410\n// > SpriteAnimationManager::loadAnimations @ 0x140072676\n// > SpriteAnimationManager::createAnimations @ 0x140073178\n// > GJRobotSprite::init @ 0x1402a6817\n// > AnimatedGameObject::init @ 0x1404a2b34\n// > <???> @ 0x1406c6144\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\ncocos2d::CCDictionary *ObjectManager::getDefinition(ObjectManager *a1, const char *a2)\n{\n  size_t v3; // r8\n  cocos2d::CCDictionary *v4; // rbx\n  void *v5; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v8; // [rsp+30h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v8 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003A930(Block, a2, v3);\n  v4 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(a1->m_objectDefinitions, Block);\n  if ( *((_QWORD *)&v8 + 1) > 0xFu )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v5);\n  }\n  return v4;\n}", "assembly": "; \n; ObjectManager::getDefinition from 0x14006f8a0 to 0x14006f950 (176 bytes)\n; \n; 7 xrefs:\n; > CCAnimatedSprite::initWithType @ 0x140040070\n; > CCAnimatedSprite::loadType @ 0x140040410\n; > SpriteAnimationManager::loadAnimations @ 0x140072676\n; > SpriteAnimationManager::createAnimations @ 0x140073178\n; > GJRobotSprite::init @ 0x1402a6817\n; > AnimatedGameObject::init @ 0x1404a2b34\n; > <???> @ 0x1406c6144\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, 0x14006f8a0\nsub     rsp, 50h                                                       ; +0x2, 0x14006f8a2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14006f8a6\nxor     rax, rsp                                                       ; +0xd, 0x14006f8ad\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x14006f8b0\nmov     rbx, rcx                                                       ; +0x15, 0x14006f8b5\nxorps   xmm0, xmm0                                                     ; +0x18, 0x14006f8b8\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x1b, 0x14006f8bb\nxorps   xmm1, xmm1                                                     ; +0x20, 0x14006f8c0\nmovdqu  [rsp+58h+var_28], xmm1                                         ; +0x23, 0x14006f8c3\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x14006f8c9\ninc     r8                                                             ; +0x30, 0x14006f8d0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x14006f8d3\njnz     short loc_14006F8D0                                            ; +0x38, 0x14006f8d8\nlea     rcx, [rsp+58h+Block]                                           ; +0x3a, 0x14006f8da\ncall    sub_14003A930                                                  ; +0x3f, 0x14006f8df\nnop                                                                    ; +0x44, 0x14006f8e4\nlea     rdx, [rsp+58h+Block]                                           ; +0x45, 0x14006f8e5\nmov     rcx, [rbx+140h]                                                ; +0x4a, 0x14006f8ea\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x51, 0x14006f8f1\nmov     rbx, rax                                                       ; +0x57, 0x14006f8f7\nmov     rdx, qword ptr [rsp+58h+var_28+8]                              ; +0x5a, 0x14006f8fa\ncmp     rdx, 0Fh                                                       ; +0x5f, 0x14006f8ff\njbe     short loc_14006F93A                                            ; +0x63, 0x14006f903\ninc     rdx                                                            ; +0x65, 0x14006f905\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x68, 0x14006f908\nmov     rax, rcx                                                       ; +0x6d, 0x14006f90d\ncmp     rdx, 1000h                                                     ; +0x70, 0x14006f910\njb      short loc_14006F935                                            ; +0x77, 0x14006f917\nadd     rdx, 27h ; '''                                                 ; +0x79, 0x14006f919\nmov     rcx, [rcx-8]                                                   ; +0x7d, 0x14006f91d\nsub     rax, rcx                                                       ; +0x81, 0x14006f921\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x84, 0x14006f924\ncmp     rax, 1Fh                                                       ; +0x88, 0x14006f928\njbe     short loc_14006F935                                            ; +0x8c, 0x14006f92c\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x8e, 0x14006f92e\ndb 0CCh                                                                ; +0x94, 0x14006f934\ncall    j_j_free                                                       ; +0x95, 0x14006f935\nmov     rax, rbx                                                       ; +0x9a, 0x14006f93a\nmov     rcx, [rsp+58h+var_18]                                          ; +0x9d, 0x14006f93d\nxor     rcx, rsp; StackCookie                                          ; +0xa2, 0x14006f942\ncall    __security_check_cookie                                        ; +0xa5, 0x14006f945\nadd     rsp, 50h                                                       ; +0xaa, 0x14006f94a\npop     rbx                                                            ; +0xae, 0x14006f94e\nretn                                                                   ; +0xaf, 0x14006f94f", "xrefs": ["CCAnimatedSprite::initWithType @ 0x140040070", "CCAnimatedSprite::loadType @ 0x140040410", "SpriteAnimationManager::loadAnimations @ 0x140072676", "SpriteAnimationManager::createAnimations @ 0x140073178", "GJRobotSprite::init @ 0x1402a6817", "AnimatedGameObject::init @ 0x1404a2b34", "<???> @ 0x1406c6144"], "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"}