//
// sub_1003716B0 from 0x1003716b0 to 0x100371745 (149 bytes)
//
// 1 xrefs:
// > ??> @ 0x10091c7a8
//
// 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_1003716B0(__int64 a1, unsigned int a2)
{
__int64 result; // rax
__int64 v4; // rbx
unsigned int v5; // r15d
__int64 v6; // rax
cocos2d::CCSprite::setOpacity((cocos2d::CCSprite *)(a1 - 320), a2);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 280) + 896LL))(*(_QWORD *)(a1 + 280), a2);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 280) + 472LL))(*(_QWORD *)(a1 + 280));
if ( result )
{
v4 = result;
result = sub_100720070(result);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1007200C0(v4, v5);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 896LL))(v6, (unsigned __int8)a2);
++v5;
result = sub_100720070(v4);
}
while ( v5 < (unsigned int)result );
}
}
return result;
}