{"type": "func", "start": 4295486956, "end": 4295487120, "name": "CCSpritePart::frameChanged", "pseudocode": "// \n// CCSpritePart::frameChanged from 0x10007edec to 0x10007ee90 (164 bytes)\n// \n// 2 xrefs:\n// > CCPartAnimSprite::transformSprite @ 0x10007ed5c\n// > CCPartAnimSprite::tweenSpriteTo @ 0x10007efb8\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\nstd::string *__fastcall CCSpritePart::frameChanged(std::string *a1, std::string *__str)\n{\n  void (__fastcall ***data)(_QWORD, _QWORD, _QWORD); // x21\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  std::string::size_type v7; // [xsp+10h] [xbp-30h]\n\n  data = (void (__fastcall ***)(_QWORD, _QWORD, _QWORD))a1[27].__r_.__value_.__l.__data_;\n  if ( data && !sub_1000045BC(__str, a1[26].__r_.__value_.__r.__words) )\n  {\n    if ( SHIBYTE(__str->__r_.__value_.__r.__words[2]) < 0 )\n    {\n      sub_1000097D0(__p, __str->__r_.__value_.__l.__data_, __str->__r_.__value_.__l.__size_);\n    }\n    else\n    {\n      *(_OWORD *)__p = *(_OWORD *)&__str->__r_.__value_.__l.__data_;\n      v7 = __str->__r_.__value_.__r.__words[2];\n    }\n    (**data)(data, a1, __p);\n    if ( SHIBYTE(v7) < 0 )\n      operator delete(__p[0]);\n  }\n  return std::string::operator=(a1 + 26, __str);\n}", "assembly": "; \n; CCSpritePart::frameChanged from 0x10007edec to 0x10007ee90 (164 bytes)\n; \n; 2 xrefs:\n; > CCPartAnimSprite::transformSprite @ 0x10007ed5c\n; > CCPartAnimSprite::tweenSpriteTo @ 0x10007efb8\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, #0x50                                          ; +0x0, 0x10007edec\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10007edf0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10007edf4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10007edf8\nADD             X29, SP, #0x40                                         ; +0x10, 0x10007edfc\nMOV             X19, X1                                                ; +0x14, 0x10007ee00\nMOV             X20, X0                                                ; +0x18, 0x10007ee04\nLDR             X21, [X0,#0x288]                                       ; +0x1c, 0x10007ee08\nCBZ             X21, loc_10007EE70                                     ; +0x20, 0x10007ee0c\nADD             X1, X20, #0x270                                        ; +0x24, 0x10007ee10\nMOV             X0, X19                                                ; +0x28, 0x10007ee14\nBL              sub_1000045BC                                          ; +0x2c, 0x10007ee18\nTBNZ            W0, #0, loc_10007EE70                                  ; +0x30, 0x10007ee1c\nLDRSB           W8, [X19,#0x17]                                        ; +0x34, 0x10007ee20\nTBNZ            W8, #0x1F, loc_10007EE3C                               ; +0x38, 0x10007ee24\nLDR             Q0, [X19]                                              ; +0x3c, 0x10007ee28\nSTR             Q0, [SP,#0x40+__p]                                     ; +0x40, 0x10007ee2c\nLDR             X8, [X19,#0x10]                                        ; +0x44, 0x10007ee30\nSTR             X8, [SP,#0x40+var_30]                                  ; +0x48, 0x10007ee34\nB               loc_10007EE48                                          ; +0x4c, 0x10007ee38\nLDP             X1, X2, [X19]; __src                                   ; +0x50, 0x10007ee3c\nMOV             X0, SP; __dst                                          ; +0x54, 0x10007ee40\nBL              sub_1000097D0                                          ; +0x58, 0x10007ee44\nLDR             X8, [X21]                                              ; +0x5c, 0x10007ee48\nLDR             X8, [X8]                                               ; +0x60, 0x10007ee4c\nMOV             X2, SP                                                 ; +0x64, 0x10007ee50\nMOV             X0, X21                                                ; +0x68, 0x10007ee54\nMOV             X1, X20                                                ; +0x6c, 0x10007ee58\nBLR             X8                                                     ; +0x70, 0x10007ee5c\nLDRSB           W8, [SP,#0x40+var_30+7]                                ; +0x74, 0x10007ee60\nTBZ             W8, #0x1F, loc_10007EE70                               ; +0x78, 0x10007ee64\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x7c, 0x10007ee68\nBL              __ZdlPv; operator delete(void *)                       ; +0x80, 0x10007ee6c\nADD             X0, X20, #0x270; this                                  ; +0x84, 0x10007ee70\nMOV             X1, X19; __str                                         ; +0x88, 0x10007ee74\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x8c, 0x10007ee78\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x90, 0x10007ee7c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x94, 0x10007ee80\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x98, 0x10007ee84\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x9c, 0x10007ee88\nRET                                                                    ; +0xa0, 0x10007ee8c", "xrefs": ["CCPartAnimSprite::transformSprite @ 0x10007ed5c", "CCPartAnimSprite::tweenSpriteTo @ 0x10007efb8"], "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"}