//
// SecretLayer5::fadeInMessage from 0xa91318 to 0xa914c4 (428 bytes)
//
// 2 xrefs:
// > SecretLayer5::fadeInSubmitMessage @ 0xa91540
// > ??> @ 0x8cf10
//
// 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 SecretLayer5::fadeInMessage(SecretLayer5 *a1)
{
cocos2d::ccArray *data; // x24
unsigned __int64 v2; // x22
__int64 v3; // x23
__int64 v4; // x26
__int64 v5; // x27
__int64 v6; // x19
__int64 v7; // x28
void (__fastcall *v8)(__int64, _BYTE *); // x25
int v9; // w0
float v10; // s0
cocos2d::CCSequence *v11; // x19
cocos2d::CCFiniteTimeAction *v12; // x0
cocos2d::CCAction *v13; // x0
_BYTE v15[8]; // [xsp+90h] [xbp+90h] BYREF
data = a1->m_messageArea->m_label->getChildren(a1->m_messageArea->m_label)->data;
if ( (int)data->num > 0 )
{
v2 = 0;
v3 = 8 * (data->num - 1 + 1LL);
do
{
v4 = *(_QWORD *)(((__int64 (__fastcall *)(cocos2d::CCObject *))data->arr[v2 / 8]->__vftable[5].setTag)(data->arr[v2 / 8])
+ 56);
if ( *(int *)v4 > 0 )
{
v5 = 0;
v6 = 8 * ((unsigned int)(*(_DWORD *)v4 - 1) + 1LL);
do
{
v7 = *(_QWORD *)(*(_QWORD *)(v4 + 16) + v5);
v5 += 8;
v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 944LL);
v9 = rand();
v15[1] = 0;
v15[2] = -1;
v15[0] = (unsigned int)(float)((float)((float)((float)v9 * 4.6566e-10) * 25.0) + 150.0);
v8(v7, v15);
}
while ( v5 != v6 );
}
v2 += 8LL;
}
while ( v2 != v3 );
}
v10 = TextArea::fadeInCharacters(a1->m_messageArea, 0.6, 0.06, 0, Scale);
v11 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v10 + 0.6);
v12 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, SecretLayer5::fadeOutMessage, 0);
v13 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v11, v12, 0);
cocos2d::CCNode::runAction(a1, v13);
}