{"type": "func", "start": 5375291344, "end": 5375291634, "name": "AnimatedGameObject::playAnimation", "pseudocode": "// \n// AnimatedGameObject::playAnimation from 0x140646fd0 to 0x1406470f2 (290 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::loadFromCheckpoint @ 0x140516df5\n// > EffectGameObject::triggerObject @ 0x14064863a\n// > <???> @ 0x1409313e8\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:37 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall AnimatedGameObject::playAnimation(__int64 a1, __int64 a2)\n{\n  int v3; // r10d\n  size_t v4; // r8\n  void **v5; // rdx\n  void **v6; // rax\n  __int64 v7; // rbx\n  _QWORD *v8; // rax\n  __int64 v9; // [rsp+20h] [rbp-88h]\n  _BYTE v10[32]; // [rsp+30h] [rbp-78h] BYREF\n  _BYTE v11[32]; // [rsp+50h] [rbp-58h] BYREF\n  void *Src[2]; // [rsp+70h] [rbp-38h] BYREF\n  size_t Size; // [rsp+80h] [rbp-28h]\n  unsigned __int64 v14; // [rsp+88h] [rbp-20h]\n\n  AnimatedGameObject::animationForID(Src, a2, *(unsigned int *)(a1 + 1036));\n  v4 = Size;\n  if ( Size )\n  {\n    *(_DWORD *)(a1 + 1548) = v3;\n    if ( (void **)(a1 + 1512) != Src )\n    {\n      v5 = Src;\n      if ( v14 > 0xF )\n        v5 = (void **)Src[0];\n      sub_1400405A0((void **)(a1 + 1512), v5, v4);\n    }\n    *(_BYTE *)(a1 + 1505) = 1;\n    if ( *(_BYTE *)(a1 + 773) )\n    {\n      v6 = (void **)sub_14003F4F0((__int64)v10, (__int64)Src);\n      CCAnimatedSprite::tweenToAnimation(*(void ***)(a1 + 1480), v6, 0.050000001);\n    }\n    else\n    {\n      v9 = sub_14003F4F0((__int64)v10, (__int64)Src);\n      v7 = *(_QWORD *)(a1 + 1480);\n      SpriteAnimationManager::overridePrio(*(_QWORD *)(v7 + 664));\n      v8 = (_QWORD *)sub_14003F4F0((__int64)v11, v9);\n      SpriteAnimationManager::runAnimation(*(_QWORD *)(v7 + 664), v8);\n      sub_14003D310(v9);\n    }\n  }\n  sub_14003D310((__int64)Src);\n}", "assembly": "; \n; AnimatedGameObject::playAnimation from 0x140646fd0 to 0x1406470f2 (290 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::loadFromCheckpoint @ 0x140516df5\n; > EffectGameObject::triggerObject @ 0x14064863a\n; > <???> @ 0x1409313e8\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:37 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140646fd0\npush    rdi                                                            ; +0x5, 0x140646fd5\nsub     rsp, 0A0h                                                      ; +0x6, 0x140646fd6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x140646fdd\nxor     rax, rsp                                                       ; +0x14, 0x140646fe4\nmov     [rsp+0A8h+var_18], rax                                         ; +0x17, 0x140646fe7\nmov     r10d, edx                                                      ; +0x1f, 0x140646fef\nmov     rbx, rcx                                                       ; +0x22, 0x140646ff2\nmov     r8d, [rcx+40Ch]                                                ; +0x25, 0x140646ff5\nlea     rcx, [rsp+0A8h+Src]                                            ; +0x2c, 0x140646ffc\ncall    AnimatedGameObject__animationForID                             ; +0x31, 0x140647001\nnop                                                                    ; +0x36, 0x140647006\nmov     r8, [rsp+0A8h+Size]; Size                                      ; +0x37, 0x140647007\ntest    r8, r8                                                         ; +0x3f, 0x14064700f\njz      loc_1406470C7                                                  ; +0x42, 0x140647012\nmov     [rbx+60Ch], r10d                                               ; +0x48, 0x140647018\nlea     rcx, [rbx+5E8h]; void *                                        ; +0x4f, 0x14064701f\nlea     rax, [rsp+0A8h+Src]                                            ; +0x56, 0x140647026\ncmp     rcx, rax                                                       ; +0x5b, 0x14064702b\njz      short loc_140647049                                            ; +0x5e, 0x14064702e\nlea     rdx, [rsp+0A8h+Src]                                            ; +0x60, 0x140647030\ncmp     [rsp+0A8h+var_20], 0Fh                                         ; +0x65, 0x140647035\ncmova   rdx, [rsp+0A8h+Src]; Src                                       ; +0x6e, 0x14064703e\ncall    sub_1400405A0                                                  ; +0x74, 0x140647044\nmov     byte ptr [rbx+5E1h], 1                                         ; +0x79, 0x140647049\nlea     rdx, [rsp+0A8h+Src]                                            ; +0x80, 0x140647050\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0x85, 0x140647055\ncmp     byte ptr [rbx+305h], 0                                         ; +0x8a, 0x14064705a\njz      short loc_140647081                                            ; +0x91, 0x140647061\ncall    sub_14003F4F0                                                  ; +0x93, 0x140647063\nmovss   xmm2, cs:dword_140834DDC                                       ; +0x98, 0x140647068\nmov     rdx, rax                                                       ; +0xa0, 0x140647070\nmov     rcx, [rbx+5C8h]                                                ; +0xa3, 0x140647073\ncall    CCAnimatedSprite__tweenToAnimation                             ; +0xaa, 0x14064707a\njmp     short loc_1406470C7                                            ; +0xaf, 0x14064707f\ncall    sub_14003F4F0                                                  ; +0xb1, 0x140647081\nmov     rdi, rax                                                       ; +0xb6, 0x140647086\nmov     [rsp+0A8h+var_88], rax                                         ; +0xb9, 0x140647089\nmov     rbx, [rbx+5C8h]                                                ; +0xbe, 0x14064708e\nmov     rcx, [rbx+298h]                                                ; +0xc5, 0x140647095\ncall    SpriteAnimationManager__overridePrio                           ; +0xcc, 0x14064709c\nmov     rdx, rdi                                                       ; +0xd1, 0x1406470a1\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0xd4, 0x1406470a4\ncall    sub_14003F4F0                                                  ; +0xd9, 0x1406470a9\nmov     rdx, rax                                                       ; +0xde, 0x1406470ae\nmov     rcx, [rbx+298h]                                                ; +0xe1, 0x1406470b1\ncall    SpriteAnimationManager__runAnimation                           ; +0xe8, 0x1406470b8\nnop                                                                    ; +0xed, 0x1406470bd\nmov     rcx, rdi                                                       ; +0xee, 0x1406470be\ncall    sub_14003D310                                                  ; +0xf1, 0x1406470c1\nnop                                                                    ; +0xf6, 0x1406470c6\nlea     rcx, [rsp+0A8h+Src]                                            ; +0xf7, 0x1406470c7\ncall    sub_14003D310                                                  ; +0xfc, 0x1406470cc\nmov     rcx, [rsp+0A8h+var_18]                                         ; +0x101, 0x1406470d1\nxor     rcx, rsp; StackCookie                                          ; +0x109, 0x1406470d9\ncall    __security_check_cookie                                        ; +0x10c, 0x1406470dc\nmov     rbx, [rsp+0A8h+arg_8]                                          ; +0x111, 0x1406470e1\nadd     rsp, 0A0h                                                      ; +0x119, 0x1406470e9\npop     rdi                                                            ; +0x120, 0x1406470f0\nretn                                                                   ; +0x121, 0x1406470f1", "xrefs": ["PlayLayer::loadFromCheckpoint @ 0x140516df5", "EffectGameObject::triggerObject @ 0x14064863a", "<???> @ 0x1409313e8"], "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"}