//
// GJChestSprite::setOpacity from 0x1405670e0 to 0x140567142 (98 bytes)
//
// 3 xrefs:
// > ??> @ 0x1407db1c8
// > ??> @ 0x14092c57c
// > ??> @ 0x14092c588
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:34:17 +0000
//
int __fastcall GJChestSprite::setOpacity(cocos2d::CCSprite *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 **)(__int64))(*((_QWORD *)a1 - 40) + 480LL))((__int64)a1 - 320);
v5 = v4;
if ( v4 )
{
LODWORD(v4) = cocos2d::CCArray::count(v4);
if ( (_DWORD)v4 )
{
v6 = cocos2d::CCArray::objectAtIndex(v5, 0);
LODWORD(v4) = (*(__int64 (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v6 + 40) + 40LL))((__int64)v6 + 320, a2);
}
}
return (int)v4;
}