{"type": "func", "start": 5371489792, "end": 5371490040, "name": "EnhancedGameObject::updateAnimateOnTrigger", "pseudocode": "// \n// EnhancedGameObject::updateAnimateOnTrigger from 0x1402a6e00 to 0x1402a6ef8 (248 bytes)\n// \n// 42 xrefs:\n// > <???> @ 0x14075ef60\n// > <???> @ 0x1408202e0\n// > <???> @ 0x140820a38\n// > <???> @ 0x1408210f0\n// > <???> @ 0x140821858\n// > <???> @ 0x140821f10\n// > <???> @ 0x1408225f0\n// > <???> @ 0x140822ca8\n// > <???> @ 0x1408235b8\n// > <???> @ 0x140823d00\n// > <???> @ 0x1408243b8\n// > <???> @ 0x140824bb0\n// > <???> @ 0x140825268\n// > <???> @ 0x140825920\n// > <???> @ 0x140826190\n// > <???> @ 0x140826988\n// > <???> @ 0x140827130\n// > <???> @ 0x140827860\n// > <???> @ 0x140827f18\n// > <???> @ 0x140828670\n// > <???> @ 0x140828eb8\n// > <???> @ 0x140829570\n// > <???> @ 0x140829cf0\n// > <???> @ 0x14082a470\n// > <???> @ 0x14082ab28\n// > <???> @ 0x14082b1e0\n// > <???> @ 0x14082bbf0\n// > <???> @ 0x14082c320\n// > <???> @ 0x14082c9d8\n// > <???> @ 0x14082d090\n// > <???> @ 0x14082d748\n// > <???> @ 0x14082df18\n// > <???> @ 0x14082e6c0\n// > <???> @ 0x14082ed78\n// > <???> @ 0x14082f430\n// > <???> @ 0x14082fae8\n// > <???> @ 0x1408301a0\n// > <???> @ 0x140830858\n// > <???> @ 0x140830f10\n// > <???> @ 0x140831730\n// > <???> @ 0x140831eb0\n// > <???> @ 0x14091dabc\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:29:18 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall EnhancedGameObject::updateAnimateOnTrigger(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rcx\n  __int64 v4; // rcx\n  struct cocos2d::CCObject *v5; // rax\n  __int64 v6; // rdx\n  __int64 v7; // r8\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  if ( *(_BYTE *)(a1 + 1402) && *(_BYTE *)(a1 + 1433) )\n  {\n    v3 = a1 + 320;\n    if ( (_BYTE)a2 )\n    {\n      *(_BYTE *)(a1 + 774) = 0;\n      LOBYTE(a2) = -1;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 40LL))(v3, a2);\n      *(_DWORD *)(a1 + 1448) = -1;\n      *(_BYTE *)(a1 + 1433) = 0;\n      v4 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v8 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager((__int64)v8);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v4 = qword_14090BFD0;\n      }\n      v5 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v4 + 416), *(int *)(a1 + 1036));\n      if ( v5 )\n        v7 = *((unsigned int *)v5 + 14);\n      else\n        v7 = 1;\n      (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1696LL))(a1, v6, v7);\n      *(_BYTE *)(a1 + 1433) = 1;\n    }\n    else\n    {\n      *(_BYTE *)(a1 + 1441) = 0;\n      *(_QWORD *)(a1 + 1376) = 0;\n      *(_QWORD *)(a1 + 1368) = 0;\n      *(_BYTE *)(a1 + 774) = 1;\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 40LL))(v3, 0);\n    }\n  }\n}", "assembly": "; \n; EnhancedGameObject::updateAnimateOnTrigger from 0x1402a6e00 to 0x1402a6ef8 (248 bytes)\n; \n; 42 xrefs:\n; > <???> @ 0x14075ef60\n; > <???> @ 0x1408202e0\n; > <???> @ 0x140820a38\n; > <???> @ 0x1408210f0\n; > <???> @ 0x140821858\n; > <???> @ 0x140821f10\n; > <???> @ 0x1408225f0\n; > <???> @ 0x140822ca8\n; > <???> @ 0x1408235b8\n; > <???> @ 0x140823d00\n; > <???> @ 0x1408243b8\n; > <???> @ 0x140824bb0\n; > <???> @ 0x140825268\n; > <???> @ 0x140825920\n; > <???> @ 0x140826190\n; > <???> @ 0x140826988\n; > <???> @ 0x140827130\n; > <???> @ 0x140827860\n; > <???> @ 0x140827f18\n; > <???> @ 0x140828670\n; > <???> @ 0x140828eb8\n; > <???> @ 0x140829570\n; > <???> @ 0x140829cf0\n; > <???> @ 0x14082a470\n; > <???> @ 0x14082ab28\n; > <???> @ 0x14082b1e0\n; > <???> @ 0x14082bbf0\n; > <???> @ 0x14082c320\n; > <???> @ 0x14082c9d8\n; > <???> @ 0x14082d090\n; > <???> @ 0x14082d748\n; > <???> @ 0x14082df18\n; > <???> @ 0x14082e6c0\n; > <???> @ 0x14082ed78\n; > <???> @ 0x14082f430\n; > <???> @ 0x14082fae8\n; > <???> @ 0x1408301a0\n; > <???> @ 0x140830858\n; > <???> @ 0x140830f10\n; > <???> @ 0x140831730\n; > <???> @ 0x140831eb0\n; > <???> @ 0x14091dabc\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:29:18 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402a6e00\nsub     rsp, 20h                                                       ; +0x2, 0x1402a6e02\nmov     rbx, rcx                                                       ; +0x6, 0x1402a6e06\ncmp     byte ptr [rcx+57Ah], 0                                         ; +0x9, 0x1402a6e09\njz      loc_1402A6EF2                                                  ; +0x10, 0x1402a6e10\ncmp     byte ptr [rcx+599h], 0                                         ; +0x16, 0x1402a6e16\njz      loc_1402A6EF2                                                  ; +0x1d, 0x1402a6e1d\nadd     rcx, 140h                                                      ; +0x23, 0x1402a6e23\ntest    dl, dl                                                         ; +0x2a, 0x1402a6e2a\njnz     short loc_1402A6E59                                            ; +0x2c, 0x1402a6e2c\nmov     [rbx+5A1h], dl                                                 ; +0x2e, 0x1402a6e2e\nxor     eax, eax                                                       ; +0x34, 0x1402a6e34\nmov     [rbx+560h], rax                                                ; +0x36, 0x1402a6e36\nmov     [rbx+558h], rax                                                ; +0x3d, 0x1402a6e3d\nmov     byte ptr [rbx+306h], 1                                         ; +0x44, 0x1402a6e44\nmov     rax, [rcx]                                                     ; +0x4b, 0x1402a6e4b\nxor     edx, edx                                                       ; +0x4e, 0x1402a6e4e\nadd     rsp, 20h                                                       ; +0x50, 0x1402a6e50\npop     rbx                                                            ; +0x54, 0x1402a6e54\njmp     qword ptr [rax+28h]                                            ; +0x55, 0x1402a6e55\nmov     byte ptr [rbx+306h], 0                                         ; +0x59, 0x1402a6e59\nmov     rax, [rcx]                                                     ; +0x60, 0x1402a6e60\nmov     dl, 0FFh                                                       ; +0x63, 0x1402a6e63\ncall    qword ptr [rax+28h]                                            ; +0x65, 0x1402a6e65\nmov     dword ptr [rbx+5A8h], 0FFFFFFFFh                               ; +0x68, 0x1402a6e68\nmov     byte ptr [rbx+599h], 0                                         ; +0x72, 0x1402a6e72\nmov     rcx, cs:qword_14090BFD0                                        ; +0x79, 0x1402a6e79\ntest    rcx, rcx                                                       ; +0x80, 0x1402a6e80\njnz     short loc_1402A6EB7                                            ; +0x83, 0x1402a6e83\nmov     ecx, 6E8h; Size                                                ; +0x85, 0x1402a6e85\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x8a, 0x1402a6e8a\nmov     [rsp+28h+arg_0], rax                                           ; +0x8f, 0x1402a6e8f\nmov     rcx, rax                                                       ; +0x94, 0x1402a6e94\ncall    GameManager__GameManager                                       ; +0x97, 0x1402a6e97\nnop                                                                    ; +0x9c, 0x1402a6e9c\nmov     cs:qword_14090BFD0, rax                                        ; +0x9d, 0x1402a6e9d\nmov     rcx, [rax]                                                     ; +0xa4, 0x1402a6ea4\nmov     rdx, [rcx+48h]                                                 ; +0xa7, 0x1402a6ea7\nmov     rcx, rax                                                       ; +0xab, 0x1402a6eab\ncall    rdx                                                            ; +0xae, 0x1402a6eae\nmov     rcx, cs:qword_14090BFD0                                        ; +0xb0, 0x1402a6eb0\nmovsxd  rdx, dword ptr [rbx+40Ch]                                      ; +0xb7, 0x1402a6eb7\nmov     rcx, [rcx+1A0h]                                                ; +0xbe, 0x1402a6ebe\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xc5, 0x1402a6ec5\ntest    rax, rax                                                       ; +0xcb, 0x1402a6ecb\njz      short loc_1402A6ED6                                            ; +0xce, 0x1402a6ece\nmov     r8d, [rax+38h]                                                 ; +0xd0, 0x1402a6ed0\njmp     short loc_1402A6EDC                                            ; +0xd4, 0x1402a6ed4\nmov     r8d, 1                                                         ; +0xd6, 0x1402a6ed6\nmov     rax, [rbx]                                                     ; +0xdc, 0x1402a6edc\nxorps   xmm1, xmm1                                                     ; +0xdf, 0x1402a6edf\nmov     rcx, rbx                                                       ; +0xe2, 0x1402a6ee2\ncall    qword ptr [rax+6A0h]                                           ; +0xe5, 0x1402a6ee5\nmov     byte ptr [rbx+599h], 1                                         ; +0xeb, 0x1402a6eeb\nadd     rsp, 20h                                                       ; +0xf2, 0x1402a6ef2\npop     rbx                                                            ; +0xf6, 0x1402a6ef6\nretn                                                                   ; +0xf7, 0x1402a6ef7", "xrefs": ["<???> @ 0x14075ef60", "<???> @ 0x1408202e0", "<???> @ 0x140820a38", "<???> @ 0x1408210f0", "<???> @ 0x140821858", "<???> @ 0x140821f10", "<???> @ 0x1408225f0", "<???> @ 0x140822ca8", "<???> @ 0x1408235b8", "<???> @ 0x140823d00", "<???> @ 0x1408243b8", "<???> @ 0x140824bb0", "<???> @ 0x140825268", "<???> @ 0x140825920", "<???> @ 0x140826190", "<???> @ 0x140826988", "<???> @ 0x140827130", "<???> @ 0x140827860", "<???> @ 0x140827f18", "<???> @ 0x140828670", "<???> @ 0x140828eb8", "<???> @ 0x140829570", "<???> @ 0x140829cf0", "<???> @ 0x14082a470", "<???> @ 0x14082ab28", "<???> @ 0x14082b1e0", "<???> @ 0x14082bbf0", "<???> @ 0x14082c320", "<???> @ 0x14082c9d8", "<???> @ 0x14082d090", "<???> @ 0x14082d748", "<???> @ 0x14082df18", "<???> @ 0x14082e6c0", "<???> @ 0x14082ed78", "<???> @ 0x14082f430", "<???> @ 0x14082fae8", "<???> @ 0x1408301a0", "<???> @ 0x140830858", "<???> @ 0x140830f10", "<???> @ 0x140831730", "<???> @ 0x140831eb0", "<???> @ 0x14091dabc"], "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"}