//
// DrawGridLayer::timeForPos from 0x1000eecf0 to 0x1000eed70 (128 bytes)
//
// 4 xrefs:
// > EditorUI::onPlayback @ 0x10000c43a
// > EditorUI::onPlayback @ 0x10000c47b
// > EditorPauseLayer::init @ 0x10029163a
// > EditorPauseLayer::saveLevel @ 0x1002949fc
//
// 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)
{
cocos2d::CCPoint v11; // xmm0_8
__int64 v13; // [rsp+8h] [rbp-38h] BYREF
_BOOL8 v14; // [rsp+10h] [rbp-30h]
v14 = a7;
*(double *)&v11 = sub_10028CC60(&v13);
return LevelTools::timeForPos(
v11,
(cocos2d::CCArray *)&v13,
(int)a1->m_speedObjects,
a1->m_editorLayer->m_levelSettings->m_startSpeed,
a4,
a5,
a6,
a1->m_editorLayer->m_levelSettings->m_platformerMode,
v14,
(unsigned __int8)a8);
}