//
// GJWriteMessagePopup::textChanged from 0x5de0ec to 0x5de1b4 (200 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJWriteMessagePopup::textChanged @ 0x5de1bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:14 +0000
//
int __fastcall GJWriteMessagePopup::textChanged(GJWriteMessagePopup *this, CCTextInputNode *a2)
{
char *v2; // r7
int v5; // r0
int *v6; // r4
size_t v7; // r0
int v8; // r2
int v9; // r3
size_t v10; // r0
int v11; // r2
int v12; // r3
char v14; // [sp+0h] [bp-28h] BYREF
_BYTE v15[7]; // [sp+1h] [bp-27h] BYREF
char *v16; // [sp+8h] [bp-20h]
int v17[3]; // [sp+Ch] [bp-1Ch] BYREF
int v18[3]; // [sp+18h] [bp-10h] BYREF
CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2);
v5 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
if ( v5 )
{
if ( v5 != 1 )
return std::string::~string((int)&v14);
v6 = v18;
if ( (v14 & 1) == 0 )
v2 = v15;
v18[0] = 0;
if ( (v14 & 1) != 0 )
v2 = v16;
v18[1] = 0;
v18[2] = 0;
v10 = strlen(v2);
std::string::__init(v18, v2, v10);
GJWriteMessagePopup::updateBody((int)this, (int)v18, v11, v12);
}
else
{
v6 = v17;
if ( (v14 & 1) == 0 )
v2 = v15;
v17[0] = 0;
if ( (v14 & 1) != 0 )
v2 = v16;
v17[1] = 0;
v17[2] = 0;
v7 = strlen(v2);
std::string::__init(v17, v2, v7);
GJWriteMessagePopup::updateSubject((int)this, (int)v17, v8, v9);
}
std::string::~string((int)v6);
return std::string::~string((int)&v14);
}