//
// sub_10053E0CC from 0x10053e0cc to 0x10053e1b0 (228 bytes)
//
// 1 xrefs:
// > sub_10053D150 @ 0x10053d524
//
// 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 11:07:41 +0000
//
void __fastcall sub_10053E0CC(__int64 a1)
{
__int64 v2; // x8
const char *v3; // x8
void *v4; // x0
const char *v5; // x9
const std::string::value_type *CString; // x0
void *__p[3]; // [xsp+10h] [xbp-40h] BYREF
std::string v8; // [xsp+28h] [xbp-28h] BYREF
v2 = *(_QWORD *)(a1 + 1128);
if ( v2 )
{
LODWORD(v2) = *(_DWORD *)(v2 + 384);
memset(&v8, 0, sizeof(v8));
if ( (_DWORD)v2 == 12 )
{
v3 = (const char *)(a1 + 1056);
if ( *(char *)(a1 + 1079) < 0 )
v3 = *(const char **)v3;
v4 = sub_1003065B0(
"Apply a permanent message ban to %s?\nBlocks messages and friend requests.",
v3);
goto LABEL_10;
}
}
else
{
memset(&v8, 0, sizeof(v8));
}
v5 = (const char *)(a1 + 1056);
if ( *(char *)(a1 + 1079) < 0 )
v5 = *(const char **)v5;
v4 = sub_1003065B0("Ban %s from messages and friend requests for %s?", v5, off_1009A85B0[(int)v2]);
LABEL_10:
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v4);
std::string::assign(&v8, CString);
sub_10051FE78((__int64 *)__p);
sub_10053EDE8(a1 + 1040, 5, &v8, __p);
if ( __p[0] )
{
__p[1] = __p[0];
operator delete(__p[0]);
}
if ( SHIBYTE(v8.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v8.__r_.__value_.__l.__data_);
}