//
// ThreadOptionsPopup::onModLock from 0xc64960 to 0xc64ac8 (360 bytes)
//
// 3 xrefs:
// > ??> @ 0xdad70
// > ThreadOptionsPopup::init @ 0xc7f684
// > ??> @ 0x15468d0
//
// 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:24 +0000
//
__int64 __fastcall ThreadOptionsPopup::onModLock(ThreadOptionsPopup *this, cocos2d::CCObject *a2)
{
char *v2; // x23
int v3; // w20
char *v4; // x24
const char *v5; // x1
size_t v6; // x21
unsigned __int64 v7; // x0
__int64 v8; // x19
char *v9; // x4
__int64 v10; // x19
const char *v12; // [xsp+48h] [xbp+48h]
_QWORD v13[2]; // [xsp+50h] [xbp+50h] BYREF
void *v14; // [xsp+60h] [xbp+60h]
v2 = (char *)this + 1024;
v3 = *(unsigned __int8 *)(*((_QWORD *)this + 129) + 272LL) ^ 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?";
}
v12 = v5;
v6 = strlen(v5);
v7 = (v6 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v8 = v7 | 1;
v13[1] = v6;
v14 = (void *)operator new(v7);
v13[0] = v8;
*((_BYTE *)memcpy(v14, v12, v6) + v6) = 0;
if ( v3 )
v9 = "Lock";
else
v9 = "Unlock";
v10 = FLAlertLayer::create(
(__int64)v2,
(cocos2d::CCLabelBMFont *)v4,
(char *)v13,
(ButtonSprite *)"Back",
(ButtonSprite *)v9,
0,
380.0,
0.0,
1.0);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 72LL))(v10, 11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1312LL))(v10);
return _stack_chk_guard;
}