//
// IDNameBrowserPopup::getFormID from 0x78fa2c to 0x78fa90 (100 bytes)
//
// 5 xrefs:
// > IDNameBrowserPopup::updateConflictLabel @ 0x78fc16
// > IDNameBrowserPopup::onFormArrowLeft @ 0x78fd54
// > IDNameBrowserPopup::onFormArrowRight @ 0x78fd74
// > IDNameBrowserPopup::onFormArrowRight @ 0x78fd82
// > IDNameBrowserPopup::onFormAdd @ 0x79348c
//
// 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:40 +0000
//
int __fastcall IDNameBrowserPopup::getFormID(IDNameBrowserPopup *this, int a2, const char *a3, int a4)
{
int v4; // r1
int v5; // r4
const char *v6; // r0
int v7; // r0
IDNameBrowserPopup *v9; // [sp+0h] [bp-10h] BYREF
int v10; // [sp+4h] [bp-Ch]
const char *v11; // [sp+8h] [bp-8h]
int v12; // [sp+Ch] [bp-4h]
v9 = this;
v10 = a2;
v11 = a3;
v12 = a4;
v4 = *((_DWORD *)this + 137);
if ( !v4 )
return 0;
CCTextInputNode::getString((CCTextInputNode *)&v9, v4);
if ( ((unsigned __int8)v9 & 1) != 0 )
{
v5 = v10;
if ( v10 )
{
v6 = v11;
goto LABEL_7;
}
}
else
{
v5 = (int)(unsigned __int8)v9 >> 1;
if ( v5 )
{
v6 = (char *)&v9 + 1;
LABEL_7:
v7 = atoi(v6);
if ( v7 > 9998 )
v5 = 9999;
else
v5 = v7 & ~(v7 >> 31);
}
}
std::string::~string((int)&v9);
return v5;
}