//
// SecretGame01Layer::update from 0x100475330 to 0x10047541c (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b45ab0
//
// 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:30:35 +0000
//
void __fastcall SecretGame01Layer::update(__int64 a1, float a2)
{
__int64 v2; // r14
if ( *(_BYTE *)(a1 + 440) == 1 )
{
*(float *)(a1 + 444) = a2 + *(float *)(a1 + 444);
v2 = *(_QWORD *)(a1 + 456);
if ( (float)((float)(1.0 - (float)(*(float *)(a1 + 444) / *(float *)(a1 + 448)))
* (float)(100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 328LL))(v2))) > 0.0099999998 )
(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 328LL))(*(_QWORD *)(a1 + 456));
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 128LL))(v2);
if ( *(float *)(a1 + 444) >= *(float *)(a1 + 448) )
{
*(_DWORD *)(a1 + 436) = 0;
SecretGame01Layer::scaleOutGame(a1, 0);
}
}
}