//
// GJItemIcon::setOpacity from 0x14027b220 to 0x14027b2bb (155 bytes)
//
// 2 xrefs:
// > ??> @ 0x14056a758
// > ??> @ 0x1406d110c
//
// 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 GJItemIcon::setOpacity(GJItemIcon *a1, unsigned __int8 a2)
{
cocos2d::CCArray *v4; // rax
cocos2d::CCArray *v5; // rdi
unsigned int v6; // ebx
struct cocos2d::CCObject *v7; // rax
cocos2d::CCSprite::setOpacity(a1, a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_fTransformY + 320LL) + 40LL))(
*(_QWORD *)&a1->m_fTransformY + 320LL,
a2);
v4 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_fTransformY + 464LL))(*(_QWORD *)&a1->m_fTransformY);
v5 = v4;
if ( v4 )
{
v6 = 0;
if ( cocos2d::CCArray::count(v4) )
{
do
{
v7 = cocos2d::CCArray::objectAtIndex(v5, v6);
(*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&v7[5].m_unknown2 + 40LL))(&v7[5].m_unknown2, a2);
++v6;
}
while ( v6 < cocos2d::CCArray::count(v5) );
}
}
}