//
// sub_100402398 from 0x100402398 to 0x100402428 (144 bytes)
//
// 7 xrefs:
// > sub_1003F823C @ 0x1003f85b8
// > sub_1003F823C @ 0x1003f866c
// > LevelEditorLayer::timeForPos @ 0x1004034f4
// > LevelEditorLayer::updateLevelSaveInfo @ 0x100404e04
// > EditorPauseLayer::init @ 0x1004434f4
// > EditorUI::onPlayback @ 0x10047133c
// > EditorUI::onPlayback @ 0x100471378
//
// This function is hookable on this platform (idp: arm, 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 11:04:39 +0000
//
float __fastcall sub_100402398(__int64 a1, double *a2, int a3, int a4, char a5, int a6, char a7, int a8)
{
__int64 v16; // [xsp+8h] [xbp-48h] BYREF
sub_1000262F4(&v16, a2);
return LevelTools::timeForPos(
(float *)&v16,
*(_QWORD *)(a1 + 560),
*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 496) + 3272LL) + 332LL),
a3,
a4,
a5,
*(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 496) + 3272LL) + 341LL),
a6,
a7,
a8);
}