//
// AutoBackupPopup::textChanged from 0x73f44c to 0x73f562 (278 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AutoBackupPopup::textChanged @ 0x73f56c
//
// 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:58:33 +0000
//
int __fastcall AutoBackupPopup::textChanged(int this, CCTextInputNode *a2)
{
int v2; // r4
int v3; // r0
int v4; // r1
int v5; // r3
int v6; // r3
int v7; // lr
size_t v8; // r2
int v9; // r1
int v10; // r3
char *v11; // r0
unsigned __int8 *v12; // r1
char *v13; // r0
unsigned __int8 *v14; // r2
int v15; // t1
_BYTE v16[4]; // [sp+4h] [bp-20h] BYREF
int v17; // [sp+8h] [bp-1Ch]
int v18; // [sp+10h] [bp-14h] BYREF
size_t v19; // [sp+14h] [bp-10h]
char *v20; // [sp+18h] [bp-Ch]
v2 = this;
if ( *(CCTextInputNode **)(this + 668) == a2 )
{
CCTextInputNode::getString((CCTextInputNode *)v16, (int)a2);
v3 = *(_DWORD *)(v2 + 672);
if ( v3 )
{
if ( (v16[0] & 1) != 0 )
v4 = v17;
else
v4 = (int)v16[0] >> 1;
(*(void (__fastcall **)(int, bool, int))(*(_DWORD *)v3 + 172))(v3, v4 != 0, v16[0] << 31);
}
sub_73C56C(&v18, (int)v16);
if ( (v18 & 1) != 0 )
v5 = v19;
else
v5 = (int)(unsigned __int8)v18 >> 1;
if ( v5 <= 1 )
{
if ( (v18 & 1) != 0 )
{
*v20 = 0;
v19 = 0;
}
else
{
LOWORD(v18) = 0;
}
}
v6 = *(unsigned __int8 *)(v2 + 644);
v7 = v18 & 1;
if ( v7 )
v8 = v19;
else
v8 = (int)(unsigned __int8)v18 >> 1;
v9 = v6 & 1;
if ( (v6 & 1) != 0 )
v10 = *(_DWORD *)(v2 + 648);
else
v10 = v6 >> 1;
if ( v8 != v10 )
goto LABEL_36;
if ( v7 )
v11 = v20;
else
v11 = (char *)&v18 + 1;
if ( v9 )
v12 = *(unsigned __int8 **)(v2 + 652);
else
v12 = (unsigned __int8 *)(v2 + 645);
if ( !v7 )
{
v13 = v11 - 1;
v14 = &v12[v8];
while ( v12 != v14 )
{
v15 = (unsigned __int8)*++v13;
if ( v15 != *v12 )
goto LABEL_36;
++v12;
}
goto LABEL_37;
}
if ( std::char_traits::compare(v11, v12, v8) )
{
LABEL_36:
std::string::operator=((unsigned __int8 *)(v2 + 644), (unsigned __int8 *)&v18);
AutoBackupPopup::buildRows((AutoBackupPopup *)v2);
}
LABEL_37:
std::string::~string((int)&v18);
return std::string::~string((int)v16);
}
return this;
}