//
// GJColorSetupLayer::updateSpriteColor from 0x5c1690 to 0x5c16e2 (82 bytes)
//
// 1 xrefs:
// > GJColorSetupLayer::updateSpriteColors @ 0x5c1764
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:50 +0000
//
int __fastcall GJColorSetupLayer::updateSpriteColor(
GJColorSetupLayer *this,
ColorChannelSprite *a2,
cocos2d::CCLabelBMFont *a3,
const char *a4)
{
void (__fastcall *v8)(cocos2d::CCLabelBMFont *, int); // r8
cocos2d::CCString *v9; // r0
int CString; // r0
ColorAction *ColorAction; // r1
v8 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)a3 + 464);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Col %i", a4);
CString = cocos2d::CCString::getCString(v9);
v8(a3, CString);
ColorAction = (ColorAction *)GJEffectManager::colorExists(
*(GJEffectManager **)(*((_DWORD *)this + 132) + 264),
(int)a4);
if ( ColorAction )
ColorAction = (ColorAction *)GJEffectManager::getColorAction(
*(GJEffectManager **)(*((_DWORD *)this + 132) + 264),
(int)a4);
return ColorChannelSprite::updateValues(a2, ColorAction);
}