{"type": "func", "start": 4298360112, "end": 4298360307, "name": "CCAnimatedSprite::tweenToAnimationFinished", "pseudocode": "// \n// CCAnimatedSprite::tweenToAnimationFinished from 0x10033c530 to 0x10033c5f3 (195 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::tweenToAnimation @ 0x10033c49e\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 12:28:41 +0000\n// \n\nstd::string *__fastcall CCAnimatedSprite::tweenToAnimationFinished(std::string *a1)\n{\n  std::string *v1; // rbx\n  std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610 v2; // 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 *data; // [rsp+30h] [rbp-20h]\n\n  v1 = a1 + 26;\n  if ( (*(_BYTE *)&a1[26].__r_.__value_.__s.0 & 1) != 0 )\n  {\n    sub_10001AD30(&v6, a1[26].__r_.__value_.__l.__data_, a1[26].__r_.__value_.__l.__size_);\n    v2 = (std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610)a1[27].__r_.__value_.__r.__words[0];\n    if ( (v6 & 1) != 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    data = a1[26].__r_.__value_.__l.__data_;\n    v6 = *(_OWORD *)&v1->__r_.__value_.__l.0;\n    v2 = (std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610)a1[27].__r_.__value_.__r.__words[0];\n    if ( (v6 & 1) != 0 )\n    {\nLABEL_3:\n      sub_10001AD30(&v4, data, *((unsigned __int64 *)&v6 + 1));\n      goto LABEL_6;\n    }\n  }\n  __p = data;\n  v4 = v6;\nLABEL_6:\n  ((void (__fastcall *)(_QWORD, _QWORD))SpriteAnimationManager::runAnimation)(v2, &v4);\n  if ( (v4 & 1) != 0 )\n    operator delete(__p);\n  if ( (v6 & 1) != 0 )\n    operator delete(data);\n  return std::string::assign(v1, \"\");\n}", "assembly": "; \n; CCAnimatedSprite::tweenToAnimationFinished from 0x10033c530 to 0x10033c5f3 (195 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::tweenToAnimation @ 0x10033c49e\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 12:28:41 +0000\n; \npush    rbp                                                            ; +0x0, 0x10033c530\nmov     rbp, rsp                                                       ; +0x1, 0x10033c531\npush    r14                                                            ; +0x4, 0x10033c534\npush    rbx                                                            ; +0x6, 0x10033c536\nsub     rsp, 40h                                                       ; +0x7, 0x10033c537\nmov     r14, rdi                                                       ; +0xb, 0x10033c53b\nlea     rbx, [rdi+270h]                                                ; +0xe, 0x10033c53e\ntest    byte ptr [rdi+270h], 1                                         ; +0x15, 0x10033c545\njnz     short loc_10033C57D                                            ; +0x1c, 0x10033c54c\nmov     rax, [rbx+10h]                                                 ; +0x1e, 0x10033c54e\nmov     [rbp+var_20], rax                                              ; +0x22, 0x10033c552\nmovups  xmm0, xmmword ptr [rbx]                                        ; +0x26, 0x10033c556\nmovaps  [rbp+var_30], xmm0                                             ; +0x29, 0x10033c559\nmov     r14, [r14+288h]                                                ; +0x2d, 0x10033c55d\ntest    byte ptr [rbp+var_30], 1                                       ; +0x34, 0x10033c564\njz      short loc_10033C5A1                                            ; +0x38, 0x10033c568\nmov     rdx, qword ptr [rbp+var_30+8]                                  ; +0x3a, 0x10033c56a\nmov     rsi, [rbp+var_20]                                              ; +0x3e, 0x10033c56e\nlea     rdi, [rbp+var_50]                                              ; +0x42, 0x10033c572\ncall    sub_10001AD30                                                  ; +0x46, 0x10033c576\njmp     short loc_10033C5B1                                            ; +0x4b, 0x10033c57b\nmov     rdx, [r14+278h]                                                ; +0x4d, 0x10033c57d\nmov     rsi, [r14+280h]                                                ; +0x54, 0x10033c584\nlea     rdi, [rbp+var_30]                                              ; +0x5b, 0x10033c58b\ncall    sub_10001AD30                                                  ; +0x5f, 0x10033c58f\nmov     r14, [r14+288h]                                                ; +0x64, 0x10033c594\ntest    byte ptr [rbp+var_30], 1                                       ; +0x6b, 0x10033c59b\njnz     short loc_10033C56A                                            ; +0x6f, 0x10033c59f\nmov     rax, [rbp+var_20]                                              ; +0x71, 0x10033c5a1\nmov     [rbp+__p], rax                                                 ; +0x75, 0x10033c5a5\nmovaps  xmm0, [rbp+var_30]                                             ; +0x79, 0x10033c5a9\nmovaps  [rbp+var_50], xmm0                                             ; +0x7d, 0x10033c5ad\nlea     rsi, [rbp+var_50]                                              ; +0x81, 0x10033c5b1\nmov     rdi, r14                                                       ; +0x85, 0x10033c5b5\ncall    SpriteAnimationManager__runAnimation                           ; +0x88, 0x10033c5b8\ntest    byte ptr [rbp+var_50], 1                                       ; +0x8d, 0x10033c5bd\njz      short loc_10033C5CC                                            ; +0x91, 0x10033c5c1\nmov     rdi, [rbp+__p]; __p                                            ; +0x93, 0x10033c5c3\ncall    __ZdlPv; operator delete(void *)                               ; +0x97, 0x10033c5c7\ntest    byte ptr [rbp+var_30], 1                                       ; +0x9c, 0x10033c5cc\njz      short loc_10033C5DB                                            ; +0xa0, 0x10033c5d0\nmov     rdi, [rbp+var_20]; __p                                         ; +0xa2, 0x10033c5d2\ncall    __ZdlPv; operator delete(void *)                               ; +0xa6, 0x10033c5d6\nlea     rsi, asc_100A41668; \"\"                                         ; +0xab, 0x10033c5db\nmov     rdi, rbx; this                                                 ; +0xb2, 0x10033c5e2\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xb5, 0x10033c5e5\nadd     rsp, 40h                                                       ; +0xba, 0x10033c5ea\npop     rbx                                                            ; +0xbe, 0x10033c5ee\npop     r14                                                            ; +0xbf, 0x10033c5ef\npop     rbp                                                            ; +0xc1, 0x10033c5f1\nretn                                                                   ; +0xc2, 0x10033c5f2", "xrefs": ["CCAnimatedSprite::tweenToAnimation @ 0x10033c49e"], "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"}