{"type": "func", "start": 4822096, "end": 4822180, "name": "ColorActionSprite::create", "pseudocode": "// \n// ColorActionSprite::create from 0x499450 to 0x4994a4 (84 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::getColorSprite @ 0x499c70\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\nColorActionSprite *ColorActionSprite::create()\n{\n  ColorActionSprite *v0; // r4\n  ColorActionSprite_vtbl *v1; // r3\n  int *v2; // r0\n\n  v0 = (ColorActionSprite *)operator new(0x120u);\n  cocos2d::CCNode::CCNode(v0);\n  v0->__vftable = (ColorActionSprite_vtbl *)&off_A6A690;\n  v0->m_opacity = 255.0;\n  v0->m_colorID = 0;\n  v0->m_colorAction = nullptr;\n  if ( ColorActionSprite::init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    v1 = v0->__vftable;\n    v2 = (int *)v0;\n    v0 = nullptr;\n    v1->~ColorActionSprite_0((ColorActionSprite *)v2);\n  }\n  return v0;\n}", "assembly": "; \n; ColorActionSprite::create from 0x499450 to 0x4994a4 (84 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::getColorSprite @ 0x499c70\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, 0x499450\nMOV.W           R0, #0x120; unsigned int                               ; +0x2, 0x499452\nBL              _Znwj; operator new(uint)                              ; +0x6, 0x499456\nMOV             R4, R0                                                 ; +0xa, 0x49945a\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0xc, 0x49945c\nLDR             R3, =(_ZTV17ColorActionSprite_ptr - 0x499468)          ; +0x10, 0x499460\nMOV             R0, R4; this                                           ; +0x12, 0x499462\nADD             R3, PC; _ZTV17ColorActionSprite_ptr                    ; +0x14, 0x499464\nLDR             R3, [R3]; `vtable for'ColorActionSprite ...            ; +0x16, 0x499466\nADDS            R3, #8                                                 ; +0x18, 0x499468\nSTR             R3, [R4]                                               ; +0x1a, 0x49946a\nLDR             R3, =0x437F0000                                        ; +0x1c, 0x49946c\nSTR.W           R3, [R4,#0x108]                                        ; +0x1e, 0x49946e\nMOVS            R3, #0                                                 ; +0x22, 0x499472\nSTR.W           R3, [R4,#0x114]                                        ; +0x24, 0x499474\nSTR.W           R3, [R4,#0x11C]                                        ; +0x28, 0x499478\nBL              _ZN17ColorActionSprite4initEv; ColorActionSprite::init(void) ; +0x2c, 0x49947c\nMOV             R5, R0                                                 ; +0x30, 0x499480\nCBZ             R0, loc_499496                                         ; +0x32, 0x499482\nMOV             R0, R4; this                                           ; +0x34, 0x499484\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x36, 0x499486\nB               loc_4994A0                                             ; +0x3a, 0x49948a\nMOV             R0, R4; p                                              ; +0x3c, 0x49948c\nBL              _ZdlPv; operator delete(void *)                        ; +0x3e, 0x49948e\nBL              __cxa_end_cleanup                                      ; +0x42, 0x499492\nLDR             R3, [R4]                                               ; +0x46, 0x499496\nMOV             R0, R4                                                 ; +0x48, 0x499498\nMOV             R4, R5                                                 ; +0x4a, 0x49949a\nLDR             R3, [R3,#8]                                            ; +0x4c, 0x49949c\nBLX             R3                                                     ; +0x4e, 0x49949e\nMOV             R0, R4                                                 ; +0x50, 0x4994a0\nPOP             {R3-R5,PC}                                             ; +0x52, 0x4994a2", "xrefs": ["GJEffectManager::getColorSprite @ 0x499c70"], "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"}