{"type": "func", "start": 3540952, "end": 3541230, "name": "EnhancedGameObject::create", "pseudocode": "// \n// EnhancedGameObject::create from 0x3607d8 to 0x3608ee (278 bytes)\n// \n// 1 xrefs:\n// > GameObject::createWithKey @ 0x362520\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\nEnhancedGameObject *EnhancedGameObject::create(const char *a1)\n{\n  EnhancedGameObject *v2; // r4\n  EnhancedGameObject_vtbl *v3; // r3\n  int *v4; // r0\n\n  v2 = (EnhancedGameObject *)operator new(0x4F0u);\n  GameObject::GameObject(v2);\n  v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (EnhancedGameObject_vtbl *)&off_A4AFF8;\n  v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A4B39C;\n  v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A4B3DC;\n  v2->m_poweredOn = 0;\n  v2->m_state = 0;\n  v2->m_animationRandomizedStartValue = 0;\n  v2->m_animationStart = 0.0;\n  v2->m_unk540 = 0.0;\n  v2->m_unk544 = 0.0;\n  v2->m_unk548 = 0;\n  v2->m_randomFrameTime = 1.0;\n  v2->m_visible = 0;\n  v2->m_shouldNotHideAnimFreeze = 0;\n  v2->m_usesSpecialAnimation = 0;\n  v2->m_frameTime = 1.0;\n  v2->m_frames = 1;\n  v2->m_hasCustomAnimation = 0;\n  v2->m_hasCustomRotation = 0;\n  v2->m_disableRotation = 0;\n  v2->m_rotationSpeed = 0.0;\n  v2->m_rotationAngle = 0.0;\n  v2->m_rotationDelta = 0.0;\n  v2->m_rotationAnimationSpeed = 0.0;\n  v2->m_animationRandomizedStart = 0;\n  v2->m_animationSpeed = 1.0;\n  v2->m_animationShouldUseSpeed = 0;\n  v2->m_animateOnTrigger = 0;\n  v2->m_disableDelayedLoop = 0;\n  v2->m_disableAnimShine = 0;\n  v2->m_singleFrame = 0;\n  v2->m_animationOffset = 0;\n  v2->m_animationTriggered = 0;\n  v2->m_unkAnimationInt = 0;\n  v2->m_maybeAnimationVariableXInt = 0;\n  v2->m_maybeAnimationVariableYInt = 0;\n  v2->m_animateOnlyWhenActive = 0;\n  v2->m_isNoMultiActivate = 0;\n  v2->m_isMultiActivate = 0;\n  v2->m_activated = 0;\n  v2->m_activatedByPlayer1 = 0;\n  v2->m_activatedByPlayer2 = 0;\n  v2->m_hasUniqueCoin = 0;\n  if ( EnhancedGameObject::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    v3 = v2->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v4 = (int *)v2;\n    v2 = nullptr;\n    v3->~EnhancedGameObject_0((EnhancedGameObject *)v4);\n  }\n  return v2;\n}", "assembly": "; \n; EnhancedGameObject::create from 0x3607d8 to 0x3608ee (278 bytes)\n; \n; 1 xrefs:\n; > GameObject::createWithKey @ 0x362520\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, 0x3607d8\nMOV             R5, R0                                                 ; +0x2, 0x3607da\nMOV.W           R0, #0x4F0; unsigned int                               ; +0x4, 0x3607dc\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x3607e0\nMOV             R4, R0                                                 ; +0xc, 0x3607e4\nBL              _ZN10GameObjectC2Ev; GameObject::GameObject(void)      ; +0xe, 0x3607e6\nLDR             R3, =(_ZTV18EnhancedGameObject_ptr - 0x3607F8)         ; +0x12, 0x3607ea\nADDW            R1, R4, #0x48C                                         ; +0x14, 0x3607ec\nADD.W           R0, R4, #0x4A0                                         ; +0x18, 0x3607f0\nADD             R3, PC; _ZTV18EnhancedGameObject_ptr                   ; +0x1c, 0x3607f4\nLDR             R3, [R3]; `vtable for'EnhancedGameObject ...           ; +0x1e, 0x3607f6\nADD.W           R2, R3, #8                                             ; +0x20, 0x3607f8\nSTR             R2, [R4]                                               ; +0x24, 0x3607fc\nADD.W           R2, R3, #0x3AC                                         ; +0x26, 0x3607fe\nADD.W           R3, R3, #0x3EC                                         ; +0x2a, 0x360802\nSTR.W           R2, [R4,#0x108]                                        ; +0x2e, 0x360806\nMOVS            R2, #0                                                 ; +0x32, 0x36080a\nSTR.W           R3, [R4,#0x118]                                        ; +0x34, 0x36080c\nMOVS            R3, #0                                                 ; +0x38, 0x360810\nSTRB.W          R3, [R4,#0x487]                                        ; +0x3a, 0x360812\nSTR.W           R3, [R4,#0x488]                                        ; +0x3e, 0x360816\nSTR             R2, [R1]                                               ; +0x42, 0x36081a\nADD.W           R1, R4, #0x490                                         ; +0x44, 0x36081c\nSTR             R2, [R1]                                               ; +0x48, 0x360820\nADDW            R1, R4, #0x494                                         ; +0x4a, 0x360822\nSTR             R2, [R1]                                               ; +0x4e, 0x360826\nADD.W           R1, R4, #0x498                                         ; +0x50, 0x360828\nSTR             R2, [R1]                                               ; +0x54, 0x36082c\nMOV.W           R1, #0x3F800000                                        ; +0x56, 0x36082e\nSTRB.W          R3, [R4,#0x49C]                                        ; +0x5a, 0x360832\nSTR             R1, [R0]                                               ; +0x5e, 0x360836\nADD.W           R0, R4, #0x4A8                                         ; +0x60, 0x360838\nSTRB.W          R3, [R4,#0x4A4]                                        ; +0x64, 0x36083c\nSTRB.W          R3, [R4,#0x4A5]                                        ; +0x68, 0x360840\nSTRB.W          R3, [R4,#0x4A6]                                        ; +0x6c, 0x360844\nSTR             R1, [R0]                                               ; +0x70, 0x360848\nMOVS            R0, #1                                                 ; +0x72, 0x36084a\nSTRH.W          R0, [R4,#0x4AC]                                        ; +0x74, 0x36084c\nADDW            R0, R4, #0x4B4                                         ; +0x78, 0x360850\nSTRB.W          R3, [R4,#0x4AE]                                        ; +0x7c, 0x360854\nSTRB.W          R3, [R4,#0x4AF]                                        ; +0x80, 0x360858\nSTRB.W          R3, [R4,#0x4B0]                                        ; +0x84, 0x36085c\nSTR             R2, [R0]                                               ; +0x88, 0x360860\nADD.W           R0, R4, #0x4B8                                         ; +0x8a, 0x360862\nSTR             R2, [R0]                                               ; +0x8e, 0x360866\nADDW            R0, R4, #0x4BC                                         ; +0x90, 0x360868\nSTR             R2, [R0]                                               ; +0x94, 0x36086c\nADD.W           R0, R4, #0x4C0                                         ; +0x96, 0x36086e\nSTR             R2, [R0]                                               ; +0x9a, 0x360872\nADD.W           R2, R4, #0x4C8                                         ; +0x9c, 0x360874\nSTRB.W          R3, [R4,#0x4C4]                                        ; +0xa0, 0x360878\nMOV             R0, R4; this                                           ; +0xa4, 0x36087c\nSTR             R1, [R2]                                               ; +0xa6, 0x36087e\nMOV             R1, R5; char *                                         ; +0xa8, 0x360880\nSTRB.W          R3, [R4,#0x4CC]                                        ; +0xaa, 0x360882\nSTRB.W          R3, [R4,#0x4CD]                                        ; +0xae, 0x360886\nSTRB.W          R3, [R4,#0x4CE]                                        ; +0xb2, 0x36088a\nSTRB.W          R3, [R4,#0x4CF]                                        ; +0xb6, 0x36088e\nSTR.W           R3, [R4,#0x4D0]                                        ; +0xba, 0x360892\nSTRB.W          R3, [R4,#0x4D4]                                        ; +0xbe, 0x360896\nSTRB.W          R3, [R4,#0x4D5]                                        ; +0xc2, 0x36089a\nSTR.W           R3, [R4,#0x4D8]                                        ; +0xc6, 0x36089e\nSTR.W           R3, [R4,#0x4DC]                                        ; +0xca, 0x3608a2\nSTR.W           R3, [R4,#0x4E0]                                        ; +0xce, 0x3608a6\nSTRB.W          R3, [R4,#0x4E4]                                        ; +0xd2, 0x3608aa\nSTRB.W          R3, [R4,#0x4E5]                                        ; +0xd6, 0x3608ae\nSTRB.W          R3, [R4,#0x4E6]                                        ; +0xda, 0x3608b2\nSTRB.W          R3, [R4,#0x4E7]                                        ; +0xde, 0x3608b6\nSTRB.W          R3, [R4,#0x4E8]                                        ; +0xe2, 0x3608ba\nSTRB.W          R3, [R4,#0x4E9]                                        ; +0xe6, 0x3608be\nSTRB.W          R3, [R4,#0x4EA]                                        ; +0xea, 0x3608c2\nBL              _ZN18EnhancedGameObject4initEPKc; EnhancedGameObject::init(char const*) ; +0xee, 0x3608c6\nMOV             R5, R0                                                 ; +0xf2, 0x3608ca\nCBZ             R0, loc_3608E0                                         ; +0xf4, 0x3608cc\nMOV             R0, R4; this                                           ; +0xf6, 0x3608ce\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xf8, 0x3608d0\nB               loc_3608EA                                             ; +0xfc, 0x3608d4\nMOV             R0, R4; p                                              ; +0xfe, 0x3608d6\nBL              _ZdlPv; operator delete(void *)                        ; +0x100, 0x3608d8\nBL              __cxa_end_cleanup                                      ; +0x104, 0x3608dc\nLDR             R3, [R4]                                               ; +0x108, 0x3608e0\nMOV             R0, R4                                                 ; +0x10a, 0x3608e2\nMOV             R4, R5                                                 ; +0x10c, 0x3608e4\nLDR             R3, [R3,#8]                                            ; +0x10e, 0x3608e6\nBLX             R3                                                     ; +0x110, 0x3608e8\nMOV             R0, R4                                                 ; +0x112, 0x3608ea\nPOP             {R3-R5,PC}                                             ; +0x114, 0x3608ec", "xrefs": ["GameObject::createWithKey @ 0x362520"], "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"}