//
// GJItemIcon::setOpacity from 0x140383c70 to 0x140383d0b (155 bytes)
//
// 2 xrefs:
// > ??> @ 0x14076fbf0
// > ??> @ 0x140922a24
//
// 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 11:31:06 +0000
//
int __fastcall GJItemIcon::setOpacity(cocos2d::CCSprite *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 + 35) + 320LL) + 40LL))(
*((_QWORD *)a1 + 35) + 320LL,
a2);
v4 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 35) + 480LL))(*((_QWORD *)a1 + 35));
v5 = v4;
if ( v4 )
{
v6 = 0;
for ( LODWORD(v4) = cocos2d::CCArray::count(v4); v6 < (unsigned int)v4; LODWORD(v4) = cocos2d::CCArray::count(v5) )
{
v7 = cocos2d::CCArray::objectAtIndex(v5, v6);
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v7 + 40) + 40LL))((__int64)v7 + 320, a2);
++v6;
}
}
return (int)v4;
}