; ; CustomizeObjectLayer::getActiveMode from 0x1400a93c0 to 0x1400a9546 (390 bytes) ; ; 11 xrefs: ; > CustomizeObjectLayer::onLiveEdit @ 0x1400a7f29 ; > CustomizeObjectLayer::onPaste @ 0x1400a8153 ; > CustomizeObjectLayer::onEditColor @ 0x1400a848f ; > CustomizeObjectLayer::updateColorSprite @ 0x1400a8558 ; > CustomizeObjectLayer::onSelectMode @ 0x1400a918e ; > CustomizeObjectLayer::toggleVisible @ 0x1400a935e ; > CustomizeObjectLayer::updateCurrentSelection @ 0x1400a955b ; > CustomizeObjectLayer::onSelectColor @ 0x1400a9d04 ; > @ 0x14066ab24 ; > @ 0x14066ab34 ; > @ 0x1406c7818 ; ; 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_10], rbp ; +0x0, 0x1400a93c0 mov [rsp+arg_18], rdi ; +0x5, 0x1400a93c5 push r14 ; +0xa, 0x1400a93ca sub rsp, 20h ; +0xc, 0x1400a93cc mov rdi, rcx ; +0x10, 0x1400a93d0 xor r14d, r14d ; +0x13, 0x1400a93d3 mov rcx, [rcx+298h] ; +0x16, 0x1400a93d6 movzx ebp, dl ; +0x1d, 0x1400a93dd test rcx, rcx ; +0x20, 0x1400a93e0 jz short loc_1400A9429 ; +0x23, 0x1400a93e3 mov edx, [rdi+2D0h] ; +0x25, 0x1400a93e5 call GameObject__getRelativeSpriteColor ; +0x2b, 0x1400a93eb test rax, rax ; +0x30, 0x1400a93f0 jz short loc_1400A9415 ; +0x33, 0x1400a93f3 mov ecx, [rax+4] ; +0x35, 0x1400a93f5 mov eax, [rax] ; +0x38, 0x1400a93f8 cmp ecx, eax ; +0x3a, 0x1400a93fa jz short loc_1400A9402 ; +0x3c, 0x1400a93fc test eax, eax ; +0x3e, 0x1400a93fe jnz short loc_1400A9404 ; +0x40, 0x1400a9400 mov eax, ecx ; +0x42, 0x1400a9402 test bpl, bpl ; +0x44, 0x1400a9404 jnz loc_1400A9535 ; +0x47, 0x1400a9407 cmp ecx, eax ; +0x4d, 0x1400a940d jnz loc_1400A9535 ; +0x4f, 0x1400a940f mov eax, r14d ; +0x55, 0x1400a9415 mov rbp, [rsp+28h+arg_10] ; +0x58, 0x1400a9418 mov rdi, [rsp+28h+arg_18] ; +0x5d, 0x1400a941d add rsp, 20h ; +0x62, 0x1400a9422 pop r14 ; +0x66, 0x1400a9426 retn ; +0x68, 0x1400a9428 mov rcx, [rdi+2A0h] ; +0x69, 0x1400a9429 xor bpl, 1 ; +0x70, 0x1400a9430 mov [rsp+28h+arg_0], rbx ; +0x74, 0x1400a9434 mov ebx, 0FFFFFFFFh ; +0x79, 0x1400a9439 mov [rsp+28h+arg_8], rsi ; +0x7e, 0x1400a943e mov esi, r14d ; +0x83, 0x1400a9443 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x86, 0x1400a9446 test eax, eax ; +0x8c, 0x1400a944c jz loc_1400A9522 ; +0x8e, 0x1400a944e nop dword ptr [rax+00h] ; +0x94, 0x1400a9454 nop dword ptr [rax+rax+00000000h] ; +0x98, 0x1400a9458 mov rcx, [rdi+2A0h] ; +0xa0, 0x1400a9460 mov edx, esi ; +0xa7, 0x1400a9467 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa9, 0x1400a9469 mov rcx, rax ; +0xaf, 0x1400a946f movzx eax, word ptr [rax+418h] ; +0xb2, 0x1400a9472 test ax, ax ; +0xb9, 0x1400a9479 jnz short loc_1400A9487 ; +0xbc, 0x1400a947c movzx eax, byte ptr [rcx+514h] ; +0xbe, 0x1400a947e jmp short loc_1400A948E ; +0xc5, 0x1400a9485 cmp ax, 1 ; +0xc7, 0x1400a9487 setz al ; +0xcb, 0x1400a948b test al, al ; +0xce, 0x1400a948e jnz short loc_1400A94B5 ; +0xd0, 0x1400a9490 cmp [rcx+380h], r14 ; +0xd2, 0x1400a9492 jnz short loc_1400A94B5 ; +0xd9, 0x1400a9499 mov rax, [rcx+450h] ; +0xdb, 0x1400a949b mov edx, [rax+4] ; +0xe2, 0x1400a94a2 cmp edx, 3ECh ; +0xe5, 0x1400a94a5 jz short loc_1400A94B5 ; +0xeb, 0x1400a94ab test edx, edx ; +0xed, 0x1400a94ad jz short loc_1400A94B5 ; +0xef, 0x1400a94af mov al, 1 ; +0xf1, 0x1400a94b1 jmp short loc_1400A94B7 ; +0xf3, 0x1400a94b3 xor al, al ; +0xf5, 0x1400a94b5 cmp dword ptr [rdi+2D0h], 2 ; +0xf7, 0x1400a94b7 jnz short loc_1400A94CD ; +0xfe, 0x1400a94be test al, al ; +0x100, 0x1400a94c0 jnz short loc_1400A94D1 ; +0x102, 0x1400a94c2 mov rax, [rcx+458h] ; +0x104, 0x1400a94c4 jmp short loc_1400A94D8 ; +0x10b, 0x1400a94cb test al, al ; +0x10d, 0x1400a94cd jnz short loc_1400A9504 ; +0x10f, 0x1400a94cf mov rax, [rcx+450h] ; +0x111, 0x1400a94d1 test rax, rax ; +0x118, 0x1400a94d8 jz short loc_1400A9504 ; +0x11b, 0x1400a94db mov ecx, [rax+4] ; +0x11d, 0x1400a94dd mov eax, [rax] ; +0x120, 0x1400a94e0 cmp ecx, eax ; +0x122, 0x1400a94e2 jz short loc_1400A94EA ; +0x124, 0x1400a94e4 test eax, eax ; +0x126, 0x1400a94e6 jnz short loc_1400A94EC ; +0x128, 0x1400a94e8 mov eax, ecx ; +0x12a, 0x1400a94ea test bpl, bpl ; +0x12c, 0x1400a94ec jz short loc_1400A94F7 ; +0x12f, 0x1400a94ef cmp eax, ecx ; +0x131, 0x1400a94f1 setz bpl ; +0x133, 0x1400a94f3 cmp ebx, 0FFFFFFFFh ; +0x137, 0x1400a94f7 jnz short loc_1400A9500 ; +0x13a, 0x1400a94fa mov ebx, eax ; +0x13c, 0x1400a94fc jmp short loc_1400A9504 ; +0x13e, 0x1400a94fe cmp ebx, eax ; +0x140, 0x1400a9500 jnz short loc_1400A951D ; +0x142, 0x1400a9502 mov rcx, [rdi+2A0h] ; +0x144, 0x1400a9504 inc esi ; +0x14b, 0x1400a950b call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x14d, 0x1400a950d cmp esi, eax ; +0x153, 0x1400a9513 jb loc_1400A9460 ; +0x155, 0x1400a9515 jmp short loc_1400A9522 ; +0x15b, 0x1400a951b mov ebx, 0FFFFFFFFh ; +0x15d, 0x1400a951d mov rsi, [rsp+28h+arg_8] ; +0x162, 0x1400a9522 test bpl, bpl ; +0x167, 0x1400a9527 cmovnz ebx, r14d ; +0x16a, 0x1400a952a mov eax, ebx ; +0x16e, 0x1400a952e mov rbx, [rsp+28h+arg_0] ; +0x170, 0x1400a9530 mov rbp, [rsp+28h+arg_10] ; +0x175, 0x1400a9535 mov rdi, [rsp+28h+arg_18] ; +0x17a, 0x1400a953a add rsp, 20h ; +0x17f, 0x1400a953f pop r14 ; +0x183, 0x1400a9543 retn ; +0x185, 0x1400a9545