//
// ThreadViewPopup::goToDate from 0xc8674c to 0xc867f0 (164 bytes)
//
// 2 xrefs:
// > ThreadSearchPopup::onGoToDate @ 0xc868e8
// > ??> @ 0x7f3d8
//
// 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:42 +0000
//
__int64 __fastcall ThreadViewPopup::goToDate(__int64 result, __int64 a2)
{
__int64 v2; // x3
ThreadViewPopup *v3; // x19
cocos2d::CCObject *v4; // x0
if ( !*(_QWORD *)(result + 1040) && !*(_BYTE *)(result + 790) )
{
v2 = *(_BYTE *)a2 >> 1;
if ( (*(_BYTE *)a2 & 1) != 0 )
v2 = *(_QWORD *)(a2 + 8);
if ( v2 )
{
v3 = (ThreadViewPopup *)result;
v4 = (cocos2d::CCObject *)GameLevelManager::sharedState((GameLevelManager *)result);
result = (unsigned __int8)GameLevelManager::getThreadMessages(
v4,
(char *)*(unsigned int *)(*((_QWORD *)v3 + 94) + 56LL),
0,
0,
0xFFFFFFFF,
nullptr,
(char *)a2);
if ( (_BYTE)result )
{
*(_QWORD *)(GameLevelManager::sharedState((GameLevelManager *)result) + 1264) = (char *)v3 + 672;
ThreadViewPopup::exitSearch((__int64)v3, 0);
*((_QWORD *)v3 + 148) = 0;
*((_QWORD *)v3 + 147) = -1;
return ThreadViewPopup::showLoading(v3);
}
}
}
return result;
}