//
// GJRobotSprite::setOpacity from 0xa3c464 to 0xa3c544 (224 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'GJRobotSprite::setOpacity @ 0xa3c548
// > ??> @ 0xabac0
// > ??> @ 0x1486cf0
// > ??> @ 0x14872a0
//
// 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:59:54 +0000
//
__int64 __fastcall GJRobotSprite::setOpacity(cocos2d::CCArray **this, unsigned __int8 a2)
{
unsigned int v3; // w21
unsigned int v4; // w19
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
unsigned int v8; // w19
cocos2d::CCArray *v9; // x22
__int64 v10; // x0
unsigned int v11; // w1
v3 = a2;
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(*(this + 92));
v7 = v4++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(this + 92), v7);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 912LL))(v5, v3);
}
v8 = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 84) + 912LL))(*(this + 84), v3);
v9 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 93) + 488LL))(*(this + 93));
while ( 1 )
{
v6 = v8 >= (unsigned int)cocos2d::CCArray::count(v9);
v11 = v8++;
if ( v6 )
break;
v10 = cocos2d::CCArray::objectAtIndex(v9, v11);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 912LL))(v10, v3);
}
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 94) + 912LL))(*(this + 94), v3);
}