//
// GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x5b8234 to 0x5b82d6 (162 bytes)
//
// 4 xrefs:
// > PlayerObject::spiderTestJumpInternal @ 0x4444da
// > PlayerObject::spiderTestJumpY @ 0x445d3e
// > PlayerObject::spiderTestJumpX @ 0x4465fa
// > GJBaseGameLayer::teleportPlayer @ 0x5b86b8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:39 +0000
//
float *__fastcall GJBaseGameLayer::checkCameraLimitAfterTeleport(float *this, PlayerObject *a2, float a3)
{
float *v3; // r4
int v6; // r0
_BYTE v7[4]; // [sp+4h] [bp-Ch] BYREF
float v8; // [sp+8h] [bp-8h]
v3 = this;
if ( *(this + 119) == 0.0 && !*((_BYTE *)a2 + 1963) )
{
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7);
v6 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)a2 + 96))(a2);
if ( *(float *)(v6 + 4) > (float)((float)(v3[213] + v8) + a3)
|| (this = (float *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)a2 + 96))(a2),
*(this + 1) < (float)(v3[213] - a3)) )
{
*((_BYTE *)v3 + 1281) = 1;
return (float *)GJBaseGameLayer::updateCamera((PlayerObject **)v3, 0.0);
}
}
return this;
}