; ; CustomizeObjectLayer::colorSetupClosed from 0x1001dade0 to 0x1001daee9 (265 bytes) ; ; 2 xrefs: ; > sub_1001DB230 @ 0x1001db23c ; > @ 0x100add9f0 ; ; 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:26 +0000 ; push rbp ; +0x0, 0x1001dade0 mov rbp, rsp ; +0x1, 0x1001dade1 push r15 ; +0x4, 0x1001dade4 push r14 ; +0x6, 0x1001dade6 push r13 ; +0x8, 0x1001dade8 push r12 ; +0xa, 0x1001dadea push rbx ; +0xc, 0x1001dadec push rax; char ; +0xd, 0x1001daded mov r14d, esi ; +0xe, 0x1001dadee mov rbx, rdi ; +0x11, 0x1001dadf1 call CustomizeObjectLayer__updateSelected ; +0x14, 0x1001dadf4 lea eax, [r14-0Ah] ; +0x19, 0x1001dadf9 mov r15d, r14d ; +0x1d, 0x1001dadfd cmp eax, 3DDh ; +0x20, 0x1001dae00 ja short loc_1001DAE2A ; +0x25, 0x1001dae05 mov [rbx+2ECh], r14d ; +0x27, 0x1001dae07 mov byte ptr [rbx+39Ah], 1 ; +0x2e, 0x1001dae0e mov rdi, rbx ; +0x35, 0x1001dae15 call CustomizeObjectLayer__updateCustomColorLabels ; +0x38, 0x1001dae18 mov byte ptr [rbx+39Ah], 0 ; +0x3d, 0x1001dae1d mov r15d, 3F0h ; +0x44, 0x1001dae24 mov rdi, [rbx+2C0h] ; +0x4a, 0x1001dae2a call sub_1007FEF90 ; +0x51, 0x1001dae31 xor esi, esi ; +0x56, 0x1001dae36 test eax, eax ; +0x58, 0x1001dae38 jz short loc_1001DAE7B ; +0x5a, 0x1001dae3a xor r12d, r12d ; +0x5c, 0x1001dae3c nop ; +0x5f, 0x1001dae3f mov rdi, [rbx+2C0h] ; +0x60, 0x1001dae40 mov esi, r12d ; +0x67, 0x1001dae47 call sub_1007FEFE0 ; +0x6a, 0x1001dae4a mov r13, rax ; +0x6f, 0x1001dae4f mov rax, [rax] ; +0x72, 0x1001dae52 mov rdi, r13 ; +0x75, 0x1001dae55 call qword ptr [rax+40h] ; +0x78, 0x1001dae58 cmp eax, r15d ; +0x7b, 0x1001dae5b jz short loc_1001DAE78 ; +0x7e, 0x1001dae5e inc r12d ; +0x80, 0x1001dae60 mov rdi, [rbx+2C0h] ; +0x83, 0x1001dae63 call sub_1007FEF90 ; +0x8a, 0x1001dae6a cmp r12d, eax ; +0x8f, 0x1001dae6f jb short loc_1001DAE40 ; +0x92, 0x1001dae72 xor esi, esi ; +0x94, 0x1001dae74 jmp short loc_1001DAE7B ; +0x96, 0x1001dae76 mov rsi, r13 ; +0x98, 0x1001dae78 mov rdi, rbx ; +0x9b, 0x1001dae7b call CustomizeObjectLayer__highlightSelected ; +0x9e, 0x1001dae7e mov rdi, rbx ; +0xa3, 0x1001dae83 call CustomizeObjectLayer__updateColorSprite ; +0xa6, 0x1001dae86 cmp r14d, 3E8h ; +0xab, 0x1001dae8b jl short loc_1001DAE9E ; +0xb2, 0x1001dae92 mov edi, r14d ; +0xb4, 0x1001dae94 call GJSpecialColorSelect__textForColorIdx ; +0xb7, 0x1001dae97 jmp short loc_1001DAEBC ; +0xbc, 0x1001dae9c test r14d, r14d ; +0xbe, 0x1001dae9e jle short loc_1001DAEE0 ; +0xc1, 0x1001daea1 lea rdi, aI_14; "%i" ; +0xc3, 0x1001daea3 mov esi, r14d ; +0xca, 0x1001daeaa xor eax, eax ; +0xcd, 0x1001daead call sub_10088E820 ; +0xcf, 0x1001daeaf mov rdi, rax ; +0xd4, 0x1001daeb4 call cocos2d__CCString__getCString ; +0xd7, 0x1001daeb7 mov rsi, rax ; +0xdc, 0x1001daebc mov rdi, [rbx+328h] ; +0xdf, 0x1001daebf mov rax, [rdi] ; +0xe6, 0x1001daec6 mov rax, [rax+3A0h] ; +0xe9, 0x1001daec9 add rsp, 8 ; +0xf0, 0x1001daed0 pop rbx ; +0xf4, 0x1001daed4 pop r12 ; +0xf5, 0x1001daed5 pop r13 ; +0xf7, 0x1001daed7 pop r14 ; +0xf9, 0x1001daed9 pop r15 ; +0xfb, 0x1001daedb pop rbp ; +0xfd, 0x1001daedd jmp rax ; +0xfe, 0x1001daede lea rsi, asc_100A41844; " " ; +0x100, 0x1001daee0 jmp short loc_1001DAEBF ; +0x107, 0x1001daee7