//
// TeleportPortalObject::getTeleportXOff from 0x140653930 to 0x140653a0c (220 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x14050ca84
// > TeleportPortalObject::setStartPos @ 0x140653847
// > TeleportPortalObject::setPosition @ 0x1406538f4
// > ??> @ 0x1409315d4
//
// 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 11:35:44 +0000
//
__m128 __fastcall TeleportPortalObject::getTeleportXOff(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // rax
__m128 v8; // xmm0
float v9; // [rsp+38h] [rbp+10h] BYREF
float v10; // [rsp+40h] [rbp+18h] BYREF
char v11; // [rsp+48h] [rbp+20h] BYREF
v2 = a2;
if ( a2 || (v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 504LL))(a1)) != 0 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, -10.0, 0.0);
cocos2d::CCNode::convertToWorldSpace(a1, &v9, v5);
cocos2d::CCNode::convertToNodeSpace(v2, &v11, &v9);
cocos2d::CCPoint::operator=(&v9, v6);
cocos2d::CCNode::convertToWorldSpace(a1, &v10, &unk_14090BDD8);
cocos2d::CCNode::convertToNodeSpace(v2, &v11, &v10);
cocos2d::CCPoint::operator=(&v10, v7);
v8 = (__m128)LODWORD(v9);
v8.m128_f32[0] = v9 - v10;
return _mm_xor_ps(_mm_and_ps(v8, (__m128)xmmword_140836C90), (__m128)xmmword_140836CC0);
}
else
{
return (__m128)0xC1200000;
}
}