{"type": "func", "start": 3031400, "end": 3031544, "name": "CCAnimatedSprite::createWithType", "pseudocode": "// \n// CCAnimatedSprite::createWithType from 0x2e4168 to 0x2e41f8 (144 bytes)\n// \n// 1 xrefs:\n// > AnimatedGameObject::init @ 0x3e8230\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\nCCAnimatedSprite *CCAnimatedSprite::createWithType(const char *a1, cocos2d::CCTexture2D *a2, bool a3)\n{\n  int v6; // r4\n\n  v6 = operator new(0x220u);\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v6);\n  *(_DWORD *)v6 = &off_A3C3B0;\n  *(_DWORD *)(v6 + 280) = &off_A3C664;\n  *(_DWORD *)(v6 + 264) = &off_A3C624;\n  *(_DWORD *)(v6 + 516) = 0;\n  *(_DWORD *)(v6 + 520) = 0;\n  *(_DWORD *)(v6 + 508) = &unk_ACDDA8;\n  *(_DWORD *)(v6 + 512) = &unk_ACDDA8;\n  *(_DWORD *)(v6 + 524) = 0;\n  *(_DWORD *)(v6 + 528) = 0;\n  *(_DWORD *)(v6 + 532) = 0;\n  *(_DWORD *)(v6 + 536) = &unk_ACDDA8;\n  *(_DWORD *)(v6 + 540) = 0;\n  if ( CCAnimatedSprite::initWithType((CCAnimatedSprite *)v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n    return (CCAnimatedSprite *)v6;\n  }\n  else\n  {\n    (*(void (__fastcall **)(int))(*(_DWORD *)v6 + 8))(v6);\n    return nullptr;\n  }\n}", "assembly": "; \n; CCAnimatedSprite::createWithType from 0x2e4168 to 0x2e41f8 (144 bytes)\n; \n; 1 xrefs:\n; > AnimatedGameObject::init @ 0x3e8230\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-R7,LR}                                             ; +0x0, 0x2e4168\nMOV             R7, R0                                                 ; +0x2, 0x2e416a\nMOV.W           R0, #0x220; unsigned int                               ; +0x4, 0x2e416c\nMOV             R6, R1                                                 ; +0x8, 0x2e4170\nMOV             R5, R2                                                 ; +0xa, 0x2e4172\nBL              _Znwj; operator new(uint)                              ; +0xc, 0x2e4174\nMOV             R4, R0                                                 ; +0x10, 0x2e4178\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x12, 0x2e417a\nLDR             R3, =(_ZTV16CCAnimatedSprite_ptr - 0x2E4188)           ; +0x16, 0x2e417e\nMOV             R0, R4; this                                           ; +0x18, 0x2e4180\nMOV             R1, R7; char *                                         ; +0x1a, 0x2e4182\nADD             R3, PC; _ZTV16CCAnimatedSprite_ptr                     ; +0x1c, 0x2e4184\nLDR             R3, [R3]; `vtable for'CCAnimatedSprite ...             ; +0x1e, 0x2e4186\nADD.W           R2, R3, #8                                             ; +0x20, 0x2e4188\nSTR             R2, [R4]                                               ; +0x24, 0x2e418c\nADD.W           R2, R3, #0x27C                                         ; +0x26, 0x2e418e\nADD.W           R3, R3, #0x2BC                                         ; +0x2a, 0x2e4192\nSTR.W           R3, [R4,#0x118]                                        ; +0x2e, 0x2e4196\nLDR             R3, =(off_AB5BA0 - 0x2E41A6)                           ; +0x32, 0x2e419a\nSTR.W           R2, [R4,#0x108]                                        ; +0x34, 0x2e419c\nMOVS            R2, #0                                                 ; +0x38, 0x2e41a0\nADD             R3, PC; off_AB5BA0                                     ; +0x3a, 0x2e41a2\nLDR             R3, [R3]; dword_ACDD9C                                 ; +0x3c, 0x2e41a4\nSTR.W           R2, [R4,#0x204]                                        ; +0x3e, 0x2e41a6\nADDS            R3, #0xC                                               ; +0x42, 0x2e41aa\nSTR.W           R2, [R4,#0x208]                                        ; +0x44, 0x2e41ac\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x48, 0x2e41b0\nSTR.W           R3, [R4,#0x200]                                        ; +0x4c, 0x2e41b4\nSTR.W           R2, [R4,#0x20C]                                        ; +0x50, 0x2e41b8\nSTR.W           R2, [R4,#0x210]                                        ; +0x54, 0x2e41bc\nSTR.W           R2, [R4,#0x214]                                        ; +0x58, 0x2e41c0\nSTR.W           R3, [R4,#0x218]                                        ; +0x5c, 0x2e41c4\nMOV             R3, R5; bool                                           ; +0x60, 0x2e41c8\nSTR.W           R2, [R4,#0x21C]                                        ; +0x62, 0x2e41ca\nMOV             R2, R6; cocos2d::CCTexture2D *                         ; +0x66, 0x2e41ce\nBL              _ZN16CCAnimatedSprite12initWithTypeEPKcPN7cocos2d11CCTexture2DEb; CCAnimatedSprite::initWithType(char const*,cocos2d::CCTexture2D *,bool) ; +0x68, 0x2e41d0\nMOV             R5, R0                                                 ; +0x6c, 0x2e41d4\nCBZ             R0, loc_2E41EC                                         ; +0x6e, 0x2e41d6\nMOV             R0, R4; this                                           ; +0x70, 0x2e41d8\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x72, 0x2e41da\nMOV             R0, R4                                                 ; +0x76, 0x2e41de\nPOP             {R3-R7,PC}                                             ; +0x78, 0x2e41e0\nMOV             R0, R4; p                                              ; +0x7a, 0x2e41e2\nBL              _ZdlPv; operator delete(void *)                        ; +0x7c, 0x2e41e4\nBL              __cxa_end_cleanup                                      ; +0x80, 0x2e41e8\nLDR             R3, [R4]                                               ; +0x84, 0x2e41ec\nMOV             R0, R4                                                 ; +0x86, 0x2e41ee\nLDR             R3, [R3,#8]                                            ; +0x88, 0x2e41f0\nBLX             R3                                                     ; +0x8a, 0x2e41f2\nMOV             R0, R5                                                 ; +0x8c, 0x2e41f4\nPOP             {R3-R7,PC}                                             ; +0x8e, 0x2e41f6", "xrefs": ["AnimatedGameObject::init @ 0x3e8230"], "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"}