//
// sub_1003552E0 from 0x1003552e0 to 0x100355333 (83 bytes)
//
// 2 xrefs:
// > ??> @ 0x100916348
// > ??> @ 0x100947ab0
//
// 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 sub_1003552E0(__int64 a1, unsigned __int8 a2)
{
__int64 result; // rax
__int64 i; // r14
__int64 v4; // rdi
cocos2d::CCLayerRGBA::setOpacity((cocos2d::CCLayerRGBA *)(a1 - 408), a2);
result = *(_QWORD *)(a1 + 144);
if ( result )
{
for ( i = *(_QWORD *)(result + 56);
i;
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 896LL))(v4, a2) )
{
v4 = *(_QWORD *)(i + 264);
i = *(_QWORD *)(i + 288);
}
}
return result;
}