; ; ColorSelectPopup::onToggleTintMode from 0x140090a70 to 0x140090b2d (189 bytes) ; ; 3 xrefs: ; > ColorSelectPopup::onDefault @ 0x140090ffb ; > ColorSelectPopup::init @ 0x14008ec03 ; > @ 0x1406c6f30 ; ; 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_0], rbx ; +0x0, 0x140090a70 push rdi ; +0x5, 0x140090a75 sub rsp, 20h ; +0x6, 0x140090a76 mov edx, [rcx+420h] ; +0xa, 0x140090a7a xor edi, edi ; +0x10, 0x140090a80 cmp edx, 1 ; +0x12, 0x140090a82 mov eax, edi ; +0x15, 0x140090a85 mov rbx, rcx ; +0x17, 0x140090a87 setnz al ; +0x1a, 0x140090a8a mov [rcx+420h], eax ; +0x1d, 0x140090a8d mov rcx, [rcx+290h] ; +0x23, 0x140090a93 test rcx, rcx ; +0x2a, 0x140090a9a jz short loc_140090AB6 ; +0x2d, 0x140090a9d cmp edx, 1 ; +0x2f, 0x140090a9f setnz al ; +0x32, 0x140090aa2 mov [rcx+5DFh], al ; +0x35, 0x140090aa5 mov rbx, [rsp+28h+arg_0] ; +0x3b, 0x140090aab add rsp, 20h ; +0x40, 0x140090ab0 pop rdi ; +0x44, 0x140090ab4 retn ; +0x45, 0x140090ab5 mov rcx, [rbx+298h] ; +0x46, 0x140090ab6 test rcx, rcx ; +0x4d, 0x140090abd jz short loc_140090B0D ; +0x50, 0x140090ac0 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x52, 0x140090ac2 test eax, eax ; +0x58, 0x140090ac8 jz short loc_140090B22 ; +0x5a, 0x140090aca nop dword ptr [rax+00h] ; +0x5c, 0x140090acc mov rcx, [rbx+298h] ; +0x60, 0x140090ad0 mov edx, edi ; +0x67, 0x140090ad7 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x140090ad9 cmp dword ptr [rbx+420h], 0 ; +0x6f, 0x140090adf setnz cl ; +0x76, 0x140090ae6 inc edi ; +0x79, 0x140090ae9 mov [rax+5DFh], cl ; +0x7b, 0x140090aeb mov rcx, [rbx+298h] ; +0x81, 0x140090af1 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x88, 0x140090af8 cmp edi, eax ; +0x8e, 0x140090afe jb short loc_140090AD0 ; +0x90, 0x140090b00 mov rbx, [rsp+28h+arg_0] ; +0x92, 0x140090b02 add rsp, 20h ; +0x97, 0x140090b07 pop rdi ; +0x9b, 0x140090b0b retn ; +0x9c, 0x140090b0c mov rcx, [rbx+428h] ; +0x9d, 0x140090b0d test rcx, rcx ; +0xa4, 0x140090b14 jz short loc_140090B22 ; +0xa7, 0x140090b17 cmp edx, 1 ; +0xa9, 0x140090b19 setnz al ; +0xac, 0x140090b1c mov [rcx+54h], al ; +0xaf, 0x140090b1f mov rbx, [rsp+28h+arg_0] ; +0xb2, 0x140090b22 add rsp, 20h ; +0xb7, 0x140090b27 pop rdi ; +0xbb, 0x140090b2b retn ; +0xbc, 0x140090b2c