// // GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x10027ebf0 to 0x10027eca8 (184 bytes) // // 2 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x10027e8f4 // > PlayerObject::spiderTestJumpInternal @ 0x1002c2170 // // This function is hookable on this platform (idp: arm, 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:01:54 +0000 // __int64 __fastcall GJBaseGameLayer::checkCameraLimitAfterTeleport(__int64 result, _BYTE *a2, float a3) { __int64 v5; // x19 __int64 v6; // x0 double WinSize; // d0 __int64 v8; // x0 __int64 v9; // [xsp+8h] [xbp-28h] BYREF if ( *(float *)(result + 572) == 0.0 && (a2[2427] & 1) == 0 ) { v5 = result; v6 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v6, &v9); v8 = (*(__int64 (__fastcall **)(_BYTE *, double))(*(_QWORD *)a2 + 192LL))(a2, WinSize); if ( *(float *)(v8 + 4) > (float)((float)(*(float *)(v5 + 996) + *((float *)&v9 + 1)) + a3) || (result = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 192LL))(a2), *(float *)(result + 4) < (float)(*(float *)(v5 + 996) - a3)) ) { *(_BYTE *)(v5 + 1721) = 1; return GJBaseGameLayer::updateCamera(v5, 0.0); } } return result; }