//
// PlayerObject::updateSpecial from 0x435148 to 0x43519c (84 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x5bdf62
// > GJBaseGameLayer::update @ 0x5bdfc6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:18 +0000
//
int __fastcall PlayerObject::updateSpecial(int this, float a2)
{
int v2; // r5
float *v3; // r3
PlayerObject *v4; // r4
float v5; // s15
bool v6; // nf
int v8; // r1
v3 = (float *)(this + 2172);
v4 = (PlayerObject *)this;
v5 = a2 + *(float *)(this + 2172);
*(float *)(this + 2172) = v5;
v6 = v5 < 0.01;
if ( v5 < 0.01 )
{
this = *(_DWORD *)(this + 2156);
v2 = *((_DWORD *)v4 + 19);
}
else
{
v5 = v5 - 0.01;
}
if ( !v6 )
{
*v3 = v5;
v2 = *((_DWORD *)v4 + 19);
this = *(_DWORD *)(this + 2156) + 1;
*((_DWORD *)v4 + 539) = this;
}
v8 = this % 200;
*(_DWORD *)(*((_DWORD *)v4 + 540) + 4 * v8) = v2;
return this / 200;
}