//
// ThreadSearchPopup::fieldValue from 0x749018 to 0x749072 (90 bytes)
//
// 5 xrefs:
// > ThreadSearchPopup::clampDayField @ 0x74e0da
// > ThreadSearchPopup::clampDayField @ 0x74e0ea
// > ThreadSearchPopup::onGoToDate @ 0x75bf24
// > ThreadSearchPopup::onGoToDate @ 0x75bf34
// > ThreadSearchPopup::onGoToDate @ 0x75bf84
//
// 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:58:44 +0000
//
char *__fastcall ThreadSearchPopup::fieldValue(ThreadSearchPopup *this, CCTextInputNode *a2, char *a3, char *a4)
{
char *v4; // r6
char *v6; // r0
int v7; // r8
char *result; // r0
_DWORD v9[2]; // [sp+0h] [bp-10h] BYREF
char *v10; // [sp+8h] [bp-8h]
int v11; // [sp+Ch] [bp-4h]
v9[0] = this;
v9[1] = a2;
v10 = a3;
v11 = (int)a4;
v4 = a4;
if ( !a2 )
return a3;
CCTextInputNode::getString((CCTextInputNode *)v9, (int)a2);
if ( (v9[0] & 1) != 0 )
v6 = v10;
else
v6 = (char *)v9 + 1;
v7 = atoi(v6);
std::string::~string((int)v9);
if ( (int)v4 >= v7 )
v4 = (char *)v7;
result = v4;
if ( (int)v4 < (int)a3 )
return a3;
return result;
}