//
// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x4878d0 to 0x487972 (162 bytes)
//
// 4 xrefs:
// > PlayerObject::spiderTestJumpInternal @ 0x349272
// > PlayerObject::spiderTestJumpY @ 0x34aab6
// > PlayerObject::spiderTestJumpX @ 0x34b372
// > GJBaseGameLayer::teleportPlayer @ 0x4915e6
//
// 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 GJBaseGameLayer::checkCameraLimitAfterTeleport(GJBaseGameLayer *a1, PlayerObject *a2, float a3)
{
cocos2d::CCDirector *v6; // r0
const cocos2d::CCPoint *v7; // r0
cocos2d::CCSize v8; // [sp+4h] [bp-Ch] BYREF
if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways )
{
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v8, v6);
v7 = a2->getPosition(a2);
if ( v7->y > (float)((float)(a1->m_gameState.m_cameraPosition.y + v8.height) + a3)
|| a2->getPosition(a2)->y < (float)(a1->m_gameState.m_cameraPosition.y - a3) )
{
a1->m_gameState.m_unkBool29 = 1;
GJBaseGameLayer::updateCamera(a1, 0.0);
}
}
}