//
// DrawGridLayer::timeForPos from 0x4659e0 to 0x465a48 (104 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::timeForPos @ 0x465a88
// > LevelEditorLayer::updateGameObjects @ 0x46cb90
// > LevelEditorLayer::updateGameObjects @ 0x46cc06
// > LevelEditorLayer::updateLevelSaveInfo @ 0x4708d0
// > EditorUI::onPlayback @ 0x48249e
// > EditorUI::onPlayback @ 0x4824ca
// > EditorPauseLayer::init @ 0x509932
//
// 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 11:48:56 +0000
//
int __fastcall DrawGridLayer::timeForPos(
int a1,
const cocos2d::CCPoint *a2,
int a3,
int a4,
char a5,
char a6,
char a7,
int a8)
{
float v12[2]; // [sp+1Ch] [bp-Ch] BYREF
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, a2);
return LevelTools::timeForPos(
v12,
*(cocos2d::CCArray **)(a1 + 404),
*(LevelTools **)(*(_DWORD *)(*(_DWORD *)(a1 + 372) + 2084) + 272),
a3,
a4,
a5,
*(_BYTE *)(*(_DWORD *)(*(_DWORD *)(a1 + 372) + 2084) + 281),
a6,
a7,
a8);
}