//
// InvitesPopup::textChanged from 0x1400f7380 to 0x1400f74e2 (354 bytes)
//
// 3 xrefs:
// > ??> @ 0x14072b5d0
// > ??> @ 0x14091532c
// > ??> @ 0x140915338
//
// This function is hookable on this platform (idp: pc, 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 11:26:38 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall InvitesPopup::textChanged(__int64 a1, __int64 a2)
{
_BYTE *v3; // rax
size_t v4; // r8
char *v5; // rdi
_QWORD *v6; // rcx
unsigned __int8 *v7; // rsi
char *v8; // rbx
signed __int64 v9; // rdi
void *v10; // rcx
_QWORD v12[3]; // [rsp+38h] [rbp-60h] BYREF
unsigned __int64 v13; // [rsp+50h] [rbp-48h]
void *Block[2]; // [rsp+58h] [rbp-40h] BYREF
__int128 v15; // [rsp+68h] [rbp-30h]
v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a2 + 592) + 600LL) + 8LL))(*(_QWORD *)(a2 + 592) + 600LL);
*(_OWORD *)Block = 0;
v15 = 0;
v4 = -1;
do
++v4;
while ( v3[v4] );
sub_14003D230(Block, v3, v4);
sub_14003F4F0((__int64)v12, (__int64)Block);
v5 = (char *)v12;
if ( v13 > 0xF )
v5 = (char *)v12[0];
v6 = v12;
if ( v13 > 0xF )
v6 = (_QWORD *)v12[0];
v7 = (unsigned __int8 *)v6 + v12[2];
v8 = (char *)v12;
if ( v13 > 0xF )
v8 = (char *)v12[0];
if ( v8 != (char *)v7 )
{
v9 = v5 - v8;
do
{
v8[v9] = tolower((unsigned __int8)*v8);
++v8;
}
while ( v8 != (char *)v7 );
}
sub_140059C40(a1 + 296, (__int64)v12);
sub_14003D310((__int64)v12);
if ( *((_QWORD *)&v15 + 1) > 0xFu )
{
v10 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 0x1000 )
{
v10 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v10);
}
return InvitesPopup::buildRows(a1 - 544);
}