{"type": "func", "start": 4096764, "end": 4096912, "name": "AnimatedGameObject::create", "pseudocode": "// \n// AnimatedGameObject::create from 0x3e82fc to 0x3e8390 (148 bytes)\n// \n// 1 xrefs:\n// > GameObject::createWithKey @ 0x36243e\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\nAnimatedGameObject *AnimatedGameObject::create(int a1)\n{\n  AnimatedGameObject *v2; // r4\n  AnimatedGameObject_vtbl *v3; // r3\n  AnimatedGameObject *v4; // r0\n\n  v2 = (AnimatedGameObject *)operator new(0x510u);\n  EnhancedGameObject::EnhancedGameObject(v2);\n  v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AnimatedGameObject_vtbl *)&off_A530F0;\n  v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A5349C;\n  v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A534DC;\n  v2->AnimatedSpriteDelegate::__vftable = (AnimatedSpriteDelegate_vtbl *)&off_A534F4;\n  v2->SpritePartDelegate::__vftable = (SpritePartDelegate_vtbl *)&off_A53500;\n  v2->m_animatedSprite = nullptr;\n  v2->m_childSprite = nullptr;\n  v2->m_eyeSpritePart = nullptr;\n  v2->m_finishedAnimating = 0;\n  v2->m_playingAnimation = 0;\n  v2->m_currentAnimation.m_data.m_data = (stl::StringData<char>::Internal *)&unk_ACDDA8;\n  v2->m_notGrounded = 0;\n  v2->m_animationID = 0;\n  if ( AnimatedGameObject::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    v3 = v2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v4 = v2;\n    v2 = nullptr;\n    v3->~AnimatedGameObject_0(v4);\n  }\n  return v2;\n}", "assembly": "; \n; AnimatedGameObject::create from 0x3e82fc to 0x3e8390 (148 bytes)\n; \n; 1 xrefs:\n; > GameObject::createWithKey @ 0x36243e\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, 0x3e82fc\nMOV             R5, R0                                                 ; +0x2, 0x3e82fe\nMOV.W           R0, #0x510; unsigned int                               ; +0x4, 0x3e8300\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x3e8304\nMOV             R4, R0                                                 ; +0xc, 0x3e8308\nBL              _ZN18EnhancedGameObjectC2Ev; EnhancedGameObject::EnhancedGameObject(void) ; +0xe, 0x3e830a\nLDR             R3, =(_ZTV18AnimatedGameObject_ptr - 0x3E8318)         ; +0x12, 0x3e830e\nMOV             R1, R5; int                                            ; +0x14, 0x3e8310\nMOV             R0, R4; this                                           ; +0x16, 0x3e8312\nADD             R3, PC; _ZTV18AnimatedGameObject_ptr                   ; +0x18, 0x3e8314\nLDR             R3, [R3]; `vtable for'AnimatedGameObject ...           ; +0x1a, 0x3e8316\nADD.W           R2, R3, #8                                             ; +0x1c, 0x3e8318\nSTR             R2, [R4]                                               ; +0x20, 0x3e831c\nADD.W           R2, R3, #0x3B4                                         ; +0x22, 0x3e831e\nSTR.W           R2, [R4,#0x108]                                        ; +0x26, 0x3e8322\nADD.W           R2, R3, #0x3F4                                         ; +0x2a, 0x3e8326\nSTR.W           R2, [R4,#0x118]                                        ; +0x2e, 0x3e832a\nADDW            R2, R3, #0x40C                                         ; +0x32, 0x3e832e\nSTR.W           R2, [R4,#0x4EC]                                        ; +0x36, 0x3e8332\nLDR             R2, =(off_AB5BA0 - 0x3E8346)                           ; +0x3a, 0x3e8336\nADD.W           R3, R3, #0x418                                         ; +0x3c, 0x3e8338\nSTR.W           R3, [R4,#0x4F0]                                        ; +0x40, 0x3e833c\nMOVS            R3, #0                                                 ; +0x44, 0x3e8340\nADD             R2, PC; off_AB5BA0                                     ; +0x46, 0x3e8342\nLDR             R2, [R2]; dword_ACDD9C                                 ; +0x48, 0x3e8344\nSTR.W           R3, [R4,#0x4F4]                                        ; +0x4a, 0x3e8346\nADDS            R2, #0xC                                               ; +0x4e, 0x3e834a\nSTR.W           R3, [R4,#0x4F8]                                        ; +0x50, 0x3e834c\nSTR.W           R3, [R4,#0x4FC]                                        ; +0x54, 0x3e8350\nSTRB.W          R3, [R4,#0x500]                                        ; +0x58, 0x3e8354\nSTRB.W          R3, [R4,#0x501]                                        ; +0x5c, 0x3e8358\nSTR.W           R2, [R4,#0x504]                                        ; +0x60, 0x3e835c\nSTRB.W          R3, [R4,#0x508]                                        ; +0x64, 0x3e8360\nSTR.W           R3, [R4,#0x50C]                                        ; +0x68, 0x3e8364\nBL              _ZN18AnimatedGameObject4initEi; AnimatedGameObject::init(int) ; +0x6c, 0x3e8368\nMOV             R5, R0                                                 ; +0x70, 0x3e836c\nCBZ             R0, loc_3E8382                                         ; +0x72, 0x3e836e\nMOV             R0, R4; this                                           ; +0x74, 0x3e8370\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x76, 0x3e8372\nB               loc_3E838C                                             ; +0x7a, 0x3e8376\nMOV             R0, R4; p                                              ; +0x7c, 0x3e8378\nBL              _ZdlPv; operator delete(void *)                        ; +0x7e, 0x3e837a\nBL              __cxa_end_cleanup                                      ; +0x82, 0x3e837e\nLDR             R3, [R4]                                               ; +0x86, 0x3e8382\nMOV             R0, R4                                                 ; +0x88, 0x3e8384\nMOV             R4, R5                                                 ; +0x8a, 0x3e8386\nLDR             R3, [R3,#8]                                            ; +0x8c, 0x3e8388\nBLX             R3                                                     ; +0x8e, 0x3e838a\nMOV             R0, R4                                                 ; +0x90, 0x3e838c\nPOP             {R3-R5,PC}                                             ; +0x92, 0x3e838e", "xrefs": ["GameObject::createWithKey @ 0x36243e"], "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"}