//
// cocos2d::extension::CCScale9Sprite::setOpacity from 0x18000fd70 to 0x18000fe25 (181 bytes)
//
// 5 xrefs:
// > ??> @ 0x180029b48
// > ??> @ 0x180030a38
// > ??> @ 0x180030a90
// > ??> @ 0x180032408
// > ??> @ 0x18004bfcc
//
// This function is hookable on this platform (idp: pc, 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:15:39 +0000
//
void __fastcall cocos2d::extension::CCScale9Sprite::setOpacity(
cocos2d::extension::CCScale9Sprite *this,
unsigned __int8 a2)
{
__int64 v4; // rcx
__int64 v5; // rax
unsigned int *v6; // rbx
__int64 v7; // rax
_QWORD *v8; // rbx
_QWORD *i; // rdi
__int64 v10; // rax
v4 = *((_QWORD *)this + 15);
if ( v4 )
{
*((_BYTE *)this + 201) = a2;
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 480LL))(v4);
if ( v5 )
{
v6 = *(unsigned int **)(v5 + 56);
v7 = *v6;
if ( (_DWORD)v7 )
{
v8 = *((_QWORD **)v6 + 2);
for ( i = &v8[v7 - 1]; v8 <= i; ++v8 )
{
if ( !*v8 )
break;
v10 = _RTDynamicCast(
*v8,
0,
&cocos2d::CCObject `RTTI Type Descriptor',
&cocos2d::CCRGBAProtocol `RTTI Type Descriptor',
0);
if ( v10 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 40LL))(v10, a2);
}
}
}
}
}