//
// KeyframeGameObject::setOpacity from 0x3e0e14 to 0x3e0e6e (90 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'KeyframeGameObject::setOpacity @ 0x3e0e72
//
// 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)
{
int v3; // r5
cocos2d::CCArray *m_shadowObjects; // r3
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r6
cocos2d::CCObject **v7; // r4
int v8; // r0
int v9; // t1
v3 = a2;
if ( a1->m_referenceOnly )
v3 = (unsigned __int8)(unsigned int)vcvts_n_f32_s32(a2, 1u);
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] + 0x3FFFFFFF;
while ( arr <= v7 )
{
v9 = (int)*arr++;
v8 = v9;
if ( !v9 )
break;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 448))(v8, v3);
}
}
}
}