//
// DrawGridLayer::timeForPos from 0x1003609a8 to 0x100360a38 (144 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x10035891c
// > LevelEditorLayer::updateGameObjects @ 0x1003589d0
// > LevelEditorLayer::timeForPos @ 0x100361ac8
// > EditorPauseLayer::init @ 0x10039be8c
// > EditorPauseLayer::saveLevel @ 0x10039e434
// > EditorUI::onPlayback @ 0x1003c77c0
// > EditorUI::onPlayback @ 0x1003c77fc
//
// 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 __fastcall DrawGridLayer::timeForPos(
DrawGridLayer *a1,
cocos2d::CCPoint a2,
int a3,
int a4,
bool a5,
bool a6,
bool a7,
int a8)
{
char v8; // w20
int v15; // [xsp+0h] [xbp-50h]
cocos2d::CCArray v16; // [xsp+8h] [xbp-48h] BYREF
cocos2d::CCPoint v17; // 0:s0.4,4:s1.4
v8 = a8;
v17.x = sub_1000229B8((__int64 *)&v16, *(__int64 **)&a3);
LOBYTE(v15) = v8;
return LevelTools::timeForPos(
v17,
&v16,
(int)a1->m_speedObjects,
a1->m_editorLayer->m_levelSettings->m_startSpeed,
a4,
a5,
a6,
a1->m_editorLayer->m_levelSettings->m_platformerMode,
a7,
v15);
}