//
// DrawGridLayer::timeForPos from 0x36c118 to 0x36c180 (104 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::timeForPos @ 0x36c1c0
// > LevelEditorLayer::updateGameObjects @ 0x375c74
// > LevelEditorLayer::updateGameObjects @ 0x375cf8
// > EditorUI::onPlayback @ 0x37dae2
// > EditorUI::onPlayback @ 0x37db0e
// > EditorPauseLayer::init @ 0x3ff8b6
// > EditorPauseLayer::saveLevel @ 0x4013a8
//
// 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
//
float DrawGridLayer::timeForPos(
DrawGridLayer *a1,
cocos2d::CCPoint a2,
int a3,
int a4,
bool a5,
bool a6,
bool a7,
int a8)
{
int y_low; // r7
cocos2d::CCPoint v11; // r0
int v13; // [sp+18h] [bp-10h]
cocos2d::CCPoint v14; // [sp+1Ch] [bp-Ch] BYREF
y_low = LODWORD(a2.y);
cocos2d::CCPoint::CCPoint(&v14, (const cocos2d::CCPoint *)LODWORD(a2.x));
LODWORD(v11.x) = &v14;
LODWORD(v11.y) = a1->m_speedObjects;
return LevelTools::timeForPos(
v11,
(cocos2d::CCArray *)a1->m_editorLayer->m_levelSettings->m_startSpeed,
y_low,
a3,
(unsigned __int8)a4,
a1->m_editorLayer->m_levelSettings->m_platformerMode,
a5,
a6,
a7,
v13);
}