//
// PlayerObject::incrementJumps from 0x14038cba0 to 0x14038cc75 (213 bytes)
//
// 3 xrefs:
// > PlayerObject::updateJump @ 0x14038be5a
// > PlayerObject::ringJump @ 0x140399cd2
// > ??> @ 0x1406d6038
//
// 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 PlayerObject::incrementJumps(PlayerObject *a1)
{
__int64 v2; // rax
__int64 v3; // rax
_DWORD *v4; // rdi
int v5; // ebx
float v6; // xmm0_4
void *v7; // [rsp+30h] [rbp+8h]
if ( a1->m_playEffects )
{
v2 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v2 = qword_1406C2ED8;
}
v3 = *(_QWORD *)(v2 + 520);
*(_BYTE *)(v3 + 14708) = 1;
++*(_DWORD *)(v3 + 14712);
++*(_DWORD *)(v3 + 14704);
v4 = *(_DWORD **)(v3 + 2168);
v5 = v4[191] - v4[192] + 1;
v4[193] = v5;
v6 = (float)((float)rand() / 32767.0) * 1000.0;
v4[192] = (int)v6;
v4[191] = v5 + (int)v6;
a1->m_hasEverJumped = 1;
}
}