//
// ThreadOpenHelper::check from 0x100948ef0 to 0x100948f82 (146 bytes)
//
// 3 xrefs:
// > GJCompactUserCell::onSendMessage @ 0x10023ff1c
// > FriendsProfilePage::onSendMessage @ 0x100736b91
// > ProfilePage::onSendMessage @ 0x1008a2255
//
// This function is hookable on this platform (idp: pc, 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 12:38:34 +0000
//
void __fastcall ThreadOpenHelper::check(int a1, const std::string *a2)
{
__int64 v2; // rax
void *v3; // r14
unsigned __int8 v4[48]; // [rsp+0h] [rbp-30h] BYREF
v2 = GameManager::sharedState();
if ( sub_10036D800(v2) )
{
GameManager::sharedState();
GameManager::showParentalRestrictedAlert();
}
else
{
*(_WORD *)v4 = 0;
v3 = operator new(0x3A8u);
sub_100955C70(v3);
if ( !NewThreadPopup::init((__int64)v3, a1, v4, a2) )
sub_1009A64D0(v3);
cocos2d::CCObject::autorelease((__int64)v3);
(*(void (__fastcall **)(void *))(*(_QWORD *)v3 + 1312LL))(v3);
}
}