//
// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1001214d0 to 0x100121585 (181 bytes)
//
// 3 xrefs:
// > PlayerObject::spiderTestJumpInternal @ 0x10040e39e
// > PlayerObject::spiderTestJumpX @ 0x10040fbfb
// > PlayerObject::spiderTestJumpY @ 0x100410a8b
//
// 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 GJBaseGameLayer::checkCameraLimitAfterTeleport(GJBaseGameLayer *a1, PlayerObject *a2, float a3)
{
cocos2d::CCDirector *v4; // rsi
__int64 v5; // rax
__int64 v6; // rax
float v7[2]; // [rsp-2Ch] [rbp-2Ch] BYREF
float v8; // [rsp-24h] [rbp-24h]
double v9; // 0:xmm0_8.8
if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways )
{
v8 = a3;
v4 = cocos2d::CCDirector::sharedDirector();
*(cocos2d::CCSize *)&v9 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
v5 = ((__int64 (__fastcall *)(PlayerObject *, cocos2d::CCDirector *, double))a2->getPosition)(a2, v4, v9);
if ( *(float *)(v5 + 4) > (float)((float)(a1->m_gameState.m_cameraPosition.y + v7[1]) + v8)
|| (v6 = ((__int64 (__fastcall *)(PlayerObject *))a2->getPosition)(a2),
(float)(a1->m_gameState.m_cameraPosition.y - v8) > *(float *)(v6 + 4)) )
{
a1->m_gameState.m_unkBool29 = 1;
GJBaseGameLayer::updateCamera(a1, 0.0);
}
}
}