//
// PlayerObject::updateStateVariables from 0x632174 to 0x632260 (236 bytes)
//
// 2 xrefs:
// > PlayerObject::update @ 0x63f828
// > ??> @ 0x99c30
//
// 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 PlayerObject::updateStateVariables(PlayerObject *a1)
{
float v1; // s0
float v2; // s1
int v4; // w10
int v5; // w9
int v6; // w8
int v7; // w7
int v8; // w6
int v9; // w5
int m_stateForce; // w2
int v11; // w4
int v12; // w3
std::_rb_tree_base *m_parent; // x19
std::_rb_tree_base *v14; // x0
v4 = a1->m_stateDartSlide - 1;
v5 = a1->m_stateFlipGravity - 1;
v6 = a1->m_stateHitHead - 1;
v7 = a1->m_stateOnGround - 1;
v8 = a1->m_stateBoostX - 1;
v9 = a1->m_stateBoostY - 1;
m_stateForce = a1->m_stateForce;
v11 = a1->m_maybeStateForce2 - 1;
v12 = a1->m_stateScale - 1;
--a1->m_stateNoAutoJump;
a1->m_stateDartSlide = v4;
a1->m_stateFlipGravity = v5;
a1->m_stateHitHead = v6;
a1->m_stateOnGround = v7;
a1->m_stateBoostX = v8;
a1->m_stateBoostY = v9;
a1->m_maybeStateForce2 = v11;
a1->m_stateScale = v12;
a1->m_stateForce = m_stateForce - 1;
cocos2d::CCPoint::operator=(&a1->m_stateForceVector, v1, v2);
m_parent = a1->m_jumpPadRelated.m_header.m_parent;
while ( m_parent )
{
std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_erase(
(__int64)&a1->m_jumpPadRelated,
&m_parent->m_right->m_isblack);
v14 = m_parent;
m_parent = m_parent->m_left;
operator delete(v14);
}
a1->m_jumpPadRelated.m_header.m_parent = nullptr;
a1->m_jumpPadRelated.m_header.m_left = &a1->m_jumpPadRelated.m_header;
a1->m_jumpPadRelated.m_header.m_right = &a1->m_jumpPadRelated.m_header;
a1->m_jumpPadRelated.m_nodecount = 0;
}