//
// InfoLayer::commentUploadFinished from 0x1402bef50 to 0x1402bf017 (199 bytes)
//
// 2 xrefs:
// > ??> @ 0x140581940
// > ??> @ 0x1406d28b8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void InfoLayer::commentUploadFinished(InfoLayer *a1, int a2)
{
InfoLayer *v3; // rbx
__int64 v4; // rax
int v5; // eax
__int64 v6; // rax
__int64 v7; // rdx
GameManager *v8; // rcx
void *v9; // [rsp+30h] [rbp+8h]
if ( !*(_QWORD *)&a1->m_uAutoReleaseCount )
{
v3 = (InfoLayer *)((char *)a1 - 640);
v4 = *(_QWORD *)&a1->m_uAutoReleaseCount;
if ( v4 )
{
v5 = *(_DWORD *)(v4 + 388);
}
else
{
v6 = *(_QWORD *)&a1->m_uIndexInArray;
if ( v6 )
{
v5 = -*(_DWORD *)(v6 + 344);
}
else
{
v7 = *(_QWORD *)&a1->m_nTag;
v5 = v7 ? *(_DWORD *)(v7 + 328) - *(_DWORD *)(v7 + 332) : 0;
}
}
if ( a2 == v5 )
{
v8 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v9 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v8 = (GameManager *)qword_1406C2ED8;
}
GameManager::setGameVariable(v8, "0069", 0);
InfoLayer::updateCommentModeButtons(v3);
InfoLayer::loadPage(v3, 0, 0);
}
}
}