//
// SecretLayer5::fadeInSubmitMessage from 0xa914d4 to 0xa915dc (264 bytes)
//
// 3 xrefs:
// > ??> @ 0x2f1c0
// > SecretLayer5::onSubmit @ 0xa95668
// > ??> @ 0x1229620
//
// 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)
{
TextArea *m_messageArea; // x21
char *v3; // x0
unsigned int *v4; // x2
int v5; // w1
_DWORD *v6; // [xsp+50h] [xbp+50h] BYREF
m_messageArea = a1->m_messageArea;
textForWraithID(a1->m_soundEffects.m_start[a1->m_chatIndex], (__int64)&v6);
TextArea::setString((__int64)m_messageArea, (const void **)&v6);
v3 = (char *)(v6 - 6);
if ( v6 - 6 != (_DWORD *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v4 = v6 - 2;
do
v5 = __ldaxr(v4);
while ( __stlxr(v5 - 1, v4) );
}
else
{
v5 = *(v6 - 2);
*(v6 - 2) = v5 - 1;
}
if ( v5 <= 0 )
operator delete(v3);
}
SecretLayer5::fadeInMessage(a1);
}