//
// SecretGame01Layer::update from 0xbc4fc8 to 0xbc50b4 (236 bytes)
//
// 2 xrefs:
// > ??> @ 0xc3058
// > ??> @ 0x14e0658
//
// 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 13:03:31 +0000
//
__int64 __fastcall SecretGame01Layer::update(__int64 this, float a2)
{
__int64 v2; // x20
__int64 v3; // x19
__int64 (__fastcall *v4)(__int64); // x21
if ( *(_BYTE *)(this + 440) )
{
v2 = *(_QWORD *)(this + 456);
v3 = this;
*(float *)(this + 444) = *(float *)(this + 444) + a2;
v4 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 128LL);
if ( (float)((float)(100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 328LL))(v2))
* (float)(1.0 - (float)(*(float *)(v3 + 444) / *(float *)(v3 + 448)))) > 0.01 )
{
v2 = *(_QWORD *)(v3 + 456);
(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 328LL))(v2);
}
this = v4(v2);
if ( *(float *)(v3 + 444) >= *(float *)(v3 + 448) )
return SecretGame01Layer::showGameOver((SecretGame01Layer *)v3);
}
return this;
}