//
// ColorSelectPopup::colorValueChanged from 0x140091810 to 0x140091935 (293 bytes)
//
// 4 xrefs:
// > ??> @ 0x14053fc20
// > ??> @ 0x1406693f0
// > ??> @ 0x140669400
// > ??> @ 0x1406c7038
//
// 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
//
void ColorSelectPopup::colorValueChanged(ColorSelectPopup *a1, cocos2d::ccColor3B *a2)
{
__int64 v3; // rcx
__int64 v4; // rdx
cocos2d::extension::ColorPickerDelegate_vtbl *v5; // rcx
cocos2d::CCArray *v6; // rcx
unsigned int v7; // edi
struct cocos2d::CCObject *v8; // rax
__int64 v9; // rdx
v3 = *(_QWORD *)&a1->m_obPosition.y;
if ( v3 )
{
v4 = *(_QWORD *)&a1->m_nTag;
LOWORD(a1->m_obAnchorPointInPoints.y) = *(_WORD *)(v4 + 472);
BYTE2(a1->m_obAnchorPointInPoints.y) = *(_BYTE *)(v4 + 474);
(**(void (__fastcall ***)(__int64, float *))(v3 + 320))(v3 + 320, &a1->m_obAnchorPointInPoints.y);
(**(void (__fastcall ***)(__int64, float *))(*(_QWORD *)&a1->m_fSkewY + 320LL))(
*(_QWORD *)&a1->m_fSkewY + 320LL,
&a1->m_fVertexZ);
if ( !LOBYTE(a1->m_sTransform.tx) )
{
v5 = a1[-1].cocos2d::extension::ColorPickerDelegate::__vftable;
if ( v5 )
{
*(_WORD *)((char *)&v5[183].colorValueChanged + 1) = LOWORD(a1->m_obAnchorPointInPoints.y);
BYTE3(v5[183].colorValueChanged) = BYTE2(a1->m_obAnchorPointInPoints.y);
}
else
{
v6 = (cocos2d::CCArray *)a1[-1].GJSpecialColorSelectDelegate::__vftable;
if ( v6 )
{
v7 = 0;
if ( cocos2d::CCArray::count(v6) )
{
do
{
v8 = cocos2d::CCArray::objectAtIndex(
(cocos2d::CCArray *)a1[-1].GJSpecialColorSelectDelegate::__vftable,
v7++);
*(_WORD *)((char *)&v8[26].m_uID + 1) = LOWORD(a1->m_obAnchorPointInPoints.y);
HIBYTE(v8[26].m_uID) = BYTE2(a1->m_obAnchorPointInPoints.y);
}
while ( v7 < cocos2d::CCArray::count((cocos2d::CCArray *)a1[-1].GJSpecialColorSelectDelegate::__vftable) );
}
}
else
{
v9 = *(_QWORD *)&a1->m_sAdditionalTransform.d;
if ( v9 )
{
*(_WORD *)(v9 + 72) = LOWORD(a1->m_obAnchorPointInPoints.y);
*(_BYTE *)(v9 + 74) = BYTE2(a1->m_obAnchorPointInPoints.y);
}
}
}
}
ColorSelectPopup::updateColorLabels((ColorSelectPopup *)((char *)a1 - 936));
}
}