//
// GJItemIcon::setOpacity from 0x510fdc to 0x51102a (78 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJItemIcon::setOpacity @ 0x51102e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:32 +0000
//
unsigned int __fastcall GJItemIcon::setOpacity(GJItemIcon *this, int a2)
{
unsigned int result; // r0
cocos2d::CCArray *v5; // r5
unsigned int i; // r4
int v7; // r0
cocos2d::CCSprite::setOpacity(this, a2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 127) + 456))(*((_DWORD *)this + 127), a2);
result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 127) + 244))(*((_DWORD *)this + 127));
v5 = (cocos2d::CCArray *)result;
if ( result )
{
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(v5);
if ( i >= result )
break;
v7 = cocos2d::CCArray::objectAtIndex(v5, i);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 456))(v7, a2);
}
}
return result;
}