//
// PlayerObject::updateSpecial from 0x74ea08 to 0x74ea8c (132 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::update @ 0x9edc80
// > GJBaseGameLayer::update @ 0x9ee0b4
// > ??> @ 0xab7c0
//
// This function is hookable on this platform (idp: arm, 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 12:52:54 +0000
//
__int64 __fastcall PlayerObject::updateSpecial(PlayerObject *this, float a2)
{
int v2; // w2
float v3; // s0
int v4; // w4
__int64 v5; // x3
__int64 result; // x0
int v7; // w2
__int64 v8; // x3
int v9; // w4
v2 = *((_DWORD *)this + 663);
v3 = a2 + *((float *)this + 670);
*((float *)this + 670) = v3;
if ( v3 >= 0.01 )
{
v7 = v2 + 1;
v8 = *((_QWORD *)this + 332);
*((_DWORD *)this + 663) = v7;
v9 = *((_DWORD *)this + 20);
*((float *)this + 670) = v3 - 0.01;
*(_DWORD *)(v8 + 4LL * (v7 % 200)) = v9;
return 200;
}
else
{
v4 = *((_DWORD *)this + 20);
v5 = *((_QWORD *)this + 332);
result = (unsigned int)(v2 % 200);
*(_DWORD *)(v5 + 4LL * (int)result) = v4;
}
return result;
}