//
// sub_1400A6720 from 0x1400a6720 to 0x1400a6949 (553 bytes)
//
// 5 xrefs:
// > AccountBanPopup::onCommentBan @ 0x1400a7da0
// > AccountBanPopup::onLevelUploadBan @ 0x1400a7f10
// > AccountBanPopup::onMessageBan @ 0x1400a84c0
// > AccountBanPopup::onFreeze @ 0x1400a88a8
// > ??> @ 0x140913208
//
// This function is hookable on this platform (idp: pc, 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:26:08 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall sub_1400A6720(int a1, int a2, __int64 a3, __int64 a4)
{
__m128i si128; // xmm6
char *v5; // rbx
void *v6; // r8
_WORD *v7; // rax
void *v8; // rcx
void *Block[2]; // [rsp+40h] [rbp-68h] BYREF
__m128i v11; // [rsp+50h] [rbp-58h]
void *v12[2]; // [rsp+60h] [rbp-48h] BYREF
__m128i v13; // [rsp+70h] [rbp-38h]
*(_OWORD *)Block = 0;
si128 = _mm_load_si128((const __m128i *)&Size);
v11 = si128;
LOBYTE(Block[0]) = 0;
v5 = sub_1400A51F0(a1, a2, (int)"Confirm Ban", a3, (__int64)"Ban", a4, (__int64)Block);
if ( v11.m128i_i64[1] > 0xFuLL )
{
v6 = Block[0];
if ( (unsigned __int64)(v11.m128i_i64[1] + 1) >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v6);
si128 = _mm_load_si128((const __m128i *)&Size);
}
v11 = si128;
LOBYTE(Block[0]) = 0;
*(_OWORD *)v12 = 0;
v7 = sub_14003D460(0xF0u);
v12[0] = v7;
v13 = _mm_load_si128((const __m128i *)&xmmword_140836720);
qmemcpy(
v7,
"When the player next tries to comment, upload or message, a popup tells them they are banned, for how long, and the "
"reason typed here. With no reason, the ticked categories are shown instead.\n"
"\n"
"The player reads it word for word",
226);
v7[113] = (unsigned __int8)aWhenThePlayerN[226];
AdminActionConfirmPopup::addHelp((__int64)v5, "Ban Reason", (__int64)v12);
if ( v13.m128i_i64[1] > 0xFuLL )
{
v8 = v12[0];
if ( (unsigned __int64)(v13.m128i_i64[1] + 1) >= 0x1000 )
{
v8 = *((void **)v12[0] - 1);
if ( (unsigned __int64)((char *)v12[0] - (char *)v8 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v8);
}
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v5 + 1064LL))(v5);
}