//
// PlayLayer::incrementJumps from 0x5d0aa4 to 0x5d0b20 (124 bytes)
//
// 2 xrefs:
// > PlayerObject::incrementJumps @ 0x622cfc
// > ??> @ 0x2ae28
//
// 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
//
void PlayLayer::incrementJumps(PlayLayer *a1)
{
int m_jumps; // w1
GJGameLevel *m_level; // x20
int v3; // w2
int v4; // w19
int v5; // w0
m_jumps = a1->m_jumps;
m_level = a1->m_level;
v3 = a1->m_uncommittedJumps + 1;
a1->m_hasJumped = 1;
a1->m_uncommittedJumps = v3;
a1->m_jumps = m_jumps + 1;
v4 = m_level->m_jumps.random - m_level->m_jumps.seed + 1;
m_level->m_jumps.value = v4;
v5 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
m_level->m_jumps.seed = v5;
m_level->m_jumps.random = v4 + v5;
}