//
// GJGarageLayer::updatePlayerColors from 0x791fc0 to 0x792128 (360 bytes)
//
// 3 xrefs:
// > GJGarageLayer::playerColorChanged @ 0x79215c
// > GJGarageLayer::init @ 0x7995ac
// > ??> @ 0x9e0a0
//
// 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 GJGarageLayer::updatePlayerColors(GJGarageLayer *a1)
{
SimplePlayer *m_playerObject; // x22
SimplePlayer *v3; // x22
GameManager *v4; // x23
GameManager *v5; // x0
GameManager *v6; // x23
GameManager *v7; // x0
GameManager *v8; // x0
SimplePlayer *v9; // x22
GameManager *v10; // x23
GameManager *v11; // x0
cocos2d::ccColor3B v12; // [xsp+48h] [xbp+48h] BYREF
cocos2d::ccColor3B v13; // [xsp+50h] [xbp+50h] BYREF
m_playerObject = a1->m_playerObject;
m_playerObject->m_hasGlowOutline = GameManager::sharedState()->m_playerGlow;
v3 = a1->m_playerObject;
v4 = GameManager::sharedState();
v5 = GameManager::sharedState();
v12 = GameManager::colorForIdx(v4, v5->m_playerColor.random - v5->m_playerColor.seed);
v6 = GameManager::sharedState();
v7 = GameManager::sharedState();
v13 = GameManager::colorForIdx(v6, v7->m_playerColor2.random - v7->m_playerColor2.seed);
SimplePlayer::setColors(v3, &v12, &v13);
v8 = GameManager::sharedState();
if ( v8->m_playerGlowColor.random - v8->m_playerGlowColor.seed < 0 )
{
SimplePlayer::disableCustomGlowColor(a1->m_playerObject);
}
else
{
v9 = a1->m_playerObject;
v10 = GameManager::sharedState();
v11 = GameManager::sharedState();
v13 = GameManager::colorForIdx(v10, v11->m_playerGlowColor.random - v11->m_playerGlowColor.seed);
SimplePlayer::enableCustomGlowColor(v9, &v13);
}
SimplePlayer::updateColors(a1->m_playerObject);
}