//
// GJChestSprite::setOpacity from 0x1002030a0 to 0x1002030f6 (86 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ae5010
//
// 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 12:26:52 +0000
//
__int64 __fastcall GJChestSprite::setOpacity(__int64 a1, unsigned __int8 a2)
{
__int64 result; // rax
__int64 v3; // r14
__int64 v4; // rax
cocos2d::CCSprite::setOpacity();
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
if ( result )
{
v3 = result;
result = sub_1007FEF90(result);
if ( (_DWORD)result )
{
v4 = sub_1007FEFE0(v3, 0);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 912LL))(v4, a2);
}
}
return result;
}