//
// GJChestSprite::setOpacity from 0xa8a124 to 0xa8a188 (100 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'GJChestSprite::setOpacity @ 0xa8a18c
// > ??> @ 0xa3d80
// > ??> @ 0x1499560
//
// This function is hookable on this platform (idp: arm, 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 13:00:36 +0000
//
cocos2d::CCArray *__fastcall GJChestSprite::setOpacity(GJChestSprite *this, unsigned __int8 a2)
{
unsigned int v2; // w20
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v5; // x19
__int64 v6; // x0
v2 = a2;
cocos2d::CCSprite::setOpacity(this, a2);
result = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(GJChestSprite *))(*(_QWORD *)this + 488LL))(this);
v5 = result;
if ( result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( (_DWORD)result )
{
v6 = cocos2d::CCArray::objectAtIndex(v5, 0);
return (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 912LL))(v6, v2);
}
}
return result;
}