//
// LoadingLayer::updateProgress from 0x3faff8 to 0x3fb062 (106 bytes)
//
// 2 xrefs:
// > LoadingLayer::init @ 0x3fba5a
// > LoadingLayer::loadAssets @ 0x3fbffc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:20 +0000
//
int __fastcall LoadingLayer::updateProgress(LoadingLayer *this, int a2)
{
float v2; // s14
int v3; // r6
int (__fastcall *v4)(int, _BYTE *); // r7
float v5; // r3
_BYTE v7[16]; // [sp+Ch] [bp-18h] BYREF
v2 = *((float *)this + 84);
v3 = *((_DWORD *)this + 83);
v4 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v3 + 568);
if ( v2 > (float)(v2 * (float)((float)a2 / 100.0)) )
v5 = v2 * (float)((float)a2 / 100.0);
else
v5 = *((float *)this + 84);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v7, 0.0, 0.0, v5, *((float *)this + 85));
return v4(v3, v7);
}