{"type": "func", "start": 3046068, "end": 3046208, "name": "CCPartAnimSprite::createWithAnimDesc", "pseudocode": "// \n// CCPartAnimSprite::createWithAnimDesc from 0x2e7ab4 to 0x2e7b40 (140 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::loadType @ 0x2e3f60\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\nCCPartAnimSprite *CCPartAnimSprite::createWithAnimDesc(const char *a1, cocos2d::CCTexture2D *a2, bool a3)\n{\n  CCPartAnimSprite *v6; // r4\n\n  v6 = (CCPartAnimSprite *)operator new(0x214u);\n  cocos2d::CCSprite::CCSprite(v6);\n  v6->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCPartAnimSprite_vtbl *)&off_A3DB18;\n  v6->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A3DD84;\n  v6->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A3DDC4;\n  v6->m_spritePartIDs = nullptr;\n  v6->m_spriteFrame = nullptr;\n  v6->m_hasChanged = 0;\n  cocos2d::CCSize::CCSize(&v6->m_unkSize);\n  v6->m_spriteParts = nullptr;\n  if ( CCPartAnimSprite::initWithAnimDesc(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n    return v6;\n  }\n  else\n  {\n    v6->~CCPartAnimSprite_0(v6);\n    return nullptr;\n  }\n}", "assembly": "; \n; CCPartAnimSprite::createWithAnimDesc from 0x2e7ab4 to 0x2e7b40 (140 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::loadType @ 0x2e3f60\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.W          {R4-R8,LR}                                             ; +0x0, 0x2e7ab4\nMOV             R8, R0                                                 ; +0x4, 0x2e7ab8\nMOV.W           R0, #0x214; unsigned int                               ; +0x6, 0x2e7aba\nMOV             R7, R1                                                 ; +0xa, 0x2e7abe\nMOV             R6, R2                                                 ; +0xc, 0x2e7ac0\nBL              _Znwj; operator new(uint)                              ; +0xe, 0x2e7ac2\nMOV             R4, R0                                                 ; +0x12, 0x2e7ac6\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x14, 0x2e7ac8\nLDR             R3, =(_ZTV16CCPartAnimSprite_ptr - 0x2E7AD6)           ; +0x18, 0x2e7acc\nADD.W           R0, R4, #0x208; this                                   ; +0x1a, 0x2e7ace\nADD             R3, PC; _ZTV16CCPartAnimSprite_ptr                     ; +0x1e, 0x2e7ad2\nLDR             R3, [R3]; `vtable for'CCPartAnimSprite ...             ; +0x20, 0x2e7ad4\nADD.W           R2, R3, #8                                             ; +0x22, 0x2e7ad6\nSTR             R2, [R4]                                               ; +0x26, 0x2e7ada\nADD.W           R2, R3, #0x274                                         ; +0x28, 0x2e7adc\nADD.W           R3, R3, #0x2B4                                         ; +0x2c, 0x2e7ae0\nSTR.W           R2, [R4,#0x108]                                        ; +0x30, 0x2e7ae4\nSTR.W           R3, [R4,#0x118]                                        ; +0x34, 0x2e7ae8\nMOVS            R3, #0                                                 ; +0x38, 0x2e7aec\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x3a, 0x2e7aee\nMOV             R5, R3                                                 ; +0x3e, 0x2e7af2\nSTR.W           R3, [R4,#0x200]                                        ; +0x40, 0x2e7af4\nSTRB.W          R3, [R4,#0x204]                                        ; +0x44, 0x2e7af8\nBL              _ZN7cocos2d6CCSizeC1Ev; cocos2d::CCSize::CCSize(void)  ; +0x48, 0x2e7afc\nSTR.W           R5, [R4,#0x210]                                        ; +0x4c, 0x2e7b00\nMOV             R0, R4; this                                           ; +0x50, 0x2e7b04\nMOV             R1, R8; char *                                         ; +0x52, 0x2e7b06\nMOV             R2, R7; cocos2d::CCTexture2D *                         ; +0x54, 0x2e7b08\nMOV             R3, R6; bool                                           ; +0x56, 0x2e7b0a\nBL              _ZN16CCPartAnimSprite16initWithAnimDescEPKcPN7cocos2d11CCTexture2DEb; CCPartAnimSprite::initWithAnimDesc(char const*,cocos2d::CCTexture2D *,bool) ; +0x58, 0x2e7b0c\nMOV             R5, R0                                                 ; +0x5c, 0x2e7b10\nCBZ             R0, loc_2E7B32                                         ; +0x5e, 0x2e7b12\nMOV             R0, R4; this                                           ; +0x60, 0x2e7b14\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x62, 0x2e7b16\nMOV             R0, R4                                                 ; +0x66, 0x2e7b1a\nPOP.W           {R4-R8,PC}                                             ; +0x68, 0x2e7b1c\nMOV             R0, R4; this                                           ; +0x6c, 0x2e7b20\nBL              _ZN7cocos2d8CCSpriteD2Ev; cocos2d::CCSprite::~CCSprite() ; +0x6e, 0x2e7b22\nB               loc_2E7B28                                             ; +0x72, 0x2e7b26\nMOV             R0, R4; p                                              ; +0x74, 0x2e7b28\nBL              _ZdlPv; operator delete(void *)                        ; +0x76, 0x2e7b2a\nBL              __cxa_end_cleanup                                      ; +0x7a, 0x2e7b2e\nLDR             R3, [R4]                                               ; +0x7e, 0x2e7b32\nMOV             R0, R4                                                 ; +0x80, 0x2e7b34\nLDR             R3, [R3,#8]                                            ; +0x82, 0x2e7b36\nBLX             R3                                                     ; +0x84, 0x2e7b38\nMOV             R0, R5                                                 ; +0x86, 0x2e7b3a\nPOP.W           {R4-R8,PC}                                             ; +0x88, 0x2e7b3c", "xrefs": ["CCAnimatedSprite::loadType @ 0x2e3f60"], "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"}