//
// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x1403427b0 to 0x140342869 (185 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::teleportPlayer @ 0x14031696e
// > PlayerObject::spiderTestJumpInternal @ 0x1404f3337
// > ??> @ 0x14091fdf0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:30:40 +0000
//
void __fastcall GJBaseGameLayer::checkCameraLimitAfterTeleport(__int64 a1, _BYTE *a2, float a3)
{
__int64 v5; // rax
__int64 v6; // rax
char v7; // [rsp+50h] [rbp+8h] BYREF
float v8; // [rsp+54h] [rbp+Ch]
if ( *(float *)(a1 + 572) == 0.0 && !a2[2507] )
{
v5 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v5, &v7);
v6 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 200LL))(a2);
if ( *(float *)(v6 + 4) > (float)((float)(v8 + *(float *)(a1 + 1044)) + a3)
|| (float)(*(float *)(a1 + 1044) - a3) > *(float *)((*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 200LL))(a2)
+ 4) )
{
*(_BYTE *)(a1 + 1889) = 1;
GJBaseGameLayer::updateCamera(a1);
}
}
}