//
// SecretLayer5::fadeInSubmitMessage from 0x1403f51d0 to 0x1403f539a (458 bytes)
//
// 4 xrefs:
// > SecretLayer5::onSubmit @ 0x1403f7099
// > ??> @ 0x14069dc60
// > ??> @ 0x14069dc70
// > ??> @ 0x1406d8204
//
// 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::fadeInSubmitMessage(SecretLayer5 *a1)
{
float v1; // xmm3_4
__int64 v3; // rax
cocos2d::ccArray *data; // r15
__int64 num; // r14
__int64 i; // rdi
cocos2d::CCObject *v7; // rcx
__int64 v8; // rbx
int *v9; // rsi
__int64 v10; // rbp
int v11; // eax
void (__fastcall ***v12)(_QWORD, char *); // rcx
float v13; // xmm6_4
__int64 v14; // rbx
struct cocos2d::CCDelayTime *v15; // rax
struct cocos2d::CCSequence *v16; // rax
cocos2d::ccColor3B *v17; // r8
_BYTE v18[32]; // [rsp+30h] [rbp-78h] BYREF
char v19; // [rsp+B0h] [rbp+8h] BYREF
__int16 v20; // [rsp+B1h] [rbp+9h]
float v21; // [rsp+D0h] [rbp+28h]
v3 = sub_1403F3890((__int64)v18, a1->m_soundEffects._Mypair._Myval2._Myfirst[a1->m_chatIndex]);
TextArea::setString(a1->m_messageArea, v3);
data = a1->m_messageArea->m_label->getChildren(a1->m_messageArea->m_label)->data;
num = (int)data->num;
if ( num > 0 )
{
for ( i = 0; i < num; ++i )
{
v7 = data->arr[i];
v8 = 0;
v9 = *(int **)(((__int64 (__fastcall *)(cocos2d::CCObject *))v7->__vftable[6].update)(v7) + 56);
v10 = *v9;
if ( v10 > 0 )
{
do
{
v11 = rand();
v20 = -256;
v19 = (int)(float)((float)((float)((float)v11 / 32767.0) * 25.0) + 150.0);
v12 = (void (__fastcall ***)(_QWORD, char *))(*(_QWORD *)(*((_QWORD *)v9 + 2) + 8 * v8) + 320LL);
(**v12)(v12, &v19);
++v8;
}
while ( v8 < v10 );
}
}
}
v13 = TextArea::fadeInCharacters(a1->m_messageArea, 0.60000002, 0.059999999, 0, Scale) + 0.60000002;
v14 = cocos2d::CCCallFunc::create(a1, SecretLayer5::fadeOutMessage);
v15 = cocos2d::CCDelayTime::create(v13);
v16 = cocos2d::CCSequence::create(v15, v14, 0);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v16, v17, v1, v21);
}