//
// cocos2d::CCGLProgram::link from 0x1001b3814 to 0x1001b3858 (68 bytes)
//
// 3 xrefs:
// > cocos2d::CCShaderCache::loadDefaultShader @ 0x100152488
// > sub_1002384D8 @ 0x1002385c4
// > sub_10030BA7C @ 0x10030bba0
//
// 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 11:00:09 +0000
//
__int64 __fastcall cocos2d::CCGLProgram::link(GLuint *a1)
{
GLuint v2; // w0
GLuint v3; // w0
glLinkProgram(a1[14]);
v2 = a1[15];
if ( v2 )
glDeleteShader(v2);
v3 = a1[16];
if ( v3 )
glDeleteShader(v3);
a1[15] = 0;
a1[16] = 0;
return 1;
}