//
// cocos2d::CCTMXLayer::positionForHexAt from 0x10025b880 to 0x10025b8fb (123 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCPoint __fastcall cocos2d::CCTMXLayer::positionForHexAt(cocos2d::CCTMXLayer *a1, const cocos2d::CCPoint *a2)
{
float *v2; // rdx
float x; // xmm2_4
float v5; // xmm3_4
cocos2d::CCPoint result; // 0:xmm0_8.8
result = (cocos2d::CCPoint)*(unsigned int *)v2;
x = a2[46].x;
if ( ((int)result.x & 0x80000001) == 1 )
v5 = -0.5 * x;
else
v5 = 0.0;
result.x = (float)((float)(result.x * a2[45].y) * 3.0) * 0.25;
sub_10028CBE0(a1, result.x, (float)((float)((float)(a2[45].x - v2[1]) + -1.0) * x) + v5);
return result;
}