//
// PlayLayer::updateAttemptTime from 0x100148c34 to 0x100148ca0 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008df8b0
//
// 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 10:59:35 +0000
//
double __fastcall PlayLayer::updateAttemptTime(__int64 a1, float a2)
{
__int64 v2; // x29
__int64 v3; // x30
double result; // d0
unsigned __int64 v6; // d1
timeb v7; // [xsp+0h] [xbp-30h] BYREF
__int64 v8; // [xsp+20h] [xbp-10h]
__int64 v9; // [xsp+28h] [xbp-8h]
*(double *)(a1 + 14704) = *(double *)(a1 + 14704) + a2;
result = *(double *)(a1 + 14728);
if ( result <= 0.0 )
{
v8 = v2;
v9 = v3;
ftime(&v7);
LOWORD(v6) = v7.millitm;
result = (double)v6 / 1000.0 + (double)v7.time;
*(double *)(a1 + 14728) = result;
}
return result;
}