{"type": "func", "start": 5370452592, "end": 5370452837, "name": "EnhancedGameObject::updateAnimateOnTrigger", "pseudocode": "// \n// EnhancedGameObject::updateAnimateOnTrigger from 0x1401a9a70 to 0x1401a9b65 (245 bytes)\n// \n// 41 xrefs:\n// > <???> @ 0x14055e870\n// > <???> @ 0x14060eb08\n// > <???> @ 0x14060f340\n// > <???> @ 0x14060f9e8\n// > <???> @ 0x1406100b8\n// > <???> @ 0x140610770\n// > <???> @ 0x140610eb8\n// > <???> @ 0x140611718\n// > <???> @ 0x140611e50\n// > <???> @ 0x140612638\n// > <???> @ 0x140612ce0\n// > <???> @ 0x140613388\n// > <???> @ 0x140613af8\n// > <???> @ 0x1406141a0\n// > <???> @ 0x140614988\n// > <???> @ 0x1406151c0\n// > <???> @ 0x140615908\n// > <???> @ 0x140615fb0\n// > <???> @ 0x1406166f8\n// > <???> @ 0x140616eb8\n// > <???> @ 0x140617560\n// > <???> @ 0x140617c08\n// > <???> @ 0x140618378\n// > <???> @ 0x140618a20\n// > <???> @ 0x140619168\n// > <???> @ 0x140619c08\n// > <???> @ 0x14061a2b0\n// > <???> @ 0x14061a958\n// > <???> @ 0x14061b078\n// > <???> @ 0x14061b720\n// > <???> @ 0x14061be68\n// > <???> @ 0x14061c600\n// > <???> @ 0x14061cca8\n// > <???> @ 0x14061d350\n// > <???> @ 0x14061d9f8\n// > <???> @ 0x14061e0a0\n// > <???> @ 0x14061e748\n// > <???> @ 0x14061edf0\n// > <???> @ 0x14061f600\n// > <???> @ 0x14061fd98\n// > <???> @ 0x1406cc150\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\n// Hidden C++ exception states: #wind=1\nvoid EnhancedGameObject::updateAnimateOnTrigger(EnhancedGameObject *a1, bool a2)\n{\n  cocos2d::CCRGBAProtocol *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 ( a1->m_hasCustomAnimation && a1->m_animateOnTrigger )\n  {\n    v3 = &a1->cocos2d::CCRGBAProtocol;\n    if ( a2 )\n    {\n      a1->m_isDisabled2 = 0;\n      v3->setOpacity(v3, -1);\n      a1->m_maybeAnimationVariableXInt = -1;\n      a1->m_animateOnTrigger = 0;\n      v4 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v8 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v8);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v4 = qword_1406C2ED8;\n      }\n      v5 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v4 + 392), a1->m_objectID);\n      if ( v5 )\n        v7 = LODWORD(v5[1].__vftable);\n      else\n        v7 = 1;\n      ((void (__fastcall *)(EnhancedGameObject *, __int64, __int64))a1->updateSyncedAnimation)(a1, v6, v7);\n      a1->m_animateOnTrigger = 1;\n    }\n    else\n    {\n      a1->m_animationTriggered = 0;\n      *(_QWORD *)&a1->m_unk540 = 0;\n      *(_QWORD *)&a1->m_animationRandomizedStartValue = 0;\n      a1->m_isDisabled2 = 1;\n      v3->setOpacity(v3, 0);\n    }\n  }\n}", "assembly": "; \n; EnhancedGameObject::updateAnimateOnTrigger from 0x1401a9a70 to 0x1401a9b65 (245 bytes)\n; \n; 41 xrefs:\n; > <???> @ 0x14055e870\n; > <???> @ 0x14060eb08\n; > <???> @ 0x14060f340\n; > <???> @ 0x14060f9e8\n; > <???> @ 0x1406100b8\n; > <???> @ 0x140610770\n; > <???> @ 0x140610eb8\n; > <???> @ 0x140611718\n; > <???> @ 0x140611e50\n; > <???> @ 0x140612638\n; > <???> @ 0x140612ce0\n; > <???> @ 0x140613388\n; > <???> @ 0x140613af8\n; > <???> @ 0x1406141a0\n; > <???> @ 0x140614988\n; > <???> @ 0x1406151c0\n; > <???> @ 0x140615908\n; > <???> @ 0x140615fb0\n; > <???> @ 0x1406166f8\n; > <???> @ 0x140616eb8\n; > <???> @ 0x140617560\n; > <???> @ 0x140617c08\n; > <???> @ 0x140618378\n; > <???> @ 0x140618a20\n; > <???> @ 0x140619168\n; > <???> @ 0x140619c08\n; > <???> @ 0x14061a2b0\n; > <???> @ 0x14061a958\n; > <???> @ 0x14061b078\n; > <???> @ 0x14061b720\n; > <???> @ 0x14061be68\n; > <???> @ 0x14061c600\n; > <???> @ 0x14061cca8\n; > <???> @ 0x14061d350\n; > <???> @ 0x14061d9f8\n; > <???> @ 0x14061e0a0\n; > <???> @ 0x14061e748\n; > <???> @ 0x14061edf0\n; > <???> @ 0x14061f600\n; > <???> @ 0x14061fd98\n; > <???> @ 0x1406cc150\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, 0x1401a9a70\nsub     rsp, 20h                                                       ; +0x2, 0x1401a9a72\nmov     rbx, rcx                                                       ; +0x6, 0x1401a9a76\ncmp     byte ptr [rcx+57Ah], 0                                         ; +0x9, 0x1401a9a79\njz      loc_1401A9B5F                                                  ; +0x10, 0x1401a9a80\ncmp     byte ptr [rcx+599h], 0                                         ; +0x16, 0x1401a9a86\njz      loc_1401A9B5F                                                  ; +0x1d, 0x1401a9a8d\nadd     rcx, 140h                                                      ; +0x23, 0x1401a9a93\ntest    dl, dl                                                         ; +0x2a, 0x1401a9a9a\njnz     short loc_1401A9AC9                                            ; +0x2c, 0x1401a9a9c\nmov     [rbx+5A1h], dl                                                 ; +0x2e, 0x1401a9a9e\nxor     eax, eax                                                       ; +0x34, 0x1401a9aa4\nmov     [rbx+560h], rax                                                ; +0x36, 0x1401a9aa6\nmov     [rbx+558h], rax                                                ; +0x3d, 0x1401a9aad\nmov     byte ptr [rbx+306h], 1                                         ; +0x44, 0x1401a9ab4\nmov     rax, [rcx]                                                     ; +0x4b, 0x1401a9abb\nxor     edx, edx                                                       ; +0x4e, 0x1401a9abe\nadd     rsp, 20h                                                       ; +0x50, 0x1401a9ac0\npop     rbx                                                            ; +0x54, 0x1401a9ac4\njmp     qword ptr [rax+28h]                                            ; +0x55, 0x1401a9ac5\nmov     byte ptr [rbx+306h], 0                                         ; +0x59, 0x1401a9ac9\nmov     rax, [rcx]                                                     ; +0x60, 0x1401a9ad0\nmov     dl, 0FFh                                                       ; +0x63, 0x1401a9ad3\ncall    qword ptr [rax+28h]                                            ; +0x65, 0x1401a9ad5\nmov     dword ptr [rbx+5A8h], 0FFFFFFFFh                               ; +0x68, 0x1401a9ad8\nmov     byte ptr [rbx+599h], 0                                         ; +0x72, 0x1401a9ae2\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x79, 0x1401a9ae9\ntest    rcx, rcx                                                       ; +0x80, 0x1401a9af0\njnz     short loc_1401A9B24                                            ; +0x83, 0x1401a9af3\nmov     ecx, 668h; Size                                                ; +0x85, 0x1401a9af5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x8a, 0x1401a9afa\nmov     [rsp+28h+arg_0], rax                                           ; +0x8f, 0x1401a9aff\nmov     rcx, rax                                                       ; +0x94, 0x1401a9b04\ncall    sub_14017AB00                                                  ; +0x97, 0x1401a9b07\nnop                                                                    ; +0x9c, 0x1401a9b0c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x9d, 0x1401a9b0d\nmov     rdx, [rax]                                                     ; +0xa4, 0x1401a9b14\nmov     rcx, rax                                                       ; +0xa7, 0x1401a9b17\ncall    qword ptr [rdx+48h]                                            ; +0xaa, 0x1401a9b1a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xad, 0x1401a9b1d\nmovsxd  rdx, dword ptr [rbx+40Ch]                                      ; +0xb4, 0x1401a9b24\nmov     rcx, [rcx+188h]                                                ; +0xbb, 0x1401a9b2b\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xc2, 0x1401a9b32\ntest    rax, rax                                                       ; +0xc8, 0x1401a9b38\njz      short loc_1401A9B43                                            ; +0xcb, 0x1401a9b3b\nmov     r8d, [rax+38h]                                                 ; +0xcd, 0x1401a9b3d\njmp     short loc_1401A9B49                                            ; +0xd1, 0x1401a9b41\nmov     r8d, 1                                                         ; +0xd3, 0x1401a9b43\nmov     rax, [rbx]                                                     ; +0xd9, 0x1401a9b49\nxorps   xmm1, xmm1                                                     ; +0xdc, 0x1401a9b4c\nmov     rcx, rbx                                                       ; +0xdf, 0x1401a9b4f\ncall    qword ptr [rax+690h]                                           ; +0xe2, 0x1401a9b52\nmov     byte ptr [rbx+599h], 1                                         ; +0xe8, 0x1401a9b58\nadd     rsp, 20h                                                       ; +0xef, 0x1401a9b5f\npop     rbx                                                            ; +0xf3, 0x1401a9b63\nretn                                                                   ; +0xf4, 0x1401a9b64", "xrefs": ["<???> @ 0x14055e870", "<???> @ 0x14060eb08", "<???> @ 0x14060f340", "<???> @ 0x14060f9e8", "<???> @ 0x1406100b8", "<???> @ 0x140610770", "<???> @ 0x140610eb8", "<???> @ 0x140611718", "<???> @ 0x140611e50", "<???> @ 0x140612638", "<???> @ 0x140612ce0", "<???> @ 0x140613388", "<???> @ 0x140613af8", "<???> @ 0x1406141a0", "<???> @ 0x140614988", "<???> @ 0x1406151c0", "<???> @ 0x140615908", "<???> @ 0x140615fb0", "<???> @ 0x1406166f8", "<???> @ 0x140616eb8", "<???> @ 0x140617560", "<???> @ 0x140617c08", "<???> @ 0x140618378", "<???> @ 0x140618a20", "<???> @ 0x140619168", "<???> @ 0x140619c08", "<???> @ 0x14061a2b0", "<???> @ 0x14061a958", "<???> @ 0x14061b078", "<???> @ 0x14061b720", "<???> @ 0x14061be68", "<???> @ 0x14061c600", "<???> @ 0x14061cca8", "<???> @ 0x14061d350", "<???> @ 0x14061d9f8", "<???> @ 0x14061e0a0", "<???> @ 0x14061e748", "<???> @ 0x14061edf0", "<???> @ 0x14061f600", "<???> @ 0x14061fd98", "<???> @ 0x1406cc150"], "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"}