//
// ThreadViewPopup::goToDate from 0x75be82 to 0x75bf08 (134 bytes)
//
// 1 xrefs:
// > ThreadSearchPopup::onGoToDate @ 0x75bfc8
//
// 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:59 +0000
//
int __fastcall ThreadViewPopup::goToDate(int result, unsigned __int8 *a2)
{
int v2; // r4
int v4; // r3
int v5; // r3
GameManager *v6; // r0
v2 = result;
if ( !*(_DWORD *)(result + 760) && !*(_BYTE *)(result + 598) )
{
v4 = *a2;
if ( (v4 & 1) != 0 )
v5 = *((_DWORD *)a2 + 1);
else
v5 = v4 >> 1;
if ( v5 )
{
v6 = (GameManager *)GameLevelManager::sharedState((GameLevelManager *)result);
result = GameLevelManager::getThreadMessages(
v6,
*(const char **)(*(_DWORD *)(v2 + 564) + 52),
0,
0,
0,
0,
(char *)0xFFFFFFFF,
0,
a2);
if ( result )
{
*(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)result) + 840) = v2 + 524;
ThreadViewPopup::exitSearch((ThreadViewPopup *)v2, 0);
*(_QWORD *)(v2 + 864) = -1;
*(_QWORD *)(v2 + 872) = 0;
return ThreadViewPopup::showLoading((ThreadViewPopup *)v2);
}
}
}
return result;
}