//
// cocos2d::extension::CCScale9Sprite::setOpacity from 0x7abfa8 to 0x7ac004 (92 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCScale9Sprite::setOpacity @ 0x7ac010
//
// 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 12:00:03 +0000
//
_DWORD *__fastcall cocos2d::extension::CCScale9Sprite::setOpacity(_DWORD *this, int a2)
{
int v3; // r3
_DWORD *v4; // r2
void **v5; // r4
void **v6; // r5
_DWORD *v7; // t1
v3 = *(this + 93);
if ( v3 )
{
*((_BYTE *)this + 413) = a2;
this = (_DWORD *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 244))(v3);
if ( this )
{
v4 = (_DWORD *)*(this + 13);
if ( *v4 )
{
v5 = (void **)v4[3];
v6 = &v5[*v4] + 0x3FFFFFFF;
while ( v5 <= v6 )
{
v7 = *v5++;
this = v7;
if ( !v7 )
break;
this = _dynamic_cast(
this,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( this )
this = (_DWORD *)(*(int (__fastcall **)(_DWORD *, int))(*this + 20))(this, a2);
}
}
}
}
return this;
}