//
// ShaderLayer::dShaderLayer from 0x1003b3900 to 0x1003b39f8 (248 bytes)
//
// 4 xrefs:
// > sub_1003B3A80 @ 0x1003b3a85
// > sub_1003B3A90 @ 0x1003b3a9c
// > sub_1003B3AB0 @ 0x1003b3ab9
// > sub_1003B3AD0 @ 0x1003b3ae3
//
// 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:29:27 +0000
//
__int64 __fastcall ShaderLayer::dShaderLayer(_QWORD *a1)
{
__int64 v2; // rdi
_QWORD *v3; // rdi
_QWORD *v4; // r14
void *v5; // rdi
_QWORD *v6; // rdi
_QWORD *v7; // r14
void *v8; // rdi
*a1 = off_100B37820;
a1[40] = off_100B37CB0;
a1[41] = &off_100B37D20;
a1[42] = off_100B37D38;
a1[43] = off_100B37D58;
a1[44] = off_100B37D80;
v2 = a1[137];
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 sub_1004A9420(a1);
}