//
// cocos2d::CCGLProgram::initWithVertexShaderFilename from 0x10042aa80 to 0x10042ab3d (189 bytes)
//
// 0 xrefs:
//
// 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 __fastcall cocos2d::CCGLProgram::initWithVertexShaderFilename(
cocos2d::CCGLProgram *a1,
const char *a2,
const char *a3)
{
cocos2d::CCFileUtils *v5; // rax
const char *v6; // rdi
cocos2d::CCString *v7; // rax
const char *CString; // r14
cocos2d::CCFileUtils *v9; // rax
const char *v10; // rdi
cocos2d::CCString *v11; // rax
const char *v12; // r15
char v14; // [rsp+0h] [rbp-30h] BYREF
_BYTE v15[15]; // [rsp+1h] [rbp-2Fh] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v5 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(char *, cocos2d::CCFileUtils *, const char *, _QWORD))v5->createCCArrayWithContentsOfFile)(
&v14,
v5,
a2,
0);
if ( (v14 & 1) != 0 )
v6 = (const char *)__p;
else
v6 = v15;
v7 = cocos2d::CCString::createWithContentsOfFile(v6);
CString = cocos2d::CCString::getCString(v7);
if ( (v14 & 1) != 0 )
operator delete(__p);
v9 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(char *, cocos2d::CCFileUtils *, const char *, _QWORD))v9->createCCArrayWithContentsOfFile)(
&v14,
v9,
a3,
0);
if ( (v14 & 1) != 0 )
v10 = (const char *)__p;
else
v10 = v15;
v11 = cocos2d::CCString::createWithContentsOfFile(v10);
v12 = cocos2d::CCString::getCString(v11);
if ( (v14 & 1) != 0 )
operator delete(__p);
return cocos2d::CCGLProgram::initWithVertexShaderByteArray(a1, CString, v12);
}