//
// cocos2d::CCTMXLayer::positionForHexAt from 0x5f75f0 to 0x5f766a (122 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXLayer::positionAt @ 0x5f76c6
//
// 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 *cocos2d::CCTMXLayer::positionForHexAt(
cocos2d::CCPoint *__return_ptr retstr,
cocos2d::CCTMXLayer *a2,
const cocos2d::CCPoint *a3)
{
int m_nTag; // s12
int v5; // r3
float v6; // s13
m_nTag = a2[1].m_nTag;
v5 = (int)a3->x % 2;
if ( v5 == 1 )
v6 = 0.5;
else
v6 = 0.0;
if ( v5 == 1 )
v6 = -(float)(*(float *)&m_nTag * v6);
cocos2d::CCPoint::CCPoint(
retstr,
(float)((float)(a3->x * *(float *)&a2[1].m_nLuaID) * 3.0) * 0.25,
v6 + (float)((float)((float)(*(float *)&a2[1].m_uID - a3->y) - 1.0) * *(float *)&m_nTag));
return retstr;
}