//
// GJWriteMessagePopup::textChanged from 0xa2f7b4 to 0xa2f950 (412 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'GJWriteMessagePopup::textChanged @ 0xa2f954
// > ??> @ 0xdf438
// > ??> @ 0x147fb40
//
// 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::textChanged(GJWriteMessagePopup *this, CCTextInputNode *a2)
{
int v3; // w0
const char *v5; // x1
size_t v6; // x0
const char *v7; // x1
size_t v8; // x0
char *v10; // [xsp+38h] [xbp+38h]
char *v11; // [xsp+38h] [xbp+38h]
__int64 v12[2]; // [xsp+40h] [xbp+40h] BYREF
void *v13; // [xsp+50h] [xbp+50h]
__int64 v14[2]; // [xsp+58h] [xbp+58h] BYREF
void *v15; // [xsp+68h] [xbp+68h]
__int64 v16[2]; // [xsp+70h] [xbp+70h] BYREF
void *v17; // [xsp+80h] [xbp+80h]
CCTextInputNode::getString(a2, v12);
v3 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 )
{
if ( v3 == 1 )
{
v5 = (char *)v12 + 1;
if ( (v12[0] & 1) != 0 )
v5 = (const char *)v13;
v10 = (char *)v5;
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
v6 = strlen(v5);
std::string::__init(v16, v10, v6);
GJWriteMessagePopup::updateBody((__int64 *)this, (char *)v16);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
}
}
else
{
v7 = (char *)v12 + 1;
if ( (v12[0] & 1) != 0 )
v7 = (const char *)v13;
v11 = (char *)v7;
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
v8 = strlen(v7);
std::string::__init(v14, v11, v8);
GJWriteMessagePopup::updateSubject((__int64 *)this, (char *)v14);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
}
if ( (v12[0] & 1) != 0 )
operator delete(v13);
return _stack_chk_guard;
}