{"type": "func", "start": 5371169072, "end": 5371169262, "name": "ColorChannelSprite::create", "pseudocode": "// \n// ColorChannelSprite::create from 0x140258930 to 0x1402589ee (190 bytes)\n// \n// 10 xrefs:\n// > CharacterColorPage::createColorMenu @ 0x140089082\n// > CustomizeObjectLayer::init @ 0x1400a6aaf\n// > GJColorSetupLayer::init @ 0x1402563f7\n// > LevelSettingsLayer::init @ 0x14031ef81\n// > LevelSettingsLayer::init @ 0x14031eff6\n// > LevelSettingsLayer::init @ 0x14031f067\n// > LevelSettingsLayer::init @ 0x14031f0d8\n// > LevelSettingsLayer::init @ 0x14031f149\n// > LevelSettingsLayer::init @ 0x14031f1ba\n// > <???> @ 0x1406cfb40\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\n// Hidden C++ exception states: #wind=1\nColorChannelSprite *ColorChannelSprite::create()\n{\n  ColorChannelSprite *v0; // rbx\n\n  v0 = (ColorChannelSprite *)operator new(0x270u);\n  cocos2d::CCSprite::CCSprite(v0);\n  v0->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ColorChannelSprite_vtbl *)&ColorChannelSprite::`vftable';\n  v0->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&ColorChannelSprite::`vftable';\n  v0->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&ColorChannelSprite::`vftable';\n  v0->m_copyLabel = nullptr;\n  v0->m_opacityLabel = nullptr;\n  v0->m_blendingLabel = nullptr;\n  if ( cocos2d::CCSprite::initWithSpriteFrameName(v0, \"GJ_colorBtn_001.png\") )\n  {\n    cocos2d::CCObject::autorelease(v0);\n    return v0;\n  }\n  else\n  {\n    ((void (__fastcall *)(ColorChannelSprite *, __int64))v0->~ColorChannelSprite)(v0, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; ColorChannelSprite::create from 0x140258930 to 0x1402589ee (190 bytes)\n; \n; 10 xrefs:\n; > CharacterColorPage::createColorMenu @ 0x140089082\n; > CustomizeObjectLayer::init @ 0x1400a6aaf\n; > GJColorSetupLayer::init @ 0x1402563f7\n; > LevelSettingsLayer::init @ 0x14031ef81\n; > LevelSettingsLayer::init @ 0x14031eff6\n; > LevelSettingsLayer::init @ 0x14031f067\n; > LevelSettingsLayer::init @ 0x14031f0d8\n; > LevelSettingsLayer::init @ 0x14031f149\n; > LevelSettingsLayer::init @ 0x14031f1ba\n; > <???> @ 0x1406cfb40\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    rbx                                                            ; +0x0, 0x140258930\nsub     rsp, 20h                                                       ; +0x2, 0x140258932\nmov     ecx, 270h; Size                                                ; +0x6, 0x140258936\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x14025893b\nmov     rbx, rax                                                       ; +0x10, 0x140258940\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x140258943\nmov     rcx, rax                                                       ; +0x18, 0x140258948\ncall    cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x1b, 0x14025894b\nlea     rax, ??_7ColorChannelSprite@@6B@; const ColorChannelSprite::`vftable' ; +0x21, 0x140258951\nmov     [rbx], rax                                                     ; +0x28, 0x140258958\nlea     rax, ??_7ColorChannelSprite@@6B@_0; const ColorChannelSprite::`vftable' ; +0x2b, 0x14025895b\nmov     [rbx+140h], rax                                                ; +0x32, 0x140258962\nlea     rax, ??_7ColorChannelSprite@@6B@_1; const ColorChannelSprite::`vftable' ; +0x39, 0x140258969\nmov     [rbx+158h], rax                                                ; +0x40, 0x140258970\nmov     qword ptr [rbx+258h], 0                                        ; +0x47, 0x140258977\nmov     qword ptr [rbx+260h], 0                                        ; +0x52, 0x140258982\nmov     qword ptr [rbx+268h], 0                                        ; +0x5d, 0x14025898d\nmov     rax, cs:off_1405681D0                                          ; +0x68, 0x140258998\nlea     rcx, ColorChannelSprite__init                                  ; +0x6f, 0x14025899f\ncmp     rax, rcx                                                       ; +0x76, 0x1402589a6\nmov     rcx, rbx                                                       ; +0x79, 0x1402589a9\njnz     short loc_1402589D6                                            ; +0x7c, 0x1402589ac\nlea     rdx, aGjColorbtn001P; \"GJ_colorBtn_001.png\"                    ; +0x7e, 0x1402589ae\ncall    cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x85, 0x1402589b5\ntest    al, al                                                         ; +0x8b, 0x1402589bb\njnz     short loc_1402589DC                                            ; +0x8d, 0x1402589bd\nmov     r8, [rbx]                                                      ; +0x8f, 0x1402589bf\nmov     edx, 1                                                         ; +0x92, 0x1402589c2\nmov     rcx, rbx                                                       ; +0x97, 0x1402589c7\ncall    qword ptr [r8+8]                                               ; +0x9a, 0x1402589ca\nxor     eax, eax                                                       ; +0x9e, 0x1402589ce\nadd     rsp, 20h                                                       ; +0xa0, 0x1402589d0\npop     rbx                                                            ; +0xa4, 0x1402589d4\nretn                                                                   ; +0xa5, 0x1402589d5\ncall    rax ; ColorChannelSprite__init                                 ; +0xa6, 0x1402589d6\ntest    al, al                                                         ; +0xa8, 0x1402589d8\njz      short loc_1402589BF                                            ; +0xaa, 0x1402589da\nmov     rcx, rbx                                                       ; +0xac, 0x1402589dc\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xaf, 0x1402589df\nmov     rax, rbx                                                       ; +0xb5, 0x1402589e5\nadd     rsp, 20h                                                       ; +0xb8, 0x1402589e8\npop     rbx                                                            ; +0xbc, 0x1402589ec\nretn                                                                   ; +0xbd, 0x1402589ed", "xrefs": ["CharacterColorPage::createColorMenu @ 0x140089082", "CustomizeObjectLayer::init @ 0x1400a6aaf", "GJColorSetupLayer::init @ 0x1402563f7", "LevelSettingsLayer::init @ 0x14031ef81", "LevelSettingsLayer::init @ 0x14031eff6", "LevelSettingsLayer::init @ 0x14031f067", "LevelSettingsLayer::init @ 0x14031f0d8", "LevelSettingsLayer::init @ 0x14031f149", "LevelSettingsLayer::init @ 0x14031f1ba", "<???> @ 0x1406cfb40"], "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"}