//
// ShaderLayer::dShaderLayer from 0x1003ca420 to 0x1003ca518 (248 bytes)
//
// 4 xrefs:
// > sub_1003CA5A0 @ 0x1003ca5a5
// > sub_1003CA5B0 @ 0x1003ca5bc
// > sub_1003CA5D0 @ 0x1003ca5d9
// > sub_1003CA5F0 @ 0x1003ca603
//
// 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
//
__int64 __fastcall ShaderLayer::dShaderLayer(_QWORD *a1)
{
cocos2d::CCObject *v2; // rdi
_QWORD *v3; // rdi
_QWORD *v4; // r14
void *v5; // rdi
_QWORD *v6; // rdi
_QWORD *v7; // r14
void *v8; // rdi
*a1 = off_10092EF00;
a1[40] = off_10092F380;
a1[41] = &off_10092F3F0;
a1[42] = off_10092F408;
a1[43] = off_10092F428;
a1[44] = off_10092F448;
v2 = (cocos2d::CCObject *)a1[136];
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = (_QWORD *)a1[58];
if ( v3 )
{
do
{
v4 = (_QWORD *)*v3;
operator delete(v3);
v3 = v4;
}
while ( v4 );
}
v5 = (void *)a1[56];
a1[56] = 0;
if ( v5 )
operator delete(v5);
v6 = (_QWORD *)a1[53];
if ( v6 )
{
do
{
v7 = (_QWORD *)*v6;
operator delete(v6);
v6 = v7;
}
while ( v7 );
}
v8 = (void *)a1[51];
a1[51] = 0;
if ( v8 )
operator delete(v8);
return cocos2d::CCLayer::dCCLayer(a1);
}