//
// AccountReviewPopup::threadDeleteAnswered from 0x1400bbae0 to 0x1400bbb5b (123 bytes)
//
// 3 xrefs:
// > AccountReviewPopup::threadUpdateFinished @ 0x1400bbb6d
// > AccountReviewPopup::threadUpdateFailed @ 0x1400bbb95
// > ??> @ 0x14091382c
//
// 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:17 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall AccountReviewPopup::threadDeleteAnswered(__int64 a1)
{
__int64 result; // rax
bool v2; // zf
__int64 v3; // rbx
void *v4; // [rsp+30h] [rbp+8h]
result = *(unsigned int *)(a1 + 1348);
v2 = (_DWORD)result == 0;
if ( (int)result > 0 )
{
result = (unsigned int)(result - 1);
*(_DWORD *)(a1 + 1348) = result;
v2 = (_DWORD)result == 0;
}
if ( v2 )
{
v3 = a1 + 832;
result = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v4 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v4);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
result = *(_QWORD *)&qword_14090BFB0;
}
if ( *(_QWORD *)(result + 1392) == v3 )
*(_QWORD *)(result + 1392) = 0;
}
return result;
}