{"type": "func", "start": 3043848, "end": 3043980, "name": "CCSpritePart::create", "pseudocode": "// \n// CCSpritePart::create from 0x2e7208 to 0x2e728c (132 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::initWithAnimDesc @ 0x2e7968\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::create(cocos2d::CCTexture2D *a1)\n{\n  CCSpritePart *v2; // r4\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::initWithTexture(v2, a1) )\n  {\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::create from 0x2e7208 to 0x2e728c (132 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::initWithAnimDesc @ 0x2e7968\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            {R3-R5,LR}                                             ; +0x0, 0x2e7208\nMOV             R5, R0                                                 ; +0x2, 0x2e720a\nMOV.W           R0, #0x210; unsigned int                               ; +0x4, 0x2e720c\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x2e7210\nMOV             R4, R0                                                 ; +0xc, 0x2e7214\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0xe, 0x2e7216\nLDR             R2, =(_ZTV12CCSpritePart_ptr - 0x2E7228)               ; +0x12, 0x2e721a\nMOVS            R3, #0                                                 ; +0x14, 0x2e721c\nMOV             R0, R4; this                                           ; +0x16, 0x2e721e\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x18, 0x2e7220\nADD             R2, PC; _ZTV12CCSpritePart_ptr                         ; +0x1c, 0x2e7224\nLDR             R2, [R2]; `vtable for'CCSpritePart ...                 ; +0x1e, 0x2e7226\nSTR.W           R3, [R4,#0x200]                                        ; +0x20, 0x2e7228\nADD.W           R1, R2, #8                                             ; +0x24, 0x2e722c\nSTR             R1, [R4]                                               ; +0x28, 0x2e7230\nADD.W           R1, R2, #0x27C                                         ; +0x2a, 0x2e7232\nADD.W           R2, R2, #0x2BC                                         ; +0x2e, 0x2e7236\nSTR.W           R2, [R4,#0x118]                                        ; +0x32, 0x2e723a\nLDR             R2, =(off_AB5BA0 - 0x2E724A)                           ; +0x36, 0x2e723e\nSTR.W           R1, [R4,#0x108]                                        ; +0x38, 0x2e7240\nMOV             R1, R5; cocos2d::CCTexture2D *                         ; +0x3c, 0x2e7244\nADD             R2, PC; off_AB5BA0                                     ; +0x3e, 0x2e7246\nLDR             R2, [R2]; dword_ACDD9C                                 ; +0x40, 0x2e7248\nSTRB.W          R3, [R4,#0x204]                                        ; +0x42, 0x2e724a\nADDS            R2, #0xC                                               ; +0x46, 0x2e724e\nSTRB.W          R3, [R4,#0x205]                                        ; +0x48, 0x2e7250\nSTRB.W          R3, [R4,#0x206]                                        ; +0x4c, 0x2e7254\nSTRB.W          R3, [R4,#0x207]                                        ; +0x50, 0x2e7258\nSTR.W           R2, [R4,#0x208]                                        ; +0x54, 0x2e725c\nSTR.W           R3, [R4,#0x20C]                                        ; +0x58, 0x2e7260\nBL              _ZN12CCSpritePlus15initWithTextureEPN7cocos2d11CCTexture2DE; CCSpritePlus::initWithTexture(cocos2d::CCTexture2D *) ; +0x5c, 0x2e7264\nMOV             R5, R0                                                 ; +0x60, 0x2e7268\nCBZ             R0, loc_2E7280                                         ; +0x62, 0x2e726a\nMOV             R0, R4; this                                           ; +0x64, 0x2e726c\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x66, 0x2e726e\nMOV             R0, R4                                                 ; +0x6a, 0x2e7272\nPOP             {R3-R5,PC}                                             ; +0x6c, 0x2e7274\nMOV             R0, R4; p                                              ; +0x6e, 0x2e7276\nBL              _ZdlPv; operator delete(void *)                        ; +0x70, 0x2e7278\nBL              __cxa_end_cleanup                                      ; +0x74, 0x2e727c\nLDR             R3, [R4]                                               ; +0x78, 0x2e7280\nMOV             R0, R4                                                 ; +0x7a, 0x2e7282\nLDR             R3, [R3,#8]                                            ; +0x7c, 0x2e7284\nBLX             R3                                                     ; +0x7e, 0x2e7286\nMOV             R0, R5                                                 ; +0x80, 0x2e7288\nPOP             {R3-R5,PC}                                             ; +0x82, 0x2e728a", "xrefs": ["CCPartAnimSprite::initWithAnimDesc @ 0x2e7968"], "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"}