{"type": "func", "start": 3043640, "end": 3043836, "name": "CCSpritePart::createWithSpriteFrameName", "pseudocode": "// \n// CCSpritePart::createWithSpriteFrameName from 0x2e7138 to 0x2e71fc (196 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::initWithAnimDesc @ 0x2e795e\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 *CCSpritePart::createWithSpriteFrameName(const char *a1)\n{\n  CCSpritePart *v2; // r4\n  _BYTE v4[4]; // [sp+8h] [bp-Ch] BYREF\n\n  v2 = (CCSpritePart *)operator new(0x210u);\n  cocos2d::CCSprite::CCSprite(v2);\n  v2->m_followers = nullptr;\n  v2->m_followingSprite = nullptr;\n  v2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCSpritePart_vtbl *)&off_A3DDE0;\n  v2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A3E094;\n  v2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A3E054;\n  v2->m_hasFollower = 0;\n  v2->m_propagateScaleChanges = 0;\n  v2->m_propagateFlipChanges = 0;\n  v2->m_isBeingUsed = 0;\n  v2->m_spriteFrameName.m_data.m_data = (stl::StringData<char>::Internal *)&unk_ACDDA8;\n  v2->m_delegate = nullptr;\n  if ( CCSpritePlus::initWithSpriteFrameName(v2, a1) )\n  {\n    sub_776584((int)v4, (char *)a1);\n    sub_775D40(&v2->m_spriteFrameName, v4);\n    sub_774008(v4);\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    v2->~CCSpritePart_0(v2);\n    return nullptr;\n  }\n}", "assembly": "; \n; CCSpritePart::createWithSpriteFrameName from 0x2e7138 to 0x2e71fc (196 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::initWithAnimDesc @ 0x2e795e\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            {R4-R7,LR}                                             ; +0x0, 0x2e7138\nSUB             SP, SP, #0x14                                          ; +0x2, 0x2e713a\nLDR             R5, =(__stack_chk_guard_ptr - 0x2E7148)                ; +0x4, 0x2e713c\nMOV             R7, R0                                                 ; +0x6, 0x2e713e\nMOV.W           R0, #0x210; unsigned int                               ; +0x8, 0x2e7140\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x2e7144\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x2e7146\nLDR             R3, [R5]                                               ; +0x10, 0x2e7148\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x12, 0x2e714a\nBL              _Znwj; operator new(uint)                              ; +0x14, 0x2e714c\nMOV             R4, R0                                                 ; +0x18, 0x2e7150\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x1a, 0x2e7152\nLDR             R2, =(_ZTV12CCSpritePart_ptr - 0x2E7164)               ; +0x1e, 0x2e7156\nMOVS            R3, #0                                                 ; +0x20, 0x2e7158\nMOV             R0, R4; this                                           ; +0x22, 0x2e715a\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x24, 0x2e715c\nADD             R2, PC; _ZTV12CCSpritePart_ptr                         ; +0x28, 0x2e7160\nLDR             R2, [R2]; `vtable for'CCSpritePart ...                 ; +0x2a, 0x2e7162\nSTR.W           R3, [R4,#0x200]                                        ; +0x2c, 0x2e7164\nADD.W           R1, R2, #8                                             ; +0x30, 0x2e7168\nSTR             R1, [R4]                                               ; +0x34, 0x2e716c\nADD.W           R1, R2, #0x27C                                         ; +0x36, 0x2e716e\nADD.W           R2, R2, #0x2BC                                         ; +0x3a, 0x2e7172\nSTR.W           R2, [R4,#0x118]                                        ; +0x3e, 0x2e7176\nLDR             R2, =(off_AB5BA0 - 0x2E7186)                           ; +0x42, 0x2e717a\nSTR.W           R1, [R4,#0x108]                                        ; +0x44, 0x2e717c\nMOV             R1, R7; char *                                         ; +0x48, 0x2e7180\nADD             R2, PC; off_AB5BA0                                     ; +0x4a, 0x2e7182\nLDR             R2, [R2]; dword_ACDD9C                                 ; +0x4c, 0x2e7184\nSTRB.W          R3, [R4,#0x204]                                        ; +0x4e, 0x2e7186\nADDS            R2, #0xC                                               ; +0x52, 0x2e718a\nSTRB.W          R3, [R4,#0x205]                                        ; +0x54, 0x2e718c\nSTRB.W          R3, [R4,#0x206]                                        ; +0x58, 0x2e7190\nSTRB.W          R3, [R4,#0x207]                                        ; +0x5c, 0x2e7194\nSTR.W           R2, [R4,#0x208]                                        ; +0x60, 0x2e7198\nSTR.W           R3, [R4,#0x20C]                                        ; +0x64, 0x2e719c\nBL              _ZN12CCSpritePlus23initWithSpriteFrameNameEPKc; CCSpritePlus::initWithSpriteFrameName(char const*) ; +0x68, 0x2e71a0\nMOV             R6, R0                                                 ; +0x6c, 0x2e71a4\nCBNZ            R0, loc_2E71BC                                         ; +0x6e, 0x2e71a6\nB               loc_2E71EC                                             ; +0x70, 0x2e71a8\nMOV             R0, R4; p                                              ; +0x72, 0x2e71aa\nBL              _ZdlPv; operator delete(void *)                        ; +0x74, 0x2e71ac\nB               loc_2E71B8                                             ; +0x78, 0x2e71b0\nMOV             R0, R6                                                 ; +0x7a, 0x2e71b2\nBL              sub_774008                                             ; +0x7c, 0x2e71b4\nBL              __cxa_end_cleanup                                      ; +0x80, 0x2e71b8\nADD             R6, SP, #0x14+var_C                                    ; +0x84, 0x2e71bc\nMOV             R1, R7; char *                                         ; +0x86, 0x2e71be\nADD             R2, SP, #0x14+var_10                                   ; +0x88, 0x2e71c0\nMOV             R0, R6; int                                            ; +0x8a, 0x2e71c2\nBL              sub_776584                                             ; +0x8c, 0x2e71c4\nADD.W           R0, R4, #0x208                                         ; +0x90, 0x2e71c8\nMOV             R1, R6                                                 ; +0x94, 0x2e71cc\nBL              sub_775D40                                             ; +0x96, 0x2e71ce\nMOV             R0, R6                                                 ; +0x9a, 0x2e71d2\nBL              sub_774008                                             ; +0x9c, 0x2e71d4\nMOV             R0, R4; this                                           ; +0xa0, 0x2e71d8\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xa2, 0x2e71da\nMOV             R0, R4                                                 ; +0xa6, 0x2e71de\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xa8, 0x2e71e0\nLDR             R3, [R5]                                               ; +0xaa, 0x2e71e2\nCMP             R2, R3                                                 ; +0xac, 0x2e71e4\nBEQ             loc_2E71F8                                             ; +0xae, 0x2e71e6\nBLX             __stack_chk_fail                                       ; +0xb0, 0x2e71e8\nLDR             R3, [R4]                                               ; +0xb4, 0x2e71ec\nMOV             R0, R4                                                 ; +0xb6, 0x2e71ee\nLDR             R3, [R3,#8]                                            ; +0xb8, 0x2e71f0\nBLX             R3                                                     ; +0xba, 0x2e71f2\nMOV             R0, R6                                                 ; +0xbc, 0x2e71f4\nB               loc_2E71E0                                             ; +0xbe, 0x2e71f6\nADD             SP, SP, #0x14                                          ; +0xc0, 0x2e71f8\nPOP             {R4-R7,PC}                                             ; +0xc2, 0x2e71fa", "xrefs": ["CCPartAnimSprite::initWithAnimDesc @ 0x2e795e"], "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"}