//
// ShareCommentLayer::lockInput from 0x90e8ec to 0x90ead4 (488 bytes)
//
// 2 xrefs:
// > ProfilePage::onFriend @ 0xa56b1c
// > ??> @ 0x7bac0
//
// 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 12:57:15 +0000
//
__int64 __fastcall ShareCommentLayer::lockInput(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
const char *v6; // x1
size_t v7; // x0
float v8; // s8
__int64 v9; // x20
void (__fastcall *v10)(__int64, __int64); // x22
__int64 v11; // x0
char *v13; // [xsp+48h] [xbp+48h]
_BYTE v14[8]; // [xsp+58h] [xbp+58h] BYREF
__int64 v15[2]; // [xsp+60h] [xbp+60h] BYREF
void *v16; // [xsp+70h] [xbp+70h]
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 344LL))(*(_QWORD *)(a1 + 704), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 1000LL))(*(_QWORD *)(a1 + 704), 0);
v4 = *(_QWORD *)(a1 + 712);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0);
v5 = *(_QWORD *)(a1 + 776);
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
v6 = (const char *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v6 = *(const char **)(a2 + 16);
v13 = (char *)v6;
v15[0] = 0;
v15[1] = 0;
v16 = nullptr;
v7 = strlen(v6);
std::string::__init(v15, v13, v7);
v8 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 704) + 328LL))(*(_QWORD *)(a1 + 704)) - 40.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.5, 0.5);
v9 = TextArea::create(
(char *)v15,
"chatFont.fnt",
(const cocos2d::CCPoint *)v14,
0,
0,
1.0,
(float)(v8 * 1.1) / 0.8,
20.0);
if ( (v15[0] & 1) != 0 )
operator delete(v16);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 160LL))(v9, 0.8);
v10 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 184LL);
v11 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 704) + 192LL))(*(_QWORD *)(a1 + 704));
v10(v9, v11);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v9, 2);
return _stack_chk_guard;
}