//
// sub_620F68 from 0x620f68 to 0x620fac (68 bytes)
//
// 57 xrefs:
// > PlayerObject::animationFinished @ 0x6218b8
// > PlayerObject::animationFinished @ 0x6218f0
// > PlayerObject::animationFinished @ 0x621918
// > PlayerObject::createRobot @ 0x622458
// > PlayerObject::createRobot @ 0x622480
// > PlayerObject::createRobot @ 0x6224a4
// > PlayerObject::createSpider @ 0x6227ec
// > PlayerObject::createSpider @ 0x622814
// > PlayerObject::createSpider @ 0x62283c
// > PlayerObject::updateDashArt @ 0x626330
// > PlayerObject::updatePlayerFrame @ 0x627cb8
// > PlayerObject::updatePlayerRollFrame @ 0x627f08
// > PlayerObject::updatePlayerSwingFrame @ 0x628160
// > PlayerObject::updatePlayerDartFrame @ 0x6283b8
// > PlayerObject::updatePlayerShipFrame @ 0x628718
// > PlayerObject::updatePlayerJetpackFrame @ 0x628970
// > PlayerObject::updatePlayerBirdFrame @ 0x628c30
// > PlayerObject::playingEndEffect @ 0x628ea8
// > PlayerObject::boostPlayer @ 0x629598
// > PlayerObject::propellPlayer @ 0x6298f8
// > PlayerObject::playDynamicSpiderRun @ 0x62b224
// > PlayerObject::playDynamicSpiderRun @ 0x62b24c
// > PlayerObject::playDynamicSpiderRun @ 0x62b27c
// > PlayerObject::updateMove @ 0x62bea4
// > PlayerObject::updateMove @ 0x62c684
// > PlayerObject::updateMove @ 0x62c73c
// > PlayerObject::updateMove @ 0x62c760
// > PlayerObject::updateMove @ 0x62c784
// > PlayerObject::updateMove @ 0x62c7b4
// > PlayerObject::updateMove @ 0x62c7e4
// > PlayerObject::stopDashing @ 0x62cec0
// > PlayerObject::hitGround @ 0x62d644
// > PlayerObject::updateRobotAnimationSpeed @ 0x62dc0c
// > PlayerObject::updateRobotAnimationSpeed @ 0x62dc38
// > PlayerObject::updateRobotAnimationSpeed @ 0x62dc54
// > PlayerObject::updateRobotAnimationSpeed @ 0x62dc90
// > PlayerObject::toggleSpiderMode @ 0x630f1c
// > PlayerObject::toggleSpiderMode @ 0x630f38
// > PlayerObject::toggleRobotMode @ 0x631c58
// > PlayerObject::toggleRobotMode @ 0x631c74
// > PlayerObject::toggleRobotMode @ 0x631ca0
// > PlayerObject::updateJump @ 0x6353d8
// > PlayerObject::updateJump @ 0x635c94
// > PlayerObject::updateJump @ 0x635ce0
// > PlayerObject::ringJump @ 0x63c3dc
// > PlayerObject::ringJump @ 0x63c794
// > PlayerObject::setupStreak @ 0x63d4dc
// > PlayerObject::init @ 0x63e77c
// > PlayerObject::init @ 0x63e7a8
// > PlayerObject::init @ 0x63e7c4
// > PlayerObject::init @ 0x63e7f0
// > PlayerObject::init @ 0x63e80c
// > PlayerObject::init @ 0x63e828
// > PlayerObject::init @ 0x63e854
// > PlayerObject::init @ 0x63e880
// > PlayerObject::create @ 0x63f48c
// > PlayerObject::update @ 0x6401c8
//
// 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 __fastcall sub_620F68(void *p)
{
unsigned int *v1; // x3
int v2; // w2
int v3; // w2
if ( !&pthread_create )
{
v3 = *((_DWORD *)p + 4);
*((_DWORD *)p + 4) = v3 - 1;
if ( v3 > 0 )
return;
LABEL_7:
operator delete(p);
return;
}
v1 = (unsigned int *)((char *)p + 16);
do
v2 = __ldaxr(v1);
while ( __stlxr(v2 - 1, v1) );
if ( v2 <= 0 )
goto LABEL_7;
}