//
// GJColorSetupLayer::updateSpriteColors from 0x1402568f0 to 0x140256a0d (285 bytes)
//
// 7 xrefs:
// > GJColorSetupLayer::init @ 0x140256508
// > GJColorSetupLayer::init @ 0x1402568a6
// > GJColorSetupLayer::colorSelectClosed @ 0x140256ca7
// > GJColorSetupLayer::showPage @ 0x140256d0c
// > ??> @ 0x1406843d0
// > ??> @ 0x1406843e0
// > ??> @ 0x1406cf960
//
// 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 GJColorSetupLayer::updateSpriteColors(GJColorSetupLayer *a1)
{
int v2; // esi
unsigned int v3; // ebx
int v4; // r15d
ColorChannelSprite *v5; // rsi
cocos2d::CCLabelBMFont *v6; // r14
__int64 v7; // rdx
cocos2d::CCNode *v8; // rcx
cocos2d::CCNode_vtbl *v9; // r8
_BOOL8 v10; // rdx
_BOOL8 v11; // rdx
v2 = a1->m_page * a1->m_colorsPerPage;
v3 = 0;
if ( cocos2d::CCArray::count(a1->m_colorSprites) )
{
v4 = v2 + 1;
do
{
v5 = (ColorChannelSprite *)cocos2d::CCArray::objectAtIndex(a1->m_colorSprites, v3);
v6 = (cocos2d::CCLabelBMFont *)cocos2d::CCArray::objectAtIndex(a1->m_colorLabels, v3);
v8 = v5->getParent(v5);
v9 = v8->__vftable;
if ( (int)(v4 + v3) > 999 )
{
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v9[1].canEncode)(v8, 0);
v5->setVisible(v5, 0);
v6->setVisible(v6, 0);
}
else
{
LOBYTE(v7) = 1;
((void (__fastcall *)(cocos2d::CCNode *, __int64))v9[1].canEncode)(v8, v7);
LOBYTE(v10) = 1;
v5->setVisible(v5, v10);
LOBYTE(v11) = 1;
v6->setVisible(v6, v11);
GJColorSetupLayer::updateSpriteColor(a1, v5, v6, v4 + v3);
}
++v3;
}
while ( v3 < cocos2d::CCArray::count(a1->m_colorSprites) );
}
}