//
// GJChestSprite::setOpacity from 0x10021f990 to 0x10021f9e6 (86 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008e0a20
//
// 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 __fastcall GJChestSprite::setOpacity(GJChestSprite *a1, unsigned __int8 a2)
{
__int64 v2; // rax
__int64 v3; // r14
__int64 v4; // rax
cocos2d::CCSprite::setOpacity(a1, a2);
v2 = ((__int64 (__fastcall *)(GJChestSprite *))a1->getChildren)(a1);
if ( v2 )
{
v3 = v2;
if ( (unsigned int)sub_100720070(v2) )
{
v4 = sub_1007200C0(v3, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 896LL))(v4, a2);
}
}
}