//
// DrawGridLayer::timeForPos from 0x66729c to 0x66735c (192 bytes)
//
// 8 xrefs:
// > LevelEditorLayer::timeForPos @ 0x6673c0
// > LevelEditorLayer::updateGameObjects @ 0x67bc68
// > LevelEditorLayer::updateGameObjects @ 0x67bd84
// > EditorUI::onPlayback @ 0x6894c0
// > EditorUI::onPlayback @ 0x6894fc
// > EditorPauseLayer::init @ 0x78b680
// > EditorPauseLayer::saveLevel @ 0x78e310
// > ??> @ 0x60d80
//
// 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
//
// local variable allocation has failed, the output may be wrong!
float DrawGridLayer::timeForPos(
DrawGridLayer *a1,
cocos2d::CCPoint a2,
int a3,
int a4,
bool a5,
bool a6,
bool a7,
int a8)
{
char v12; // w23
int v14; // [xsp+0h] [xbp-10h]
cocos2d::CCPoint v16; // [xsp+70h] [xbp+60h] BYREF
cocos2d::CCPoint v17; // 0:s0.4,4:s1.4
v12 = a8;
cocos2d::CCPoint::CCPoint(&v16, *(const cocos2d::CCPoint **)&a3);
LOBYTE(v14) = v12;
return LevelTools::timeForPos(
v17,
(cocos2d::CCArray *)&v16,
(int)a1->m_speedObjects,
a1->m_editorLayer->m_levelSettings->m_startSpeed,
a4,
a5,
a6,
a1->m_editorLayer->m_levelSettings->m_platformerMode,
a7,
v14);
}