//
// GJChestSprite::setOpacity from 0x1403d1770 to 0x1403d17d2 (98 bytes)
//
// 3 xrefs:
// > ??> @ 0x1405cd548
// > ??> @ 0x1406d7c7c
// > ??> @ 0x1406d7c88
//
// 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
//
void GJChestSprite::setOpacity(GJChestSprite *a1, unsigned __int8 a2)
{
cocos2d::CCArray *v4; // rax
cocos2d::CCArray *v5; // rbx
struct cocos2d::CCObject *v6; // rax
cocos2d::CCSprite::setOpacity(a1, a2);
v4 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(int *))(*(_QWORD *)&a1[-1].m_nUpdateScriptHandler + 464LL))(&a1[-1].m_nUpdateScriptHandler);
v5 = v4;
if ( v4 )
{
if ( cocos2d::CCArray::count(v4) )
{
v6 = cocos2d::CCArray::objectAtIndex(v5, 0);
(*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&v6[5].m_unknown2 + 40LL))(&v6[5].m_unknown2, a2);
}
}
}