{"type": "func", "start": 5161332, "end": 5161480, "name": "AnimatedGameObject::create", "pseudocode": "// \n// AnimatedGameObject::create from 0x4ec174 to 0x4ec208 (148 bytes)\n// \n// 1 xrefs:\n// > GameObject::createWithKey @ 0x45bb4c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:51:08 +0000\n// \n\nEnhancedGameObject *__fastcall AnimatedGameObject::create(AnimatedGameObject *this, int a2)\n{\n  EnhancedGameObject *v3; // r4\n  int v4; // r3\n  int *v5; // r0\n\n  v3 = (EnhancedGameObject *)operator new(0x520u);\n  EnhancedGameObject::EnhancedGameObject(v3);\n  *(_DWORD *)v3 = &off_C9C5E0;\n  *((_DWORD *)v3 + 66) = &off_C9C994;\n  *((_DWORD *)v3 + 70) = &off_C9C9D4;\n  *((_DWORD *)v3 + 317) = &off_C9C9EC;\n  *((_DWORD *)v3 + 318) = &off_C9C9F8;\n  *((_DWORD *)v3 + 319) = 0;\n  *((_DWORD *)v3 + 320) = 0;\n  *((_DWORD *)v3 + 321) = 0;\n  *((_BYTE *)v3 + 1288) = 0;\n  *((_BYTE *)v3 + 1289) = 0;\n  *((_DWORD *)v3 + 323) = 0;\n  *((_DWORD *)v3 + 324) = 0;\n  *((_DWORD *)v3 + 325) = 0;\n  *((_BYTE *)v3 + 1304) = 0;\n  *((_DWORD *)v3 + 327) = 0;\n  if ( AnimatedGameObject::init(v3, (int)this) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    v4 = *(_DWORD *)v3;\n    v5 = (int *)v3;\n    v3 = nullptr;\n    (*(void (__fastcall **)(int *))(v4 + 8))(v5);\n  }\n  return v3;\n}", "assembly": "; \n; AnimatedGameObject::create from 0x4ec174 to 0x4ec208 (148 bytes)\n; \n; 1 xrefs:\n; > GameObject::createWithKey @ 0x45bb4c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:51:08 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x4ec174\nMOV             R5, R0                                                 ; +0x2, 0x4ec176\nMOV.W           R0, #0x520; unsigned int                               ; +0x4, 0x4ec178\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x4ec17c\nMOV             R4, R0                                                 ; +0xc, 0x4ec180\nBL              _ZN18EnhancedGameObjectC2Ev; EnhancedGameObject::EnhancedGameObject(void) ; +0xe, 0x4ec182\nLDR             R3, =(_ZTV18AnimatedGameObject_ptr - 0x4EC190)         ; +0x12, 0x4ec186\nMOV             R1, R5; int                                            ; +0x14, 0x4ec188\nMOV             R0, R4; this                                           ; +0x16, 0x4ec18a\nADD             R3, PC; _ZTV18AnimatedGameObject_ptr                   ; +0x18, 0x4ec18c\nLDR             R3, [R3]; `vtable for'AnimatedGameObject ...           ; +0x1a, 0x4ec18e\nADD.W           R2, R3, #8                                             ; +0x1c, 0x4ec190\nSTR             R2, [R4]                                               ; +0x20, 0x4ec194\nADD.W           R2, R3, #0x3BC                                         ; +0x22, 0x4ec196\nSTR.W           R2, [R4,#0x108]                                        ; +0x26, 0x4ec19a\nADD.W           R2, R3, #0x3FC                                         ; +0x2a, 0x4ec19e\nSTR.W           R2, [R4,#0x118]                                        ; +0x2e, 0x4ec1a2\nADDW            R2, R3, #0x414                                         ; +0x32, 0x4ec1a6\nADD.W           R3, R3, #0x420                                         ; +0x36, 0x4ec1aa\nSTR.W           R2, [R4,#0x4F4]                                        ; +0x3a, 0x4ec1ae\nSTR.W           R3, [R4,#0x4F8]                                        ; +0x3e, 0x4ec1b2\nMOVS            R3, #0                                                 ; +0x42, 0x4ec1b6\nSTR.W           R3, [R4,#0x4FC]                                        ; +0x44, 0x4ec1b8\nSTR.W           R3, [R4,#0x500]                                        ; +0x48, 0x4ec1bc\nSTR.W           R3, [R4,#0x504]                                        ; +0x4c, 0x4ec1c0\nSTRB.W          R3, [R4,#0x508]                                        ; +0x50, 0x4ec1c4\nSTRB.W          R3, [R4,#0x509]                                        ; +0x54, 0x4ec1c8\nSTR.W           R3, [R4,#0x50C]                                        ; +0x58, 0x4ec1cc\nSTR.W           R3, [R4,#0x510]                                        ; +0x5c, 0x4ec1d0\nSTR.W           R3, [R4,#0x514]                                        ; +0x60, 0x4ec1d4\nSTRB.W          R3, [R4,#0x518]                                        ; +0x64, 0x4ec1d8\nSTR.W           R3, [R4,#0x51C]                                        ; +0x68, 0x4ec1dc\nBL              _ZN18AnimatedGameObject4initEi; AnimatedGameObject::init(int) ; +0x6c, 0x4ec1e0\nMOV             R5, R0                                                 ; +0x70, 0x4ec1e4\nCBZ             R0, loc_4EC1FA                                         ; +0x72, 0x4ec1e6\nMOV             R0, R4; this                                           ; +0x74, 0x4ec1e8\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x76, 0x4ec1ea\nB               loc_4EC204                                             ; +0x7a, 0x4ec1ee\nMOV             R0, R4; void *                                         ; +0x7c, 0x4ec1f0\nBL              _ZdlPv; operator delete(void *)                        ; +0x7e, 0x4ec1f2\nBL              __cxa_end_cleanup                                      ; +0x82, 0x4ec1f6\nLDR             R3, [R4]                                               ; +0x86, 0x4ec1fa\nMOV             R0, R4                                                 ; +0x88, 0x4ec1fc\nMOV             R4, R5                                                 ; +0x8a, 0x4ec1fe\nLDR             R3, [R3,#8]                                            ; +0x8c, 0x4ec200\nBLX             R3                                                     ; +0x8e, 0x4ec202\nMOV             R0, R4                                                 ; +0x90, 0x4ec204\nPOP             {R3-R5,PC}                                             ; +0x92, 0x4ec206", "xrefs": ["GameObject::createWithKey @ 0x45bb4c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}