{"type": "func", "start": 4295019692, "end": 4295019828, "name": "ColorChannelSprite::create", "pseudocode": "// \n// ColorChannelSprite::create from 0x10000ccac to 0x10000cd34 (136 bytes)\n// \n// 9 xrefs:\n// > CustomizeObjectLayer::init @ 0x10004e630\n// > CharacterColorPage::createColorMenu @ 0x100129af0\n// > LevelSettingsLayer::init @ 0x1001797a0\n// > LevelSettingsLayer::init @ 0x100179818\n// > LevelSettingsLayer::init @ 0x100179884\n// > LevelSettingsLayer::init @ 0x1001798f0\n// > LevelSettingsLayer::init @ 0x10017995c\n// > LevelSettingsLayer::init @ 0x1001799c8\n// > GJColorSetupLayer::init @ 0x10018df54\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 *__fastcall ColorChannelSprite::create()\n{\n  ColorChannelSprite *v0; // x19\n\n  v0 = (ColorChannelSprite *)operator new(0x270u);\n  cocos2d::CCSprite::CCSprite();\n  v0->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ColorChannelSprite_vtbl *)off_1007632C0;\n  v0->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100763798;\n  v0->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_100763818;\n  v0->m_copyLabel = nullptr;\n  v0->m_blendingLabel = nullptr;\n  v0->m_opacityLabel = nullptr;\n  if ( cocos2d::CCSprite::initWithSpriteFrameName(v0, \"GJ_colorBtn_001.png\") )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    ((void (__fastcall *)(ColorChannelSprite *))v0->~ColorChannelSprite_0)(v0);\n    return nullptr;\n  }\n  return v0;\n}", "assembly": "; \n; ColorChannelSprite::create from 0x10000ccac to 0x10000cd34 (136 bytes)\n; \n; 9 xrefs:\n; > CustomizeObjectLayer::init @ 0x10004e630\n; > CharacterColorPage::createColorMenu @ 0x100129af0\n; > LevelSettingsLayer::init @ 0x1001797a0\n; > LevelSettingsLayer::init @ 0x100179818\n; > LevelSettingsLayer::init @ 0x100179884\n; > LevelSettingsLayer::init @ 0x1001798f0\n; > LevelSettingsLayer::init @ 0x10017995c\n; > LevelSettingsLayer::init @ 0x1001799c8\n; > GJColorSetupLayer::init @ 0x10018df54\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10000ccac\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10000ccb0\nADD             X29, SP, #0x10                                         ; +0x8, 0x10000ccb4\nMOV             W0, #0x270; __sz                                       ; +0xc, 0x10000ccb8\nBL              __Znwm; operator new(ulong)                            ; +0x10, 0x10000ccbc\nMOV             X19, X0                                                ; +0x14, 0x10000ccc0\nBL              cocos2d__CCSprite__CCSprite                            ; +0x18, 0x10000ccc4\nADRL            X8, off_1007632C0                                      ; +0x1c, 0x10000ccc8\nSTR             X8, [X19]                                              ; +0x24, 0x10000ccd0\nADD             X9, X8, #(off_100763798 - 0x1007632C0)                 ; +0x28, 0x10000ccd4\nSTR             X9, [X19,#0x140]                                       ; +0x2c, 0x10000ccd8\nADD             X8, X8, #(off_100763818 - 0x1007632C0)                 ; +0x30, 0x10000ccdc\nSTR             X8, [X19,#0x158]                                       ; +0x34, 0x10000cce0\nSTR             XZR, [X19,#0x258]                                      ; +0x38, 0x10000cce4\nSTR             XZR, [X19,#0x268]                                      ; +0x3c, 0x10000cce8\nSTR             XZR, [X19,#0x260]                                      ; +0x40, 0x10000ccec\nADRL            X1, aGjColorbtn001P; \"GJ_colorBtn_001.png\"             ; +0x44, 0x10000ccf0\nMOV             X0, X19                                                ; +0x4c, 0x10000ccf8\nBL              cocos2d__CCSprite__initWithSpriteFrameName             ; +0x50, 0x10000ccfc\nCBZ             W0, loc_10000CD10                                      ; +0x54, 0x10000cd00\nMOV             X0, X19                                                ; +0x58, 0x10000cd04\nBL              cocos2d__CCObject__autorelease                         ; +0x5c, 0x10000cd08\nB               loc_10000CD24                                          ; +0x60, 0x10000cd0c\nLDR             X8, [X19]                                              ; +0x64, 0x10000cd10\nLDR             X8, [X8,#0x10]                                         ; +0x68, 0x10000cd14\nMOV             X0, X19                                                ; +0x6c, 0x10000cd18\nBLR             X8                                                     ; +0x70, 0x10000cd1c\nMOV             X19, #0                                                ; +0x74, 0x10000cd20\nMOV             X0, X19                                                ; +0x78, 0x10000cd24\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x10000cd28\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x10000cd2c\nRET                                                                    ; +0x84, 0x10000cd30", "xrefs": ["CustomizeObjectLayer::init @ 0x10004e630", "CharacterColorPage::createColorMenu @ 0x100129af0", "LevelSettingsLayer::init @ 0x1001797a0", "LevelSettingsLayer::init @ 0x100179818", "LevelSettingsLayer::init @ 0x100179884", "LevelSettingsLayer::init @ 0x1001798f0", "LevelSettingsLayer::init @ 0x10017995c", "LevelSettingsLayer::init @ 0x1001799c8", "GJColorSetupLayer::init @ 0x10018df54"], "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"}