//
// cocos2d::CCTMXLayer::positionForHexAt from 0x100245810 to 0x10024588b (123 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:19 +0000
//
__int64 __fastcall cocos2d::CCTMXLayer::positionForHexAt(__int64 a1, float *a2, float *a3)
{
float v3; // xmm2_4
float v4; // xmm3_4
v3 = a2[92];
if ( ((int)*a3 & 0x80000001) == 1 )
v4 = -0.5 * v3;
else
v4 = 0.0;
sub_100278250(
a1,
(float)((float)(*a3 * a2[91]) * 3.0) * 0.25,
(float)((float)((float)(a2[90] - a3[1]) + -1.0) * v3) + v4);
return a1;
}