//
// GJWriteMessagePopup::textChanged from 0x1002dd04c to 0x1002dd120 (212 bytes)
//
// 2 xrefs:
// > sub_1002DD168 @ 0x1002dd16c
// > ??> @ 0x1007dbc28
//
// 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::textChanged(GJWriteMessagePopup *a1, CCTextInputNode *a2)
{
int v4; // w0
char *v5; // x1
void **v6; // x8
char *v7; // x1
_QWORD v8[2]; // [xsp+8h] [xbp-58h] BYREF
char v9; // [xsp+1Fh] [xbp-41h]
_QWORD v10[2]; // [xsp+20h] [xbp-40h] BYREF
char v11; // [xsp+37h] [xbp-29h]
void *v12[2]; // [xsp+38h] [xbp-28h] BYREF
char v13; // [xsp+4Fh] [xbp-11h]
CCTextInputNode::getString((__int64)a2, v12);
v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);
if ( v4 )
{
if ( v4 == 1 )
{
v5 = v13 >= 0 ? (char *)v12 : (char *)v12[0];
sub_100009900(v8, v5);
GJWriteMessagePopup::updateBody((__int64)a1, (__int64)v8);
if ( v9 < 0 )
{
v6 = (void **)v8;
LABEL_13:
operator delete(*v6);
}
}
}
else
{
if ( v13 >= 0 )
v7 = (char *)v12;
else
v7 = (char *)v12[0];
sub_100009900(v10, v7);
GJWriteMessagePopup::updateSubject((__int64)a1, (__int64)v10);
if ( v11 < 0 )
{
v6 = (void **)v10;
goto LABEL_13;
}
}
if ( v13 < 0 )
operator delete(v12[0]);
}