//
// GJBaseGameLayer::getPortalTargetPos from 0x99ae24 to 0x99aee0 (188 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::teleportPlayer @ 0x9e5a98
// > ??> @ 0x70f48
//
// 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 12:58:04 +0000
//
cocos2d::CCPoint *__usercall GJBaseGameLayer::getPortalTargetPos@(
TeleportPortalObject *a1@,
GameObject *a2@,
PlayerObject *a3@,
cocos2d::CCPoint *a4@)
{
float v7; // [xsp+20h] [xbp+20h]
__int64 v9; // [xsp+40h] [xbp+40h] BYREF
if ( !a2 || *((_DWORD *)a1 + 257) == 747 )
{
v7 = *(float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)a3 + 192LL))(a3);
(*(void (__fastcall **)(__int64 *__return_ptr, TeleportPortalObject *))(*(_QWORD *)a1 + 1360LL))(&v9, a1);
cocos2d::CCPoint::CCPoint(a4, v7, *((float *)&v9 + 1) + *((float *)a1 + 465));
}
else
{
(*(void (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1360LL))(a2);
}
return a4;
}