; ; ColorSelectLiveOverlay::updateColorLabel from 0x100569fc0 to 0x10056a173 (435 bytes) ; ; 2 xrefs: ; > ColorSelectLiveOverlay::init @ 0x100569781 ; > ColorSelectLiveOverlay::onSelectTab @ 0x100569fb0 ; ; 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 ; push rbp ; +0x0, 0x100569fc0 mov rbp, rsp ; +0x1, 0x100569fc1 push r15 ; +0x4, 0x100569fc4 push r14 ; +0x6, 0x100569fc6 push rbx ; +0x8, 0x100569fc8 sub rsp, 18h ; +0x9, 0x100569fc9 mov rbx, rdi ; +0xd, 0x100569fcd movzx eax, byte ptr [rdi+338h] ; +0x10, 0x100569fd0 mov r15, [rdi+rax*8+290h] ; +0x17, 0x100569fd7 test r15, r15 ; +0x1f, 0x100569fdf jz short loc_100569FF2 ; +0x22, 0x100569fe2 lea rax, [r15+5Ch] ; +0x24, 0x100569fe4 mov r14d, [rax] ; +0x28, 0x100569fe8 test r14d, r14d ; +0x2b, 0x100569feb jg short loc_10056A00C ; +0x2e, 0x100569fee jmp short loc_10056A036 ; +0x30, 0x100569ff0 mov rax, [rbx+278h] ; +0x32, 0x100569ff2 test rax, rax ; +0x39, 0x100569ff9 jz short loc_10056A036 ; +0x3c, 0x100569ffc add rax, 400h ; +0x3e, 0x100569ffe mov r14d, [rax] ; +0x44, 0x10056a004 test r14d, r14d ; +0x47, 0x10056a007 jle short loc_10056A036 ; +0x4a, 0x10056a00a mov word ptr [rbp+var_30.__r_.__value_], 0 ; +0x4c, 0x10056a00c cmp r14d, 3E7h ; +0x52, 0x10056a012 ja short loc_10056A05A ; +0x59, 0x10056a019 lea rdi, aI; "%i" ; +0x5b, 0x10056a01b mov esi, r14d ; +0x62, 0x10056a022 xor eax, eax ; +0x65, 0x10056a025 call sub_1007AB580 ; +0x67, 0x10056a027 mov rdi, rax ; +0x6c, 0x10056a02c call cocos2d__CCString__getCString ; +0x6f, 0x10056a02f jmp short loc_10056A062 ; +0x74, 0x10056a034 mov rdi, [rbx+330h] ; +0x76, 0x10056a036 mov rax, [rdi] ; +0x7d, 0x10056a03d mov rax, [rax+390h] ; +0x80, 0x10056a040 lea rsi, asc_100823F54; " " ; +0x87, 0x10056a047 add rsp, 18h ; +0x8e, 0x10056a04e pop rbx ; +0x92, 0x10056a052 pop r14 ; +0x93, 0x10056a053 pop r15 ; +0x95, 0x10056a055 pop rbp ; +0x97, 0x10056a057 jmp rax ; +0x98, 0x10056a058 mov edi, r14d ; +0x9a, 0x10056a05a call GJSpecialColorSelect__textForColorIdx ; +0x9d, 0x10056a05d lea rdi, [rbp+var_30]; this ; +0xa2, 0x10056a062 mov rsi, rax; __s ; +0xa6, 0x10056a066 call __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xa9, 0x10056a069 mov rdi, [rbx+330h] ; +0xae, 0x10056a06e test byte ptr [rbp+var_30.__r_.__value_], 1 ; +0xb5, 0x10056a075 jz short loc_10056A081 ; +0xb9, 0x10056a079 mov rsi, qword ptr [rbp+var_30.__r_.__value_+10h] ; +0xbb, 0x10056a07b jmp short loc_10056A085 ; +0xbf, 0x10056a07f lea rsi, [rbp+var_30.__r_.__value_+1] ; +0xc1, 0x10056a081 mov rax, [rdi] ; +0xc5, 0x10056a085 call qword ptr [rax+390h] ; +0xc8, 0x10056a088 test r15, r15 ; +0xce, 0x10056a08e jz short loc_10056A104 ; +0xd1, 0x10056a091 cmp r14d, 3EDh ; +0xd3, 0x10056a093 jb short loc_10056A0B4 ; +0xda, 0x10056a09a add r14d, 0FFFFFC0Fh ; +0xdc, 0x10056a09c cmp r14d, 5 ; +0xe3, 0x10056a0a3 ja short loc_10056A11E ; +0xe7, 0x10056a0a7 mov eax, 31h ; '1' ; +0xe9, 0x10056a0a9 bt eax, r14d ; +0xee, 0x10056a0ae jnb short loc_10056A11E ; +0xf2, 0x10056a0b2 mov rdi, [rbx+280h] ; +0xf4, 0x10056a0b4 call sub_100720070 ; +0xfb, 0x10056a0bb test eax, eax ; +0x100, 0x10056a0c0 jz short loc_10056A104 ; +0x102, 0x10056a0c2 xor r14d, r14d ; +0x104, 0x10056a0c4 nop word ptr [rax+rax+00000000h] ; +0x107, 0x10056a0c7 mov rdi, [rbx+280h] ; +0x110, 0x10056a0d0 mov esi, r14d ; +0x117, 0x10056a0d7 call sub_1007200C0 ; +0x11a, 0x10056a0da mov rcx, [rax] ; +0x11f, 0x10056a0df mov rdi, rax ; +0x122, 0x10056a0e2 mov esi, 1 ; +0x125, 0x10056a0e5 call qword ptr [rcx+148h] ; +0x12a, 0x10056a0ea mov rdi, [rbx+280h] ; +0x130, 0x10056a0f0 call sub_100720070 ; +0x137, 0x10056a0f7 inc r14d ; +0x13c, 0x10056a0fc cmp r14d, eax ; +0x13f, 0x10056a0ff jb short loc_10056A0D0 ; +0x142, 0x10056a102 test byte ptr [rbp+var_30.__r_.__value_], 1 ; +0x144, 0x10056a104 jz short loc_10056A113 ; +0x148, 0x10056a108 mov rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p ; +0x14a, 0x10056a10a call __ZdlPv; operator delete(void *) ; +0x14e, 0x10056a10e add rsp, 18h ; +0x153, 0x10056a113 pop rbx ; +0x157, 0x10056a117 pop r14 ; +0x158, 0x10056a118 pop r15 ; +0x15a, 0x10056a11a pop rbp ; +0x15c, 0x10056a11c retn ; +0x15d, 0x10056a11d mov rdi, [rbx+280h] ; +0x15e, 0x10056a11e call sub_100720070 ; +0x165, 0x10056a125 test eax, eax ; +0x16a, 0x10056a12a jz short loc_10056A104 ; +0x16c, 0x10056a12c xor r14d, r14d ; +0x16e, 0x10056a12e nop word ptr [rax+rax+00000000h] ; +0x171, 0x10056a131 mov rdi, [rbx+280h] ; +0x180, 0x10056a140 mov esi, r14d ; +0x187, 0x10056a147 call sub_1007200C0 ; +0x18a, 0x10056a14a mov rcx, [rax] ; +0x18f, 0x10056a14f mov rdi, rax ; +0x192, 0x10056a152 xor esi, esi ; +0x195, 0x10056a155 call qword ptr [rcx+148h] ; +0x197, 0x10056a157 mov rdi, [rbx+280h] ; +0x19d, 0x10056a15d call sub_100720070 ; +0x1a4, 0x10056a164 inc r14d ; +0x1a9, 0x10056a169 cmp r14d, eax ; +0x1ac, 0x10056a16c jb short loc_10056A140 ; +0x1af, 0x10056a16f jmp short loc_10056A104 ; +0x1b1, 0x10056a171