//
// KeyframeGameObject::setOpacity from 0x74b0ac to 0x74b14c (160 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'KeyframeGameObject::setOpacity @ 0x74b150
// > ??> @ 0x87c60
// > ??> @ 0x116c9d0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void KeyframeGameObject::setOpacity(KeyframeGameObject *a1, unsigned __int8 a2)
{
unsigned int v3; // w20
cocos2d::CCArray *m_shadowObjects; // x0
cocos2d::ccArray *data; // x1
cocos2d::CCObject **arr; // x19
cocos2d::CCObject **v7; // x21
cocos2d::CCObject *v8; // x0
v3 = a2;
if ( a1->m_referenceOnly )
v3 = (unsigned __int8)(unsigned int)(float)((float)a2 * 0.5);
EffectGameObject::setOpacity(a1, v3);
m_shadowObjects = a1->m_shadowObjects;
if ( m_shadowObjects )
{
data = m_shadowObjects->data;
if ( data->num )
{
arr = data->arr;
v7 = &arr[data->num - 1];
while ( v7 >= arr )
{
v8 = *arr;
if ( !*arr )
break;
++arr;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v8->__vftable[11].~CCObject_0)(v8, v3);
}
}
}
}