//
// sub_10021F9F0 from 0x10021f9f0 to 0x10021fa63 (115 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008e0ba0
//
// 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_10021F9F0(__int64 a1, unsigned __int8 a2)
{
__int64 result; // rax
__int64 v3; // r14
__int64 v4; // rax
cocos2d::CCSprite::setOpacity((cocos2d::CCSprite *)(a1 - 320), a2);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 472LL))(a1 - 320);
if ( result )
{
v3 = result;
result = sub_100720070(result);
if ( (_DWORD)result )
{
v4 = sub_1007200C0(v3, 0);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 896LL))(v4, a2);
}
}
return result;
}