//
// GJBaseGameLayer::getPortalTargetPos from 0x1000fd5c0 to 0x1000fd640 (128 bytes)
//
// 0 xrefs:
//
// 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 12:21:19 +0000
//
__int64 __fastcall GJBaseGameLayer::getPortalTargetPos(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
_BYTE v7[4]; // [rsp+4h] [rbp-1Ch] BYREF
float v8; // [rsp+8h] [rbp-18h]
float v9; // [rsp+Ch] [rbp-14h]
if ( a4 && *(_DWORD *)(a3 + 1028) != 747 )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a4 + 1360LL))(a1, a4);
}
else
{
v9 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a5 + 192LL))(a5);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a3 + 1360LL))(v7, a3);
sub_100278250(a1, v9, v8 + *(float *)(a3 + 1860));
}
return a1;
}