//
// sub_1003755D0 from 0x1003755d0 to 0x100375695 (197 bytes)
//
// 1 xrefs:
// > ??> @ 0x10091dc00
//
// 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_1003755D0(__int64 a1, unsigned __int8 a2)
{
__int64 v2; // r14
__int64 result; // rax
_QWORD *v4; // r15
__int64 v5; // r12
unsigned __int64 i; // r14
v2 = a1 - 320;
cocos2d::CCSprite::setOpacity((cocos2d::CCSprite *)(a1 - 320), a2);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 472LL))(a1 - 320);
if ( result )
{
result = *(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 472LL))(v2) + 56);
if ( *(_DWORD *)result )
{
v4 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 472LL))(v2) + 56) + 16LL);
v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 472LL))(v2) + 56) + 16LL);
result = **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 472LL))(v2) + 56);
for ( i = v5 + 8 * result - 8; (unsigned __int64)v4 <= i; ++v4 )
{
if ( !*v4 )
break;
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v4 + 896LL))(*v4, a2);
}
}
}
return result;
}