//
// GJRobotSprite::setOpacity from 0x1403ad4c0 to 0x1403ad5b8 (248 bytes)
//
// 3 xrefs:
// > ??> @ 0x14077f6a0
// > ??> @ 0x14077f740
// > ??> @ 0x140923af8
//
// 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:21 +0000
//
__int64 __fastcall GJRobotSprite::setOpacity(__int64 a1, unsigned __int8 a2)
{
unsigned int v3; // ebx
unsigned int i; // edi
struct cocos2d::CCObject *v6; // rax
cocos2d::CCArray *v7; // rdi
struct cocos2d::CCObject *v8; // rax
v3 = 0;
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 440)); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 440), i);
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v6 + 40) + 40LL))((__int64)v6 + 320, a2);
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 368) + 320LL) + 40LL))(
*(_QWORD *)(a1 + 368) + 320LL,
a2);
v7 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 480LL))(*(_QWORD *)(a1 + 448));
if ( cocos2d::CCArray::count(v7) )
{
do
{
v8 = cocos2d::CCArray::objectAtIndex(v7, v3);
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v8 + 40) + 40LL))((__int64)v8 + 320, a2);
++v3;
}
while ( v3 < cocos2d::CCArray::count(v7) );
}
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 456) + 320LL) + 40LL))(
*(_QWORD *)(a1 + 456) + 320LL,
a2);
}