//
// MapSelectLayer::getConstrainedMapPos from 0x100252e20 to 0x100252e92 (114 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:27:24 +0000
//
__int64 __fastcall MapSelectLayer::getConstrainedMapPos(__int64 a1, __int64 a2, double *a3, __m128 a4)
{
__int64 v4; // rax
__int64 v7; // rsi
_QWORD v9[4]; // [rsp+0h] [rbp-20h] BYREF
v9[0] = v4;
v7 = cocos2d::CCDirector::sharedDirector(a1, a2);
cocos2d::CCDirector::getWinSize(v9, v7);
*(double *)a4.i64 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a2 + 408) + 168LL))(*(_QWORD *)(a2 + 408));
_mm_storel_ps(
a3,
_mm_max_ps(
_mm_min_ps((__m128)0LL, (__m128)*(unsigned __int64 *)a3),
_mm_add_ps(_mm_mul_ps(_mm_moveldup_ps(a4), (__m128)xmmword_100A06910), (__m128)v9[0])));
sub_1002782D0(a1, a3);
return a1;
}