; ; ColorChannelSprite::create from 0x140258930 to 0x1402589ee (190 bytes) ; ; 10 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 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x140258930 sub rsp, 20h ; +0x2, 0x140258932 mov ecx, 270h; Size ; +0x6, 0x140258936 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xb, 0x14025893b mov rbx, rax ; +0x10, 0x140258940 mov [rsp+28h+arg_0], rax ; +0x13, 0x140258943 mov rcx, rax ; +0x18, 0x140258948 call cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x1b, 0x14025894b lea rax, ??_7ColorChannelSprite@@6B@; const ColorChannelSprite::`vftable' ; +0x21, 0x140258951 mov [rbx], rax ; +0x28, 0x140258958 lea rax, ??_7ColorChannelSprite@@6B@_0; const ColorChannelSprite::`vftable' ; +0x2b, 0x14025895b mov [rbx+140h], rax ; +0x32, 0x140258962 lea rax, ??_7ColorChannelSprite@@6B@_1; const ColorChannelSprite::`vftable' ; +0x39, 0x140258969 mov [rbx+158h], rax ; +0x40, 0x140258970 mov qword ptr [rbx+258h], 0 ; +0x47, 0x140258977 mov qword ptr [rbx+260h], 0 ; +0x52, 0x140258982 mov qword ptr [rbx+268h], 0 ; +0x5d, 0x14025898d mov rax, cs:off_1405681D0 ; +0x68, 0x140258998 lea rcx, ColorChannelSprite__init ; +0x6f, 0x14025899f cmp rax, rcx ; +0x76, 0x1402589a6 mov rcx, rbx ; +0x79, 0x1402589a9 jnz short loc_1402589D6 ; +0x7c, 0x1402589ac lea rdx, aGjColorbtn001P; "GJ_colorBtn_001.png" ; +0x7e, 0x1402589ae call cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x85, 0x1402589b5 test al, al ; +0x8b, 0x1402589bb jnz short loc_1402589DC ; +0x8d, 0x1402589bd mov r8, [rbx] ; +0x8f, 0x1402589bf mov edx, 1 ; +0x92, 0x1402589c2 mov rcx, rbx ; +0x97, 0x1402589c7 call qword ptr [r8+8] ; +0x9a, 0x1402589ca xor eax, eax ; +0x9e, 0x1402589ce add rsp, 20h ; +0xa0, 0x1402589d0 pop rbx ; +0xa4, 0x1402589d4 retn ; +0xa5, 0x1402589d5 call rax ; ColorChannelSprite__init ; +0xa6, 0x1402589d6 test al, al ; +0xa8, 0x1402589d8 jz short loc_1402589BF ; +0xaa, 0x1402589da mov rcx, rbx ; +0xac, 0x1402589dc call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xaf, 0x1402589df mov rax, rbx ; +0xb5, 0x1402589e5 add rsp, 20h ; +0xb8, 0x1402589e8 pop rbx ; +0xbc, 0x1402589ec retn ; +0xbd, 0x1402589ed