//
// InfoLayer::updateUserScoreFinished from 0x1402bee00 to 0x1402bef2e (302 bytes)
//
// 2 xrefs:
// > ??> @ 0x140581a40
// > ??> @ 0x1406d28ac
//
// 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=2
void InfoLayer::updateUserScoreFinished(InfoLayer *a1)
{
GameManager *v2; // rbp
__int64 v3; // rbx
int v4; // ebx
__int64 v5; // rbx
__int64 v6; // rax
GameLevelManager *v7; // rsi
bool GameVariable; // al
void *v9; // [rsp+40h] [rbp+8h]
void *v10; // [rsp+40h] [rbp+8h]
if ( LOBYTE(a1->m_sInverse.ty) )
{
LOBYTE(a1->m_sInverse.ty) = 0;
v2 = (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);
v2 = (GameManager *)qword_1406C2ED8;
}
v3 = *(_QWORD *)&a1->m_uIndexInArray;
if ( v3 )
{
v4 = *(_DWORD *)(v3 + 388);
}
else
{
v5 = *(_QWORD *)&a1->m_unknown2;
if ( v5 )
{
v4 = -*(_DWORD *)(v5 + 344);
}
else
{
v6 = *(_QWORD *)&a1->m_uAutoReleaseCount;
if ( v6 )
v4 = *(_DWORD *)(v6 + 328) - *(_DWORD *)(v6 + 332);
else
v4 = 0;
}
}
v7 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v10 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v7 = (GameLevelManager *)qword_1406C2EC0;
}
GameVariable = GameManager::getGameVariable(v2, "0069");
GameLevelManager::getLevelComments(
v7,
v4,
LODWORD(a1->m_sInverse.tx),
LODWORD(a1->m_sInverse.b),
GameVariable,
*((CommentKeyType *)&a1->m_sInverse + 6));
}
}