//
// CCExtenderNode::setOpacity from 0x3c57f8 to 0x3c582c (52 bytes)
//
// 0 xrefs:
//
// 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:46:34 +0000
//
unsigned int __fastcall CCExtenderNode::setOpacity(CCExtenderNode *this, unsigned __int8 a2)
{
int v2; // r5
unsigned int v3; // r4
cocos2d::CCArray *v4; // r6
unsigned int result; // r0
int v6; // r0
v2 = a2;
v3 = 0;
v4 = (cocos2d::CCArray *)(*(int (__fastcall **)(CCExtenderNode *))(*(_DWORD *)this + 244))(this);
while ( 1 )
{
result = cocos2d::CCArray::count(v4);
if ( v3 >= result )
break;
v6 = cocos2d::CCArray::objectAtIndex(v4, v3++);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 456))(v6, v2);
}
return result;
}