//
// cocos2d::CCGLProgram::compileShader from 0xb10ae8 to 0xb10bc8 (224 bytes)
//
// 3 xrefs:
// > cocos2d::CCGLProgram::initWithVertexShaderByteArray @ 0xb10c08
// > cocos2d::CCGLProgram::initWithVertexShaderByteArray @ 0xb10c28
// > ??> @ 0x37bd8
//
// 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
//
bool cocos2d::CCGLProgram::compileShader(cocos2d::CCGLProgram *a1, unsigned int *a2, unsigned int a3, const char *a4)
{
bool result; // w0
void *v5; // x19
int v6; // [xsp+20h] [xbp+20h]
int byte_count; // [xsp+24h] [xbp+24h]
if ( !a4 )
return 0;
*a2 = glCreateShader();
glShaderSource();
glCompileShader();
glGetShaderiv();
result = v6 == 1;
if ( !v6 )
{
glGetShaderiv();
v5 = malloc(byte_count);
glGetShaderSource();
free(v5);
abort();
}
return result;
}