//
// PlayerObject::incrementJumps from 0x1404eae50 to 0x1404eaf28 (216 bytes)
//
// 3 xrefs:
// > PlayerObject::updateJump @ 0x1404ea0d9
// > PlayerObject::ringJump @ 0x1404f7f23
// > ??> @ 0x140929cf0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:33:13 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall PlayerObject::incrementJumps(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rax
_DWORD *v4; // rdi
int v5; // ebx
float v6; // xmm0_4
void *v7; // [rsp+30h] [rbp+8h]
if ( *(_BYTE *)(a1 + 2028) )
{
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v7 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
v3 = *(_QWORD *)(v2 + 560);
*(_BYTE *)(v3 + 15308) = 1;
++*(_DWORD *)(v3 + 15312);
++*(_DWORD *)(v3 + 15304);
v4 = *(_DWORD **)(v3 + 2168);
v5 = v4[220] - v4[221] + 1;
v4[222] = v5;
v6 = (float)((float)rand() / 32767.0) * 1000.0;
v4[221] = (int)v6;
v4[220] = v5 + (int)v6;
*(_BYTE *)(a1 + 2704) = 1;
}
}