{"type": "func", "start": 4298104204, "end": 4298104332, "name": "CCAnimatedSprite::tweenToAnimationFinished", "pseudocode": "// \n// CCAnimatedSprite::tweenToAnimationFinished from 0x1002fdd8c to 0x1002fde0c (128 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::tweenToAnimation @ 0x1002fdcfc\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  std::string *p_m_activeTween; // x19\n  void *__p[2]; // [xsp+0h] [xbp-30h] BYREF\n  char *longStorage; // [xsp+10h] [xbp-20h]\n\n  p_m_activeTween = (std::string *)&a1->m_activeTween;\n  if ( a1->m_activeTween.m_data.m_short.shortStorage.__elems_[22] < 0 )\n  {\n    sub_1000097D0(__p, (void *)a1->m_activeTween.m_data.m_long.capacitym1, a1->m_activeTween.m_data.m_long.size);\n  }\n  else\n  {\n    *(_OWORD *)__p = *(_OWORD *)&p_m_activeTween->__r_.__value_.__l.__data_;\n    longStorage = a1->m_activeTween.m_data.m_long.longStorage;\n  }\n  CCAnimatedSprite::runAnimation((__int64)a1, (__int64)__p);\n  if ( SHIBYTE(longStorage) < 0 )\n    operator delete(__p[0]);\n  std::string::assign(p_m_activeTween, \"\");\n}", "assembly": "; \n; CCAnimatedSprite::tweenToAnimationFinished from 0x1002fdd8c to 0x1002fde0c (128 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::tweenToAnimation @ 0x1002fdcfc\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1002fdd8c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1002fdd90\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1002fdd94\nADD             X29, SP, #0x30                                         ; +0xc, 0x1002fdd98\nMOV             X20, X0                                                ; +0x10, 0x1002fdd9c\nADD             X19, X0, #0x270                                        ; +0x14, 0x1002fdda0\nLDRSB           W8, [X0,#0x287]                                        ; +0x18, 0x1002fdda4\nTBNZ            W8, #0x1F, loc_1002FDDC0                               ; +0x1c, 0x1002fdda8\nLDR             Q0, [X19]                                              ; +0x20, 0x1002fddac\nSTR             Q0, [SP,#0x30+__p]                                     ; +0x24, 0x1002fddb0\nLDR             X8, [X19,#0x10]                                        ; +0x28, 0x1002fddb4\nSTR             X8, [SP,#0x30+var_20]                                  ; +0x2c, 0x1002fddb8\nB               loc_1002FDDD0                                          ; +0x30, 0x1002fddbc\nLDR             X1, [X20,#0x270]; __src                                ; +0x34, 0x1002fddc0\nLDR             X2, [X20,#0x278]                                       ; +0x38, 0x1002fddc4\nMOV             X0, SP; __dst                                          ; +0x3c, 0x1002fddc8\nBL              sub_1000097D0                                          ; +0x40, 0x1002fddcc\nMOV             X1, SP                                                 ; +0x44, 0x1002fddd0\nMOV             X0, X20                                                ; +0x48, 0x1002fddd4\nBL              CCAnimatedSprite__runAnimation                         ; +0x4c, 0x1002fddd8\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0x50, 0x1002fdddc\nTBZ             W8, #0x1F, loc_1002FDDEC                               ; +0x54, 0x1002fdde0\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x58, 0x1002fdde4\nBL              __ZdlPv; operator delete(void *)                       ; +0x5c, 0x1002fdde8\nADRL            X1, asc_100746688; \"\"                                  ; +0x60, 0x1002fddec\nMOV             X0, X19; this                                          ; +0x68, 0x1002fddf4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x6c, 0x1002fddf8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x70, 0x1002fddfc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x74, 0x1002fde00\nADD             SP, SP, #0x40 ; '@'                                    ; +0x78, 0x1002fde04\nRET                                                                    ; +0x7c, 0x1002fde08", "xrefs": ["CCAnimatedSprite::tweenToAnimation @ 0x1002fdcfc"], "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"}