//
// cocos2d::extension::CCScale9Sprite::setOpacity from 0x1002b2eb4 to 0x1002b2f60 (172 bytes)
//
// 2 xrefs:
// > sub_1002B2F60 @ 0x1002b2f64
// > ??> @ 0x10091b6e0
//
// 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 11:02:21 +0000
//
_QWORD *__fastcall cocos2d::extension::CCScale9Sprite::setOpacity(__int64 a1, __int64 a2)
{
_QWORD *result; // x0
unsigned int *v5; // x9
__int64 v6; // x8
_QWORD **v7; // x22
unsigned __int64 v8; // x23
result = *(_QWORD **)(a1 + 432);
if ( result )
{
*(_BYTE *)(a1 + 513) = a2;
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*result + 488LL))(result);
if ( result )
{
v5 = (unsigned int *)result[7];
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD ***)v5 + 2);
v8 = (unsigned __int64)&v7[v6 - 1];
do
{
result = *v7;
if ( !*v7 )
break;
result = __dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&off_1008BD768,
-2);
if ( result )
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(*result + 40LL))(result, a2);
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
}
return result;
}