; ; ColorSelectPopup::onPlayerColor2 from 0x140090d40 to 0x140090e1e (222 bytes) ; ; 2 xrefs: ; > ColorSelectPopup::init @ 0x14008ead8 ; > @ 0x1406c6f90 ; ; 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, 0x140090d40 push rdi ; +0x5, 0x140090d45 sub rsp, 20h ; +0x6, 0x140090d46 mov rbx, rcx ; +0xa, 0x140090d4a xor edx, edx ; +0xd, 0x140090d4d mov rcx, [rcx+3E0h] ; +0xf, 0x140090d4f call CCMenuItemToggler__toggle ; +0x16, 0x140090d56 mov eax, [rbx+41Ch] ; +0x1b, 0x140090d5b mov ecx, 2 ; +0x21, 0x140090d61 xor edi, edi ; +0x26, 0x140090d66 cmp eax, ecx ; +0x28, 0x140090d68 mov edx, edi ; +0x2a, 0x140090d6a cmovnz edx, ecx ; +0x2c, 0x140090d6c mov rcx, [rbx+290h] ; +0x2f, 0x140090d6f mov [rbx+41Ch], edx ; +0x36, 0x140090d76 test rcx, rcx ; +0x3c, 0x140090d7c jz short loc_140090DA6 ; +0x3f, 0x140090d7f cmp eax, 2 ; +0x41, 0x140090d81 setnz al ; +0x44, 0x140090d84 mov [rcx+5DEh], al ; +0x47, 0x140090d87 mov rax, [rbx+290h] ; +0x4d, 0x140090d8d mov [rax+5DDh], dil ; +0x54, 0x140090d94 mov rbx, [rsp+28h+arg_0] ; +0x5b, 0x140090d9b add rsp, 20h ; +0x60, 0x140090da0 pop rdi ; +0x64, 0x140090da4 retn ; +0x65, 0x140090da5 mov rcx, [rbx+298h] ; +0x66, 0x140090da6 test rcx, rcx ; +0x6d, 0x140090dad jz short loc_140090E04 ; +0x70, 0x140090db0 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x72, 0x140090db2 test eax, eax ; +0x78, 0x140090db8 jz short loc_140090E13 ; +0x7a, 0x140090dba nop dword ptr [rax+00h] ; +0x7c, 0x140090dbc mov rcx, [rbx+298h] ; +0x80, 0x140090dc0 mov edx, edi ; +0x87, 0x140090dc7 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x140090dc9 cmp dword ptr [rbx+41Ch], 2 ; +0x8f, 0x140090dcf setz cl ; +0x96, 0x140090dd6 inc edi ; +0x99, 0x140090dd9 mov [rax+5DEh], cl ; +0x9b, 0x140090ddb mov byte ptr [rax+5DDh], 0 ; +0xa1, 0x140090de1 mov rcx, [rbx+298h] ; +0xa8, 0x140090de8 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xaf, 0x140090def cmp edi, eax ; +0xb5, 0x140090df5 jb short loc_140090DC0 ; +0xb7, 0x140090df7 mov rbx, [rsp+28h+arg_0] ; +0xb9, 0x140090df9 add rsp, 20h ; +0xbe, 0x140090dfe pop rdi ; +0xc2, 0x140090e02 retn ; +0xc3, 0x140090e03 mov rax, [rbx+428h] ; +0xc4, 0x140090e04 test rax, rax ; +0xcb, 0x140090e0b jz short loc_140090E13 ; +0xce, 0x140090e0e mov [rax+58h], edx ; +0xd0, 0x140090e10 mov rbx, [rsp+28h+arg_0] ; +0xd3, 0x140090e13 add rsp, 20h ; +0xd8, 0x140090e18 pop rdi ; +0xdc, 0x140090e1c retn ; +0xdd, 0x140090e1d