//
// cocos2d::CCGLProgram::updateUniforms from 0xd82ed4 to 0xd82fc4 (240 bytes)
//
// 7 xrefs:
// > CCSpriteWithHue::initShader @ 0x6dd9ec
// > ShaderLayer::setupShader @ 0xb2e04c
// > cocos2d::extension::CCControlSwitchSprite::initWithMaskSprite @ 0xd11388
// > cocos2d::CCShaderCache::loadDefaultShader @ 0xd83e28
// > cocos2d::CCShaderCache::loadDefaultShader @ 0xd83e9c
// > cocos2d::CCShaderCache::loadDefaultShader @ 0xd83fb0
// > ??> @ 0x4c720
//
// 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 13:08:11 +0000
//
__int64 __fastcall cocos2d::CCGLProgram::updateUniforms(cocos2d::CCGLProgram *this)
{
int UniformLocation; // w3
bool v3; // w2
unsigned int v4; // w1
*((_DWORD *)this + 17) = glGetUniformLocation();
*((_DWORD *)this + 18) = glGetUniformLocation();
*((_DWORD *)this + 19) = glGetUniformLocation();
*((_DWORD *)this + 20) = glGetUniformLocation();
*((_DWORD *)this + 21) = glGetUniformLocation();
UniformLocation = glGetUniformLocation();
v3 = *((_QWORD *)this + 10) != -1;
*((_DWORD *)this + 22) = UniformLocation;
*((_BYTE *)this + 112) = UniformLocation != -1 || v3;
*((_DWORD *)this + 23) = glGetUniformLocation();
*((_DWORD *)this + 24) = glGetUniformLocation();
cocos2d::CCGLProgram::use(this, v4);
return cocos2d::CCGLProgram::setUniformLocationWith1i(this, *((_DWORD *)this + 24), 0);
}