//
// PlayLayer::incrementJumps from 0x31323c to 0x313296 (90 bytes)
//
// 1 xrefs:
// > PlayerObject::incrementJumps @ 0x33d2a4
//
// 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)
{
GJGameLevel *m_level; // r5
int seed; // r4
int v3; // r4
int v4; // s15
a1->m_hasJumped = 1;
m_level = a1->m_level;
++a1->m_uncommittedJumps;
seed = m_level->m_jumps.seed;
++a1->m_jumps;
v3 = m_level->m_jumps.random - seed + 1;
m_level->m_jumps.value = v3;
v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
m_level->m_jumps.seed = v4;
m_level->m_jumps.random = v4 + v3;
}