{"type": "func", "start": 6037700, "end": 6037800, "name": "ColorChannelSprite::create", "pseudocode": "// \n// ColorChannelSprite::create from 0x5c20c4 to 0x5c2128 (100 bytes)\n// \n// 9 xrefs:\n// > CustomizeObjectLayer::init @ 0x58042c\n// > GJColorSetupLayer::init @ 0x5c1a36\n// > CharacterColorPage::createColorMenu @ 0x69d482\n// > LevelSettingsLayer::init @ 0x6ab7ca\n// > LevelSettingsLayer::init @ 0x6ab820\n// > LevelSettingsLayer::init @ 0x6ab8b2\n// > LevelSettingsLayer::init @ 0x6ab900\n// > LevelSettingsLayer::init @ 0x6ab94e\n// > LevelSettingsLayer::init @ 0x6ab99c\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:53:50 +0000\n// \n\ncocos2d::CCSprite *__fastcall ColorChannelSprite::create(ColorChannelSprite *this)\n{\n  cocos2d::CCSprite *v1; // r4\n  int v2; // r3\n  cocos2d::CCSprite *v3; // r0\n\n  v1 = (cocos2d::CCSprite *)operator new(0x208u);\n  cocos2d::CCSprite::CCSprite(v1);\n  *(_DWORD *)v1 = &off_CB5680;\n  *((_DWORD *)v1 + 66) = &off_CB58F4;\n  *((_DWORD *)v1 + 70) = &off_CB5934;\n  *((_DWORD *)v1 + 127) = 0;\n  *((_DWORD *)v1 + 128) = 0;\n  *((_DWORD *)v1 + 129) = 0;\n  if ( ColorChannelSprite::init(v1) )\n  {\n    cocos2d::CCObject::autorelease(v1);\n  }\n  else\n  {\n    v2 = *(_DWORD *)v1;\n    v3 = v1;\n    v1 = nullptr;\n    (*(void (__fastcall **)(cocos2d::CCSprite *))(v2 + 8))(v3);\n  }\n  return v1;\n}", "assembly": "; \n; ColorChannelSprite::create from 0x5c20c4 to 0x5c2128 (100 bytes)\n; \n; 9 xrefs:\n; > CustomizeObjectLayer::init @ 0x58042c\n; > GJColorSetupLayer::init @ 0x5c1a36\n; > CharacterColorPage::createColorMenu @ 0x69d482\n; > LevelSettingsLayer::init @ 0x6ab7ca\n; > LevelSettingsLayer::init @ 0x6ab820\n; > LevelSettingsLayer::init @ 0x6ab8b2\n; > LevelSettingsLayer::init @ 0x6ab900\n; > LevelSettingsLayer::init @ 0x6ab94e\n; > LevelSettingsLayer::init @ 0x6ab99c\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:53:50 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x5c20c4\nMOV.W           R0, #0x208; unsigned int                               ; +0x2, 0x5c20c6\nBL              _Znwj; operator new(uint)                              ; +0x6, 0x5c20ca\nMOV             R4, R0                                                 ; +0xa, 0x5c20ce\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0xc, 0x5c20d0\nLDR             R3, =(_ZTV18ColorChannelSprite_ptr - 0x5C20DC)         ; +0x10, 0x5c20d4\nMOV             R0, R4; this                                           ; +0x12, 0x5c20d6\nADD             R3, PC; _ZTV18ColorChannelSprite_ptr                   ; +0x14, 0x5c20d8\nLDR             R3, [R3]; `vtable for'ColorChannelSprite ...           ; +0x16, 0x5c20da\nADD.W           R2, R3, #8                                             ; +0x18, 0x5c20dc\nSTR             R2, [R4]                                               ; +0x1c, 0x5c20e0\nADD.W           R2, R3, #0x27C                                         ; +0x1e, 0x5c20e2\nADD.W           R3, R3, #0x2BC                                         ; +0x22, 0x5c20e6\nSTR.W           R2, [R4,#0x108]                                        ; +0x26, 0x5c20ea\nSTR.W           R3, [R4,#0x118]                                        ; +0x2a, 0x5c20ee\nMOVS            R3, #0                                                 ; +0x2e, 0x5c20f2\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x30, 0x5c20f4\nSTR.W           R3, [R4,#0x200]                                        ; +0x34, 0x5c20f8\nSTR.W           R3, [R4,#0x204]                                        ; +0x38, 0x5c20fc\nBL              _ZN18ColorChannelSprite4initEv; ColorChannelSprite::init(void) ; +0x3c, 0x5c2100\nMOV             R5, R0                                                 ; +0x40, 0x5c2104\nCBZ             R0, loc_5C211A                                         ; +0x42, 0x5c2106\nMOV             R0, R4; this                                           ; +0x44, 0x5c2108\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x46, 0x5c210a\nB               loc_5C2124                                             ; +0x4a, 0x5c210e\nMOV             R0, R4; void *                                         ; +0x4c, 0x5c2110\nBL              _ZdlPv; operator delete(void *)                        ; +0x4e, 0x5c2112\nBL              __cxa_end_cleanup                                      ; +0x52, 0x5c2116\nLDR             R3, [R4]                                               ; +0x56, 0x5c211a\nMOV             R0, R4                                                 ; +0x58, 0x5c211c\nMOV             R4, R5                                                 ; +0x5a, 0x5c211e\nLDR             R3, [R3,#8]                                            ; +0x5c, 0x5c2120\nBLX             R3                                                     ; +0x5e, 0x5c2122\nMOV             R0, R4                                                 ; +0x60, 0x5c2124\nPOP             {R3-R5,PC}                                             ; +0x62, 0x5c2126", "xrefs": ["CustomizeObjectLayer::init @ 0x58042c", "GJColorSetupLayer::init @ 0x5c1a36", "CharacterColorPage::createColorMenu @ 0x69d482", "LevelSettingsLayer::init @ 0x6ab7ca", "LevelSettingsLayer::init @ 0x6ab820", "LevelSettingsLayer::init @ 0x6ab8b2", "LevelSettingsLayer::init @ 0x6ab900", "LevelSettingsLayer::init @ 0x6ab94e", "LevelSettingsLayer::init @ 0x6ab99c"], "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"}