//
// cocos2d::CCGLProgram::initWithVertexShaderFilename from 0x1004176f0 to 0x1004177ad (189 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:30:11 +0000
//
char __fastcall cocos2d::CCGLProgram::initWithVertexShaderFilename(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // rsi
_BYTE *v7; // rdi
void *v8; // rdi
__int64 CString; // r14
__int64 v10; // rax
_BYTE *v11; // rdi
__int64 v12; // rax
__int64 v13; // r15
char v15; // [rsp+0h] [rbp-30h] BYREF
_BYTE v16[15]; // [rsp+1h] [rbp-2Fh] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v6 = cocos2d::CCFileUtils::sharedFileUtils(a1, a2);
(*(void (__fastcall **)(char *, __int64, __int64, _QWORD))(*(_QWORD *)v6 + 48LL))(&v15, v6, a2, 0);
if ( (v15 & 1) != 0 )
v7 = __p;
else
v7 = v16;
v8 = (void *)cocos2d::CCString::createWithContentsOfFile(v7);
CString = cocos2d::CCString::getCString(v8);
if ( (v15 & 1) != 0 )
{
v8 = __p;
operator delete(__p);
}
v10 = cocos2d::CCFileUtils::sharedFileUtils(v8, v6);
(*(void (__fastcall **)(char *, __int64, __int64, _QWORD))(*(_QWORD *)v10 + 48LL))(&v15, v10, a3, 0);
if ( (v15 & 1) != 0 )
v11 = __p;
else
v11 = v16;
v12 = cocos2d::CCString::createWithContentsOfFile(v11);
v13 = cocos2d::CCString::getCString(v12);
if ( (v15 & 1) != 0 )
operator delete(__p);
return cocos2d::CCGLProgram::initWithVertexShaderByteArray(a1, CString, v13);
}