//
// GJBaseGameLayer::getPortalTargetPos from 0x10027e9dc to 0x10027ea80 (164 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::teleportPlayer @ 0x10027e4c4
//
// 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
//
float *__usercall GJBaseGameLayer::getPortalTargetPos@(
__int64 a1@,
__int64 a2@,
__int64 a3@,
float *a4@)
{
float v6; // s8
__int64 v8; // [xsp+8h] [xbp-28h] BYREF
if ( a2 && *(_DWORD *)(a1 + 1028) != 747 )
return (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1360LL))(a2);
v6 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 192LL))(a3);
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)a1 + 1360LL))(&v8, a1);
return sub_1000262BC(a4, v6, *((float *)&v8 + 1) + *(float *)(a1 + 1860));
}