//
// GJItemIcon::setOpacity from 0x8c3170 to 0x8c320c (156 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'GJItemIcon::setOpacity @ 0x8c3210
// > ??> @ 0xbb078
// > ??> @ 0x145b6f0
//
// 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 12:56:32 +0000
//
cocos2d::CCArray *__fastcall GJItemIcon::setOpacity(GJItemIcon *this, unsigned __int8 a2)
{
unsigned int v2; // w21
unsigned int v4; // w19
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v6; // x20
__int64 v7; // x0
bool v8; // cf
unsigned int v9; // w1
v2 = a2;
v4 = 0;
cocos2d::CCSprite::setOpacity(this, a2);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 75) + 912LL))(*((_QWORD *)this + 75), v2);
result = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 75) + 488LL))(*((_QWORD *)this + 75));
v6 = result;
if ( result )
{
while ( 1 )
{
v8 = v4 >= (unsigned int)cocos2d::CCArray::count(v6);
v9 = v4;
result = v6;
++v4;
if ( v8 )
break;
v7 = cocos2d::CCArray::objectAtIndex(v6, v9);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 912LL))(v7, v2);
}
}
return result;
}