; ; CustomizeObjectLayer::onUpdateCustomColor from 0x1001d9fd0 to 0x1001da096 (198 bytes) ; ; 1 xrefs: ; > CustomizeObjectLayer::init @ 0x1001d8596 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:26:25 +0000 ; push rbp ; +0x0, 0x1001d9fd0 mov rbp, rsp ; +0x1, 0x1001d9fd1 push rbx ; +0x4, 0x1001d9fd4 push rax; char ; +0x5, 0x1001d9fd5 mov rbx, rdi ; +0x6, 0x1001d9fd6 mov byte ptr [rdi+39Ah], 1 ; +0x9, 0x1001d9fd9 mov rax, [rsi] ; +0x10, 0x1001d9fe0 mov rdi, rsi ; +0x13, 0x1001d9fe3 call qword ptr [rax+40h] ; +0x16, 0x1001d9fe6 xor ecx, ecx ; +0x19, 0x1001d9fe9 cmp eax, 1 ; +0x1b, 0x1001d9feb setz cl ; +0x1e, 0x1001d9fee mov eax, [rbx+2ECh] ; +0x21, 0x1001d9ff1 lea eax, [rax+rcx*2] ; +0x27, 0x1001d9ff7 dec eax ; +0x2a, 0x1001d9ffa cmp eax, 0Bh ; +0x2c, 0x1001d9ffc mov ecx, 0Ah ; +0x2f, 0x1001d9fff cmovge ecx, eax ; +0x34, 0x1001da004 cmp ecx, 3E7h ; +0x37, 0x1001da007 mov eax, 3E7h ; +0x3d, 0x1001da00d cmovl eax, ecx ; +0x42, 0x1001da012 mov [rbx+2ECh], eax ; +0x45, 0x1001da015 mov rdi, rbx ; +0x4b, 0x1001da01b call CustomizeObjectLayer__updateCustomColorLabels ; +0x4e, 0x1001da01e mov esi, [rbx+2ECh] ; +0x53, 0x1001da023 mov rdi, rbx ; +0x59, 0x1001da029 call CustomizeObjectLayer__updateSelected ; +0x5c, 0x1001da02c mov byte ptr [rbx+39Ah], 0 ; +0x61, 0x1001da031 mov rdi, rbx ; +0x68, 0x1001da038 call CustomizeObjectLayer__updateColorSprite ; +0x6b, 0x1001da03b mov esi, [rbx+2ECh] ; +0x70, 0x1001da040 cmp esi, 3E8h ; +0x76, 0x1001da046 jl short loc_1001DA057 ; +0x7c, 0x1001da04c mov edi, esi ; +0x7e, 0x1001da04e call GJSpecialColorSelect__textForColorIdx ; +0x80, 0x1001da050 jmp short loc_1001DA071 ; +0x85, 0x1001da055 test esi, esi ; +0x87, 0x1001da057 jle short loc_1001DA08D ; +0x89, 0x1001da059 lea rdi, aI_14; "%i" ; +0x8b, 0x1001da05b xor eax, eax ; +0x92, 0x1001da062 call sub_10088E820 ; +0x94, 0x1001da064 mov rdi, rax ; +0x99, 0x1001da069 call cocos2d__CCString__getCString ; +0x9c, 0x1001da06c mov rsi, rax ; +0xa1, 0x1001da071 mov rdi, [rbx+328h] ; +0xa4, 0x1001da074 mov rax, [rdi] ; +0xab, 0x1001da07b mov rax, [rax+3A0h] ; +0xae, 0x1001da07e add rsp, 8 ; +0xb5, 0x1001da085 pop rbx ; +0xb9, 0x1001da089 pop rbp ; +0xba, 0x1001da08a jmp rax ; +0xbb, 0x1001da08b lea rsi, asc_100A41844; " " ; +0xbd, 0x1001da08d jmp short loc_1001DA074 ; +0xc4, 0x1001da094