//
// MessageThreadsPage::syncSearchFromBox from 0x7531fc to 0x7532bc (192 bytes)
//
// 4 xrefs:
// > MessageThreadsPage::onSearch @ 0x7532da
// > MessageThreadsPage::friendPickerClosed @ 0x753302
// > MessageThreadsPage::onSelectFilter @ 0x7533c8
// > MessageThreadsPage::onRefresh @ 0x753472
//
// 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:52 +0000
//
int __fastcall MessageThreadsPage::syncSearchFromBox(MessageThreadsPage *this)
{
int v2; // r2
int v3; // r3
int v4; // r7
size_t v5; // r2
int v6; // r1
int v7; // r3
char *v8; // r0
unsigned __int8 *v9; // r1
char *v10; // r0
unsigned __int8 *v11; // r2
int v12; // t1
int v13; // r5
int v15; // [sp+0h] [bp-14h] BYREF
size_t v16; // [sp+4h] [bp-10h]
char *v17; // [sp+8h] [bp-Ch]
v2 = *((_DWORD *)this + 145);
if ( v2 )
{
CCTextInputNode::getString((CCTextInputNode *)&v15, v2);
}
else
{
v15 = 0;
v16 = 0;
v17 = nullptr;
std::string::__init(&v15, &unk_B6B226, 0);
}
v3 = *((unsigned __int8 *)this + 592);
v4 = v15 & 1;
if ( v4 )
v5 = v16;
else
v5 = (int)(unsigned __int8)v15 >> 1;
v6 = v3 & 1;
if ( (v3 & 1) != 0 )
v7 = *((_DWORD *)this + 149);
else
v7 = v3 >> 1;
if ( v5 != v7 )
{
LABEL_25:
std::string::operator=((unsigned __int8 *)this + 592, (unsigned __int8 *)&v15);
v13 = 1;
goto LABEL_27;
}
if ( v4 )
v8 = v17;
else
v8 = (char *)&v15 + 1;
if ( v6 )
v9 = *((unsigned __int8 **)this + 150);
else
v9 = (unsigned __int8 *)this + 593;
if ( v4 )
{
if ( !std::char_traits::compare(v8, v9, v5) )
{
v13 = 0;
goto LABEL_27;
}
goto LABEL_25;
}
v10 = v8 - 1;
v11 = &v9[v5];
while ( v9 != v11 )
{
v12 = (unsigned __int8)*++v10;
if ( v12 != *v9 )
goto LABEL_25;
++v9;
}
v13 = 0;
LABEL_27:
std::string::~string((int)&v15);
return v13;
}