; ; ColorSelectPopup::onPlayerColor1 from 0x100806dc0 to 0x100806e7e (190 bytes) ; ; 1 xrefs: ; > ColorSelectPopup::init @ 0x10080480a ; ; 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 12:36:40 +0000 ; push rbp ; +0x0, 0x100806dc0 mov rbp, rsp ; +0x1, 0x100806dc1 push r14 ; +0x4, 0x100806dc4 push rbx ; +0x6, 0x100806dc6 mov rbx, rdi ; +0x7, 0x100806dc7 mov rdi, [rdi+438h] ; +0xa, 0x100806dca xor esi, esi ; +0x11, 0x100806dd1 call CCMenuItemToggler__toggle ; +0x13, 0x100806dd3 mov ecx, [rbx+46Ch] ; +0x18, 0x100806dd8 xor eax, eax ; +0x1e, 0x100806dde cmp ecx, 1 ; +0x20, 0x100806de0 setnz al ; +0x23, 0x100806de3 mov [rbx+46Ch], eax ; +0x26, 0x100806de6 mov rdx, [rbx+2A8h] ; +0x2c, 0x100806dec test rdx, rdx ; +0x33, 0x100806df3 jz short loc_100806E0E ; +0x36, 0x100806df6 cmp ecx, 1 ; +0x38, 0x100806df8 setnz byte ptr [rdx+5CDh] ; +0x3b, 0x100806dfb mov byte ptr [rdx+5CEh], 0 ; +0x42, 0x100806e02 pop rbx ; +0x49, 0x100806e09 pop r14 ; +0x4a, 0x100806e0a pop rbp ; +0x4c, 0x100806e0c retn ; +0x4d, 0x100806e0d mov rdi, [rbx+2B0h] ; +0x4e, 0x100806e0e test rdi, rdi ; +0x55, 0x100806e15 jz short loc_100806E6A ; +0x58, 0x100806e18 call sub_1007FEF90 ; +0x5a, 0x100806e1a test eax, eax ; +0x5f, 0x100806e1f jz short loc_100806E09 ; +0x61, 0x100806e21 xor r14d, r14d ; +0x63, 0x100806e23 nop word ptr [rax+rax+00000000h] ; +0x66, 0x100806e26 mov rdi, [rbx+2B0h] ; +0x70, 0x100806e30 mov esi, r14d ; +0x77, 0x100806e37 call sub_1007FEFE0 ; +0x7a, 0x100806e3a cmp dword ptr [rbx+46Ch], 1 ; +0x7f, 0x100806e3f setz byte ptr [rax+5CDh] ; +0x86, 0x100806e46 mov byte ptr [rax+5CEh], 0 ; +0x8d, 0x100806e4d inc r14d ; +0x94, 0x100806e54 mov rdi, [rbx+2B0h] ; +0x97, 0x100806e57 call sub_1007FEF90 ; +0x9e, 0x100806e5e cmp r14d, eax ; +0xa3, 0x100806e63 jb short loc_100806E30 ; +0xa6, 0x100806e66 jmp short loc_100806E09 ; +0xa8, 0x100806e68 mov rcx, [rbx+478h] ; +0xaa, 0x100806e6a test rcx, rcx ; +0xb1, 0x100806e71 jz short loc_100806E09 ; +0xb4, 0x100806e74 mov [rcx+58h], eax ; +0xb6, 0x100806e76 pop rbx ; +0xb9, 0x100806e79 pop r14 ; +0xba, 0x100806e7a pop rbp ; +0xbc, 0x100806e7c retn ; +0xbd, 0x100806e7d