//
// cocos2d::CCTMXLayer::positionForHexAt from 0x803dd8 to 0x803e52 (122 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXLayer::positionAt @ 0x803eac
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:22 +0000
//
cocos2d::CCTMXLayer *__fastcall cocos2d::CCTMXLayer::positionForHexAt(
cocos2d::CCTMXLayer *this,
const cocos2d::CCPoint *a2,
float *a3)
{
float v4; // s12
int v5; // r3
float v6; // s13
v4 = *((float *)a2 + 75);
v5 = (int)*a3 % 2;
if ( v5 == 1 )
v6 = 0.5;
else
v6 = 0.0;
if ( v5 == 1 )
v6 = -(float)(v4 * v6);
cocos2d::CCPoint::CCPoint(
(float *)this,
(float)((float)(*a3 * *((float *)a2 + 74)) * 3.0) * 0.25,
v6 + (float)((float)((float)(*((float *)a2 + 73) - a3[1]) - 1.0) * v4));
return this;
}