//
// ThreadSearchPopup::fieldValue from 0xc68500 to 0xc685b4 (180 bytes)
//
// 6 xrefs:
// > ThreadSearchPopup::clampDayField @ 0xc6f6b8
// > ThreadSearchPopup::clampDayField @ 0xc6f6d0
// > ThreadSearchPopup::onGoToDate @ 0xc86824
// > ThreadSearchPopup::onGoToDate @ 0xc8683c
// > ThreadSearchPopup::onGoToDate @ 0xc86884
// > ??> @ 0x43f48
//
// 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:05:26 +0000
//
__int64 __fastcall ThreadSearchPopup::fieldValue(ThreadSearchPopup *this, CCTextInputNode *a2, unsigned int a3, int a4)
{
int v6; // w21
__int64 result; // x0
char *v8; // x23
__int64 v9[2]; // [xsp+40h] [xbp+40h] BYREF
char *v10; // [xsp+50h] [xbp+50h]
if ( !a2 )
return a3;
CCTextInputNode::getString(a2, v9);
if ( (v9[0] & 1) != 0 )
{
v8 = v10;
v6 = atoi(v10);
operator delete(v8);
}
else
{
v6 = atoi((const char *)v9 + 1);
}
if ( v6 > a4 )
LODWORD(result) = a4;
else
LODWORD(result) = v6;
if ( (int)result < (int)a3 )
return a3;
else
return (unsigned int)result;
}