//
// GJWriteMessagePopup::FLAlert_Clicked from 0x8c47b8 to 0x8c48d4 (284 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'GJWriteMessagePopup::FLAlert_Clicked @ 0x8c48d8
// > ??> @ 0x462d8
// > ??> @ 0x1199ad0
//
// 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 GJWriteMessagePopup::FLAlert_Clicked(GJWriteMessagePopup *a1, FLAlertLayer *a2, bool a3)
{
CCTextInputNode *m_messageInput; // x21
unsigned __int8 *v5; // x0
unsigned int *v6; // x2
int v7; // w1
const unsigned __int8 *v8; // [xsp+40h] [xbp+40h] BYREF
if ( a3 && a2->getTag(a2) == 1 )
{
m_messageInput = a1->m_messageInput;
sub_D153B8((int)&v8, &byte_F288A0);
CCTextInputNode::setString(m_messageInput, &v8);
v5 = (unsigned __int8 *)(v8 - 24);
if ( v8 - 24 != (const unsigned __int8 *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v6 = (unsigned int *)(v8 - 8);
do
v7 = __ldaxr(v6);
while ( __stlxr(v7 - 1, v6) );
}
else
{
v7 = *((_DWORD *)v8 - 2);
*((_DWORD *)v8 - 2) = v7 - 1;
}
if ( v7 <= 0 )
operator delete(v5);
}
}
}