{"type": "func", "start": 4298444320, "end": 4298444515, "name": "CCAnimatedSprite::tweenToAnimationFinished", "pseudocode": "// \n// CCAnimatedSprite::tweenToAnimationFinished from 0x100350e20 to 0x100350ee3 (195 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::tweenToAnimation @ 0x100350d8e\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\nvoid __fastcall CCAnimatedSprite::tweenToAnimationFinished(CCAnimatedSprite *a1)\n{\n  __int128 v1; // xmm0\n  std::string *p_m_activeTween; // rbx\n  SpriteAnimationManager *m_animationManager; // r14\n  __int128 v4; // [rsp+0h] [rbp-50h] BYREF\n  void *__p; // [rsp+10h] [rbp-40h]\n  __int128 v6; // [rsp+20h] [rbp-30h] BYREF\n  void *longStorage; // [rsp+30h] [rbp-20h]\n\n  p_m_activeTween = (std::string *)&a1->m_activeTween;\n  if ( (a1->m_activeTween.m_data.m_short.sizex2 & 1) != 0 )\n  {\n    sub_100006B70(\n      &v6,\n      a1->m_activeTween.m_data.m_long.longStorage,\n      a1->m_activeTween.m_data.m_long.size,\n      *(double *)&v1);\n    m_animationManager = a1->m_animationManager;\n    if ( (v6 & 1) != 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    longStorage = a1->m_activeTween.m_data.m_long.longStorage;\n    v1 = *(_OWORD *)&p_m_activeTween->__r_.__value_.__l.0;\n    v6 = *(_OWORD *)&p_m_activeTween->__r_.__value_.__l.0;\n    m_animationManager = a1->m_animationManager;\n    if ( (v6 & 1) != 0 )\n    {\nLABEL_3:\n      sub_100006B70(&v4, longStorage, *((unsigned __int64 *)&v6 + 1), *(double *)&v1);\n      goto LABEL_6;\n    }\n  }\n  __p = longStorage;\n  v4 = v6;\nLABEL_6:\n  SpriteAnimationManager::runAnimation(m_animationManager, &v4);\n  if ( (v4 & 1) != 0 )\n    operator delete(__p);\n  if ( (v6 & 1) != 0 )\n    operator delete(longStorage);\n  std::string::assign(p_m_activeTween, \"\");\n}", "assembly": "; \n; CCAnimatedSprite::tweenToAnimationFinished from 0x100350e20 to 0x100350ee3 (195 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::tweenToAnimation @ 0x100350d8e\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    rbp                                                            ; +0x0, 0x100350e20\nmov     rbp, rsp                                                       ; +0x1, 0x100350e21\npush    r14                                                            ; +0x4, 0x100350e24\npush    rbx                                                            ; +0x6, 0x100350e26\nsub     rsp, 40h                                                       ; +0x7, 0x100350e27\nmov     r14, rdi                                                       ; +0xb, 0x100350e2b\nlea     rbx, [rdi+270h]                                                ; +0xe, 0x100350e2e\ntest    byte ptr [rdi+270h], 1                                         ; +0x15, 0x100350e35\njnz     short loc_100350E6D                                            ; +0x1c, 0x100350e3c\nmov     rax, [rbx+10h]                                                 ; +0x1e, 0x100350e3e\nmov     [rbp+var_20], rax                                              ; +0x22, 0x100350e42\nmovups  xmm0, xmmword ptr [rbx]                                        ; +0x26, 0x100350e46\nmovaps  [rbp+var_30], xmm0                                             ; +0x29, 0x100350e49\nmov     r14, [r14+288h]                                                ; +0x2d, 0x100350e4d\ntest    byte ptr [rbp+var_30], 1                                       ; +0x34, 0x100350e54\njz      short loc_100350E91                                            ; +0x38, 0x100350e58\nmov     rdx, qword ptr [rbp+var_30+8]                                  ; +0x3a, 0x100350e5a\nmov     rsi, [rbp+var_20]                                              ; +0x3e, 0x100350e5e\nlea     rdi, [rbp+var_50]                                              ; +0x42, 0x100350e62\ncall    sub_100006B70                                                  ; +0x46, 0x100350e66\njmp     short loc_100350EA1                                            ; +0x4b, 0x100350e6b\nmov     rdx, [r14+278h]                                                ; +0x4d, 0x100350e6d\nmov     rsi, [r14+280h]                                                ; +0x54, 0x100350e74\nlea     rdi, [rbp+var_30]                                              ; +0x5b, 0x100350e7b\ncall    sub_100006B70                                                  ; +0x5f, 0x100350e7f\nmov     r14, [r14+288h]                                                ; +0x64, 0x100350e84\ntest    byte ptr [rbp+var_30], 1                                       ; +0x6b, 0x100350e8b\njnz     short loc_100350E5A                                            ; +0x6f, 0x100350e8f\nmov     rax, [rbp+var_20]                                              ; +0x71, 0x100350e91\nmov     [rbp+__p], rax                                                 ; +0x75, 0x100350e95\nmovaps  xmm0, [rbp+var_30]                                             ; +0x79, 0x100350e99\nmovaps  [rbp+var_50], xmm0                                             ; +0x7d, 0x100350e9d\nlea     rsi, [rbp+var_50]                                              ; +0x81, 0x100350ea1\nmov     rdi, r14                                                       ; +0x85, 0x100350ea5\ncall    SpriteAnimationManager__runAnimation                           ; +0x88, 0x100350ea8\ntest    byte ptr [rbp+var_50], 1                                       ; +0x8d, 0x100350ead\njz      short loc_100350EBC                                            ; +0x91, 0x100350eb1\nmov     rdi, [rbp+__p]; __p                                            ; +0x93, 0x100350eb3\ncall    __ZdlPv; operator delete(void *)                               ; +0x97, 0x100350eb7\ntest    byte ptr [rbp+var_30], 1                                       ; +0x9c, 0x100350ebc\njz      short loc_100350ECB                                            ; +0xa0, 0x100350ec0\nmov     rdi, [rbp+var_20]; __p                                         ; +0xa2, 0x100350ec2\ncall    __ZdlPv; operator delete(void *)                               ; +0xa6, 0x100350ec6\nlea     rsi, __src; \"\"                                                 ; +0xab, 0x100350ecb\nmov     rdi, rbx; this                                                 ; +0xb2, 0x100350ed2\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xb5, 0x100350ed5\nadd     rsp, 40h                                                       ; +0xba, 0x100350eda\npop     rbx                                                            ; +0xbe, 0x100350ede\npop     r14                                                            ; +0xbf, 0x100350edf\npop     rbp                                                            ; +0xc1, 0x100350ee1\nretn                                                                   ; +0xc2, 0x100350ee2", "xrefs": ["CCAnimatedSprite::tweenToAnimation @ 0x100350d8e"], "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"}