{"type": "func", "start": 4295486164, "end": 4295486360, "name": "CCSpritePart::createWithSpriteFrameName", "pseudocode": "// \n// CCSpritePart::createWithSpriteFrameName from 0x10007ead4 to 0x10007eb98 (196 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::initWithAnimDesc @ 0x10007e878\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\nCCSpritePart *__fastcall CCSpritePart::createWithSpriteFrameName(const char *a1)\n{\n  char *v2; // x19\n  std::string __str; // [xsp+8h] [xbp-28h] BYREF\n\n  v2 = (char *)operator new(0x290u);\n  cocos2d::CCSprite::CCSprite();\n  *(_DWORD *)(v2 + 615) = 0;\n  *(_OWORD *)(v2 + 600) = 0u;\n  *(_QWORD *)v2 = off_10077B780;\n  *((_QWORD *)v2 + 40) = off_10077BC68;\n  *((_QWORD *)v2 + 43) = off_10077BCE8;\n  v2[619] = 0;\n  *((_OWORD *)v2 + 39) = 0u;\n  *((_OWORD *)v2 + 40) = 0u;\n  if ( CCSpritePlus::initWithSpriteFrameName((CCSpritePlus *)v2, a1) )\n  {\n    sub_100009900(&__str, (char *)a1);\n    std::string::operator=((std::string *)v2 + 26, &__str);\n    if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(__str.__r_.__value_.__l.__data_);\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (CCSpritePart *)v2;\n}", "assembly": "; \n; CCSpritePart::createWithSpriteFrameName from 0x10007ead4 to 0x10007eb98 (196 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::initWithAnimDesc @ 0x10007e878\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, 0x10007ead4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10007ead8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10007eadc\nADD             X29, SP, #0x30                                         ; +0xc, 0x10007eae0\nMOV             X20, X0                                                ; +0x10, 0x10007eae4\nMOV             W0, #0x290; __sz                                       ; +0x14, 0x10007eae8\nBL              __Znwm; operator new(ulong)                            ; +0x18, 0x10007eaec\nMOV             X19, X0                                                ; +0x1c, 0x10007eaf0\nBL              cocos2d__CCSprite__CCSprite                            ; +0x20, 0x10007eaf4\nADD             X8, X19, #0x258                                        ; +0x24, 0x10007eaf8\nSTUR            WZR, [X8,#0xF]                                         ; +0x28, 0x10007eafc\nMOVI            V0.16B, #0                                             ; +0x2c, 0x10007eb00\nSTR             Q0, [X8]                                               ; +0x30, 0x10007eb04\nADRL            X8, off_10077B780                                      ; +0x34, 0x10007eb08\nSTR             X8, [X19]                                              ; +0x3c, 0x10007eb10\nADD             X9, X8, #(off_10077BC68 - 0x10077B780)                 ; +0x40, 0x10007eb14\nSTR             X9, [X19,#0x140]                                       ; +0x44, 0x10007eb18\nADD             X8, X8, #(off_10077BCE8 - 0x10077B780)                 ; +0x48, 0x10007eb1c\nSTR             X8, [X19,#0x158]                                       ; +0x4c, 0x10007eb20\nSTRB            WZR, [X19,#0x26B]                                      ; +0x50, 0x10007eb24\nSTP             Q0, Q0, [X19,#0x270]                                   ; +0x54, 0x10007eb28\nMOV             X0, X19                                                ; +0x58, 0x10007eb2c\nMOV             X1, X20                                                ; +0x5c, 0x10007eb30\nBL              CCSpritePlus__initWithSpriteFrameName                  ; +0x60, 0x10007eb34\nCBZ             W0, loc_10007EB70                                      ; +0x64, 0x10007eb38\nADD             X0, SP, #0x30+__str; int                               ; +0x68, 0x10007eb3c\nMOV             X1, X20; __s                                           ; +0x6c, 0x10007eb40\nBL              sub_100009900                                          ; +0x70, 0x10007eb44\nADD             X0, X19, #0x270; this                                  ; +0x74, 0x10007eb48\nADD             X1, SP, #0x30+__str; __str                             ; +0x78, 0x10007eb4c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x7c, 0x10007eb50\nLDRSB           W8, [SP,#0x30+__str.__r_.__value_+0x17]                ; +0x80, 0x10007eb54\nTBZ             W8, #0x1F, loc_10007EB64                               ; +0x84, 0x10007eb58\nLDR             X0, [SP,#0x30+__str]; __p                              ; +0x88, 0x10007eb5c\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x10007eb60\nMOV             X0, X19                                                ; +0x90, 0x10007eb64\nBL              cocos2d__CCObject__autorelease                         ; +0x94, 0x10007eb68\nB               loc_10007EB84                                          ; +0x98, 0x10007eb6c\nLDR             X8, [X19]                                              ; +0x9c, 0x10007eb70\nLDR             X8, [X8,#0x10]                                         ; +0xa0, 0x10007eb74\nMOV             X0, X19                                                ; +0xa4, 0x10007eb78\nBLR             X8                                                     ; +0xa8, 0x10007eb7c\nMOV             X19, #0                                                ; +0xac, 0x10007eb80\nMOV             X0, X19                                                ; +0xb0, 0x10007eb84\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb4, 0x10007eb88\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xb8, 0x10007eb8c\nADD             SP, SP, #0x40 ; '@'                                    ; +0xbc, 0x10007eb90\nRET                                                                    ; +0xc0, 0x10007eb94", "xrefs": ["CCPartAnimSprite::initWithAnimDesc @ 0x10007e878"], "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"}