//
// KeyframeGameObject::setOpacity from 0x10038b29c to 0x10038b338 (156 bytes)
//
// 2 xrefs:
// > sub_10038B338 @ 0x10038b33c
// > ??> @ 0x1007f6c98
//
// 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)
{
unsigned int v3; // w9
__int64 v4; // x19
cocos2d::CCLabelBMFont *m_objectLabel; // x0
cocos2d::CCArray *m_shadowObjects; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x20
unsigned __int64 v10; // x21
v3 = (int)vcvts_n_f32_u32(a2, 1u);
if ( a1->m_referenceOnly )
v4 = v3;
else
v4 = a2;
GameObject::setOpacity(a1, v4);
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;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v10 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
((void (__fastcall *)(cocos2d::CCObject *, __int64))(*arr)->__vftable[11].~CCObject_0)(*arr, v4);
++arr;
}
while ( (unsigned __int64)arr <= v10 );
}
}
}