//
// LoadingLayer::updateProgress from 0x1404698d0 to 0x14046993c (108 bytes)
//
// 3 xrefs:
// > LoadingLayer::init @ 0x14046982d
// > LoadingLayer::loadAssets @ 0x1404699d3
// > ??> @ 0x140928010
//
// 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 11:32:36 +0000
//
__int64 __fastcall LoadingLayer::updateProgress(__int64 a1, int a2)
{
__int64 v2; // rdi
__int64 (__fastcall *v3)(__int64, __int64); // rbx
__int64 v4; // rax
_BYTE v6[24]; // [rsp+30h] [rbp-18h] BYREF
v2 = *(_QWORD *)(a1 + 432);
v3 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 992LL);
cocos2d::CCRect::CCRect(
(cocos2d::CCRect *)v6,
0.0,
0.0,
fminf(*(float *)(a1 + 440), (float)((float)a2 / 100.0) * *(float *)(a1 + 440)),
*(float *)(a1 + 444));
return v3(v2, v4);
}