//
// GJItemIcon::setOpacity from 0x407f24 to 0x407f72 (78 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJItemIcon::setOpacity @ 0x407f76
//
// 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)
{
int v3; // r6
cocos2d::CCArray *v4; // r5
unsigned int i; // r4
int v6; // r0
v3 = a2;
cocos2d::CCSprite::setOpacity(a1, a2);
a1->m_player->setOpacity(a1->m_player, v3);
v4 = a1->m_player->getChildren(a1->m_player);
if ( v4 )
{
for ( i = 0; i < cocos2d::CCArray::count(v4); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(v4, i);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 448))(v6, v3);
}
}
}