//
// DrawGridLayer::timeForPos from 0x1000c2480 to 0x1000c2500 (128 bytes)
//
// 3 xrefs:
// > EditorUI::onPlayback @ 0x1000086aa
// > EditorUI::onPlayback @ 0x1000086eb
// > EditorPauseLayer::init @ 0x10027cf2a
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:20:34 +0000
//
__int64 __fastcall DrawGridLayer::timeForPos(
__int64 a1,
__int64 a2,
int a3,
int a4,
int a5,
__int64 a6,
char a7,
int a8)
{
_BYTE v12[8]; // [rsp+8h] [rbp-38h] BYREF
__int64 v13; // [rsp+10h] [rbp-30h]
v13 = a6;
sub_1002782D0(v12, a2);
return LevelTools::timeForPos(
(unsigned int)v12,
*(_QWORD *)(a1 + 560),
*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 496) + 3272LL) + 332LL),
a3,
a4,
a5,
*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 496) + 3272LL) + 341LL),
v13,
a7,
a8);
}