//
// ThreadViewPopup::openAt from 0x75bffc to 0x75c0c2 (198 bytes)
//
// 2 xrefs:
// > ThreadViewPopup::init @ 0x75cdb6
// > ThreadViewPopup::onJumpToMessage @ 0x75d464
//
// 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::openAt(ThreadViewPopup *this, __int64 a2)
{
int ThreadMessages; // r5
size_t v6; // r5
int v7; // r0
int v8; // r3
const char *v9; // r10
GameManager *v10; // r11
GameLevelManager *v11; // r0
int v13[3]; // [sp+20h] [bp-14h] BYREF
if ( *((_DWORD *)this + 190) )
return 0;
v6 = *((unsigned __int8 *)this + 598);
if ( *((_BYTE *)this + 598) )
return 0;
if ( a2 < 1 )
return 0;
v7 = GameLevelManager::sharedState(this);
v8 = *((_DWORD *)this + 141);
v13[0] = v6;
v9 = *(const char **)(v8 + 52);
v13[1] = v6;
v13[2] = v6;
v10 = (GameManager *)v7;
std::string::__init(v13, &unk_B6B226, v6);
ThreadMessages = GameLevelManager::getThreadMessages(
v10,
v9,
0,
0,
0,
0,
(char *)0xFFFFFFFF,
a2,
(unsigned __int8 *)v13);
v11 = (GameLevelManager *)std::string::~string((int)v13);
if ( !ThreadMessages )
return 0;
*(_DWORD *)(GameLevelManager::sharedState(v11) + 840) = (char *)this + 524;
ThreadViewPopup::exitSearch(this, 0);
*((_QWORD *)this + 108) = a2;
*((_QWORD *)this + 109) = a2;
ThreadViewPopup::showLoading(this);
return ThreadMessages;
}