{"type": "func", "start": 4820788, "end": 4820888, "name": "ColorChannelSprite::create", "pseudocode": "// \n// ColorChannelSprite::create from 0x498f34 to 0x498f98 (100 bytes)\n// \n// 9 xrefs:\n// > CustomizeObjectLayer::init @ 0x463180\n// > GJColorSetupLayer::init @ 0x49839e\n// > CharacterColorPage::createColorMenu @ 0x56523a\n// > LevelSettingsLayer::init @ 0x571530\n// > LevelSettingsLayer::init @ 0x571582\n// > LevelSettingsLayer::init @ 0x571612\n// > LevelSettingsLayer::init @ 0x57165e\n// > LevelSettingsLayer::init @ 0x5716aa\n// > LevelSettingsLayer::init @ 0x5716f6\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\nColorChannelSprite *ColorChannelSprite::create()\n{\n  ColorChannelSprite *v0; // r4\n  ColorChannelSprite_vtbl *v1; // r3\n  ColorChannelSprite *v2; // r0\n\n  v0 = (ColorChannelSprite *)operator new(0x208u);\n  cocos2d::CCSprite::CCSprite(v0);\n  v0->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ColorChannelSprite_vtbl *)&off_A6A3C8;\n  v0->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A6A634;\n  v0->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A6A674;\n  v0->m_copyLabel = nullptr;\n  v0->m_opacityLabel = nullptr;\n  v0->m_blendingLabel = nullptr;\n  if ( ColorChannelSprite::init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    v1 = v0->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v2 = v0;\n    v0 = nullptr;\n    v1->~ColorChannelSprite_0(v2);\n  }\n  return v0;\n}", "assembly": "; \n; ColorChannelSprite::create from 0x498f34 to 0x498f98 (100 bytes)\n; \n; 9 xrefs:\n; > CustomizeObjectLayer::init @ 0x463180\n; > GJColorSetupLayer::init @ 0x49839e\n; > CharacterColorPage::createColorMenu @ 0x56523a\n; > LevelSettingsLayer::init @ 0x571530\n; > LevelSettingsLayer::init @ 0x571582\n; > LevelSettingsLayer::init @ 0x571612\n; > LevelSettingsLayer::init @ 0x57165e\n; > LevelSettingsLayer::init @ 0x5716aa\n; > LevelSettingsLayer::init @ 0x5716f6\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, 0x498f34\nMOV.W           R0, #0x208; unsigned int                               ; +0x2, 0x498f36\nBL              _Znwj; operator new(uint)                              ; +0x6, 0x498f3a\nMOV             R4, R0                                                 ; +0xa, 0x498f3e\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0xc, 0x498f40\nLDR             R3, =(_ZTV18ColorChannelSprite_ptr - 0x498F4C)         ; +0x10, 0x498f44\nMOV             R0, R4; this                                           ; +0x12, 0x498f46\nADD             R3, PC; _ZTV18ColorChannelSprite_ptr                   ; +0x14, 0x498f48\nLDR             R3, [R3]; `vtable for'ColorChannelSprite ...           ; +0x16, 0x498f4a\nADD.W           R2, R3, #8                                             ; +0x18, 0x498f4c\nSTR             R2, [R4]                                               ; +0x1c, 0x498f50\nADD.W           R2, R3, #0x274                                         ; +0x1e, 0x498f52\nADD.W           R3, R3, #0x2B4                                         ; +0x22, 0x498f56\nSTR.W           R2, [R4,#0x108]                                        ; +0x26, 0x498f5a\nSTR.W           R3, [R4,#0x118]                                        ; +0x2a, 0x498f5e\nMOVS            R3, #0                                                 ; +0x2e, 0x498f62\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x30, 0x498f64\nSTR.W           R3, [R4,#0x200]                                        ; +0x34, 0x498f68\nSTR.W           R3, [R4,#0x204]                                        ; +0x38, 0x498f6c\nBL              _ZN18ColorChannelSprite4initEv; ColorChannelSprite::init(void) ; +0x3c, 0x498f70\nMOV             R5, R0                                                 ; +0x40, 0x498f74\nCBZ             R0, loc_498F8A                                         ; +0x42, 0x498f76\nMOV             R0, R4; this                                           ; +0x44, 0x498f78\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x46, 0x498f7a\nB               loc_498F94                                             ; +0x4a, 0x498f7e\nMOV             R0, R4; p                                              ; +0x4c, 0x498f80\nBL              _ZdlPv; operator delete(void *)                        ; +0x4e, 0x498f82\nBL              __cxa_end_cleanup                                      ; +0x52, 0x498f86\nLDR             R3, [R4]                                               ; +0x56, 0x498f8a\nMOV             R0, R4                                                 ; +0x58, 0x498f8c\nMOV             R4, R5                                                 ; +0x5a, 0x498f8e\nLDR             R3, [R3,#8]                                            ; +0x5c, 0x498f90\nBLX             R3                                                     ; +0x5e, 0x498f92\nMOV             R0, R4                                                 ; +0x60, 0x498f94\nPOP             {R3-R5,PC}                                             ; +0x62, 0x498f96", "xrefs": ["CustomizeObjectLayer::init @ 0x463180", "GJColorSetupLayer::init @ 0x49839e", "CharacterColorPage::createColorMenu @ 0x56523a", "LevelSettingsLayer::init @ 0x571530", "LevelSettingsLayer::init @ 0x571582", "LevelSettingsLayer::init @ 0x571612", "LevelSettingsLayer::init @ 0x57165e", "LevelSettingsLayer::init @ 0x5716aa", "LevelSettingsLayer::init @ 0x5716f6"], "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"}