//
// sub_100945A90 from 0x100945a90 to 0x100945b76 (230 bytes)
//
// 0 xrefs:
//
// 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 12:38:33 +0000
//
__int64 __fastcall sub_100945A90(__int64 a1, __int64 a2, int a3, int a4)
{
float v7; // xmm2_4
void *v8; // rsi
int v9; // r14d
char *v10; // rax
__int64 CString; // rax
__int64 result; // rax
float v13; // [rsp-28h] [rbp-28h]
if ( a2 )
{
v7 = (float)a4;
if ( (float)(0.69999999 * (float)a4) <= (float)a3 )
{
v13 = (float)a3;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1024LL))(a2, 255);
if ( (float)(v7 * 0.89999998) <= v13 )
v8 = &unk_100A14323;
else
v8 = &unk_100A14382;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 1072LL))(a2, v8);
}
else
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1024LL))(a2, 100);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 1072LL))(a2, &unk_100A14382);
}
v9 = a4 - a3;
if ( v9 <= 0 )
v9 = 0;
v10 = sub_10088E820("%i", v9);
CString = cocos2d::CCString::getCString((__int64)v10);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 928LL))(a2, CString);
}
return result;
}