{"type": "func", "start": 5369222288, "end": 5369222486, "name": "ObjectManager::getDefinition", "pseudocode": "// \n// ObjectManager::getDefinition from 0x14007d490 to 0x14007d556 (198 bytes)\n// \n// 7 xrefs:\n// > CCAnimatedSprite::initWithType @ 0x140043aa7\n// > CCAnimatedSprite::loadType @ 0x140043ea1\n// > SpriteAnimationManager::loadAnimations @ 0x14008548a\n// > SpriteAnimationManager::createAnimations @ 0x140086081\n// > GJRobotSprite::init @ 0x1403ac8cf\n// > AnimatedGameObject::init @ 0x140644804\n// > <???> @ 0x140911e34\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:54 +0000\n// \n\n__int64 __fastcall ObjectManager::getDefinition(__int64 a1, _BYTE *a2)\n{\n  size_t v3; // r8\n  __int64 v4; // rbx\n  void *v5; // r8\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v8; // [rsp+40h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v8 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003D230(Block, a2, v3);\n  v4 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 320), 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        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v5);\n  }\n  return v4;\n}", "assembly": "; \n; ObjectManager::getDefinition from 0x14007d490 to 0x14007d556 (198 bytes)\n; \n; 7 xrefs:\n; > CCAnimatedSprite::initWithType @ 0x140043aa7\n; > CCAnimatedSprite::loadType @ 0x140043ea1\n; > SpriteAnimationManager::loadAnimations @ 0x14008548a\n; > SpriteAnimationManager::createAnimations @ 0x140086081\n; > GJRobotSprite::init @ 0x1403ac8cf\n; > AnimatedGameObject::init @ 0x140644804\n; > <???> @ 0x140911e34\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:54 +0000\n; \npush    rbx                                                            ; +0x0, 0x14007d490\nsub     rsp, 60h                                                       ; +0x2, 0x14007d492\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14007d496\nxor     rax, rsp                                                       ; +0xd, 0x14007d49d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x14007d4a0\nmov     rbx, rcx                                                       ; +0x15, 0x14007d4a5\nxorps   xmm0, xmm0                                                     ; +0x18, 0x14007d4a8\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x1b, 0x14007d4ab\nxorps   xmm1, xmm1                                                     ; +0x20, 0x14007d4b0\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x23, 0x14007d4b3\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x14007d4b9\ninc     r8                                                             ; +0x30, 0x14007d4c0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x14007d4c3\njnz     short loc_14007D4C0                                            ; +0x38, 0x14007d4c8\nlea     rcx, [rsp+68h+Block]                                           ; +0x3a, 0x14007d4ca\ncall    sub_14003D230                                                  ; +0x3f, 0x14007d4cf\nnop                                                                    ; +0x44, 0x14007d4d4\nlea     rdx, [rsp+68h+Block]                                           ; +0x45, 0x14007d4d5\nmov     rcx, [rbx+140h]                                                ; +0x4a, 0x14007d4da\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, 0x14007d4e1\nmov     rbx, rax                                                       ; +0x57, 0x14007d4e7\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x5a, 0x14007d4ea\ncmp     rdx, 0Fh                                                       ; +0x5f, 0x14007d4ef\njbe     short loc_14007D540                                            ; +0x63, 0x14007d4f3\ninc     rdx                                                            ; +0x65, 0x14007d4f5\nmov     r8, [rsp+68h+Block]                                            ; +0x68, 0x14007d4f8\nmov     rcx, r8                                                        ; +0x6d, 0x14007d4fd\ncmp     rdx, 1000h                                                     ; +0x70, 0x14007d500\njb      short loc_14007D538                                            ; +0x77, 0x14007d507\nadd     rdx, 27h ; '''                                                 ; +0x79, 0x14007d509\nmov     r8, [r8-8]                                                     ; +0x7d, 0x14007d50d\nsub     rcx, r8                                                        ; +0x81, 0x14007d511\nsub     rcx, 8                                                         ; +0x84, 0x14007d514\ncmp     rcx, 1Fh                                                       ; +0x88, 0x14007d518\njbe     short loc_14007D538                                            ; +0x8c, 0x14007d51c\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x8e, 0x14007d51e\nxor     r9d, r9d; LineNo                                               ; +0x97, 0x14007d527\nxor     r8d, r8d; FileName                                             ; +0x9a, 0x14007d52a\nxor     edx, edx; FunctionName                                         ; +0x9d, 0x14007d52d\nxor     ecx, ecx; Expression                                           ; +0x9f, 0x14007d52f\ncall    cs:_invoke_watson                                              ; +0xa1, 0x14007d531\nalign 8                                                                ; +0xa7, 0x14007d537\nmov     rcx, r8; Block                                                 ; +0xa8, 0x14007d538\ncall    j_j_free                                                       ; +0xab, 0x14007d53b\nmov     rax, rbx                                                       ; +0xb0, 0x14007d540\nmov     rcx, [rsp+68h+var_18]                                          ; +0xb3, 0x14007d543\nxor     rcx, rsp; StackCookie                                          ; +0xb8, 0x14007d548\ncall    __security_check_cookie                                        ; +0xbb, 0x14007d54b\nadd     rsp, 60h                                                       ; +0xc0, 0x14007d550\npop     rbx                                                            ; +0xc4, 0x14007d554\nretn                                                                   ; +0xc5, 0x14007d555", "xrefs": ["CCAnimatedSprite::initWithType @ 0x140043aa7", "CCAnimatedSprite::loadType @ 0x140043ea1", "SpriteAnimationManager::loadAnimations @ 0x14008548a", "SpriteAnimationManager::createAnimations @ 0x140086081", "GJRobotSprite::init @ 0x1403ac8cf", "AnimatedGameObject::init @ 0x140644804", "<???> @ 0x140911e34"], "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"}