; ; CustomizeObjectLayer::onNextColorChannel from 0x1400a8ee0 to 0x1400a8fef (271 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::init @ 0x1400a77ee ; > @ 0x1406c77f4 ; ; 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 ; mov [rsp+arg_8], rbx ; +0x0, 0x1400a8ee0 mov [rsp+arg_10], rsi ; +0x5, 0x1400a8ee5 push rdi ; +0xa, 0x1400a8eea sub rsp, 20h ; +0xb, 0x1400a8eeb mov rdi, rcx ; +0xf, 0x1400a8eef mov rcx, cs:qword_1406C2ED8 ; +0x12, 0x1400a8ef2 test rcx, rcx ; +0x19, 0x1400a8ef9 jnz short loc_1400A8F2D ; +0x1c, 0x1400a8efc mov ecx, 668h; Size ; +0x1e, 0x1400a8efe call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x23, 0x1400a8f03 mov [rsp+28h+arg_0], rax ; +0x28, 0x1400a8f08 mov rcx, rax ; +0x2d, 0x1400a8f0d call sub_14017AB00 ; +0x30, 0x1400a8f10 nop ; +0x35, 0x1400a8f15 mov cs:qword_1406C2ED8, rax ; +0x36, 0x1400a8f16 mov rdx, [rax] ; +0x3d, 0x1400a8f1d mov rcx, rax ; +0x40, 0x1400a8f20 call qword ptr [rdx+48h] ; +0x43, 0x1400a8f23 mov rcx, cs:qword_1406C2ED8 ; +0x46, 0x1400a8f26 mov rcx, [rcx+210h] ; +0x4d, 0x1400a8f2d call LevelEditorLayer__getNextColorChannel ; +0x54, 0x1400a8f34 mov ebx, eax ; +0x59, 0x1400a8f39 mov esi, eax ; +0x5b, 0x1400a8f3b lea ecx, [rax-0Ah] ; +0x5d, 0x1400a8f3d cmp ecx, 3DDh ; +0x60, 0x1400a8f40 ja short loc_1400A8F69 ; +0x66, 0x1400a8f46 mov [rdi+2D4h], eax ; +0x68, 0x1400a8f48 mov esi, 3F0h ; +0x6e, 0x1400a8f4e mov byte ptr [rdi+382h], 1 ; +0x73, 0x1400a8f53 mov rcx, rdi ; +0x7a, 0x1400a8f5a call CustomizeObjectLayer__updateCustomColorLabels ; +0x7d, 0x1400a8f5d mov byte ptr [rdi+382h], 0 ; +0x82, 0x1400a8f62 mov edx, ebx ; +0x89, 0x1400a8f69 mov rcx, rdi ; +0x8b, 0x1400a8f6b call CustomizeObjectLayer__updateSelected ; +0x8e, 0x1400a8f6e mov edx, esi ; +0x93, 0x1400a8f73 mov rcx, rdi ; +0x95, 0x1400a8f75 call CustomizeObjectLayer__getButtonByTag ; +0x98, 0x1400a8f78 mov rdx, rax ; +0x9d, 0x1400a8f7d mov rcx, rdi ; +0xa0, 0x1400a8f80 call CustomizeObjectLayer__highlightSelected ; +0xa3, 0x1400a8f83 mov rcx, rdi ; +0xa8, 0x1400a8f88 call CustomizeObjectLayer__updateColorSprite ; +0xab, 0x1400a8f8b cmp ebx, 3E8h ; +0xb0, 0x1400a8f90 jl short loc_1400A8FA4 ; +0xb6, 0x1400a8f96 mov ecx, ebx ; +0xb8, 0x1400a8f98 call GJSpecialColorSelect__textForColorIdx ; +0xba, 0x1400a8f9a mov rdx, rax ; +0xbf, 0x1400a8f9f jmp short loc_1400A8FCC ; +0xc2, 0x1400a8fa2 test ebx, ebx ; +0xc4, 0x1400a8fa4 jle short loc_1400A8FC5 ; +0xc6, 0x1400a8fa6 mov edx, ebx ; +0xc8, 0x1400a8fa8 lea rcx, aI_11; "%i" ; +0xca, 0x1400a8faa call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xd1, 0x1400a8fb1 mov rcx, rax ; +0xd7, 0x1400a8fb7 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xda, 0x1400a8fba mov rdx, rax ; +0xe0, 0x1400a8fc0 jmp short loc_1400A8FCC ; +0xe3, 0x1400a8fc3 lea rdx, asc_140518984; " " ; +0xe5, 0x1400a8fc5 mov rcx, [rdi+310h] ; +0xec, 0x1400a8fcc add rcx, 168h ; +0xf3, 0x1400a8fd3 mov rax, [rcx] ; +0xfa, 0x1400a8fda mov rbx, [rsp+28h+arg_8] ; +0xfd, 0x1400a8fdd mov rsi, [rsp+28h+arg_10] ; +0x102, 0x1400a8fe2 add rsp, 20h ; +0x107, 0x1400a8fe7 pop rdi ; +0x10b, 0x1400a8feb jmp qword ptr [rax] ; +0x10c, 0x1400a8fec