//
// sub_10053E300 from 0x10053e300 to 0x10053e408 (264 bytes)
//
// 1 xrefs:
// > sub_10053D150 @ 0x10053d568
//
// 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_10053E300(__int64 a1)
{
__int64 v2; // x8
const char *v3; // x8
void *v4; // x0
const char *v5; // x9
const std::string::value_type *CString; // x0
int v7; // w8
int v8; // [xsp+1Ch] [xbp-44h] BYREF
void *__p; // [xsp+20h] [xbp-40h] BYREF
void *v10; // [xsp+28h] [xbp-38h]
__int64 v11; // [xsp+30h] [xbp-30h]
std::string v12; // [xsp+38h] [xbp-28h] BYREF
v2 = *(_QWORD *)(a1 + 1136);
if ( v2 )
{
LODWORD(v2) = *(_DWORD *)(v2 + 384);
memset(&v12, 0, sizeof(v12));
if ( (_DWORD)v2 == 12 )
{
v3 = (const char *)(a1 + 1056);
if ( *(char *)(a1 + 1079) < 0 )
v3 = *(const char **)v3;
v4 = sub_1003065B0(
"Apply all bans to %s permanently?\nCovers comments, uploads and messages.",
v3);
goto LABEL_10;
}
}
else
{
memset(&v12, 0, sizeof(v12));
}
v5 = (const char *)(a1 + 1056);
if ( *(char *)(a1 + 1079) < 0 )
v5 = *(const char **)v5;
v4 = sub_1003065B0(
"Apply all bans to %s for %s?\nCovers comments, uploads and messages.",
v5,
off_1009A85B0[(int)v2]);
LABEL_10:
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v4);
std::string::assign(&v12, CString);
__p = nullptr;
v10 = nullptr;
v11 = 0;
v8 = 0;
do
{
sub_10000D038((__int64)&__p, &v8);
v7 = v8++;
}
while ( v7 < 7 );
sub_10053EDE8(a1 + 1040, 7, &v12, &__p);
if ( __p )
{
v10 = __p;
operator delete(__p);
}
if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v12.__r_.__value_.__l.__data_);
}