//
// SetTextPopup::textChanged from 0x1403a7f10 to 0x1403a8027 (279 bytes)
//
// 2 xrefs:
// > ??> @ 0x14077c418
// > ??> @ 0x14092384c
//
// 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:31:19 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall SetTextPopup::textChanged(__int64 a1, __int64 a2)
{
_BYTE *v3; // rax
size_t v4; // rbx
size_t v5; // r8
void **v6; // rdx
void *v7; // rcx
void *Block[2]; // [rsp+38h] [rbp-30h] BYREF
__int128 v9; // [rsp+48h] [rbp-20h]
if ( !*(_BYTE *)(a1 + 136) )
{
v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a2 + 592) + 600LL) + 8LL))(*(_QWORD *)(a2 + 592) + 600LL);
*(_OWORD *)Block = 0;
v9 = 0;
v4 = -1;
v5 = -1;
do
++v5;
while ( v3[v5] );
sub_14003D230(Block, v3, v5);
v6 = Block;
if ( *((_QWORD *)&v9 + 1) > 0xFu )
v6 = (void **)Block[0];
do
++v4;
while ( *((_BYTE *)v6 + v4) );
sub_1400405A0((void **)(a1 + 152), v6, v4);
if ( *((_QWORD *)&v9 + 1) > 0xFu )
{
v7 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v7);
}
}
}