//
// LoadingLayer::updateProgress from 0x6ecbcc to 0x6ecc68 (156 bytes)
//
// 3 xrefs:
// > LoadingLayer::init @ 0x6ed7d4
// > LoadingLayer::loadAssets @ 0x6edaec
// > ??> @ 0x5f020
//
// 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 12:51:46 +0000
//
__int64 __fastcall LoadingLayer::updateProgress(LoadingLayer *this, int a2)
{
float v2; // s1
float v3; // s2
__int64 v4; // x20
void (__fastcall *v5)(__int64, _BYTE *); // x21
_BYTE v7[16]; // [xsp+48h] [xbp+48h] BYREF
v2 = *((float *)this + 110);
v3 = v2 * (float)((float)a2 / 100.0);
if ( v2 <= v3 )
v3 = *((float *)this + 110);
v4 = *((_QWORD *)this + 54);
v5 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 1136LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v7, 0.0, 0.0, v3, *((float *)this + 111));
v5(v4, v7);
return _stack_chk_guard;
}