//
// AnimatedGameObject::setOpacity from 0x86fc34 to 0x86fd00 (204 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x86fd04
// > ??> @ 0xe7298
// > ??> @ 0x1449800
//
// 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:55:45 +0000
//
cocos2d::CCArray *__fastcall AnimatedGameObject::setOpacity(__int64 **this, int a2)
{
unsigned int v3; // w0
unsigned int v4; // w21
cocos2d::CCArray *result; // x0
__int64 *v6; // x1
__int64 v7; // x1
unsigned int v8; // w19
cocos2d::CCArray *v9; // x20
__int64 v10; // x0
bool v11; // cf
unsigned int v12; // w1
GameObject::setOpacity((GameObject *)this, a2);
v3 = ((__int64 (__fastcall *)(__int64 **))(*this)[112])(this);
v4 = (unsigned __int8)v3;
result = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(this + 183) + 912))(*(this + 183), v3);
v6 = *(this + 184);
if ( v6 )
{
v7 = *v6;
v8 = 0;
if ( *((_BYTE *)this + 1020) )
v4 = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(v7 + 912))(*(this + 184), v4);
v9 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(this + 184) + 488))(*(this + 184));
while ( 1 )
{
v11 = v8 >= (unsigned int)cocos2d::CCArray::count(v9);
v12 = v8;
result = v9;
++v8;
if ( v11 )
break;
v10 = cocos2d::CCArray::objectAtIndex(v9, v12);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 912LL))(v10, v4);
}
}
return result;
}