//
// GJColorSetupLayer::updateSpriteColor from 0x9f73c4 to 0x9f7468 (164 bytes)
//
// 2 xrefs:
// > GJColorSetupLayer::updateSpriteColors @ 0x9f752c
// > ??> @ 0x598a8
//
// This function is hookable on this platform (idp: arm, 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:59:14 +0000
//
__int64 __fastcall GJColorSetupLayer::updateSpriteColor(
GJColorSetupLayer *this,
ColorChannelSprite *a2,
cocos2d::CCLabelBMFont *a3,
char *a4)
{
int v4; // w19
void (__fastcall *v7)(cocos2d::CCLabelBMFont *, __int64); // x22
cocos2d::CCString *v8; // x0
__int64 CString; // x0
ColorAction *ColorAction; // x1
v4 = (int)a4;
v7 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a3 + 928LL);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Col %i",
(const char *)(unsigned int)a4);
CString = cocos2d::CCString::getCString(v8);
v7(a3, CString);
if ( !(unsigned __int8)GJEffectManager::colorExists(*(GJEffectManager **)(*((_QWORD *)this + 85) + 320LL), v4) )
return ColorChannelSprite::updateValues(a2, nullptr);
ColorAction = (ColorAction *)GJEffectManager::getColorAction(
*(GJEffectManager **)(*((_QWORD *)this + 85) + 320LL),
v4);
return ColorChannelSprite::updateValues(a2, ColorAction);
}