; ; CustomizeObjectLayer::onSelectColor from 0x1400a9cb0 to 0x1400a9d62 (178 bytes) ; ; 6 xrefs: ; > CustomizeObjectLayer::init @ 0x1400a5faa ; > CustomizeObjectLayer::init @ 0x1400a6089 ; > CustomizeObjectLayer::init @ 0x1400a6168 ; > CustomizeObjectLayer::init @ 0x1400a624d ; > CustomizeObjectLayer::init @ 0x1400a6462 ; > @ 0x1406c789c ; ; 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_0], rbx ; +0x0, 0x1400a9cb0 push rdi ; +0x5, 0x1400a9cb5 sub rsp, 20h ; +0x6, 0x1400a9cb6 mov rax, [rdx] ; +0xa, 0x1400a9cba mov rbx, rcx ; +0xd, 0x1400a9cbd mov rcx, rdx ; +0x10, 0x1400a9cc0 mov rdi, rdx ; +0x13, 0x1400a9cc3 call qword ptr [rax+38h] ; +0x16, 0x1400a9cc6 cmp eax, 3F0h ; +0x19, 0x1400a9cc9 jnz short loc_1400A9CD6 ; +0x1e, 0x1400a9cce mov eax, [rbx+2D4h] ; +0x20, 0x1400a9cd0 mov edx, eax ; +0x26, 0x1400a9cd6 mov rcx, rbx ; +0x28, 0x1400a9cd8 call CustomizeObjectLayer__updateSelected ; +0x2b, 0x1400a9cdb mov rax, [rdi] ; +0x30, 0x1400a9ce0 mov rcx, rdi ; +0x33, 0x1400a9ce3 call qword ptr [rax+3A8h] ; +0x36, 0x1400a9ce6 mov rdx, rax ; +0x3c, 0x1400a9cec mov rcx, rbx ; +0x3f, 0x1400a9cef call CustomizeObjectLayer__highlightSelected ; +0x42, 0x1400a9cf2 mov rcx, rbx ; +0x47, 0x1400a9cf7 call CustomizeObjectLayer__updateColorSprite ; +0x4a, 0x1400a9cfa mov dl, 1 ; +0x4f, 0x1400a9cff mov rcx, rbx ; +0x51, 0x1400a9d01 call CustomizeObjectLayer__getActiveMode ; +0x54, 0x1400a9d04 cmp eax, 3E8h ; +0x59, 0x1400a9d09 jl short loc_1400A9D1C ; +0x5e, 0x1400a9d0e mov ecx, eax ; +0x60, 0x1400a9d10 call GJSpecialColorSelect__textForColorIdx ; +0x62, 0x1400a9d12 mov rdx, rax ; +0x67, 0x1400a9d17 jmp short loc_1400A9D44 ; +0x6a, 0x1400a9d1a test eax, eax ; +0x6c, 0x1400a9d1c jle short loc_1400A9D3D ; +0x6e, 0x1400a9d1e mov edx, eax ; +0x70, 0x1400a9d20 lea rcx, aI_11; "%i" ; +0x72, 0x1400a9d22 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x79, 0x1400a9d29 mov rcx, rax ; +0x7f, 0x1400a9d2f call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x82, 0x1400a9d32 mov rdx, rax ; +0x88, 0x1400a9d38 jmp short loc_1400A9D44 ; +0x8b, 0x1400a9d3b lea rdx, asc_140518984; " " ; +0x8d, 0x1400a9d3d mov rcx, [rbx+310h] ; +0x94, 0x1400a9d44 add rcx, 168h ; +0x9b, 0x1400a9d4b mov rax, [rcx] ; +0xa2, 0x1400a9d52 mov rbx, [rsp+28h+arg_0] ; +0xa5, 0x1400a9d55 add rsp, 20h ; +0xaa, 0x1400a9d5a pop rdi ; +0xae, 0x1400a9d5e jmp qword ptr [rax] ; +0xaf, 0x1400a9d5f