// // cocos2d::extension::CCControlColourPicker::setColorValue from 0x180007970 to 0x180007a64 (244 bytes) // // 3 xrefs: // > @ 0x180026c10 // > @ 0x180032408 // > @ 0x18004b75c // // 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:15:36 +0000 // void __fastcall cocos2d::extension::CCControlColourPicker::setColorValue( cocos2d::extension::CCControlColourPicker *this, const struct cocos2d::_ccColor3B *a2) { float v3; // xmm1_4 __int64 v4; // rax __int64 v5; // xmm0_8 __int64 v6; // rcx void (__fastcall ***v7)(_QWORD, __int16 *); // rcx _BYTE v8[32]; // [rsp+20h] [rbp-48h] BYREF __m128d v9; // [rsp+40h] [rbp-28h] BYREF double v10; // [rsp+50h] [rbp-18h] __int64 v11; // [rsp+58h] [rbp-10h] __int16 v12; // [rsp+70h] [rbp+8h] BYREF char v13; // [rsp+72h] [rbp+Ah] *((_WORD *)this + 236) = *(_WORD *)a2; *((_BYTE *)this + 474) = *((_BYTE *)a2 + 2); v3 = (float)*((unsigned __int8 *)a2 + 2) / 255.0; v9 = _mm_cvtps_pd( _mm_div_ps( _mm_cvtepi32_ps( _mm_unpacklo_epi16( _mm_unpacklo_epi8(_mm_cvtsi32_si128(*(unsigned __int16 *)a2), (__m128i)0LL), (__m128i)0LL)), (__m128)xmmword_18002BCD0)); v10 = v3; v11 = 0x3FF0000000000000LL; v4 = cocos2d::extension::CCControlUtils::HSVfromRGB(v8, &v9); v5 = *(_QWORD *)(v4 + 16); *((_OWORD *)this + 30) = *(_OWORD *)v4; *((_QWORD *)this + 62) = v5; cocos2d::extension::CCControlColourPicker::updateHueAndControlPicker(this); v6 = *((_QWORD *)this + 66); if ( v6 ) (**(void (__fastcall ***)(__int64, char *))(v6 + 320))(v6 + 320, (char *)this + 472); v7 = *((void (__fastcall ****)(_QWORD, __int16 *))this + 67); if ( v7 ) { v12 = *((_WORD *)this + 236); v13 = *((_BYTE *)this + 474); (**v7)(v7, &v12); } }