//
// IDNameBrowserPopup::getFormID from 0xcddf58 to 0xcde048 (240 bytes)
//
// 6 xrefs:
// > IDNameBrowserPopup::updateConflictLabel @ 0xcde260
// > IDNameBrowserPopup::onFormArrowLeft @ 0xcde4b4
// > IDNameBrowserPopup::onFormArrowRight @ 0xcde4ec
// > IDNameBrowserPopup::onFormArrowRight @ 0xcde504
// > IDNameBrowserPopup::onFormAdd @ 0xce3c64
// > ??> @ 0xa94b0
//
// This function is hookable on this platform (idp: arm, 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 13:06:34 +0000
//
__int64 __fastcall IDNameBrowserPopup::getFormID(IDNameBrowserPopup *this)
{
CCTextInputNode *v1; // x0
char *v2; // x21
int v3; // w19
int v5; // w0
__int64 v6[2]; // [xsp+30h] [xbp+30h] BYREF
char *v7; // [xsp+40h] [xbp+40h]
v1 = *((CCTextInputNode **)this + 89);
if ( v1 )
{
CCTextInputNode::getString(v1, v6);
if ( (v6[0] & 1) != 0 )
{
if ( v6[1] )
{
v2 = v7;
v3 = atoi(v7);
if ( v3 <= 9998 )
{
if ( v3 < 0 )
v3 = 0;
operator delete(v2);
}
else
{
v3 = 9999;
operator delete(v2);
}
}
else
{
v3 = 0;
operator delete(v7);
}
}
else
{
v3 = (int)LOBYTE(v6[0]) >> 1;
if ( v3 )
{
v3 = 9999;
v5 = atoi((const char *)v6 + 1);
if ( v5 <= 9998 )
{
if ( v5 < 0 )
return 0;
else
return (unsigned int)v5;
}
}
}
}
else
{
return 0;
}
return (unsigned int)v3;
}