//
// GJWriteMessagePopup::updateSubject from 0x1002dcc4c to 0x1002dccbc (112 bytes)
//
// 2 xrefs:
// > GJWriteMessagePopup::init @ 0x1002dc3e8
// > GJWriteMessagePopup::textChanged @ 0x1002dd0e8
//
// 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 __fastcall GJWriteMessagePopup::updateSubject(__int64 a1, __int64 a2)
{
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v4; // [xsp+10h] [xbp-20h]
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v4 = *(_QWORD *)(a2 + 16);
}
GJWriteMessagePopup::updateText(a1, __p, 0);
if ( SHIBYTE(v4) < 0 )
operator delete(__p[0]);
}