//
// GJItemIcon::setOpacity from 0x1003a4c38 to 0x1003a4ccc (148 bytes)
//
// 2 xrefs:
// > sub_1003A4CCC @ 0x1003a4cd0
// > ??> @ 0x100944da8
//
// 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 11:03:48 +0000
//
__int64 __fastcall GJItemIcon::setOpacity(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x20
unsigned int v6; // w21
__int64 v7; // x0
cocos2d::CCSprite::setOpacity(a1, a2);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 600) + 912LL))(*(_QWORD *)(a1 + 600), a2);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 600) + 488LL))(*(_QWORD *)(a1 + 600));
if ( result )
{
v5 = result;
result = sub_1002E757C(result);
if ( (_DWORD)result )
{
v6 = 0;
do
{
v7 = sub_1002E75A0(v5, v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 912LL))(v7, a2);
++v6;
result = sub_1002E757C(v5);
}
while ( v6 < (unsigned int)result );
}
}
return result;
}