; ; ColorSelectPopup::onToggleTintMode from 0x1401299a0 to 0x140129a5d (189 bytes) ; ; 3 xrefs: ; > ColorSelectPopup::onDefault @ 0x140129f31 ; > ColorSelectPopup::init @ 0x140127ad7 ; > @ 0x140916a6c ; ; 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 11:27:00 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x1401299a0 push rdi ; +0x5, 0x1401299a5 sub rsp, 20h ; +0x6, 0x1401299a6 mov edx, [rcx+460h] ; +0xa, 0x1401299aa xor edi, edi ; +0x10, 0x1401299b0 cmp edx, 1 ; +0x12, 0x1401299b2 mov eax, edi ; +0x15, 0x1401299b5 mov rbx, rcx ; +0x17, 0x1401299b7 setnz al ; +0x1a, 0x1401299ba mov [rcx+460h], eax ; +0x1d, 0x1401299bd mov rcx, [rcx+2A8h] ; +0x23, 0x1401299c3 test rcx, rcx ; +0x2a, 0x1401299ca jz short loc_1401299E6 ; +0x2d, 0x1401299cd cmp edx, 1 ; +0x2f, 0x1401299cf setnz al ; +0x32, 0x1401299d2 mov [rcx+5DFh], al ; +0x35, 0x1401299d5 mov rbx, [rsp+28h+arg_0] ; +0x3b, 0x1401299db add rsp, 20h ; +0x40, 0x1401299e0 pop rdi ; +0x44, 0x1401299e4 retn ; +0x45, 0x1401299e5 mov rcx, [rbx+2B0h] ; +0x46, 0x1401299e6 test rcx, rcx ; +0x4d, 0x1401299ed jz short loc_140129A3D ; +0x50, 0x1401299f0 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x52, 0x1401299f2 test eax, eax ; +0x58, 0x1401299f8 jz short loc_140129A52 ; +0x5a, 0x1401299fa nop dword ptr [rax+00h] ; +0x5c, 0x1401299fc mov rcx, [rbx+2B0h] ; +0x60, 0x140129a00 mov edx, edi ; +0x67, 0x140129a07 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x140129a09 cmp dword ptr [rbx+460h], 0 ; +0x6f, 0x140129a0f setnz cl ; +0x76, 0x140129a16 inc edi ; +0x79, 0x140129a19 mov [rax+5DFh], cl ; +0x7b, 0x140129a1b mov rcx, [rbx+2B0h] ; +0x81, 0x140129a21 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x88, 0x140129a28 cmp edi, eax ; +0x8e, 0x140129a2e jb short loc_140129A00 ; +0x90, 0x140129a30 mov rbx, [rsp+28h+arg_0] ; +0x92, 0x140129a32 add rsp, 20h ; +0x97, 0x140129a37 pop rdi ; +0x9b, 0x140129a3b retn ; +0x9c, 0x140129a3c mov rcx, [rbx+468h] ; +0x9d, 0x140129a3d test rcx, rcx ; +0xa4, 0x140129a44 jz short loc_140129A52 ; +0xa7, 0x140129a47 cmp edx, 1 ; +0xa9, 0x140129a49 setnz al ; +0xac, 0x140129a4c mov [rcx+54h], al ; +0xaf, 0x140129a4f mov rbx, [rsp+28h+arg_0] ; +0xb2, 0x140129a52 add rsp, 20h ; +0xb7, 0x140129a57 pop rdi ; +0xbb, 0x140129a5b retn ; +0xbc, 0x140129a5c