//
// IDNameInput::updateAutocomplete from 0x796944 to 0x796b8a (582 bytes)
//
// 1 xrefs:
// > IDNameInput::textChanged @ 0x796c00
//
// 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:59:45 +0000
//
char **__fastcall IDNameInput::updateAutocomplete(IDNameInput *this)
{
char **result; // r0
int v3; // r1
float v4; // s14
float v5; // s15
const cocos2d::CCPoint *v6; // r1
float v7; // s15
int *v8; // r0
_BYTE v9[8]; // [sp+Ch] [bp-74h] BYREF
GameManager *(__fastcall *v10)(GameManager *, cocos2d::CCObject *); // [sp+14h] [bp-6Ch]
int v11; // [sp+18h] [bp-68h]
void *v12; // [sp+1Ch] [bp-64h] BYREF
void *v13; // [sp+20h] [bp-60h]
int v14; // [sp+24h] [bp-5Ch]
unsigned __int8 v15[12]; // [sp+28h] [bp-58h] BYREF
int v16[3]; // [sp+34h] [bp-4Ch] BYREF
char v17; // [sp+40h] [bp-40h]
char v18; // [sp+41h] [bp-3Fh]
char v19; // [sp+42h] [bp-3Eh]
char v20; // [sp+43h] [bp-3Dh]
int v21[3]; // [sp+44h] [bp-3Ch] BYREF
float v22; // [sp+50h] [bp-30h]
char v23; // [sp+54h] [bp-2Ch]
char v24; // [sp+55h] [bp-2Bh]
char v25; // [sp+56h] [bp-2Ah]
char v26; // [sp+57h] [bp-29h]
char v27; // [sp+58h] [bp-28h]
char v28; // [sp+59h] [bp-27h]
float v29; // [sp+5Ch] [bp-24h]
float v30; // [sp+60h] [bp-20h]
float v31; // [sp+64h] [bp-1Ch]
float v32; // [sp+68h] [bp-18h]
int v33[4]; // [sp+6Ch] [bp-14h] BYREF
result = (char **)IDNameInput::dismissAutocomplete((int)this);
if ( *((_DWORD *)this + 73) )
{
if ( *((_DWORD *)this + 75) )
{
if ( *((_DWORD *)this + 70) )
{
if ( *((_DWORD *)this + 71) )
{
result = (char **)GameManager::sharedState((GameManager *)result);
if ( result[102] )
{
result = (char **)GameManager::sharedState((GameManager *)result);
if ( *((_DWORD *)result[102] + 521) )
{
v3 = *((_DWORD *)this + 75);
v12 = nullptr;
v13 = nullptr;
v14 = 0;
CCTextInputNode::getString((CCTextInputNode *)v15, v3);
IDNameInput::collectMatches((int)this, v15, (int **)&v12);
std::string::~string((int)v15);
if ( v12 != v13 )
{
memset(v16, 0, sizeof(v16));
std::string::__init(v16, "square02_small.png", 0x12u);
v20 = -21;
memset(v21, 0, sizeof(v21));
std::string::__init(v21, "bigFont.fnt", 0xBu);
memset(v33, 0, 12);
v22 = 0.45;
v29 = 120.0;
v30 = 20.0;
v31 = 3.0;
v32 = 1000000.0;
std::string::__init(v33, "GJ_arrow_03_001.png", 0x13u);
v4 = *((float *)this + 85);
v33[3] = 0;
v5 = *((float *)this + 86);
v17 = 0;
v18 = 0;
v19 = 0;
v23 = -1;
v24 = -1;
v25 = -1;
v26 = -1;
v27 = -1;
v28 = -1;
v29 = (float)(v4 + 30.0) * v5;
v30 = v5 * 16.0;
v31 = v5 * 4.0;
std::string::assign(v21, "chatFont.fnt", 0xCu);
v6 = *((const cocos2d::CCPoint **)this + 71);
v7 = *((float *)this + 86);
v20 = -36;
v23 = 125;
v24 = -56;
v25 = -1;
v26 = -1;
v27 = -1;
v28 = -1;
v22 = v7 * 0.55;
v32 = (float)(v31 + v31) + (float)(v30 * 7.0);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v9, v6);
v10 = IDNameInput::onAutocompleteRow;
v11 = 0;
v8 = DropdownListPopup::create(
(int)&v12,
(const cocos2d::CCPoint *)v9,
(int)v16,
(int)this,
(int)IDNameInput::onAutocompleteRow,
0);
*((_DWORD *)this + 82) = v8;
if ( v8 )
{
v8[168] = (int)this + 272;
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 82) + 656))(*((_DWORD *)this + 82));
}
std::string::~string((int)v33);
std::string::~string((int)v21);
std::string::~string((int)v16);
}
return std::__vector_base::~__vector_base(&v12);
}
}
}
}
}
}
return result;
}