//
// AccountBanPopup::onQueueMute from 0x1400a9080 to 0x1400a93be (830 bytes)
//
// 2 xrefs:
// > AccountBanPopup::init @ 0x1400a725a
// > ??> @ 0x1409132d4
//
// 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:09 +0000
//
// Hidden C++ exception states: #wind=4
void __fastcall AccountBanPopup::onQueueMute(__int64 a1)
{
const char *v2; // rdx
cocos2d::CCString *v3; // rax
const char *CString; // rax
size_t v5; // r8
__m128i si128; // xmm6
int v7; // ecx
char *v8; // rbx
void *v9; // rcx
void *v10; // rcx
_BYTE *v11; // r9
_BYTE *v12; // rdx
const char *v13; // rcx
__int64 v14; // r8
void *v15; // rcx
void *v16; // rcx
void *Block[2]; // [rsp+48h] [rbp-39h] BYREF
__int64 v18; // [rsp+58h] [rbp-29h]
void *v19[2]; // [rsp+60h] [rbp-21h] BYREF
__m128i v20; // [rsp+70h] [rbp-11h]
void *v21[2]; // [rsp+80h] [rbp-1h] BYREF
__m128i v22; // [rsp+90h] [rbp+Fh]
void *v23[2]; // [rsp+A0h] [rbp+1Fh] BYREF
__int128 v24; // [rsp+B0h] [rbp+2Fh]
v2 = (const char *)(a1 + 1040);
if ( *(_QWORD *)(a1 + 1064) > 0xFu )
v2 = *(const char **)v2;
v3 = cocos2d::CCString::createWithFormat(
"Mute %s in the moderation queue?\nReports still count, the account just gets no queue row.",
v2);
CString = cocos2d::CCString::getCString(v3);
*(_OWORD *)v23 = 0;
v24 = 0;
v5 = -1;
do
++v5;
while ( CString[v5] );
sub_14003D230(v23, CString, v5);
*(_OWORD *)v19 = 0;
si128 = _mm_load_si128((const __m128i *)&Size);
v20 = si128;
LOBYTE(v19[0]) = 0;
v7 = a1 + 1024;
if ( !a1 )
v7 = 0;
*(_OWORD *)Block = 0;
v18 = 0;
v8 = sub_1400A51F0(v7, 13, (int)"Confirm Mute", (__int64)v23, (__int64)"Mute", (__int64)Block, (__int64)v19);
v9 = Block[0];
if ( Block[0] )
{
if ( ((v18 - (unsigned __int64)Block[0]) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 )
{
v9 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v9);
*(_OWORD *)Block = 0;
v18 = 0;
si128 = _mm_load_si128((const __m128i *)&Size);
}
if ( v20.m128i_i64[1] > 0xFuLL )
{
v10 = v19[0];
if ( (unsigned __int64)(v20.m128i_i64[1] + 1) >= 0x1000 )
{
v10 = *((void **)v19[0] - 1);
if ( (unsigned __int64)((char *)v19[0] - (char *)v10 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v10);
si128 = _mm_load_si128((const __m128i *)&Size);
}
v20 = si128;
LOBYTE(v19[0]) = 0;
*(_OWORD *)v21 = 0;
v11 = sub_14003D460(0x120u);
v21[0] = v11;
v22 = _mm_load_si128((const __m128i *)&xmmword_140836730);
v12 = v11;
v13 = "The player is not told and nothing is blocked. Reports and filter hits still count, the account just stops showi"
"ng up in the moderation queue for every moderator. The Account Review still opens from the profile page.\n"
"\n"
"No duration: the mute stays until a moderator unmutes the account.";
v14 = 2;
do
{
*(_OWORD *)v12 = *(_OWORD *)v13;
*((_OWORD *)v12 + 1) = *((_OWORD *)v13 + 1);
*((_OWORD *)v12 + 2) = *((_OWORD *)v13 + 2);
*((_OWORD *)v12 + 3) = *((_OWORD *)v13 + 3);
*((_OWORD *)v12 + 4) = *((_OWORD *)v13 + 4);
*((_OWORD *)v12 + 5) = *((_OWORD *)v13 + 5);
*((_OWORD *)v12 + 6) = *((_OWORD *)v13 + 6);
v12 += 128;
*((_OWORD *)v12 - 1) = *((_OWORD *)v13 + 7);
v13 += 128;
--v14;
}
while ( v14 );
*(_OWORD *)v12 = *(_OWORD *)v13;
*((_QWORD *)v12 + 2) = *((_QWORD *)v13 + 2);
*((_DWORD *)v12 + 6) = *((_DWORD *)v13 + 6);
v11[284] = 0;
AdminActionConfirmPopup::addHelp((__int64)v8, "Queue Mute", (__int64)v21);
if ( v22.m128i_i64[1] > 0xFuLL )
{
v15 = v21[0];
if ( (unsigned __int64)(v22.m128i_i64[1] + 1) >= 0x1000 )
{
v15 = *((void **)v21[0] - 1);
if ( (unsigned __int64)((char *)v21[0] - (char *)v15 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v15);
}
(*(void (__fastcall **)(char *))(*(_QWORD *)v8 + 1064LL))(v8);
if ( *((_QWORD *)&v24 + 1) > 0xFu )
{
v16 = v23[0];
if ( (unsigned __int64)(*((_QWORD *)&v24 + 1) + 1LL) >= 0x1000 )
{
v16 = *((void **)v23[0] - 1);
if ( (unsigned __int64)((char *)v23[0] - (char *)v16 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v16);
}
}