{"type": "func", "start": 5373579776, "end": 5373580071, "name": "AnimatedGameObject::playAnimation", "pseudocode": "// \n// AnimatedGameObject::playAnimation from 0x1404a5200 to 0x1404a5327 (295 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::loadFromCheckpoint @ 0x1403b7c35\n// > EffectGameObject::triggerObject @ 0x1404a6b0a\n// > <???> @ 0x1406dc854\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=2\nvoid AnimatedGameObject::playAnimation(AnimatedGameObject *a1, int a2)\n{\n  int v3; // r10d\n  size_t v4; // r8\n  void **v5; // rdx\n  CCAnimatedSprite *m_animatedSprite; // rbx\n  _QWORD *v7; // rax\n  void **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->m_objectID);\n  v4 = Size;\n  if ( Size )\n  {\n    a1->m_animationID = v3;\n    if ( &a1->m_currentAnimation != (std::string *)Src )\n    {\n      v5 = Src;\n      if ( v14 > 0xF )\n        v5 = (void **)Src[0];\n      sub_14003CCE0((void **)&a1->m_currentAnimation, v5, v4);\n    }\n    a1->m_playingAnimation = 1;\n    if ( a1->m_isActivated )\n    {\n      v8 = (void **)sub_14003BDB0((__int64)v10, (__int64)Src);\n      CCAnimatedSprite::tweenToAnimation((__int64)a1->m_animatedSprite, v8, 0.050000001);\n    }\n    else\n    {\n      v9 = sub_14003BDB0((__int64)v11, (__int64)Src);\n      m_animatedSprite = a1->m_animatedSprite;\n      SpriteAnimationManager::overridePrio(m_animatedSprite->m_animationManager);\n      v7 = (_QWORD *)sub_14003BDB0((__int64)v10, v9);\n      SpriteAnimationManager::runAnimation((__int64)m_animatedSprite->m_animationManager, v7);\n      sub_14003A830(v9);\n    }\n  }\n  sub_14003A830((__int64)Src);\n}", "assembly": "; \n; AnimatedGameObject::playAnimation from 0x1404a5200 to 0x1404a5327 (295 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::loadFromCheckpoint @ 0x1403b7c35\n; > EffectGameObject::triggerObject @ 0x1404a6b0a\n; > <???> @ 0x1406dc854\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1404a5200\npush    rdi                                                            ; +0x5, 0x1404a5205\nsub     rsp, 0A0h                                                      ; +0x6, 0x1404a5206\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1404a520d\nxor     rax, rsp                                                       ; +0x14, 0x1404a5214\nmov     [rsp+0A8h+var_18], rax                                         ; +0x17, 0x1404a5217\nmov     r10d, edx                                                      ; +0x1f, 0x1404a521f\nmov     rbx, rcx                                                       ; +0x22, 0x1404a5222\nmov     r8d, [rcx+40Ch]                                                ; +0x25, 0x1404a5225\nlea     rcx, [rsp+0A8h+Src]                                            ; +0x2c, 0x1404a522c\ncall    AnimatedGameObject__animationForID                             ; +0x31, 0x1404a5231\nnop                                                                    ; +0x36, 0x1404a5236\nmov     r8, [rsp+0A8h+Size]; Size                                      ; +0x37, 0x1404a5237\ntest    r8, r8                                                         ; +0x3f, 0x1404a523f\njz      loc_1404A52FC                                                  ; +0x42, 0x1404a5242\nmov     [rbx+60Ch], r10d                                               ; +0x48, 0x1404a5248\nlea     rcx, [rbx+5E8h]; void *                                        ; +0x4f, 0x1404a524f\nlea     rax, [rsp+0A8h+Src]                                            ; +0x56, 0x1404a5256\ncmp     rcx, rax                                                       ; +0x5b, 0x1404a525b\njz      short loc_1404A5279                                            ; +0x5e, 0x1404a525e\nlea     rdx, [rsp+0A8h+Src]                                            ; +0x60, 0x1404a5260\ncmp     [rsp+0A8h+var_20], 0Fh                                         ; +0x65, 0x1404a5265\ncmova   rdx, [rsp+0A8h+Src]; Src                                       ; +0x6e, 0x1404a526e\ncall    sub_14003CCE0                                                  ; +0x74, 0x1404a5274\nmov     byte ptr [rbx+5E1h], 1                                         ; +0x79, 0x1404a5279\nlea     rdx, [rsp+0A8h+Src]                                            ; +0x80, 0x1404a5280\ncmp     byte ptr [rbx+305h], 0                                         ; +0x85, 0x1404a5285\njnz     short loc_1404A52DA                                            ; +0x8c, 0x1404a528c\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x8e, 0x1404a528e\ncall    sub_14003BDB0                                                  ; +0x93, 0x1404a5293\nmov     rdi, rax                                                       ; +0x98, 0x1404a5298\nmov     [rsp+0A8h+var_88], rax                                         ; +0x9b, 0x1404a529b\nmov     rbx, [rbx+5C8h]                                                ; +0xa0, 0x1404a52a0\nmov     rcx, [rbx+298h]                                                ; +0xa7, 0x1404a52a7\ncall    SpriteAnimationManager__overridePrio                           ; +0xae, 0x1404a52ae\nmov     rdx, rdi                                                       ; +0xb3, 0x1404a52b3\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0xb6, 0x1404a52b6\ncall    sub_14003BDB0                                                  ; +0xbb, 0x1404a52bb\nmov     rdx, rax                                                       ; +0xc0, 0x1404a52c0\nmov     rcx, [rbx+298h]                                                ; +0xc3, 0x1404a52c3\ncall    SpriteAnimationManager__runAnimation                           ; +0xca, 0x1404a52ca\nnop                                                                    ; +0xcf, 0x1404a52cf\nmov     rcx, rdi                                                       ; +0xd0, 0x1404a52d0\ncall    sub_14003A830                                                  ; +0xd3, 0x1404a52d3\njmp     short loc_1404A52FC                                            ; +0xd8, 0x1404a52d8\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0xda, 0x1404a52da\ncall    sub_14003BDB0                                                  ; +0xdf, 0x1404a52df\nmovss   xmm2, cs:dword_1406229EC                                       ; +0xe4, 0x1404a52e4\nmov     rdx, rax                                                       ; +0xec, 0x1404a52ec\nmov     rcx, [rbx+5C8h]                                                ; +0xef, 0x1404a52ef\ncall    CCAnimatedSprite__tweenToAnimation                             ; +0xf6, 0x1404a52f6\nnop                                                                    ; +0xfb, 0x1404a52fb\nlea     rcx, [rsp+0A8h+Src]                                            ; +0xfc, 0x1404a52fc\ncall    sub_14003A830                                                  ; +0x101, 0x1404a5301\nmov     rcx, [rsp+0A8h+var_18]                                         ; +0x106, 0x1404a5306\nxor     rcx, rsp; StackCookie                                          ; +0x10e, 0x1404a530e\ncall    __security_check_cookie                                        ; +0x111, 0x1404a5311\nmov     rbx, [rsp+0A8h+arg_8]                                          ; +0x116, 0x1404a5316\nadd     rsp, 0A0h                                                      ; +0x11e, 0x1404a531e\npop     rdi                                                            ; +0x125, 0x1404a5325\nretn                                                                   ; +0x126, 0x1404a5326", "xrefs": ["PlayLayer::loadFromCheckpoint @ 0x1403b7c35", "EffectGameObject::triggerObject @ 0x1404a6b0a", "<???> @ 0x1406dc854"], "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"}