//
// PlayLayer::updateAttemptTime from 0x1405140f0 to 0x140514175 (133 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407d5de0
// > ??> @ 0x14092ac98
//
// 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 11:33:32 +0000
//
__int64 __fastcall PlayLayer::updateAttemptTime(__int64 a1, float a2)
{
__int64 result; // rax
struct __timeb64 Time; // [rsp+20h] [rbp-28h] BYREF
*(double *)(a1 + 15384) = a2 + *(double *)(a1 + 15384);
if ( *(double *)(a1 + 15408) <= 0.0 )
{
ftime64(&Time);
result = Time.millitm;
*(double *)(a1 + 15408) = (double)Time.millitm / 1000.0 + (double)SLODWORD(Time.time);
}
return result;
}