; ; CustomizeObjectLayer::onUpdateCustomColor from 0x1400a95b0 to 0x1400a9677 (199 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::init @ 0x1400a68b1 ; > @ 0x1406c7848 ; ; 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, 0x1400a95b0 sub rsp, 20h ; +0x2, 0x1400a95b2 mov byte ptr [rcx+382h], 1 ; +0x6, 0x1400a95b6 mov rbx, rcx ; +0xd, 0x1400a95bd mov rax, [rdx] ; +0x10, 0x1400a95c0 mov rcx, rdx ; +0x13, 0x1400a95c3 call qword ptr [rax+38h] ; +0x16, 0x1400a95c6 mov edx, [rbx+2D4h] ; +0x19, 0x1400a95c9 lea r8d, [rdx-1] ; +0x1f, 0x1400a95cf inc edx ; +0x23, 0x1400a95d3 cmp eax, 1 ; +0x25, 0x1400a95d5 cmovnz edx, r8d ; +0x28, 0x1400a95d8 cmp edx, 0Ah ; +0x2c, 0x1400a95dc jge short loc_1400A95E8 ; +0x2f, 0x1400a95df mov edx, 0Ah ; +0x31, 0x1400a95e1 jmp short loc_1400A95F1 ; +0x36, 0x1400a95e6 mov eax, 3E7h ; +0x38, 0x1400a95e8 cmp edx, eax ; +0x3d, 0x1400a95ed jg short loc_1400A95F3 ; +0x3f, 0x1400a95ef mov eax, edx ; +0x41, 0x1400a95f1 mov rcx, rbx ; +0x43, 0x1400a95f3 mov [rbx+2D4h], eax ; +0x46, 0x1400a95f6 call CustomizeObjectLayer__updateCustomColorLabels ; +0x4c, 0x1400a95fc mov edx, [rbx+2D4h] ; +0x51, 0x1400a9601 mov rcx, rbx ; +0x57, 0x1400a9607 call CustomizeObjectLayer__updateSelected ; +0x5a, 0x1400a960a mov rcx, rbx ; +0x5f, 0x1400a960f mov byte ptr [rbx+382h], 0 ; +0x62, 0x1400a9612 call CustomizeObjectLayer__updateColorSprite ; +0x69, 0x1400a9619 mov edx, [rbx+2D4h] ; +0x6e, 0x1400a961e cmp edx, 3E8h ; +0x74, 0x1400a9624 jl short loc_1400A9638 ; +0x7a, 0x1400a962a mov ecx, edx ; +0x7c, 0x1400a962c call GJSpecialColorSelect__textForColorIdx ; +0x7e, 0x1400a962e mov rdx, rax ; +0x83, 0x1400a9633 jmp short loc_1400A965E ; +0x86, 0x1400a9636 test edx, edx ; +0x88, 0x1400a9638 jle short loc_1400A9657 ; +0x8a, 0x1400a963a lea rcx, aI_11; "%i" ; +0x8c, 0x1400a963c call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x93, 0x1400a9643 mov rcx, rax ; +0x99, 0x1400a9649 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x9c, 0x1400a964c mov rdx, rax ; +0xa2, 0x1400a9652 jmp short loc_1400A965E ; +0xa5, 0x1400a9655 lea rdx, asc_140518984; " " ; +0xa7, 0x1400a9657 mov rcx, [rbx+310h] ; +0xae, 0x1400a965e add rcx, 168h ; +0xb5, 0x1400a9665 mov rax, [rcx] ; +0xbc, 0x1400a966c add rsp, 20h ; +0xbf, 0x1400a966f pop rbx ; +0xc3, 0x1400a9673 jmp qword ptr [rax] ; +0xc4, 0x1400a9674