//
// InfoLayer::bulkCommentDeleteFinished from 0x100898080 to 0x100898210 (400 bytes)
//
// 2 xrefs:
// > sub_100898270 @ 0x10089827c
// > ??> @ 0x100ba8190
//
// 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 12:37:07 +0000
//
void __fastcall InfoLayer::bulkCommentDeleteFinished(__int64 *a1, unsigned int a2, double a3, __m128d a4)
{
const char *v4; // rdx
char *v5; // rax
const char *CString; // r15
size_t v7; // rax
size_t v8; // r14
char *v9; // r12
char v10; // r14
size_t v11; // r13
char *v12; // rax
__int128 v13; // [rsp+8h] [rbp-78h] BYREF
void *v14; // [rsp+18h] [rbp-68h]
__int128 v15; // [rsp+20h] [rbp-60h] BYREF
void *v16; // [rsp+30h] [rbp-50h]
__int128 __dst; // [rsp+40h] [rbp-40h] BYREF
void *__p; // [rsp+50h] [rbp-30h]
sub_100896EB0(a1);
InfoLayer::onRefreshComments(a1, a3, a4);
v4 = "s";
if ( a2 == 1 )
v4 = "";
v5 = sub_10088E820("Deleted %i comment%s", a2, v4);
CString = (const char *)cocos2d::CCString::getCString((__int64)v5);
v7 = strlen(CString);
if ( v7 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v8 = v7;
if ( v7 >= 0x17 )
{
v11 = 26;
if ( (v7 | 7) != 0x17 )
v11 = (v7 | 7) + 1;
v9 = (char *)operator new(v11);
__p = v9;
*(_QWORD *)&__dst = v11 + 1;
*((_QWORD *)&__dst + 1) = v8;
LABEL_11:
memmove(v9, CString, v8);
v9[v8] = 0;
v10 = __dst;
if ( (__dst & 1) == 0 )
goto LABEL_7;
goto LABEL_12;
}
LOBYTE(__dst) = 2 * v7;
v9 = (char *)&__dst + 1;
if ( v7 )
goto LABEL_11;
BYTE1(__dst) = 0;
v10 = __dst;
if ( (__dst & 1) == 0 )
{
LABEL_7:
v16 = __p;
v15 = __dst;
goto LABEL_13;
}
LABEL_12:
sub_10001AD30(&v15, __p, *((unsigned __int64 *)&__dst + 1));
LABEL_13:
LOWORD(v13) = 0;
v12 = TextAlertPopup::create(&v15, 0x96u, &v13, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64 *, char *, __int64))(*a1 + 464))(a1, v12, 100);
if ( (v13 & 1) != 0 )
{
operator delete(v14);
if ( (v15 & 1) == 0 )
{
LABEL_15:
if ( (v10 & 1) == 0 )
return;
goto LABEL_16;
}
}
else if ( (v15 & 1) == 0 )
{
goto LABEL_15;
}
operator delete(v16);
if ( (v10 & 1) != 0 )
LABEL_16:
operator delete(__p);
}