//
// LoadingLayer::updateProgress from 0x10026ec90 to 0x10026ecfc (108 bytes)
//
// 2 xrefs:
// > LoadingLayer::init @ 0x10026eb8c
// > LoadingLayer::loadAssets @ 0x10026edb4
//
// 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:01:45 +0000
//
__int64 __fastcall LoadingLayer::updateProgress(__int64 a1, int a2)
{
float v2; // s0
float v3; // s2
__int64 v4; // x19
float v6[4]; // [xsp+0h] [xbp-20h] BYREF
v2 = *(float *)(a1 + 440);
if ( v2 <= (float)((float)((float)a2 / 100.0) * v2) )
v3 = *(float *)(a1 + 440);
else
v3 = (float)((float)a2 / 100.0) * v2;
v4 = *(_QWORD *)(a1 + 432);
sub_1000262CC(v6, 0.0, 0.0, v3, *(float *)(a1 + 444));
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 1136LL))(v4, v6);
}