//
// sub_1005ECA7C from 0x1005eca7c to 0x1005ecab4 (56 bytes)
//
// 4 xrefs:
// > ??> @ 0x1009abd78
// > ??> @ 0x1009abf20
// > ??> @ 0x1009ac0c8
// > ??> @ 0x1009ac258
//
// 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:09:46 +0000
//
__int64 __fastcall sub_1005ECA7C(__int64 a1, float a2)
{
__int64 v2; // x0
__int64 (__fastcall *v3)(float); // x1
v2 = *(_QWORD *)(a1 + 96);
if ( v2 && (v3 = *(__int64 (__fastcall **)(float))(v2 + 224)) != nullptr )
return v3(fminf(fmaxf(a2, 0.01), 100.0));
else
return 19;
}