//
// GJRobotSprite::setOpacity from 0x5e6318 to 0x5e6396 (126 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJRobotSprite::setOpacity @ 0x5e639a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:19 +0000
//
int __fastcall GJRobotSprite::setOpacity(cocos2d::CCArray **this, int a2)
{
unsigned int i; // r6
int v5; // r0
unsigned int v6; // r6
cocos2d::CCArray *v7; // r7
int v8; // r0
for ( i = 0; i < cocos2d::CCArray::count(*(this + 145)); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(*(this + 145), i);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 456))(v5, a2);
}
v6 = 0;
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 136) + 456))(*(this + 136), a2);
v7 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 146) + 244))(*(this + 146));
while ( v6 < cocos2d::CCArray::count(v7) )
{
v8 = cocos2d::CCArray::objectAtIndex(v7, v6++);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 456))(v8, a2);
}
return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 147) + 456))(*(this + 147), a2);
}