//
// GJGameLevel::storeNewLocalScore from 0x1000acf54 to 0x1000ad080 (300 bytes)
//
// 5 xrefs:
// > GJGameLevel::handleStatsConflict @ 0x10009be50
// > GJGameLevel::handleStatsConflict @ 0x10009bedc
// > PlayLayer::levelComplete @ 0x100119e94
// > PlayLayer::levelComplete @ 0x100119ed4
// > PlayLayer::levelComplete @ 0x100119f48
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJGameLevel::storeNewLocalScore(GJGameLevel *a1, int a2, int a3)
{
int v3; // w3
int v4; // w4
int v5; // w5
const std::string *v6; // x6
int v7; // w7
const std::string *v8; // x22
std::vector *v9; // x19
std::string *v10; // x20
int m_bestPoints; // w11
int m_bestTime; // w11
bool v16; // zf
v8 = v6;
v9 = *(std::vector **)&a3;
v10 = *(std::string **)&a2;
if ( a3 )
{
if ( a2 )
{
m_bestPoints = a1->m_bestPoints;
if ( m_bestPoints < a2 || m_bestPoints == 0 || v7 != 0 )
{
a1->m_bestPoints = a2;
a1->m_ticksPoints = v3;
a1->m_clicksPoints = v4;
a1->m_coinsPoints = v5;
a1->m_platformerSeed = GJGameLevel::saveNewScore(
a1->m_bestTime,
a2,
a1->m_clicksTime,
a1->m_ticksTime,
a1->m_coinsTime,
v4,
v3,
v5);
std::string::operator=((std::string *)&a1->m_inputsPoints, v8);
a1->m_savedPoints = 1;
}
}
}
else if ( a2 >= 1 )
{
m_bestTime = a1->m_bestTime;
v16 = m_bestTime > a2 || m_bestTime == 0;
if ( v16 || v7 != 0 )
{
a1->m_bestTime = a2;
a1->m_ticksTime = v3;
a1->m_clicksTime = v4;
a1->m_coinsTime = v5;
a1->m_platformerSeed = GJGameLevel::saveNewScore(
a2,
a1->m_bestPoints,
v4,
v3,
v5,
a1->m_clicksPoints,
a1->m_ticksPoints,
a1->m_coinsPoints);
std::string::operator=((std::string *)&a1->m_inputsTime, v8);
a1->m_savedTime = 1;
}
}
GJGameLevel::scoreStringToVector(a1, v10, v9);
}