{"type": "func", "start": 5372259712, "end": 5372259903, "name": "ColorChannelSprite::create", "pseudocode": "// \n// ColorChannelSprite::create from 0x140362d80 to 0x140362e3f (191 bytes)\n// \n// 10 xrefs:\n// > CharacterColorPage::createColorMenu @ 0x1400a18f2\n// > CustomizeObjectLayer::init @ 0x140140af4\n// > GJColorSetupLayer::init @ 0x14035eedd\n// > LevelSettingsLayer::init @ 0x1404580b6\n// > LevelSettingsLayer::init @ 0x140458137\n// > LevelSettingsLayer::init @ 0x1404581b4\n// > LevelSettingsLayer::init @ 0x140458230\n// > LevelSettingsLayer::init @ 0x1404582ac\n// > LevelSettingsLayer::init @ 0x140458328\n// > <???> @ 0x1409214ac\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:30:53 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCSprite *ColorChannelSprite::create()\n{\n  cocos2d::CCSprite *v0; // rbx\n\n  v0 = (cocos2d::CCSprite *)operator new(0x270u);\n  cocos2d::CCSprite::CCSprite(v0);\n  *(_QWORD *)v0 = &ColorChannelSprite::`vftable';\n  *((_QWORD *)v0 + 40) = &ColorChannelSprite::`vftable';\n  *((_QWORD *)v0 + 43) = &ColorChannelSprite::`vftable';\n  *((_QWORD *)v0 + 75) = 0;\n  *((_QWORD *)v0 + 76) = 0;\n  *((_QWORD *)v0 + 77) = 0;\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 **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; ColorChannelSprite::create from 0x140362d80 to 0x140362e3f (191 bytes)\n; \n; 10 xrefs:\n; > CharacterColorPage::createColorMenu @ 0x1400a18f2\n; > CustomizeObjectLayer::init @ 0x140140af4\n; > GJColorSetupLayer::init @ 0x14035eedd\n; > LevelSettingsLayer::init @ 0x1404580b6\n; > LevelSettingsLayer::init @ 0x140458137\n; > LevelSettingsLayer::init @ 0x1404581b4\n; > LevelSettingsLayer::init @ 0x140458230\n; > LevelSettingsLayer::init @ 0x1404582ac\n; > LevelSettingsLayer::init @ 0x140458328\n; > <???> @ 0x1409214ac\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:30:53 +0000\n; \npush    rbx                                                            ; +0x0, 0x140362d80\nsub     rsp, 20h                                                       ; +0x2, 0x140362d82\nmov     ecx, 270h; Size                                                ; +0x6, 0x140362d86\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x140362d8b\nmov     rbx, rax                                                       ; +0x10, 0x140362d90\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x140362d93\nmov     rcx, rax                                                       ; +0x18, 0x140362d98\ncall    cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x1b, 0x140362d9b\nlea     rax, ??_7ColorChannelSprite@@6B@; const ColorChannelSprite::`vftable' ; +0x21, 0x140362da1\nmov     [rbx], rax                                                     ; +0x28, 0x140362da8\nlea     rax, ??_7ColorChannelSprite@@6B@_0; const ColorChannelSprite::`vftable' ; +0x2b, 0x140362dab\nmov     [rbx+140h], rax                                                ; +0x32, 0x140362db2\nlea     rax, ??_7ColorChannelSprite@@6B@_1; const ColorChannelSprite::`vftable' ; +0x39, 0x140362db9\nmov     [rbx+158h], rax                                                ; +0x40, 0x140362dc0\nmov     qword ptr [rbx+258h], 0                                        ; +0x47, 0x140362dc7\nmov     qword ptr [rbx+260h], 0                                        ; +0x52, 0x140362dd2\nmov     qword ptr [rbx+268h], 0                                        ; +0x5d, 0x140362ddd\nmov     rax, cs:off_14076D5B0                                          ; +0x68, 0x140362de8\nlea     rcx, ColorChannelSprite__init                                  ; +0x6f, 0x140362def\ncmp     rax, rcx                                                       ; +0x76, 0x140362df6\nmov     rcx, rbx                                                       ; +0x79, 0x140362df9\njnz     short loc_140362E0D                                            ; +0x7c, 0x140362dfc\nlea     rdx, aGjColorbtn001P; \"GJ_colorBtn_001.png\"                    ; +0x7e, 0x140362dfe\ncall    cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x85, 0x140362e05\njmp     short loc_140362E0F                                            ; +0x8b, 0x140362e0b\ncall    rax ; ColorChannelSprite__init                                 ; +0x8d, 0x140362e0d\ntest    al, al                                                         ; +0x8f, 0x140362e0f\njz      short loc_140362E25                                            ; +0x91, 0x140362e11\nmov     rcx, rbx                                                       ; +0x93, 0x140362e13\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x96, 0x140362e16\nmov     rax, rbx                                                       ; +0x9c, 0x140362e1c\nadd     rsp, 20h                                                       ; +0x9f, 0x140362e1f\npop     rbx                                                            ; +0xa3, 0x140362e23\nretn                                                                   ; +0xa4, 0x140362e24\nmov     rcx, [rbx]                                                     ; +0xa5, 0x140362e25\nmov     r8, [rcx+8]                                                    ; +0xa8, 0x140362e28\nmov     edx, 1                                                         ; +0xac, 0x140362e2c\nmov     rcx, rbx                                                       ; +0xb1, 0x140362e31\ncall    r8                                                             ; +0xb4, 0x140362e34\nxor     eax, eax                                                       ; +0xb7, 0x140362e37\nadd     rsp, 20h                                                       ; +0xb9, 0x140362e39\npop     rbx                                                            ; +0xbd, 0x140362e3d\nretn                                                                   ; +0xbe, 0x140362e3e", "xrefs": ["CharacterColorPage::createColorMenu @ 0x1400a18f2", "CustomizeObjectLayer::init @ 0x140140af4", "GJColorSetupLayer::init @ 0x14035eedd", "LevelSettingsLayer::init @ 0x1404580b6", "LevelSettingsLayer::init @ 0x140458137", "LevelSettingsLayer::init @ 0x1404581b4", "LevelSettingsLayer::init @ 0x140458230", "LevelSettingsLayer::init @ 0x1404582ac", "LevelSettingsLayer::init @ 0x140458328", "<???> @ 0x1409214ac"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}