{"type": "func", "start": 5375285312, "end": 5375285513, "name": "AnimatedGameObject::activateObject", "pseudocode": "// \n// AnimatedGameObject::activateObject from 0x140645840 to 0x140645909 (201 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140829348\n// > <???> @ 0x140931388\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:35:36 +0000\n// \n\nvoid __fastcall AnimatedGameObject::activateObject(__int64 a1, __int64 a2)\n{\n  char v2; // di\n  int v4; // edx\n  __int64 v5; // rax\n\n  v2 = *(_BYTE *)(a1 + 773);\n  *(_BYTE *)(a1 + 1006) = 0;\n  if ( !v2 && !*(_BYTE *)(a1 + 978) )\n  {\n    *(_BYTE *)(a1 + 773) = 1;\n    if ( !*(_BYTE *)(a1 + 1007) )\n    {\n      LOBYTE(a2) = 1;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 336LL))(a1, a2);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1128LL))(a1, 0);\n      if ( *(_QWORD *)(a1 + 752) )\n      {\n        v4 = *(_DWORD *)(a1 + 1132);\n        if ( !v4 )\n          v4 = *(_DWORD *)(a1 + 1124);\n        v5 = GameObject::parentForZLayer(a1, v4, 1u, 5);\n        (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v5 + 456LL))(\n          v5,\n          *(_QWORD *)(a1 + 752),\n          4294966296LL);\n      }\n      GameObject::addColorSpriteToParent(a1, 0);\n    }\n  }\n  if ( *(_BYTE *)(a1 + 773) )\n  {\n    if ( !v2 )\n      AnimatedGameObject::updateObjectAnimation(a1);\n  }\n}", "assembly": "; \n; AnimatedGameObject::activateObject from 0x140645840 to 0x140645909 (201 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140829348\n; > <???> @ 0x140931388\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:35:36 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140645840\npush    rdi                                                            ; +0x5, 0x140645845\nsub     rsp, 20h                                                       ; +0x6, 0x140645846\nmovzx   edi, byte ptr [rcx+305h]                                       ; +0xa, 0x14064584a\nmov     rbx, rcx                                                       ; +0x11, 0x140645851\nmov     byte ptr [rcx+3EEh], 0                                         ; +0x14, 0x140645854\ntest    dil, dil                                                       ; +0x1b, 0x14064585b\njnz     loc_1406458E8                                                  ; +0x1e, 0x14064585e\ncmp     [rcx+3D2h], dil                                                ; +0x24, 0x140645864\njnz     short loc_1406458E8                                            ; +0x2b, 0x14064586b\nmov     byte ptr [rcx+305h], 1                                         ; +0x2d, 0x14064586d\ncmp     [rcx+3EFh], dil                                                ; +0x34, 0x140645874\njnz     short loc_1406458E8                                            ; +0x3b, 0x14064587b\nmov     rax, [rcx]                                                     ; +0x3d, 0x14064587d\nmov     dl, 1                                                          ; +0x40, 0x140645880\ncall    qword ptr [rax+150h]                                           ; +0x42, 0x140645882\nmov     rax, [rbx]                                                     ; +0x48, 0x140645888\nxor     edx, edx                                                       ; +0x4b, 0x14064588b\nmov     rcx, rbx                                                       ; +0x4d, 0x14064588d\ncall    qword ptr [rax+468h]                                           ; +0x50, 0x140645890\ncmp     qword ptr [rbx+2F0h], 0                                        ; +0x56, 0x140645896\njz      short loc_1406458DE                                            ; +0x5e, 0x14064589e\nmov     edx, [rbx+46Ch]                                                ; +0x60, 0x1406458a0\ntest    edx, edx                                                       ; +0x66, 0x1406458a6\njnz     short loc_1406458B0                                            ; +0x68, 0x1406458a8\nmov     edx, [rbx+464h]                                                ; +0x6a, 0x1406458aa\nmov     r9d, 5                                                         ; +0x70, 0x1406458b0\nmov     r8b, 1                                                         ; +0x76, 0x1406458b6\nmov     rcx, rbx                                                       ; +0x79, 0x1406458b9\ncall    GameObject__parentForZLayer                                    ; +0x7c, 0x1406458bc\nmov     rdx, [rbx+2F0h]                                                ; +0x81, 0x1406458c1\nmov     r8d, 0FFFFFC18h                                                ; +0x88, 0x1406458c8\nmov     rcx, [rax]                                                     ; +0x8e, 0x1406458ce\nmov     r9, [rcx+1C8h]                                                 ; +0x91, 0x1406458d1\nmov     rcx, rax                                                       ; +0x98, 0x1406458d8\ncall    r9                                                             ; +0x9b, 0x1406458db\nxor     edx, edx                                                       ; +0x9e, 0x1406458de\nmov     rcx, rbx                                                       ; +0xa0, 0x1406458e0\ncall    GameObject__addColorSpriteToParent                             ; +0xa3, 0x1406458e3\ncmp     byte ptr [rbx+305h], 0                                         ; +0xa8, 0x1406458e8\njz      short loc_1406458FE                                            ; +0xaf, 0x1406458ef\ntest    dil, dil                                                       ; +0xb1, 0x1406458f1\njnz     short loc_1406458FE                                            ; +0xb4, 0x1406458f4\nmov     rcx, rbx                                                       ; +0xb6, 0x1406458f6\ncall    AnimatedGameObject__updateObjectAnimation                      ; +0xb9, 0x1406458f9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xbe, 0x1406458fe\nadd     rsp, 20h                                                       ; +0xc3, 0x140645903\npop     rdi                                                            ; +0xc7, 0x140645907\nretn                                                                   ; +0xc8, 0x140645908", "xrefs": ["<???> @ 0x140829348", "<???> @ 0x140931388"], "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"}