//
// ThreadOptionsPopup::onModLock from 0x74bb7c to 0x74bc36 (186 bytes)
//
// 0 xrefs:
//
// 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:47 +0000
//
int __fastcall ThreadOptionsPopup::onModLock(ThreadOptionsPopup *this, cocos2d::CCObject *a2)
{
char *v2; // r9
int v3; // r5
char *v4; // r8
const char *v5; // r7
size_t v6; // r0
char *v7; // r5
int *v8; // r5
int v10[3]; // [sp+18h] [bp-14h] BYREF
v2 = (char *)this + 716;
v3 = *(unsigned __int8 *)(*((_DWORD *)this + 180) + 176) ^ 1;
if ( v3 )
{
v4 = "Lock Conversation";
v5 = "Lock this conversation?\nEveryone keeps reading, nobody can send or add.";
}
else
{
v4 = "Unlock Conversation";
v5 = "Unlock this conversation?";
}
memset(v10, 0, sizeof(v10));
v6 = strlen(v5);
std::string::__init(v10, v5, v6);
if ( v3 )
v7 = "Lock";
else
v7 = "Unlock";
v8 = FLAlertLayer::create(
(int)v2,
(cocos2d::CCLabelBMFont *)v4,
(int)v10,
(ButtonSprite *)"Back",
(ButtonSprite *)v7,
380.0,
0,
0,
1.0);
std::string::~string((int)v10);
(*(void (__fastcall **)(int *, int))(*v8 + 36))(v8, 11);
return (*(int (__fastcall **)(int *))(*v8 + 656))(v8);
}