//
// ThreadOpenHelper::showRulesOnce from 0xc6bbe4 to 0xc6bcd4 (240 bytes)
//
// 3 xrefs:
// > MessageThreadsPage::show @ 0xc6bd20
// > NewThreadPopup::show @ 0xc6bda8
// > ??> @ 0xacdc8
//
// 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:27 +0000
//
__int64 __fastcall ThreadOpenHelper::showRulesOnce(ThreadOpenHelper *this)
{
GameManager *v1; // x0
GameManager *GameVariable; // x0
GameManager *v4; // x0
__int64 v5; // x0
__int64 v6[2]; // [xsp+20h] [xbp+20h] BYREF
void *v7; // [xsp+30h] [xbp+30h]
v1 = (GameManager *)GameManager::sharedState(_stack_chk_guard);
GameVariable = (GameManager *)(unsigned __int8)GameManager::getGameVariable(v1, "0246");
if ( !(_BYTE)GameVariable )
{
v4 = (GameManager *)GameManager::sharedState(GameVariable);
GameManager::setGameVariable(v4, "0246", 1u);
v6[0] = 0;
v6[1] = 0;
v7 = nullptr;
std::string::__init(
v6,
"1. Do not harass, threaten, or bully other players.\n"
"2. Do not share personal info such as your address, passwords, or contact details.\n"
"3. Do not spam, scam, or send inappropriate content.\n"
"4. Do not try to bypass filters or safety systems.\n"
"Messages are filtered automatically and may be reviewed when reported or flagged for safety.\n"
"Report or Block users who break these rules.",
0x1A8u);
v5 = FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Messaging Rules",
(char *)v6,
(ButtonSprite *)"OK",
nullptr,
380.0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
}
return _stack_chk_guard;
}