//
// KeyframeGameObject::setOpacity from 0x1001c6b30 to 0x1001c6bd7 (167 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008c5c10
//
// 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 __fastcall KeyframeGameObject::setOpacity(KeyframeGameObject *a1, unsigned __int8 a2)
{
int v3; // eax
unsigned int v4; // ebx
cocos2d::CCLabelBMFont *m_objectLabel; // rdi
cocos2d::CCArray *m_shadowObjects; // rax
cocos2d::ccArray *data; // rax
cocos2d::CCObject **arr; // r14
unsigned __int64 v9; // r15
v3 = (int)(float)((float)a2 * 0.5);
if ( !a1->m_referenceOnly )
LOBYTE(v3) = a2;
v4 = (unsigned __int8)v3;
GameObject::setOpacity(a1, v3);
m_objectLabel = a1->m_objectLabel;
if ( m_objectLabel )
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))m_objectLabel->setOpacity)(m_objectLabel, a1->_realOpacity);
m_shadowObjects = a1->m_shadowObjects;
if ( m_shadowObjects )
{
data = m_shadowObjects->data;
if ( data->num )
{
arr = data->arr;
v9 = (unsigned __int64)&arr[data->num - 1];
do
{
if ( !*arr )
break;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))(*arr)->__vftable[11].~CCObject_0)(*arr, v4);
++arr;
}
while ( (unsigned __int64)arr <= v9 );
}
}
}