//
// SecretLayer5::fadeInMessage from 0x59c820 to 0x59c93c (284 bytes)
//
// 1 xrefs:
// > SecretLayer5::fadeInSubmitMessage @ 0x59c98a
//
// 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)
{
signed int v2; // r4
cocos2d::ccArray *data; // r8
signed int num; // r9
int v5; // r5
cocos2d::CCObject *v6; // r0
int *v7; // r10
int v8; // r11
int v9; // r1
float v10; // r0
cocos2d::CCDelayTime *v11; // r0
cocos2d::CCSequence *v12; // r5
cocos2d::CCFiniteTimeAction *v13; // r0
cocos2d::CCAction *v14; // r0
void (__fastcall *v15)(int, _DWORD *); // [sp+8h] [bp-1Ch]
int v16; // [sp+Ch] [bp-18h]
_DWORD v17[2]; // [sp+14h] [bp-10h] BYREF
v2 = 0;
data = a1->m_messageArea->m_label->getChildren(a1->m_messageArea->m_label)->data;
num = data->num;
while ( v2 < num )
{
v5 = 0;
v6 = data->arr[v2];
v7 = *(int **)(((int (__fastcall *)(cocos2d::CCObject *))v6->__vftable[5].setTag)(v6) + 52);
v8 = *v7;
while ( v5 < v8 )
{
v9 = *(_DWORD *)(v7[3] + 4 * v5++);
v16 = v9;
v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 472);
LOWORD(v17[0]) = (unsigned __int8)(unsigned int)(float)((float)((float)((float)rand() * 4.6566e-10) * 25.0) + 150.0);
BYTE2(v17[0]) = -1;
v15(v16, v17);
}
++v2;
}
v10 = TextArea::fadeInCharacters(a1->m_messageArea, 0.6, 0.06, 0, Scale);
v11 = cocos2d::CCDelayTime::create(v10 + 0.6);
v17[1] = 0;
v17[0] = SecretLayer5::fadeOutMessage;
v12 = (cocos2d::CCSequence *)v11;
v13 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, SecretLayer5::fadeOutMessage, 0);
v14 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v12, v13, 0);
cocos2d::CCNode::runAction(a1, v14);
}