; ; CustomizeObjectLayer::updateSelected from 0x1400a9d70 to 0x1400a9ed5 (357 bytes) ; ; 8 xrefs: ; > CustomizeObjectLayer::colorSetupClosed @ 0x1400a83c0 ; > CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f6e ; > CustomizeObjectLayer::onUpdateCustomColor @ 0x1400a960a ; > CustomizeObjectLayer::textChanged @ 0x1400a9925 ; > CustomizeObjectLayer::onSelectColor @ 0x1400a9cdb ; > @ 0x14066abe0 ; > @ 0x14066abf0 ; > @ 0x1406c78a8 ; ; 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, 0x1400a9d70 mov [rsp+arg_10], rsi ; +0x5, 0x1400a9d75 push rdi ; +0xa, 0x1400a9d7a push r14 ; +0xb, 0x1400a9d7b push r15 ; +0xd, 0x1400a9d7d sub rsp, 20h ; +0xf, 0x1400a9d7f mov r14, rcx ; +0x13, 0x1400a9d83 mov edi, edx ; +0x16, 0x1400a9d86 mov rcx, [rcx+298h] ; +0x18, 0x1400a9d88 test rcx, rcx ; +0x1f, 0x1400a9d8f jz short loc_1400A9E02 ; +0x22, 0x1400a9d92 mov edx, [r14+2D0h] ; +0x24, 0x1400a9d94 call GameObject__getRelativeSpriteColor ; +0x2b, 0x1400a9d9b mov rcx, rax ; +0x30, 0x1400a9da0 test rax, rax ; +0x33, 0x1400a9da3 jz loc_1400A9EC1 ; +0x36, 0x1400a9da6 xor esi, esi ; +0x3c, 0x1400a9dac mov ebx, 44Dh ; +0x3e, 0x1400a9dae test edi, edi ; +0x43, 0x1400a9db3 jz short loc_1400A9DCE ; +0x45, 0x1400a9db5 cmovs edi, esi ; +0x47, 0x1400a9db7 cmp edi, ebx ; +0x4a, 0x1400a9dba jg short loc_1400A9DED ; +0x4c, 0x1400a9dbc test edi, edi ; +0x4e, 0x1400a9dbe mov ebx, edi ; +0x50, 0x1400a9dc0 mov r15d, 3F3h ; +0x52, 0x1400a9dc2 cmovs ebx, r15d ; +0x58, 0x1400a9dc8 jmp short loc_1400A9DED ; +0x5c, 0x1400a9dcc mov eax, [rax+4] ; +0x5e, 0x1400a9dce test eax, eax ; +0x61, 0x1400a9dd1 cmovs eax, esi ; +0x63, 0x1400a9dd3 cmp eax, ebx ; +0x66, 0x1400a9dd6 jg short loc_1400A9DE8 ; +0x68, 0x1400a9dd8 test eax, eax ; +0x6a, 0x1400a9dda mov ebx, eax ; +0x6c, 0x1400a9ddc mov r15d, 3F3h ; +0x6e, 0x1400a9dde cmovs ebx, r15d ; +0x74, 0x1400a9de4 mov [rcx+4], ebx ; +0x78, 0x1400a9de8 mov ebx, esi ; +0x7b, 0x1400a9deb mov [rcx], ebx ; +0x7d, 0x1400a9ded mov rax, [r14+298h] ; +0x7f, 0x1400a9def mov byte ptr [rax+484h], 1 ; +0x86, 0x1400a9df6 jmp loc_1400A9EC1 ; +0x8d, 0x1400a9dfd mov rcx, [r14+2A0h] ; +0x92, 0x1400a9e02 test rcx, rcx ; +0x99, 0x1400a9e09 jz loc_1400A9EC1 ; +0x9c, 0x1400a9e0c xor esi, esi ; +0xa2, 0x1400a9e12 mov [rsp+38h+arg_0], rbp ; +0xa4, 0x1400a9e14 mov ebp, esi ; +0xa9, 0x1400a9e19 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xab, 0x1400a9e1b test eax, eax ; +0xb1, 0x1400a9e21 jz loc_1400A9EBC ; +0xb3, 0x1400a9e23 mov ebx, 44Dh ; +0xb9, 0x1400a9e29 lea r15d, [rbx-5Ah] ; +0xbe, 0x1400a9e2e nop dword ptr [rax+00h] ; +0xc2, 0x1400a9e32 nop word ptr [rax+rax+00000000h] ; +0xc6, 0x1400a9e36 mov rcx, [r14+2A0h] ; +0xd0, 0x1400a9e40 mov edx, ebp ; +0xd7, 0x1400a9e47 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xd9, 0x1400a9e49 mov edx, [r14+2D0h] ; +0xdf, 0x1400a9e4f mov rcx, rax ; +0xe6, 0x1400a9e56 mov r10, rax ; +0xe9, 0x1400a9e59 call GameObject__getRelativeSpriteColor ; +0xec, 0x1400a9e5c mov r9, rax ; +0xf1, 0x1400a9e61 test rax, rax ; +0xf4, 0x1400a9e64 jz short loc_1400A9EA9 ; +0xf7, 0x1400a9e67 test edi, edi ; +0xf9, 0x1400a9e69 jz short loc_1400A9E82 ; +0xfb, 0x1400a9e6b mov ecx, edi ; +0xfd, 0x1400a9e6d cmovs ecx, esi ; +0xff, 0x1400a9e6f cmp ecx, ebx ; +0x102, 0x1400a9e72 jle short loc_1400A9E7A ; +0x104, 0x1400a9e74 mov ecx, ebx ; +0x106, 0x1400a9e76 jmp short loc_1400A9E9E ; +0x108, 0x1400a9e78 test ecx, ecx ; +0x10a, 0x1400a9e7a cmovs ecx, r15d ; +0x10c, 0x1400a9e7c jmp short loc_1400A9E9E ; +0x110, 0x1400a9e80 mov eax, [rax+4] ; +0x112, 0x1400a9e82 test eax, eax ; +0x115, 0x1400a9e85 cmovs eax, esi ; +0x117, 0x1400a9e87 cmp eax, ebx ; +0x11a, 0x1400a9e8a jle short loc_1400A9E92 ; +0x11c, 0x1400a9e8c mov eax, ebx ; +0x11e, 0x1400a9e8e jmp short loc_1400A9E98 ; +0x120, 0x1400a9e90 test eax, eax ; +0x122, 0x1400a9e92 cmovs eax, r15d ; +0x124, 0x1400a9e94 mov [r9+4], eax ; +0x128, 0x1400a9e98 mov ecx, esi ; +0x12c, 0x1400a9e9c mov [r9], ecx ; +0x12e, 0x1400a9e9e mov byte ptr [r10+484h], 1 ; +0x131, 0x1400a9ea1 mov rcx, [r14+2A0h] ; +0x139, 0x1400a9ea9 inc ebp ; +0x140, 0x1400a9eb0 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x142, 0x1400a9eb2 cmp ebp, eax ; +0x148, 0x1400a9eb8 jb short loc_1400A9E40 ; +0x14a, 0x1400a9eba mov rbp, [rsp+38h+arg_0] ; +0x14c, 0x1400a9ebc mov rbx, [rsp+38h+arg_8] ; +0x151, 0x1400a9ec1 mov rsi, [rsp+38h+arg_10] ; +0x156, 0x1400a9ec6 add rsp, 20h ; +0x15b, 0x1400a9ecb pop r15 ; +0x15f, 0x1400a9ecf pop r14 ; +0x161, 0x1400a9ed1 pop rdi ; +0x163, 0x1400a9ed3 retn ; +0x164, 0x1400a9ed4