//
// GJWriteMessagePopup::updateBody from 0xa2f6ec to 0xa2f7b4 (200 bytes)
//
// 3 xrefs:
// > GJWriteMessagePopup::textChanged @ 0xa2f880
// > GJWriteMessagePopup::init @ 0xa32bac
// > ??> @ 0xc1378
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:59:46 +0000
//
__int64 __fastcall GJWriteMessagePopup::updateBody(__int64 *a1, char *a2)
{
char v4; // w0
__int64 v5; // x0
__int64 v6; // x1
__int64 v8; // [xsp+30h] [xbp+30h] BYREF
__int64 v9; // [xsp+38h] [xbp+38h]
void *v10; // [xsp+40h] [xbp+40h]
v8 = 0;
v4 = *a2;
v9 = 0;
v10 = nullptr;
if ( (v4 & 1) != 0 )
{
std::string::__init(&v8, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v5 = *(_QWORD *)a2;
v6 = *((_QWORD *)a2 + 1);
v10 = *((void **)a2 + 2);
v8 = v5;
v9 = v6;
}
GJWriteMessagePopup::updateText(a1, (__int64)&v8, 1);
if ( (v8 & 1) != 0 )
operator delete(v10);
return _stack_chk_guard;
}