//
// sub_100544D94 from 0x100544d94 to 0x100544e6c (216 bytes)
//
// 2 xrefs:
// > sub_100542A8C @ 0x100543b7c
// > sub_100542A8C @ 0x100543bc0
//
// 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:07:45 +0000
//
void __fastcall sub_100544D94(__int64 a1, __int64 a2, float a3, float a4)
{
unsigned __int64 v7; // x8
float v8; // s0
std::string::size_type v9; // x1
void **v10; // x1
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v12; // [xsp+1Fh] [xbp-31h]
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 160LL))(a1, a4);
(*(void (__fastcall **)(void **__return_ptr, __int64))(*(_QWORD *)a1 + 336LL))(__p, a1);
if ( *(float *)__p > a3 )
{
v7 = *(unsigned __int8 *)(a2 + 23);
if ( (v7 & 0x80u) != 0LL )
v7 = *(_QWORD *)(a2 + 8);
v8 = (float)(a3 / *(float *)__p) * (float)v7;
if ( (unsigned __int64)v8 <= 4 )
v9 = (unsigned __int64)v8;
else
v9 = (unsigned __int64)v8 - 4;
sub_10004B264(a2, v9, (std::string::size_type *)__p);
if ( v12 >= 0 )
v10 = __p;
else
v10 = (void **)__p[0];
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)a1 + 928LL))(a1, v10);
if ( v12 < 0 )
operator delete(__p[0]);
}
}